From 649689e69e4a438bfb24d8bf4819a7d3eac4f993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=81=E4=BD=A0=E5=8D=81=E4=B8=83=E6=9D=9F=E8=8A=B1?= <108746194+030liuxinghao@users.noreply.github.com> Date: Thu, 12 Oct 2023 20:02:23 +0800 Subject: [PATCH] :triangular_flag_on_post: Add example --- README.md | 2 +- auto-imports.d.ts | 6 +++ components.d.ts | 5 ++ package.json | 1 + pnpm-lock.yaml | 9 ++++ src/components/TheInput.vue | 19 +++++++ src/components/TheStudy.vue | 53 +++++++++++++++++++ src/pages/[...all].vue | 13 +++-- src/pages/hi/[name].vue | 2 +- src/pages/index.vue | 101 +++++++++++++++--------------------- 10 files changed, 144 insertions(+), 67 deletions(-) create mode 100644 src/components/TheInput.vue create mode 100644 src/components/TheStudy.vue diff --git a/README.md b/README.md index d3b1a3b..a007264 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ 克隆项目到本地: ``` bash -npx degit ileostar/vue-star 你的项目名称 +npx degit ileostar/vitesse-star 你的项目名称 # If there is no npx, npm i -g npx first ``` 进入项目目录: diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 0a07468..81b5ddc 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -41,6 +41,7 @@ declare global { const h: typeof import('vue')['h'] const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] const inject: typeof import('vue')['inject'] + const injectLocal: typeof import('@vueuse/core')['injectLocal'] const isDark: typeof import('./src/composables/dark')['isDark'] const isDefined: typeof import('@vueuse/core')['isDefined'] const isProxy: typeof import('vue')['isProxy'] @@ -76,6 +77,7 @@ declare global { const onUpdated: typeof import('vue')['onUpdated'] const pausableWatch: typeof import('@vueuse/core')['pausableWatch'] const provide: typeof import('vue')['provide'] + const provideLocal: typeof import('@vueuse/core')['provideLocal'] const reactify: typeof import('@vueuse/core')['reactify'] const reactifyObject: typeof import('@vueuse/core')['reactifyObject'] const reactive: typeof import('vue')['reactive'] @@ -344,6 +346,7 @@ declare module 'vue' { readonly h: UnwrapRef readonly ignorableWatch: UnwrapRef readonly inject: UnwrapRef + readonly injectLocal: UnwrapRef readonly isDark: UnwrapRef readonly isDefined: UnwrapRef readonly isProxy: UnwrapRef @@ -379,6 +382,7 @@ declare module 'vue' { readonly onUpdated: UnwrapRef readonly pausableWatch: UnwrapRef readonly provide: UnwrapRef + readonly provideLocal: UnwrapRef readonly reactify: UnwrapRef readonly reactifyObject: UnwrapRef readonly reactive: UnwrapRef @@ -641,6 +645,7 @@ declare module '@vue/runtime-core' { readonly h: UnwrapRef readonly ignorableWatch: UnwrapRef readonly inject: UnwrapRef + readonly injectLocal: UnwrapRef readonly isDark: UnwrapRef readonly isDefined: UnwrapRef readonly isProxy: UnwrapRef @@ -676,6 +681,7 @@ declare module '@vue/runtime-core' { readonly onUpdated: UnwrapRef readonly pausableWatch: UnwrapRef readonly provide: UnwrapRef + readonly provideLocal: UnwrapRef readonly reactify: UnwrapRef readonly reactifyObject: UnwrapRef readonly reactive: UnwrapRef diff --git a/components.d.ts b/components.d.ts index 57f5425..ca7c29b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,8 +7,13 @@ export {} declare module 'vue' { export interface GlobalComponents { + OButton: typeof import('onu-ui')['OButton'] + OText: typeof import('onu-ui')['OText'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] TheFooter: typeof import('./src/components/TheFooter.vue')['default'] + TheHeader: typeof import('./src/components/TheHeader.vue')['default'] + TheInput: typeof import('./src/components/TheInput.vue')['default'] + TheStudy: typeof import('./src/components/TheStudy.vue')['default'] } } diff --git a/package.json b/package.json index 3e006a7..b8880ef 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@antfu/eslint-config": "1.0.0-beta.21", "@iconify-json/carbon": "^1.1.21", "@iconify-json/mdi": "^1.1.54", + "@iconify-json/streamline-emojis": "^1.1.4", "@ileostar/eslint-config": "^0.3.0", "@types/node": "^20.8.4", "@typescript-eslint/eslint-plugin": "^6.7.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dd463c5..b34e4f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,6 +31,9 @@ devDependencies: '@iconify-json/mdi': specifier: ^1.1.54 version: 1.1.54 + '@iconify-json/streamline-emojis': + specifier: ^1.1.4 + version: 1.1.4 '@ileostar/eslint-config': specifier: ^0.3.0 version: 0.3.0(eslint@8.51.0)(typescript@5.2.2) @@ -925,6 +928,12 @@ packages: '@iconify/types': 2.0.0 dev: true + /@iconify-json/streamline-emojis@1.1.4: + resolution: {integrity: sha512-rDOezTtMlpBYey63vyyMnz918K71DDxBqth1sGVikgKv/IgJ3HWdXWggy3nAA03YYyADUX5VBj1RAbVA6jUOwQ==} + dependencies: + '@iconify/types': 2.0.0 + dev: true + /@iconify/types@2.0.0: resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} dev: true diff --git a/src/components/TheInput.vue b/src/components/TheInput.vue new file mode 100644 index 0000000..a32331d --- /dev/null +++ b/src/components/TheInput.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/components/TheStudy.vue b/src/components/TheStudy.vue new file mode 100644 index 0000000..e3d8285 --- /dev/null +++ b/src/components/TheStudy.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/pages/[...all].vue b/src/pages/[...all].vue index 241e7e2..f0dc8e7 100644 --- a/src/pages/[...all].vue +++ b/src/pages/[...all].vue @@ -1,5 +1,8 @@ - + diff --git a/src/pages/hi/[name].vue b/src/pages/hi/[name].vue index c1c2821..c15a37d 100644 --- a/src/pages/hi/[name].vue +++ b/src/pages/hi/[name].vue @@ -5,7 +5,7 @@ const router = useRouter()