- Added typings for additional uni-components to improve type safety and code clarity. - Created a new file `type.d.ts` to declare the `ROUTES` constant. npmrc: Add .npmrc file - Added a new `.npmrc` file to configure hoisting patterns for public packages. - The file includes patterns for hoisting `@vue*` packages and an optional setting for `shamefully-hoist`. refactor: Remove unused user store - Deleted the `src/stores/user.ts` file as it is no longer needed. - The functionality provided by the user store has been replaced by other stores. tsconfig.json: Add wot-design-uni/global to types - Updated the `tsconfig.json` file to include the `wot-design-uni/global` type definition. - This allows for better type checking and autocompletion when using the `wot-design-uni` library. feat: Add useTabbar store - Created a new store `useTabbar` in the `src/stores/useTabbar.ts` file. - The store provides reactive state for managing the active tab in the tab bar. refactor: Update App.vue - Updated the `src/App.vue` file to import and use the `useTabbar` store. - Set the initial active tab to 'home' when the app is launched. feat: Add useConfig store - Created a new store `useConfig` in the `src/composables/useConfig.ts` file. - The store provides reactive state for managing the base URL used in API requests. feat: Add router configuration - Created a new file `src/router/index.ts` to configure the app's router. - Imported the `createRouter` function from the `uni-mini-router` library. - Imported the `pages.json` file and used `uni-parse-pages` to generate the routes. - Exported the created router instance. feat: Add persist plugin - Created a new file `src/stores/persist.ts` to implement a plugin for persisting store state. - The plugin uses `uni.getStorageSync` and `uni.setStorageSync` to store and retrieve store state from local storage. feat: Add page-wrapper component - Created a new file `src/components/page-wrapper.vue` to define a reusable page wrapper component. - The component includes a slot for content and adds a tab bar at the bottom of the page. feat: Add BussApi and user types - Created a new file `src/api/BussApi.ts` to define API methods for the business-related functionality. - Added types for the API request and response objects. - Created a new file `src/types/api/user.ts` to define types for the user-related API responses. chore: Update dependencies - Updated various dependencies in the `package.json` file. - Added `wot-design-uni` as a new dependency. - Updated `sass-loader` to version 10. feat: Add my page - Created a new file `src/pages/my/index.vue` to implement the "My" page. - Added API calls to fetch user profile information. - Added a logout button to log out the user and redirect to the login page. chore: Update pages.json - Updated the `pages.json` file to include the new "my" page and configure the tab bar. - Set the "home" page as the initial page.
89 lines
3.4 KiB
JSON
89 lines
3.4 KiB
JSON
{
|
|
"name": "uni-preset-vue",
|
|
"version": "0.0.0",
|
|
"scripts": {
|
|
"dev:app": "uni -p app",
|
|
"dev:app-android": "uni -p app-android",
|
|
"dev:app-ios": "uni -p app-ios",
|
|
"dev:app-harmony": "uni -p app-harmony",
|
|
"dev:custom": "uni -p",
|
|
"dev:h5": "uni",
|
|
"dev:h5:ssr": "uni --ssr",
|
|
"dev:mp-alipay": "uni -p mp-alipay",
|
|
"dev:mp-baidu": "uni -p mp-baidu",
|
|
"dev:mp-jd": "uni -p mp-jd",
|
|
"dev:mp-kuaishou": "uni -p mp-kuaishou",
|
|
"dev:mp-lark": "uni -p mp-lark",
|
|
"dev:mp-qq": "uni -p mp-qq",
|
|
"dev:mp-toutiao": "uni -p mp-toutiao",
|
|
"dev:mp-weixin": "uni -p mp-weixin",
|
|
"dev:mp-xhs": "uni -p mp-xhs",
|
|
"dev:quickapp-webview": "uni -p quickapp-webview",
|
|
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
|
|
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
|
"build:app": "uni build -p app",
|
|
"build:app-android": "uni build -p app-android",
|
|
"build:app-ios": "uni build -p app-ios",
|
|
"build:app-harmony": "uni build -p app-harmony",
|
|
"build:custom": "uni build -p",
|
|
"build:h5": "uni build",
|
|
"build:h5:ssr": "uni build --ssr",
|
|
"build:mp-alipay": "uni build -p mp-alipay",
|
|
"build:mp-baidu": "uni build -p mp-baidu",
|
|
"build:mp-jd": "uni build -p mp-jd",
|
|
"build:mp-kuaishou": "uni build -p mp-kuaishou",
|
|
"build:mp-lark": "uni build -p mp-lark",
|
|
"build:mp-qq": "uni build -p mp-qq",
|
|
"build:mp-toutiao": "uni build -p mp-toutiao",
|
|
"build:mp-weixin": "uni build -p mp-weixin",
|
|
"build:mp-xhs": "uni build -p mp-xhs",
|
|
"build:quickapp-webview": "uni build -p quickapp-webview",
|
|
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
|
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
|
"type-check": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@dcloudio/uni-app": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-app-harmony": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-app-plus": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-components": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-h5": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-alipay": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-baidu": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-jd": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-kuaishou": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-lark": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-qq": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-toutiao": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-weixin": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-mp-xhs": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002",
|
|
"pinia": "^2.2.2",
|
|
"vue": "^3.4.21",
|
|
"vue-i18n": "^9.1.9",
|
|
"wot-design-uni": "^1.3.10"
|
|
},
|
|
"devDependencies": {
|
|
"@dcloudio/types": "^3.4.8",
|
|
"@dcloudio/uni-automator": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-cli-shared": "3.0.0-4020420240722002",
|
|
"@dcloudio/uni-stacktracey": "3.0.0-4020420240722002",
|
|
"@dcloudio/vite-plugin-uni": "3.0.0-4020420240722002",
|
|
"@uni-helper/vite-plugin-uni-components": "^0.1.0",
|
|
"@vue/runtime-core": "^3.4.21",
|
|
"@vue/tsconfig": "^0.1.3",
|
|
"add": "^2.0.6",
|
|
"axios": "^1.7.7",
|
|
"fant-axios-adapter": "^0.0.6",
|
|
"sass": "^1.78.0",
|
|
"sass-loader": "10",
|
|
"typescript": "^4.9.4",
|
|
"uni-mini-router": "^0.1.6",
|
|
"uni-parse-pages": "^0.0.1",
|
|
"unocss": "^0.62.3",
|
|
"unocss-preset-weapp": "^0.62.2",
|
|
"vite": "5.2.8",
|
|
"vue-tsc": "^1.0.24"
|
|
}
|
|
}
|