diff --git a/client/README.md b/client/README.md index 3a75be98..629a5f03 100644 --- a/client/README.md +++ b/client/README.md @@ -1,59 +1,14 @@ -# client +# VBV Client -This template should help get you started developing with Vue 3 in Vite. +VBV Frontend -## Recommended IDE Setup +## Installation -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin). +`npm run install` -## Type Support for `.vue` Imports in TS +## Run -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=johnsoncodehk.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. +`npm run dev` -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/). - -## Project Setup - -```sh -npm install -``` - -### Compile and Hot-Reload for Development - -```sh -npm run dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -npm run build -``` - -### Run Unit Tests with [Vitest](https://vitest.dev/) - -```sh -npm run test:unit -``` - -### Run End-to-End Tests with [Cypress](https://www.cypress.io/) - -```sh -npm run build -npm run test:e2e # or `npm run test:e2e:ci` for headless testing -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -npm run lint -``` +## Vue layouts +[How layouts are implemented](https://itnext.io/vue-tricks-smart-layouts-for-vuejs-5c61a472b69b) diff --git a/client/src/App.vue b/client/src/App.vue index 009baeb6..7183c44f 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,118 +1,11 @@ - - - + diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue new file mode 100644 index 00000000..760c41c4 --- /dev/null +++ b/client/src/components/MainNavigationBar.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/client/src/components/VBVNavigationBar.vue b/client/src/components/VBVNavigationBar.vue new file mode 100644 index 00000000..f23cdf16 --- /dev/null +++ b/client/src/components/VBVNavigationBar.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/client/src/layouts/AppLayout.vue b/client/src/layouts/AppLayout.vue new file mode 100644 index 00000000..8bec807f --- /dev/null +++ b/client/src/layouts/AppLayout.vue @@ -0,0 +1,35 @@ + + + diff --git a/client/src/layouts/AppLayoutDefault.vue b/client/src/layouts/AppLayoutDefault.vue new file mode 100644 index 00000000..1b32a007 --- /dev/null +++ b/client/src/layouts/AppLayoutDefault.vue @@ -0,0 +1,12 @@ + + + diff --git a/client/src/layouts/NoNavbarDemoLayout.vue b/client/src/layouts/NoNavbarDemoLayout.vue new file mode 100644 index 00000000..56a8b72d --- /dev/null +++ b/client/src/layouts/NoNavbarDemoLayout.vue @@ -0,0 +1,5 @@ + diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 5b03c122..27be983b 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -16,7 +16,10 @@ const router = createRouter({ // route level code-splitting // this generates a separate chunk (About.[hash].js) for this route // which is lazy-loaded when the route is visited. - component: () => import('../views/AboutView.vue') + component: () => import('../views/AboutView.vue'), + meta: { + layout: 'NoNavbarDemoLayout' + } }, { path: "/login", diff --git a/client/tailwind.config.js b/client/tailwind.config.js index fc750002..fa4a731a 100644 --- a/client/tailwind.config.js +++ b/client/tailwind.config.js @@ -6,6 +6,7 @@ module.exports = { ], theme: { colors: { + 'white': '#FFFFFF', 'blue-dark': '#00224D' }, extend: {},