From 4d469ff1d5cf0d70335a7201ad9ccda566e2ef53 Mon Sep 17 00:00:00 2001 From: iamBadgers Date: Sun, 3 Mar 2024 17:08:58 -0800 Subject: [PATCH] move frontend to its own folder --- .browserslistrc => frontend/.browserslistrc | 0 .editorconfig => frontend/.editorconfig | 0 .../.eslintrc-auto-import.json | 0 .eslintrc.js => frontend/.eslintrc.js | 0 .prettierrc.json => frontend/.prettierrc.json | 0 README.md => frontend/README.md | 0 auto-imports.d.ts => frontend/auto-imports.d.ts | 0 components.d.ts => frontend/components.d.ts | 0 index.html => frontend/index.html | 0 package-lock.json => frontend/package-lock.json | 0 package.json => frontend/package.json | 0 {public => frontend/public}/favicon.ico | Bin {src => frontend/src}/App.vue | 0 {src => frontend/src}/assets/logo.png | Bin {src => frontend/src}/assets/logo.svg | 0 {src => frontend/src}/main.ts | 0 {src => frontend/src}/plugins/index.ts | 8 +------- {src => frontend/src}/plugins/sqliteplugin.ts | 0 {src => frontend/src}/plugins/vuetify.ts | 0 {src => frontend/src}/router/index.ts | 0 {src => frontend/src}/store/README.md | 0 {src => frontend/src}/store/app.ts | 0 {src => frontend/src}/store/characterstore.ts | 0 {src => frontend/src}/store/gamestore.ts | 0 {src => frontend/src}/store/index.ts | 0 {src => frontend/src}/styles/settings.scss | 0 {src => frontend/src}/vite-env.d.ts | 0 {src => frontend/src}/vues/GameList.vue | 0 tsconfig.json => frontend/tsconfig.json | 0 tsconfig.node.json => frontend/tsconfig.node.json | 0 typed-router.d.ts => frontend/typed-router.d.ts | 0 vite.config.mts => frontend/vite.config.mts | 0 32 files changed, 1 insertion(+), 7 deletions(-) rename .browserslistrc => frontend/.browserslistrc (100%) rename .editorconfig => frontend/.editorconfig (100%) rename .eslintrc-auto-import.json => frontend/.eslintrc-auto-import.json (100%) rename .eslintrc.js => frontend/.eslintrc.js (100%) rename .prettierrc.json => frontend/.prettierrc.json (100%) rename README.md => frontend/README.md (100%) rename auto-imports.d.ts => frontend/auto-imports.d.ts (100%) rename components.d.ts => frontend/components.d.ts (100%) rename index.html => frontend/index.html (100%) rename package-lock.json => frontend/package-lock.json (100%) rename package.json => frontend/package.json (100%) rename {public => frontend/public}/favicon.ico (100%) rename {src => frontend/src}/App.vue (100%) rename {src => frontend/src}/assets/logo.png (100%) rename {src => frontend/src}/assets/logo.svg (100%) rename {src => frontend/src}/main.ts (100%) rename {src => frontend/src}/plugins/index.ts (62%) rename {src => frontend/src}/plugins/sqliteplugin.ts (100%) rename {src => frontend/src}/plugins/vuetify.ts (100%) rename {src => frontend/src}/router/index.ts (100%) rename {src => frontend/src}/store/README.md (100%) rename {src => frontend/src}/store/app.ts (100%) rename {src => frontend/src}/store/characterstore.ts (100%) rename {src => frontend/src}/store/gamestore.ts (100%) rename {src => frontend/src}/store/index.ts (100%) rename {src => frontend/src}/styles/settings.scss (100%) rename {src => frontend/src}/vite-env.d.ts (100%) rename {src => frontend/src}/vues/GameList.vue (100%) rename tsconfig.json => frontend/tsconfig.json (100%) rename tsconfig.node.json => frontend/tsconfig.node.json (100%) rename typed-router.d.ts => frontend/typed-router.d.ts (100%) rename vite.config.mts => frontend/vite.config.mts (100%) diff --git a/.browserslistrc b/frontend/.browserslistrc similarity index 100% rename from .browserslistrc rename to frontend/.browserslistrc diff --git a/.editorconfig b/frontend/.editorconfig similarity index 100% rename from .editorconfig rename to frontend/.editorconfig diff --git a/.eslintrc-auto-import.json b/frontend/.eslintrc-auto-import.json similarity index 100% rename from .eslintrc-auto-import.json rename to frontend/.eslintrc-auto-import.json diff --git a/.eslintrc.js b/frontend/.eslintrc.js similarity index 100% rename from .eslintrc.js rename to frontend/.eslintrc.js diff --git a/.prettierrc.json b/frontend/.prettierrc.json similarity index 100% rename from .prettierrc.json rename to frontend/.prettierrc.json diff --git a/README.md b/frontend/README.md similarity index 100% rename from README.md rename to frontend/README.md diff --git a/auto-imports.d.ts b/frontend/auto-imports.d.ts similarity index 100% rename from auto-imports.d.ts rename to frontend/auto-imports.d.ts diff --git a/components.d.ts b/frontend/components.d.ts similarity index 100% rename from components.d.ts rename to frontend/components.d.ts diff --git a/index.html b/frontend/index.html similarity index 100% rename from index.html rename to frontend/index.html diff --git a/package-lock.json b/frontend/package-lock.json similarity index 100% rename from package-lock.json rename to frontend/package-lock.json diff --git a/package.json b/frontend/package.json similarity index 100% rename from package.json rename to frontend/package.json diff --git a/public/favicon.ico b/frontend/public/favicon.ico similarity index 100% rename from public/favicon.ico rename to frontend/public/favicon.ico diff --git a/src/App.vue b/frontend/src/App.vue similarity index 100% rename from src/App.vue rename to frontend/src/App.vue diff --git a/src/assets/logo.png b/frontend/src/assets/logo.png similarity index 100% rename from src/assets/logo.png rename to frontend/src/assets/logo.png diff --git a/src/assets/logo.svg b/frontend/src/assets/logo.svg similarity index 100% rename from src/assets/logo.svg rename to frontend/src/assets/logo.svg diff --git a/src/main.ts b/frontend/src/main.ts similarity index 100% rename from src/main.ts rename to frontend/src/main.ts diff --git a/src/plugins/index.ts b/frontend/src/plugins/index.ts similarity index 62% rename from src/plugins/index.ts rename to frontend/src/plugins/index.ts index 0f05547..e48c717 100644 --- a/src/plugins/index.ts +++ b/frontend/src/plugins/index.ts @@ -8,9 +8,6 @@ import vuetify from './vuetify' import pinia from '../store' import router from '../router' -import sqliteplugin from './sqliteplugin' - -import sqlite3 from 'sqlite3' // Types import type { App } from 'vue' @@ -18,8 +15,5 @@ import type { App } from 'vue' const defaultDatabaseFileName = './testdb.db' export async function registerPlugins(app: App) { - - const db = new sqlite3.Database(defaultDatabaseFileName) - - app.use(vuetify).use(router).use(pinia).use(sqliteplugin) + app.use(vuetify).use(router).use(pinia) } diff --git a/src/plugins/sqliteplugin.ts b/frontend/src/plugins/sqliteplugin.ts similarity index 100% rename from src/plugins/sqliteplugin.ts rename to frontend/src/plugins/sqliteplugin.ts diff --git a/src/plugins/vuetify.ts b/frontend/src/plugins/vuetify.ts similarity index 100% rename from src/plugins/vuetify.ts rename to frontend/src/plugins/vuetify.ts diff --git a/src/router/index.ts b/frontend/src/router/index.ts similarity index 100% rename from src/router/index.ts rename to frontend/src/router/index.ts diff --git a/src/store/README.md b/frontend/src/store/README.md similarity index 100% rename from src/store/README.md rename to frontend/src/store/README.md diff --git a/src/store/app.ts b/frontend/src/store/app.ts similarity index 100% rename from src/store/app.ts rename to frontend/src/store/app.ts diff --git a/src/store/characterstore.ts b/frontend/src/store/characterstore.ts similarity index 100% rename from src/store/characterstore.ts rename to frontend/src/store/characterstore.ts diff --git a/src/store/gamestore.ts b/frontend/src/store/gamestore.ts similarity index 100% rename from src/store/gamestore.ts rename to frontend/src/store/gamestore.ts diff --git a/src/store/index.ts b/frontend/src/store/index.ts similarity index 100% rename from src/store/index.ts rename to frontend/src/store/index.ts diff --git a/src/styles/settings.scss b/frontend/src/styles/settings.scss similarity index 100% rename from src/styles/settings.scss rename to frontend/src/styles/settings.scss diff --git a/src/vite-env.d.ts b/frontend/src/vite-env.d.ts similarity index 100% rename from src/vite-env.d.ts rename to frontend/src/vite-env.d.ts diff --git a/src/vues/GameList.vue b/frontend/src/vues/GameList.vue similarity index 100% rename from src/vues/GameList.vue rename to frontend/src/vues/GameList.vue diff --git a/tsconfig.json b/frontend/tsconfig.json similarity index 100% rename from tsconfig.json rename to frontend/tsconfig.json diff --git a/tsconfig.node.json b/frontend/tsconfig.node.json similarity index 100% rename from tsconfig.node.json rename to frontend/tsconfig.node.json diff --git a/typed-router.d.ts b/frontend/typed-router.d.ts similarity index 100% rename from typed-router.d.ts rename to frontend/typed-router.d.ts diff --git a/vite.config.mts b/frontend/vite.config.mts similarity index 100% rename from vite.config.mts rename to frontend/vite.config.mts