diff --git a/env/.env b/env/.env index aaf1351..9efb877 100644 --- a/env/.env +++ b/env/.env @@ -4,3 +4,8 @@ VITE_APP_PORT = 9000 # TODO: 记得修改 VITE_UNI_APPID = 'H5871D791' VITE_WX_APPID = 'wxa2abb91f64032a2b' + +# 不在src里面引用的变量可以不加 VITE_ 前缀 +# 是否显示DEMO,1-显示,0-不显示, +# TODO:通过新增 .env.local 改写 +SHOW_DEMO=0 diff --git a/src/auto-import.d.ts b/src/auto-import.d.ts deleted file mode 100644 index d298c3c..0000000 --- a/src/auto-import.d.ts +++ /dev/null @@ -1,66 +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 onBeforeMount: typeof import('vue')['onBeforeMount'] - const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] - const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] - const onDeactivated: typeof import('vue')['onDeactivated'] - const onErrorCaptured: typeof import('vue')['onErrorCaptured'] - const onMounted: typeof import('vue')['onMounted'] - const onRenderTracked: typeof import('vue')['onRenderTracked'] - const onRenderTriggered: typeof import('vue')['onRenderTriggered'] - const onScopeDispose: typeof import('vue')['onScopeDispose'] - const onServerPrefetch: typeof import('vue')['onServerPrefetch'] - const onUnmounted: typeof import('vue')['onUnmounted'] - const onUpdated: typeof import('vue')['onUpdated'] - 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 useSlots: typeof import('vue')['useSlots'] - 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, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' - import('vue') -} diff --git a/src/components.d.ts b/src/components.d.ts deleted file mode 100644 index 7fa6b1b..0000000 --- a/src/components.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by unplugin-vue-components -// Read more: https://github.com/vuejs/core/pull/3399 -export {} - -declare module 'vue' { - export interface GlobalComponents { - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - } -} diff --git a/src/manifest.json b/src/manifest.json deleted file mode 100644 index 63853bc..0000000 --- a/src/manifest.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "unifly-uniapp", - "appid": "H5871D791", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 - }, - "modules": {}, - "distribute": { - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "minSdkVersion": 30, - "targetSdkVersion": 30, - "abiFilters": ["armeabi-v7a", "arm64-v8a"] - }, - "ios": {}, - "sdkConfigs": {}, - "icons": { - "android": {}, - "ios": {} - } - } - }, - "quickapp": {}, - "mp-weixin": { - "appid": "wxa2abb91f64032a2b", - "setting": { - "urlCheck": false - }, - "usingComponents": true - }, - "mp-alipay": { - "usingComponents": true - }, - "mp-baidu": { - "usingComponents": true - }, - "mp-toutiao": { - "usingComponents": true - }, - "uniStatistics": { - "enable": false - }, - "vueVersion": "3" -} diff --git a/src/pages.json b/src/pages.json deleted file mode 100644 index 43b3ecc..0000000 --- a/src/pages.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "globalStyle": { - "navigationStyle": "default", - "navigationBarTitleText": "vue3-uniapp", - "navigationBarBackgroundColor": "#f8f8f8", - "navigationBarTextStyle": "black", - "backgroundColor": "#FFFFFF" - }, - "easycom": { - "autoscan": true, - "custom": { - "^fly-(.*)": "@/components/fly-$1/fly-$1.vue", - "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" - } - }, - "tabBar": { - "color": "#999999", - "selectedColor": "#018d71", - "backgroundColor": "#F8F8F8", - "borderStyle": "black", - "height": "50px", - "fontSize": "10px", - "iconWidth": "24px", - "spacing": "3px", - "list": [ - { - "iconPath": "static/tabbar/home.png", - "selectedIconPath": "static/tabbar/homeHL.png", - "pagePath": "pages/index/index", - "text": "首页" - }, - { - "iconPath": "static/tabbar/personal.png", - "selectedIconPath": "static/tabbar/personalHL.png", - "pagePath": "pages/my/index", - "text": "我的" - } - ] - }, - "pages": [ - { - "path": "pages/index/index", - "type": "home", - "style": { - "navigationBarTitleText": "首页" - } - }, - { - "path": "pages/login/index", - "type": "page", - "style": { - "navigationBarTitleText": "登录" - } - }, - { - "path": "pages/my/index", - "type": "page", - "style": { - "navigationBarTitleText": "我的" - } - } - ], - "subPackages": [] -} diff --git a/uni-pages.d.ts b/uni-pages.d.ts deleted file mode 100644 index 728a18e..0000000 --- a/uni-pages.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by vite-plugin-uni-pages - -interface NavigateToOptions { - url: "pages/index/index" | - "pages/login/index" | - "pages/my/index"; -} -interface RedirectToOptions extends NavigateToOptions {} - -interface SwitchTabOptions { - url: 'pages/index/index' | 'pages/my/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 -}