From ae3a460d59c3d3fcd31c371122907ba12bf7acb8 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Wed, 28 May 2025 00:41:00 +0800 Subject: [PATCH 1/3] chore: update version to 2.10.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3caf3d8..c569ccb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "unibest", "type": "commonjs", - "version": "2.9.3", + "version": "2.10.0", "description": "unibest - 最好的 uniapp 开发模板", "author": { "name": "feige996", From 200bdd366d44c3eecfc2c336747be4f71d2b0932 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Wed, 28 May 2025 00:55:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=E6=B8=85=E7=90=86=E6=9C=AAtypes?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=8B=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + src/types/async-component.d.ts | 8 -- src/types/async-import.d.ts | 13 --- src/types/auto-import.d.ts | 187 --------------------------------- src/types/components.d.ts | 13 --- src/types/global.d.ts | 23 ---- src/types/shims-uni.d.ts | 8 -- src/types/uni-pages.d.ts | 28 ----- 8 files changed, 2 insertions(+), 280 deletions(-) delete mode 100644 src/types/async-component.d.ts delete mode 100644 src/types/async-import.d.ts delete mode 100644 src/types/auto-import.d.ts delete mode 100644 src/types/components.d.ts delete mode 100644 src/types/global.d.ts delete mode 100644 src/types/shims-uni.d.ts delete mode 100644 src/types/uni-pages.d.ts diff --git a/.gitignore b/.gitignore index 7feb32c..5a73675 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,8 @@ dist docs/.vitepress/dist docs/.vitepress/cache +types + # lock 文件还是不要了,我主要的版本写死就好了 # pnpm-lock.yaml # package-lock.json diff --git a/src/types/async-component.d.ts b/src/types/async-component.d.ts deleted file mode 100644 index f200205..0000000 --- a/src/types/async-component.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by @uni-ku/bundle-optimizer -declare module '*?async' { - const component: any - export = component -} diff --git a/src/types/async-import.d.ts b/src/types/async-import.d.ts deleted file mode 100644 index 94101bc..0000000 --- a/src/types/async-import.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by @uni-ku/bundle-optimizer -export {} - -interface ModuleMap { - [path: string]: any -} - -declare global { - function AsyncImport(arg: T): Promise -} diff --git a/src/types/auto-import.d.ts b/src/types/auto-import.d.ts deleted file mode 100644 index 117a03d..0000000 --- a/src/types/auto-import.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// noinspection JSUnusedGlobalSymbols -// Generated by unplugin-auto-import -export {} -declare global { - const EffectScope: typeof import('vue')['EffectScope'] - const computed: typeof import('vue')['computed'] - const createApp: typeof import('vue')['createApp'] - const customRef: typeof import('vue')['customRef'] - const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] - const defineComponent: typeof import('vue')['defineComponent'] - const effectScope: typeof import('vue')['effectScope'] - const getCurrentInstance: typeof import('vue')['getCurrentInstance'] - const getCurrentScope: typeof import('vue')['getCurrentScope'] - const h: typeof import('vue')['h'] - const inject: typeof import('vue')['inject'] - const isProxy: typeof import('vue')['isProxy'] - const isReactive: typeof import('vue')['isReactive'] - const isReadonly: typeof import('vue')['isReadonly'] - const isRef: typeof import('vue')['isRef'] - const markRaw: typeof import('vue')['markRaw'] - const nextTick: typeof import('vue')['nextTick'] - const onActivated: typeof import('vue')['onActivated'] - const onAddToFavorites: typeof import('@dcloudio/uni-app')['onAddToFavorites'] - const onBackPress: typeof import('@dcloudio/uni-app')['onBackPress'] - const onBeforeMount: typeof import('vue')['onBeforeMount'] - const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] - const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] - const onDeactivated: typeof import('vue')['onDeactivated'] - const onError: typeof import('@dcloudio/uni-app')['onError'] - const onErrorCaptured: typeof import('vue')['onErrorCaptured'] - const onHide: typeof import('@dcloudio/uni-app')['onHide'] - const onLaunch: typeof import('@dcloudio/uni-app')['onLaunch'] - const onLoad: typeof import('@dcloudio/uni-app')['onLoad'] - const onMounted: typeof import('vue')['onMounted'] - const onNavigationBarButtonTap: typeof import('@dcloudio/uni-app')['onNavigationBarButtonTap'] - const onNavigationBarSearchInputChanged: typeof import('@dcloudio/uni-app')['onNavigationBarSearchInputChanged'] - const onNavigationBarSearchInputClicked: typeof import('@dcloudio/uni-app')['onNavigationBarSearchInputClicked'] - const onNavigationBarSearchInputConfirmed: typeof import('@dcloudio/uni-app')['onNavigationBarSearchInputConfirmed'] - const onNavigationBarSearchInputFocusChanged: typeof import('@dcloudio/uni-app')['onNavigationBarSearchInputFocusChanged'] - const onPageNotFound: typeof import('@dcloudio/uni-app')['onPageNotFound'] - const onPageScroll: typeof import('@dcloudio/uni-app')['onPageScroll'] - const onPullDownRefresh: typeof import('@dcloudio/uni-app')['onPullDownRefresh'] - const onReachBottom: typeof import('@dcloudio/uni-app')['onReachBottom'] - const onReady: typeof import('@dcloudio/uni-app')['onReady'] - const onRenderTracked: typeof import('vue')['onRenderTracked'] - const onRenderTriggered: typeof import('vue')['onRenderTriggered'] - const onResize: typeof import('@dcloudio/uni-app')['onResize'] - const onScopeDispose: typeof import('vue')['onScopeDispose'] - const onServerPrefetch: typeof import('vue')['onServerPrefetch'] - const onShareAppMessage: typeof import('@dcloudio/uni-app')['onShareAppMessage'] - const onShareTimeline: typeof import('@dcloudio/uni-app')['onShareTimeline'] - const onShow: typeof import('@dcloudio/uni-app')['onShow'] - const onTabItemTap: typeof import('@dcloudio/uni-app')['onTabItemTap'] - const onThemeChange: typeof import('@dcloudio/uni-app')['onThemeChange'] - const onUnhandledRejection: typeof import('@dcloudio/uni-app')['onUnhandledRejection'] - const onUnload: typeof import('@dcloudio/uni-app')['onUnload'] - const onUnmounted: typeof import('vue')['onUnmounted'] - const onUpdated: typeof import('vue')['onUpdated'] - const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] - const provide: typeof import('vue')['provide'] - const reactive: typeof import('vue')['reactive'] - const readonly: typeof import('vue')['readonly'] - const ref: typeof import('vue')['ref'] - const resolveComponent: typeof import('vue')['resolveComponent'] - const shallowReactive: typeof import('vue')['shallowReactive'] - const shallowReadonly: typeof import('vue')['shallowReadonly'] - const shallowRef: typeof import('vue')['shallowRef'] - const toRaw: typeof import('vue')['toRaw'] - const toRef: typeof import('vue')['toRef'] - const toRefs: typeof import('vue')['toRefs'] - const toValue: typeof import('vue')['toValue'] - const triggerRef: typeof import('vue')['triggerRef'] - const unref: typeof import('vue')['unref'] - const useAttrs: typeof import('vue')['useAttrs'] - const useCssModule: typeof import('vue')['useCssModule'] - const useCssVars: typeof import('vue')['useCssVars'] - const useId: typeof import('vue')['useId'] - const useModel: typeof import('vue')['useModel'] - const useNavbarWeixin: (typeof import('../hooks/useNavbarWeixin'))['default'] - const useRequest: typeof import('../hooks/useRequest')['default'] - const useSlots: typeof import('vue')['useSlots'] - const useTemplateRef: typeof import('vue')['useTemplateRef'] - const useUpload: typeof import('../hooks/useUpload')['default'] - const useUpload2: typeof import('../hooks/useUpload2')['default'] - const watch: typeof import('vue')['watch'] - const watchEffect: typeof import('vue')['watchEffect'] - const watchPostEffect: typeof import('vue')['watchPostEffect'] - const watchSyncEffect: typeof import('vue')['watchSyncEffect'] -} -// for type re-export -declare global { - // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' - import('vue') -} -// for vue template auto import -import { UnwrapRef } from 'vue' -declare module 'vue' { - interface GlobalComponents {} - interface ComponentCustomProperties { - readonly EffectScope: UnwrapRef - readonly computed: UnwrapRef - readonly createApp: UnwrapRef - readonly customRef: UnwrapRef - readonly defineAsyncComponent: UnwrapRef - readonly defineComponent: UnwrapRef - readonly effectScope: UnwrapRef - readonly getCurrentInstance: UnwrapRef - readonly getCurrentScope: UnwrapRef - readonly h: UnwrapRef - readonly inject: UnwrapRef - readonly isProxy: UnwrapRef - readonly isReactive: UnwrapRef - readonly isReadonly: UnwrapRef - readonly isRef: UnwrapRef - readonly markRaw: UnwrapRef - readonly nextTick: UnwrapRef - readonly onActivated: UnwrapRef - readonly onAddToFavorites: UnwrapRef - readonly onBackPress: UnwrapRef - readonly onBeforeMount: UnwrapRef - readonly onBeforeUnmount: UnwrapRef - readonly onBeforeUpdate: UnwrapRef - readonly onDeactivated: UnwrapRef - readonly onError: UnwrapRef - readonly onErrorCaptured: UnwrapRef - readonly onHide: UnwrapRef - readonly onLaunch: UnwrapRef - readonly onLoad: UnwrapRef - readonly onMounted: UnwrapRef - readonly onNavigationBarButtonTap: UnwrapRef - readonly onNavigationBarSearchInputChanged: UnwrapRef - readonly onNavigationBarSearchInputClicked: UnwrapRef - readonly onNavigationBarSearchInputConfirmed: UnwrapRef - readonly onNavigationBarSearchInputFocusChanged: UnwrapRef - readonly onPageNotFound: UnwrapRef - readonly onPageScroll: UnwrapRef - readonly onPullDownRefresh: UnwrapRef - readonly onReachBottom: UnwrapRef - readonly onReady: UnwrapRef - readonly onRenderTracked: UnwrapRef - readonly onRenderTriggered: UnwrapRef - readonly onResize: UnwrapRef - readonly onScopeDispose: UnwrapRef - readonly onServerPrefetch: UnwrapRef - readonly onShareAppMessage: UnwrapRef - readonly onShareTimeline: UnwrapRef - readonly onShow: UnwrapRef - readonly onTabItemTap: UnwrapRef - readonly onThemeChange: UnwrapRef - readonly onUnhandledRejection: UnwrapRef - readonly onUnload: UnwrapRef - readonly onUnmounted: UnwrapRef - readonly onUpdated: UnwrapRef - readonly onWatcherCleanup: UnwrapRef - readonly provide: UnwrapRef - readonly reactive: UnwrapRef - readonly readonly: UnwrapRef - readonly ref: UnwrapRef - readonly resolveComponent: UnwrapRef - readonly shallowReactive: UnwrapRef - readonly shallowReadonly: UnwrapRef - readonly shallowRef: UnwrapRef - readonly toRaw: UnwrapRef - readonly toRef: UnwrapRef - readonly toRefs: UnwrapRef - readonly toValue: UnwrapRef - readonly triggerRef: UnwrapRef - readonly unref: UnwrapRef - readonly useAttrs: UnwrapRef - readonly useCssModule: UnwrapRef - readonly useCssVars: UnwrapRef - readonly useId: UnwrapRef - readonly useModel: UnwrapRef - readonly useRequest: UnwrapRef - readonly useSlots: UnwrapRef - readonly useTemplateRef: UnwrapRef - readonly useUpload: UnwrapRef - readonly watch: UnwrapRef - readonly watchEffect: UnwrapRef - readonly watchPostEffect: UnwrapRef - readonly watchSyncEffect: UnwrapRef - } -} diff --git a/src/types/components.d.ts b/src/types/components.d.ts deleted file mode 100644 index 842ef29..0000000 --- a/src/types/components.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by vite-plugin-uni-components -// Read more: https://github.com/vuejs/core/pull/3399 -export {} - -declare module 'vue' { - export interface GlobalComponents { - FgNavbar: typeof import('./../components/fg-navbar/fg-navbar.vue')['default'] - PrivacyPopup: typeof import('./../components/privacy-popup/privacy-popup.vue')['default'] - } -} diff --git a/src/types/global.d.ts b/src/types/global.d.ts deleted file mode 100644 index 2a0a4e7..0000000 --- a/src/types/global.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -declare const __UNI_PLATFORM__: - | 'h5' - | 'app' - | 'mp-alipay' - | 'mp-baidu' - | 'mp-jd' - | 'mp-kuaishou' - | 'mp-lark' - | 'mp-qq' - | 'mp-toutiao' - | 'mp-weixin' - | 'quickapp-webview' - | 'quickapp-webview-huawei' - | 'quickapp-webview-union' - -declare const __VITE_APP_PROXY__: 'true' | 'false' - -declare namespace JSX { - interface IntrinsicElements { - template: any - block: any - } -} diff --git a/src/types/shims-uni.d.ts b/src/types/shims-uni.d.ts deleted file mode 100644 index 63180b8..0000000 --- a/src/types/shims-uni.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import 'vue' - -declare module '@vue/runtime-core' { - type Hooks = App.AppInstance & Page.PageInstance - - interface ComponentCustomOptions extends Hooks {} -} diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts deleted file mode 100644 index 47d231e..0000000 --- a/src/types/uni-pages.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by vite-plugin-uni-pages - -interface NavigateToOptions { - url: "/pages/index/index" | - "/pages/about/about" | - "/pages/login/index" | - "/pages/mine/index" | - "/pages/mine/about/index" | - "/pages/mine/info/index" | - "/pages/mine/password/index"; -} -interface RedirectToOptions extends NavigateToOptions {} - -interface SwitchTabOptions { - url: "/pages/index/index" | "/pages/about/about" | "/pages/mine/index" -} - -type ReLaunchOptions = NavigateToOptions | SwitchTabOptions; - -declare interface Uni { - navigateTo(options: UniNamespace.NavigateToOptions & NavigateToOptions): void; - redirectTo(options: UniNamespace.RedirectToOptions & RedirectToOptions): void; - switchTab(options: UniNamespace.SwitchTabOptions & SwitchTabOptions): void; - reLaunch(options: UniNamespace.ReLaunchOptions & ReLaunchOptions): void; -} From 501e86a03459f055447cc950444f46fd87832d7d Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Wed, 28 May 2025 00:56:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E8=87=B3=202.10.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c569ccb..5079e08 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "unibest", "type": "commonjs", - "version": "2.10.0", + "version": "2.10.1", "description": "unibest - 最好的 uniapp 开发模板", "author": { "name": "feige996",