diff --git a/README.MD b/README.MD index ae5a2d7..cd79315 100644 --- a/README.MD +++ b/README.MD @@ -9,6 +9,10 @@ - DATABASE_URL `not needed when docker` - PARISMUSEES_SECRET +### For website + +- API_ADDRESS + ## Usage ### With Docker diff --git a/web/README.md b/web/README.md index c8c45d5..2ae3d7c 100644 --- a/web/README.md +++ b/web/README.md @@ -1,25 +1,10 @@ -# vue-project +# Quizz Web -This template should help get you started developing with Vue 3 in Vite. +Interface web pour le quizz. -## Recommended IDE Setup +## Env variables -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. - -If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: - -1. Disable the built-in TypeScript Extension - 1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette - 2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` -2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). +- API_ADDRESS ## Project Setup diff --git a/web/package-lock.json b/web/package-lock.json index b1f20be..f966bbd 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8,7 +8,6 @@ "name": "vue-project", "version": "0.0.0", "dependencies": { - "pinia": "^2.0.32", "vue": "^3.2.47", "vue-router": "^4.1.6" }, @@ -1522,56 +1521,6 @@ "node": ">=4" } }, - "node_modules/pinia": { - "version": "2.0.32", - "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.0.32.tgz", - "integrity": "sha512-8Tw4OrpCSJ028UUyp0gYPP/wyjigLoEceuO/x1G+FlHVf73337e5vLm4uDmrRIoBG1hvaed/eSHnrCFjOc4nkA==", - "dependencies": { - "@vue/devtools-api": "^6.5.0", - "vue-demi": "*" - }, - "funding": { - "url": "https://github.com/sponsors/posva" - }, - "peerDependencies": { - "@vue/composition-api": "^1.4.0", - "typescript": ">=4.4.4", - "vue": "^2.6.14 || ^3.2.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - }, - "typescript": { - "optional": true - } - } - }, - "node_modules/pinia/node_modules/vue-demi": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz", - "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/postcss": { "version": "8.4.21", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", @@ -1876,7 +1825,7 @@ "version": "4.8.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "devOptional": true, + "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -2060,4 +2009,4 @@ } } } -} \ No newline at end of file +} diff --git a/web/src/main.ts b/web/src/main.ts index c28d1b7..e8c0f48 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -1,5 +1,4 @@ import { createApp } from "vue" -import { createPinia } from "pinia" import App from "./App.vue" import router from "./router" @@ -8,7 +7,6 @@ import "./assets/base.css" const app = createApp(App) -app.use(createPinia()) app.use(router) app.mount("#app")