create-young-proj 0.13.0 → 1.1.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.editorconfig +14 -0
- package/.vscode/settings.json +39 -0
- package/CHANGELOG.md +256 -0
- package/README.md +38 -25
- package/build.config.ts +22 -0
- package/eslint.config.js +35 -0
- package/package.json +10 -15
- package/src/index.ts +366 -0
- package/template-admin-server/_nvmrc +1 -0
- package/template-nuxt-admin/.vscode/settings.json +20 -6
- package/template-nuxt-admin/Dockerfile +3 -3
- package/template-nuxt-admin/README.md +23 -16
- package/template-nuxt-admin/_nvmrc +1 -0
- package/template-nuxt-admin/app.vue +10 -2
- package/template-nuxt-admin/boot.mjs +7 -7
- package/template-nuxt-admin/components/TopSearch.vue +1 -2
- package/template-nuxt-admin/components/YoungChangePassword.vue +2 -5
- package/template-nuxt-admin/components/YoungCodeInput.vue +1 -2
- package/template-nuxt-admin/components/YoungEditor.vue +81 -0
- package/template-nuxt-admin/components/ZenMode.vue +21 -0
- package/template-nuxt-admin/components/layout/NavBar.vue +3 -2
- package/template-nuxt-admin/composables/api.ts +7 -15
- package/template-nuxt-admin/composables/icon.ts +1 -3
- package/template-nuxt-admin/composables/nav.ts +11 -1
- package/template-nuxt-admin/composables/user.ts +3 -1
- package/template-nuxt-admin/env.d.ts +8 -8
- package/template-nuxt-admin/eslint.config.js +33 -0
- package/template-nuxt-admin/layouts/default.vue +45 -7
- package/template-nuxt-admin/middleware/auth.global.ts +2 -5
- package/template-nuxt-admin/nuxt.config.ts +21 -21
- package/template-nuxt-admin/package.json +8 -9
- package/template-nuxt-admin/pages/system/api.vue +1 -3
- package/template-nuxt-admin/pages/system/hooks/useRole.ts +1 -8
- package/template-nuxt-admin/pages/system/menuList.vue +4 -6
- package/template-nuxt-admin/pages/system/role.vue +1 -2
- package/template-nuxt-admin/pages/system/user.vue +1 -3
- package/template-nuxt-admin/public/index.umd.js +74 -0
- package/template-nuxt-admin/public/index.umd.js.map +1 -0
- package/template-nuxt-admin/server/plugins/env.ts +3 -2
- package/template-nuxt-admin/server/utils/index.ts +1 -1
- package/template-nuxt-admin/typings/global.d.ts +6 -6
- package/template-nuxt-admin/typings/system.d.ts +55 -54
- package/template-nuxt-admin/typings/user.d.ts +12 -12
- package/template-nuxt-admin/utils/tool.ts +4 -8
- package/template-nuxt-admin/yarn.lock +1913 -2002
- package/template-nuxt-website/.nvmrc +1 -0
- package/template-nuxt-website/.vscode/extensions.json +12 -0
- package/template-nuxt-website/.vscode/settings.json +39 -0
- package/template-nuxt-website/Dockerfile +41 -0
- package/template-nuxt-website/README.md +117 -0
- package/template-nuxt-website/_gitignore +26 -0
- package/template-nuxt-website/_npmrc +2 -0
- package/template-nuxt-website/_nvmrc +1 -0
- package/template-nuxt-website/app.vue +66 -0
- package/template-nuxt-website/assets/tabbar/event.png +0 -0
- package/template-nuxt-website/assets/tabbar/event_active.png +0 -0
- package/template-nuxt-website/assets/tabbar/game.png +0 -0
- package/template-nuxt-website/assets/tabbar/game_active.png +0 -0
- package/template-nuxt-website/assets/tabbar/shop.png +0 -0
- package/template-nuxt-website/assets/tabbar/shop_active.png +0 -0
- package/template-nuxt-website/assets/tabbar/user.png +0 -0
- package/template-nuxt-website/assets/tabbar/user_active.png +0 -0
- package/template-nuxt-website/boot.mjs +16 -0
- package/template-nuxt-website/components/AboutNav.vue +27 -0
- package/template-nuxt-website/components/BreadNav.vue +35 -0
- package/template-nuxt-website/components/Follow.vue +48 -0
- package/template-nuxt-website/components/FriendLink.vue +36 -0
- package/template-nuxt-website/components/mobile/NavBar.vue +50 -0
- package/template-nuxt-website/components/top/Extra.vue +50 -0
- package/template-nuxt-website/components/top/Nav.vue +87 -0
- package/template-nuxt-website/components/young/Banner.vue +100 -0
- package/template-nuxt-website/components/young/Footer.vue +44 -0
- package/template-nuxt-website/components/young/Header.vue +25 -0
- package/template-nuxt-website/components/young/Tabbar.vue +76 -0
- package/template-nuxt-website/composables/ad.ts +20 -0
- package/template-nuxt-website/composables/config.ts +11 -0
- package/template-nuxt-website/composables/nav.ts +30 -0
- package/template-nuxt-website/composables/share.ts +22 -0
- package/template-nuxt-website/composables/utils.ts +84 -0
- package/template-nuxt-website/config/.devrc +11 -0
- package/template-nuxt-website/config/.onlinerc +13 -0
- package/template-nuxt-website/config/.testrc +11 -0
- package/template-nuxt-website/env.d.ts +55 -0
- package/template-nuxt-website/error.vue +69 -0
- package/template-nuxt-website/eslint.config.js +34 -0
- package/template-nuxt-website/layouts/default.vue +80 -0
- package/template-nuxt-website/layouts/home.vue +75 -0
- package/template-nuxt-website/layouts/tabbar.vue +78 -0
- package/template-nuxt-website/nuxt.config.ts +98 -0
- package/template-nuxt-website/package.json +41 -0
- package/template-nuxt-website/pages/index.html.vue +16 -0
- package/template-nuxt-website/pages/index.vue +29 -0
- package/template-nuxt-website/pages/match.html.vue +23 -0
- package/template-nuxt-website/pages/news/[id].html.vue +57 -0
- package/template-nuxt-website/pages/news.html.vue +26 -0
- package/template-nuxt-website/pages/shop.html.vue +26 -0
- package/template-nuxt-website/public/favicon.ico +0 -0
- package/template-nuxt-website/public/robots.txt +2 -0
- package/template-nuxt-website/public/svg/image_placeholder.svg +15 -0
- package/template-nuxt-website/server/api/get_footer_info.get.ts +52 -0
- package/template-nuxt-website/server/api/get_gray_status.get.ts +38 -0
- package/template-nuxt-website/server/api/get_head_nav.get.ts +38 -0
- package/template-nuxt-website/server/api/get_home_banner.get.ts +28 -0
- package/template-nuxt-website/server/api/get_seo_info.get.ts +32 -0
- package/template-nuxt-website/server/middleware/platform.ts +11 -0
- package/template-nuxt-website/server/plugins/init.ts +147 -0
- package/template-nuxt-website/server/tsconfig.json +3 -0
- package/template-nuxt-website/server/utils/index.ts +12 -0
- package/template-nuxt-website/server/utils/proxy.ts +59 -0
- package/template-nuxt-website/tsconfig.json +4 -0
- package/template-nuxt-website/typings/banner.d.ts +30 -0
- package/template-nuxt-website/typings/nav.d.ts +34 -0
- package/template-nuxt-website/typings/system.d.ts +22 -0
- package/template-nuxt-website/uno.config.ts +40 -0
- package/template-nuxt-website/utils/tool.ts +171 -0
- package/template-nuxt-website/yarn.lock +8018 -0
- package/template-uni-app/.vscode/settings.json +20 -6
- package/template-uni-app/README.md +5 -0
- package/template-uni-app/_nvmrc +1 -0
- package/template-uni-app/eslint.config.js +35 -0
- package/template-uni-app/package.json +22 -21
- package/template-uni-app/pnpm-lock.yaml +2557 -1543
- package/template-uni-app/src/env.d.ts +6 -6
- package/template-uni-app/src/typings/global.d.ts +1 -1
- package/template-uni-app/src/utils/modal.ts +2 -2
- package/template-uni-app/tsconfig.json +3 -3
- package/tsconfig.json +11 -0
- package/dist/index.mjs +0 -51
- package/template-nuxt-admin/.eslintrc +0 -14
- package/template-uni-app/.vscode/.server-controller-port.log +0 -5
- package/template-uni-app/dist/dev/mp-weixin/apis/index.js +0 -43
- package/template-uni-app/dist/dev/mp-weixin/apis/requests/get.js +0 -10
- package/template-uni-app/dist/dev/mp-weixin/apis/requests/index.js +0 -1
- package/template-uni-app/dist/dev/mp-weixin/apis/requests/post.js +0 -15
- package/template-uni-app/dist/dev/mp-weixin/app.js +0 -92
- package/template-uni-app/dist/dev/mp-weixin/app.json +0 -51
- package/template-uni-app/dist/dev/mp-weixin/app.wxss +0 -2378
- package/template-uni-app/dist/dev/mp-weixin/common/assets.js +0 -13
- package/template-uni-app/dist/dev/mp-weixin/common/vendor.js +0 -9166
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading/young-loading.js +0 -22
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading/young-loading.json +0 -4
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading/young-loading.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading/young-loading.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading-mini/young-loading-mini.js +0 -22
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading-mini/young-loading-mini.json +0 -4
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading-mini/young-loading-mini.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/components/young-loading-mini/young-loading-mini.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.js +0 -81
- package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.json +0 -4
- package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/components/young-navbar/young-navbar.wxss +0 -108
- package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.js +0 -55
- package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.json +0 -4
- package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/components/young-tabbar/young-tabbar.wxss +0 -88
- package/template-uni-app/dist/dev/mp-weixin/config/enum.js +0 -21
- package/template-uni-app/dist/dev/mp-weixin/config/index.js +0 -1
- package/template-uni-app/dist/dev/mp-weixin/config/map.js +0 -1
- package/template-uni-app/dist/dev/mp-weixin/layouts/default.js +0 -29
- package/template-uni-app/dist/dev/mp-weixin/layouts/default.json +0 -6
- package/template-uni-app/dist/dev/mp-weixin/layouts/default.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/layouts/default.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/layouts/tabbar.js +0 -56
- package/template-uni-app/dist/dev/mp-weixin/layouts/tabbar.json +0 -9
- package/template-uni-app/dist/dev/mp-weixin/layouts/tabbar.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/layouts/tabbar.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.js +0 -98
- package/template-uni-app/dist/dev/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.json +0 -4
- package/template-uni-app/dist/dev/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.wxss +0 -125
- package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.js +0 -37
- package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.json +0 -5
- package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/pages/demo/index.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/pages/index.js +0 -50
- package/template-uni-app/dist/dev/mp-weixin/pages/index.json +0 -5
- package/template-uni-app/dist/dev/mp-weixin/pages/index.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/pages/index.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/pages/my.js +0 -22
- package/template-uni-app/dist/dev/mp-weixin/pages/my.json +0 -3
- package/template-uni-app/dist/dev/mp-weixin/pages/my.wxml +0 -1
- package/template-uni-app/dist/dev/mp-weixin/pages/my.wxss +0 -0
- package/template-uni-app/dist/dev/mp-weixin/project.config.json +0 -55
- package/template-uni-app/dist/dev/mp-weixin/project.private.config.json +0 -6
- package/template-uni-app/dist/dev/mp-weixin/static/back.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/h.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/home.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/home_active.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/more.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/my.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/my_active.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/static/network.png +0 -0
- package/template-uni-app/dist/dev/mp-weixin/store/index.js +0 -8
- package/template-uni-app/dist/dev/mp-weixin/store/local/index.js +0 -13
- package/template-uni-app/dist/dev/mp-weixin/store/system.js +0 -14
- package/template-uni-app/dist/dev/mp-weixin/utils/modal.js +0 -78
- package/template-uni-app/dist/dev/mp-weixin/utils/route.js +0 -83
- package/template-uni-app/dist/dev/mp-weixin/utils/system.js +0 -27
@@ -1,15 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"prettier.enable": false,
|
3
3
|
"editor.formatOnSave": false,
|
4
|
+
|
5
|
+
// Enable the ESlint flat config support
|
6
|
+
"eslint.experimental.useFlatConfig": true,
|
7
|
+
// Auto fix
|
4
8
|
"editor.codeActionsOnSave": {
|
5
|
-
"source.fixAll.eslint":
|
6
|
-
"source.organizeImports":
|
9
|
+
"source.fixAll.eslint": "explicit",
|
10
|
+
"source.organizeImports": "never"
|
7
11
|
},
|
8
12
|
|
9
|
-
//
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
14
|
+
"eslint.rules.customizations": [
|
15
|
+
{ "rule": "style/*", "severity": "off" },
|
16
|
+
{ "rule": "*-indent", "severity": "off" },
|
17
|
+
{ "rule": "*-spacing", "severity": "off" },
|
18
|
+
{ "rule": "*-spaces", "severity": "off" },
|
19
|
+
{ "rule": "*-order", "severity": "off" },
|
20
|
+
{ "rule": "*-dangle", "severity": "off" },
|
21
|
+
{ "rule": "*-newline", "severity": "off" },
|
22
|
+
{ "rule": "*quotes", "severity": "off" },
|
23
|
+
{ "rule": "*semi", "severity": "off" }
|
24
|
+
],
|
25
|
+
|
26
|
+
// Enable eslint for all supported languages
|
13
27
|
"eslint.validate": [
|
14
28
|
"javascript",
|
15
29
|
"javascriptreact",
|
@@ -1,5 +1,10 @@
|
|
1
1
|
# 基于 uni-app + vue3 + ts + pinia + unocss 的小程序模板
|
2
2
|
|
3
|
+
|
4
|
+
[![](https://img.shields.io/badge/Author-BluesYoung--web-blue)](https://gitee.com/BluesYoung-web)
|
5
|
+
|
6
|
+
[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)
|
7
|
+
|
3
8
|
## 配套 git 提交工具
|
4
9
|
|
5
10
|
### 安装
|
@@ -0,0 +1 @@
|
|
1
|
+
20.9.0
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*
|
2
|
+
* @Author: zhangyang
|
3
|
+
* @Date: 2023-11-01 10:13:50
|
4
|
+
* @LastEditTime: 2023-11-07 17:16:11
|
5
|
+
* @Description:
|
6
|
+
*/
|
7
|
+
import antfu from '@antfu/eslint-config'
|
8
|
+
|
9
|
+
export default antfu({
|
10
|
+
overrides: {
|
11
|
+
vue: {
|
12
|
+
'vue/valid-v-model': 'off',
|
13
|
+
},
|
14
|
+
typescript: {
|
15
|
+
'ts/no-use-before-define': 'off',
|
16
|
+
'ts/no-unused-vars': 'off',
|
17
|
+
'ts/ban-types': 'off',
|
18
|
+
'ts/ban-ts-comment': 'off',
|
19
|
+
},
|
20
|
+
},
|
21
|
+
rules: {
|
22
|
+
'no-console': 'off',
|
23
|
+
'node/prefer-global/process': 'off',
|
24
|
+
'unused-imports/no-unused-vars': 'off',
|
25
|
+
'no-throw-literal': 'off',
|
26
|
+
'antfu/consistent-list-newline': 'off',
|
27
|
+
'style/jsx-indent': 'off',
|
28
|
+
'prefer-promise-reject-errors': 'off',
|
29
|
+
'no-async-promise-executor': 'off',
|
30
|
+
},
|
31
|
+
}, {
|
32
|
+
ignores: [
|
33
|
+
'src/uni_modules',
|
34
|
+
],
|
35
|
+
})
|
@@ -1,5 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "uni-preset-vue",
|
3
|
+
"type": "module",
|
3
4
|
"version": "0.0.0",
|
4
5
|
"scripts": {
|
5
6
|
"dev": "npm run dev:mp-weixin",
|
@@ -44,7 +45,7 @@
|
|
44
45
|
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
|
45
46
|
},
|
46
47
|
"dependencies": {
|
47
|
-
"@bluesyoung/http": "^1.0
|
48
|
+
"@bluesyoung/http": "^1.2.0",
|
48
49
|
"@bluesyoung/utils": "^0.2.1",
|
49
50
|
"@dcloudio/uni-app": "3.0.0-3080720230703001",
|
50
51
|
"@dcloudio/uni-app-plus": "3.0.0-3080720230703001",
|
@@ -66,15 +67,15 @@
|
|
66
67
|
"miniprogram-blob": "^2.0.0",
|
67
68
|
"miniprogram-formdata": "^2.0.0",
|
68
69
|
"pinia": "2.0.35",
|
69
|
-
"sass": "^1.
|
70
|
+
"sass": "^1.69.5",
|
70
71
|
"sass-loader": "^13.3.2",
|
71
|
-
"swiper": "^
|
72
|
+
"swiper": "^11.0.3",
|
72
73
|
"tnuiv3p-tn-sign-board": "^1.0.2",
|
73
|
-
"vue": "^3.
|
74
|
+
"vue": "^3.3.8"
|
74
75
|
},
|
75
76
|
"devDependencies": {
|
76
|
-
"@antfu/eslint-config": "^
|
77
|
-
"@dcloudio/types": "^3.3
|
77
|
+
"@antfu/eslint-config": "^1.1.0",
|
78
|
+
"@dcloudio/types": "^3.4.3",
|
78
79
|
"@dcloudio/uni-automator": "3.0.0-3080720230703001",
|
79
80
|
"@dcloudio/uni-cli-shared": "3.0.0-3080720230703001",
|
80
81
|
"@dcloudio/uni-stacktracey": "3.0.0-3080720230703001",
|
@@ -82,22 +83,22 @@
|
|
82
83
|
"@dcloudio/vite-plugin-uni": "3.0.0-3080720230703001",
|
83
84
|
"@types/md5": "^2.3.2",
|
84
85
|
"@uni-helper/pages-json-schema": "^0.2.3",
|
85
|
-
"@uni-helper/uni-app-types": "^0.5.
|
86
|
-
"@uni-helper/uni-ui-types": "^0.5.
|
87
|
-
"@uni-helper/vite-plugin-uni-layouts": "^0.1.
|
88
|
-
"@uni-helper/vite-plugin-uni-manifest": "^0.
|
89
|
-
"@uni-helper/vite-plugin-uni-pages": "^0.2.
|
90
|
-
"@uni-helper/volar-service-uni-pages": "^0.2.
|
91
|
-
"@vue/tsconfig": "^0.
|
92
|
-
"eslint": "^8.
|
93
|
-
"lint-staged": "^
|
86
|
+
"@uni-helper/uni-app-types": "^0.5.12",
|
87
|
+
"@uni-helper/uni-ui-types": "^0.5.11",
|
88
|
+
"@uni-helper/vite-plugin-uni-layouts": "^0.1.6",
|
89
|
+
"@uni-helper/vite-plugin-uni-manifest": "^0.2.3",
|
90
|
+
"@uni-helper/vite-plugin-uni-pages": "^0.2.12",
|
91
|
+
"@uni-helper/volar-service-uni-pages": "^0.2.12",
|
92
|
+
"@vue/tsconfig": "^0.4.0",
|
93
|
+
"eslint": "^8.53.0",
|
94
|
+
"lint-staged": "^15.0.2",
|
94
95
|
"simple-git-hooks": "^2.9.0",
|
95
|
-
"typescript": "^
|
96
|
-
"unocss": "^0.
|
97
|
-
"unocss-preset-weapp": "^0.
|
98
|
-
"unplugin-auto-import": "^0.16.
|
99
|
-
"unplugin-vue-components": "^0.25.
|
100
|
-
"vite": "4.0
|
96
|
+
"typescript": "^5.2.2",
|
97
|
+
"unocss": "^0.57.2",
|
98
|
+
"unocss-preset-weapp": "^0.57.0",
|
99
|
+
"unplugin-auto-import": "^0.16.7",
|
100
|
+
"unplugin-vue-components": "^0.25.2",
|
101
|
+
"vite": "4.5.0"
|
101
102
|
},
|
102
103
|
"simple-git-hooks": {
|
103
104
|
"pre-commit": "npx lint-staged"
|