Skip to content

Commit

Permalink
Remove non-Nuxt config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyersdev committed Jan 16, 2023
1 parent b5a3471 commit d7f90ea
Show file tree
Hide file tree
Showing 31 changed files with 18 additions and 1,323 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/he-npm-1.2.0-3b73a2ff07-3d4d6babcc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
600 changes: 0 additions & 600 deletions auto-imports.d.ts

This file was deleted.

60 changes: 0 additions & 60 deletions components.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions components/AuthTiers.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts">
import { defineComponent, ref } from 'vue'
import { useRouter } from 'vue-router'
import AuthMagicLinkModal from '/components/AuthMagicLinkModal.vue'
import AuthStripeModal from '/components/AuthStripeModal.vue'
import AuthTier from '/components/AuthTier.vue'
Expand Down
4 changes: 1 addition & 3 deletions components/DocList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
import Doc from '/components/Doc.vue'
import Tag from '/components/Tag.vue'
import { open } from '/src/router.js'
import {
MERGE_DOCUMENTS,
} from '/src/store/actions.js'
Expand Down Expand Up @@ -155,7 +153,7 @@ export default {
this.selectedDocs.push(this.filteredDocs.find(doc => doc.id === id))
}
} else {
open({ path: `/docs/${id}` })
this.$router.push({ path: `/docs/${id}` })
}
},
},
Expand Down
3 changes: 1 addition & 2 deletions composables/useAuth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useOnline } from '@vueuse/core'
import { type AuthProvider, type UserInfo as ProviderInfo, getAuth, getRedirectResult, GithubAuthProvider, GoogleAuthProvider, isSignInWithEmailLink, sendSignInLinkToEmail, signInWithEmailLink, signInWithRedirect, TwitterAuthProvider } from 'firebase/auth'
import { type Ref, computed, inject, reactive, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { type Ref } from 'vue'
import { useStore } from 'vuex'
import { type Tier } from '/composables/useTiers'

Expand Down
2 changes: 0 additions & 2 deletions composables/useTiers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import { type AuthMagicLinkForm, type AuthSocialForm, useAuthForm, useSubscription, useUser } from '/composables/useAuth'
import { addCheckout } from '/src/firebase/firestore'

Expand Down
33 changes: 0 additions & 33 deletions index.html

This file was deleted.

9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"scripts": {
"build": "nuxt prepare && nuxt typecheck && nuxt generate",
"dev": "nuxt dev --port 8888",
"legacy:build": "nuxt prepare && vue-tsc --noEmit && vite -c vite.base-config.ts build",
"legacy:dev": "vite -c vite.base-config.ts --port 8888",
"legacy:preview": "yarn build && vite -c vite.base-config.ts preview --port 8889",
"preview": "nuxt preview"
},
"dependencies": {
Expand All @@ -32,8 +29,6 @@
"overlayscrollbars": "^2.0.1",
"pinia": "^2.0.28",
"remarkable": "^2.0.1",
"vue": "^3.2.36",
"vue-router": "^4.0.13",
"vue3-mq": "^3.0.3",
"vuex": "^4.0.2"
},
Expand All @@ -46,7 +41,6 @@
"@types/mime-types": "^2.1.1",
"@types/node": "^18.0.6",
"@types/remarkable": "^2.0.3",
"@vitejs/plugin-vue": "^3.2.0",
"@vueuse/core": "^9.9.0",
"@vueuse/head": "^1.0.22",
"@vueuse/nuxt": "^9.9.0",
Expand All @@ -61,11 +55,8 @@
"serve": "^14.1.2",
"tailwindcss": "^3.2.4",
"typescript": "^4.7.4",
"unplugin-auto-import": "^0.12.0",
"unplugin-vue-components": "^0.22.11",
"vercel": "^28.10.1",
"vite": "^4.0.2",
"vite-plugin-html": "^3.2.0",
"vite-plugin-pwa": "^0.13.3",
"vite-svg-loader": "^3.6.0",
"vue-tsc": "^0.38.9",
Expand Down
2 changes: 0 additions & 2 deletions pages/_routes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import { useRouter } from 'vue-router'
import DevRoutes from '/components/DevRoutes.vue'
const routes = computed(() => [...useRouter().options.routes])
Expand Down
5 changes: 2 additions & 3 deletions pages/docs/[docId]/meta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ import TagLink from '/components/TagLink.vue'
import CodeSandbox from '/src/common/code_sandbox.js'
import { parseCodeblocks, parseReferences } from '/src/common/parsers'
import { open } from '/src/router.js'
import {
DISCARD_DOCUMENT,
Expand Down Expand Up @@ -172,12 +171,12 @@ export default {
async discardDocument() {
this.$store.dispatch(DISCARD_DOCUMENT, { id: this.doc.id })
open({ path: '/docs/new' })
this.$router.push({ path: '/docs/new' })
},
async duplicateDocument() {
const newDocId = await this.$store.dispatch(DUPLICATE_DOCUMENT, { id: this.doc.id })
open({ path: `/docs/${newDocId}` })
this.$router.push({ path: `/docs/${newDocId}` })
},
async openSandbox() {
const files = this.codeblocks.reduce((agg, codeblock, index) => {
Expand Down
5 changes: 2 additions & 3 deletions pages/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ import ModK from '/components/ModK.vue'
import ModKKey from '/components/ModKKey.vue'
import TagLink from '/components/TagLink.vue'
import TheLogo from '/components/TheLogo.vue'
import { open } from '/src/router'
import { useFiles } from '/src/stores/useFiles'
import { AsyncIterable } from '/src/utils/iterables'
import { globalConfig } from '/src/global'
Expand Down Expand Up @@ -219,14 +218,14 @@ export default {
})
if (id) {
return open({ path: `/file-editor/${id}` })
return this.$router.push({ path: `/file-editor/${id}` })
}
} catch {}
await handle.createWritable()
useFiles().add({ id, handle })
return open({ path: `/file-editor/${id}` })
return this.$router.push({ path: `/file-editor/${id}` })
},
setContext(context) {
this.$store.dispatch(SET_CONTEXT_TAGS, { context })
Expand Down
43 changes: 0 additions & 43 deletions src/main.ts

This file was deleted.

Loading

0 comments on commit d7f90ea

Please sign in to comment.