From ef61e2ecdda86196004e81ad00bf3d4a10aa5824 Mon Sep 17 00:00:00 2001 From: Yue JIN Date: Wed, 28 Aug 2024 15:31:33 +0800 Subject: [PATCH] feat: nuxt icon --- README.md | 14 +- assets/styles/global.css | 3 +- augmentation.d.ts | 1 + components/App/AppBar.vue | 2 +- components/App/AppNotification.vue | 96 ++++++------- nuxt.config.ts | 43 ++---- package.json | 4 +- plugins/vuetify.ts | 37 ++--- pnpm-lock.yaml | 127 +++++++++++++++--- .../__snapshots__/component.nuxt.test.ts.snap | 6 +- vuetify.config.ts | 3 - 11 files changed, 197 insertions(+), 139 deletions(-) diff --git a/README.md b/README.md index dd8e729..4304330 100644 --- a/README.md +++ b/README.md @@ -71,15 +71,12 @@ ### Nuxt Modules - [Vuetify Nuxt Module](https://github.com/userquin/vuetify-nuxt-module) - Zero-config Nuxt Module for Vuetify -- [VueUse](https://github.com/vueuse/vueuse) - collection of useful composition APIs -- [Pinia](https://github.com/vuejs/pinia) - intuitive, type-safe, light and flexible Store for Vue -- [DevTools](https://github.com/nuxt/devtools) - unleash Nuxt Developer Experience +- [VueUse](https://github.com/vueuse/vueuse) - Collection of useful composition APIs +- [Pinia](https://github.com/vuejs/pinia) - Intuitive, type-safe, light and flexible Store for Vue +- [Nuxt Icon](https://github.com/nuxt/icon) - Icon module for Nuxt with 200,000+ ready to use icons from Iconify +- [Nuxt ECharts](https://github.com/kingyue737/nuxt-echarts) - Nuxt module for Apache ECharts™ - [Nuxt Auth Utils](https://github.com/Atinux/nuxt-auth-utils) - Minimalist Authentication module for Nuxt -### Plugins - -- [`rollup-plugin-regexp`](https://github.com/kingyue737/rollup-plugin-regexp) - auto replace [`@mdi/font`](https://github.com/Templarian/MaterialDesign-Webfont) with [`@mdi/js`](https://github.com/Templarian/MaterialDesign-JS) in ``, reduce bundle size - ### Coding Style - [Prettier](https://prettier.io/), single quotes, no semi @@ -91,11 +88,10 @@ - [pnpm](https://pnpm.js.org/) - Fast, disk space efficient package manager - [Netlify](https://www.netlify.com/) - zero-config deployment - [VS Code Extensions](./.vscode/extensions.json) - - [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - TypeScript support inside Vue SFCs + - [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - TypeScript support inside Vue SFCs - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - Find and fix problems in your code - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - Code formatter - [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) - - [Material Design Icons Intellisense](https://marketplace.visualstudio.com/items?itemName=lukas-tr.materialdesignicons-intellisense) ## Try it now! diff --git a/assets/styles/global.css b/assets/styles/global.css index 1bd7a41..552a433 100644 --- a/assets/styles/global.css +++ b/assets/styles/global.css @@ -58,8 +58,7 @@ html { } } -.v-icon svg { - fill: currentColor; +.v-icon .iconify { width: 100%; height: 100%; } diff --git a/augmentation.d.ts b/augmentation.d.ts index 488e780..1df02e0 100644 --- a/augmentation.d.ts +++ b/augmentation.d.ts @@ -24,6 +24,7 @@ declare module '#app' { declare module '#auth-utils' { interface User { login: string + avatar_url: string } } diff --git a/components/App/AppBar.vue b/components/App/AppBar.vue index ae6fb27..19722a7 100644 --- a/components/App/AppBar.vue +++ b/components/App/AppBar.vue @@ -60,7 +60,7 @@ const { loggedIn, clear, user } = useUserSession() - + diff --git a/components/App/AppNotification.vue b/components/App/AppNotification.vue index 91cea3e..47b1113 100644 --- a/components/App/AppNotification.vue +++ b/components/App/AppNotification.vue @@ -27,54 +27,58 @@ function toggleAll() { :rounded="0" @click="toggleAll" /> - - - - - - - - + + -
- + + -
-
-
-
+ + + +
+ +
+
+ + +