From 06f8b9da85d5f9effd6e8deaee32171a010149ed Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 8 Apr 2024 23:14:09 +0800 Subject: [PATCH] :lipstick: Better layout design --- README.md | 41 +---- package.json | 1 + .../navigation/NavigationDrawer.vue | 152 ++++++++++++++++++ src/components/users/NotificationList.vue | 4 +- src/components/users/UserMenu.vue | 4 +- src/layouts/master.vue | 129 +-------------- src/stores/ui.ts | 7 +- src/views/chat/page.vue | 17 +- 8 files changed, 189 insertions(+), 166 deletions(-) create mode 100644 src/components/navigation/NavigationDrawer.vue diff --git a/README.md b/README.md index b5e3dc0..1de4dd0 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,6 @@ -# @hydrogen/solaragent +# SolarAgent -This template should help get you started developing with Vue 3 in Vite. +Hola! This is Project Hydrogen's universal frontend. +Integrated support for Identity, Interactive and Messaging! -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). - -## 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 [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -bun install -``` - -### Compile and Hot-Reload for Development - -```sh -bun dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -bun build -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -bun lint -``` +Also provide a mobile version that powered by capacitor! \ No newline at end of file diff --git a/package.json b/package.json index 35aea72..78459a4 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@capacitor/preferences": "^5.0.7", "@fontsource/roboto": "^5.0.12", "@mdi/font": "^7.4.47", + "@vueuse/core": "^10.9.0", "dayjs": "^1.11.10", "dompurify": "^3.0.11", "marked": "^12.0.1", diff --git a/src/components/navigation/NavigationDrawer.vue b/src/components/navigation/NavigationDrawer.vue new file mode 100644 index 0000000..74a18d5 --- /dev/null +++ b/src/components/navigation/NavigationDrawer.vue @@ -0,0 +1,152 @@ + + + \ No newline at end of file diff --git a/src/components/users/NotificationList.vue b/src/components/users/NotificationList.vue index 8ee6333..23b0d18 100644 --- a/src/components/users/NotificationList.vue +++ b/src/components/users/NotificationList.vue @@ -1,7 +1,7 @@