Skip to content

Commit

Permalink
feat(projects): 添加常用组件、composables函数
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 12, 2021
1 parent e755caa commit 230a50a
Show file tree
Hide file tree
Showing 87 changed files with 5,414 additions and 2,061 deletions.
8 changes: 6 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 变量需要以VITE开头

VITE_APP_TITLE=SoybeanAdmin
VITE_APP_TITLE_LABEL=SoybeanAdmin
VITE_BASE_URL=/

VITE_APP_NAME=SoybeanAdmin

VITE_APP_TITLE=SoybeanAdmin

VITE_APP_DESC=中后台管理系统模版
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#请求的环境
VITE_HTTP_ENV=DEV

#请求地址
VITE_HTTP_URL=https://test.aisuit.com.cn
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#请求的环境 正式环境
VITE_HTTP_ENV=PROD

#请求地址
VITE_HTTP_URL=http://192.168.100.43:8201
1 change: 1 addition & 0 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VITE_HTTP_ENV=STAGING

#请求地址
VITE_HTTP_URL=http://192.168.100.43:8201
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ lib
/docs
.vscode
.local
index.html
4 changes: 2 additions & 2 deletions build/plugins/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default [
minifyHtml(),
injectHtml({
injectData: {
title: viteEnv.VITE_APP_TITLE,
appName: viteEnv.VITE_APP_TITLE_LABEL
appName: viteEnv.VITE_APP_NAME,
appTitle: viteEnv.VITE_APP_TITLE
}
})
];
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title %></title>
<title><%= appName %></title>
</head>
<body>
<div id="appProvider" style="display: none"></div>
Expand All @@ -20,7 +20,7 @@
<i class="right bottom delay-1200"></i>
</div>
</div>
<h2 class="app-loading_title"><%= appName %></h2>
<h2 class="app-loading_title"><%= appTitle %></h2>
<style>
@import '/resource/loading.css';
</style>
Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"dev": "vite",
"dev:prod": "vite --mode production",
"dev:staging": "vite --mode staging",
"build": "vue-tsc --noEmit --skipLibCheck && vite build",
"build:dev": "vue-tsc --noEmit --skipLibCheck && vite build --mode development",
"build:staging": "vue-tsc --noEmit --skipLibCheck && vite build --mode staging",
"vtsc": "vue-tsc --noEmit --skipLibCheck",
"build": "npm run vtsc && vite build",
"build:dev": "npm run vtsc && vite build --mode development",
"build:staging": "npm run vtsc && vite build --mode staging",
"serve": "vite preview",
"vtsc": "vue-tsc --noEmit --skipLibCheck",
"lint": "eslint ./src --ext .vue,.js,jsx,.ts,tsx",
"lint:fix": "eslint --fix ./src --ext .vue,.js,jsx,.ts,tsx",
"prepare": "husky install",
Expand All @@ -31,21 +31,21 @@
}
},
"dependencies": {
"@antv/g2plot": "^2.3.40",
"@antv/g2plot": "^2.4.0",
"@better-scroll/core": "^2.4.2",
"@vueuse/core": "^7.1.2",
"@vueuse/core": "^7.3.0",
"axios": "^0.24.0",
"chroma-js": "^2.1.2",
"clipboard": "^2.0.8",
"dayjs": "^1.10.7",
"form-data": "^4.0.0",
"naive-ui": "^2.21.3",
"naive-ui": "^2.21.5",
"pinia": "^2.0.6",
"print-js": "^1.6.0",
"qs": "^6.10.1",
"qs": "^6.10.2",
"swiper": "^7.3.1",
"vditor": "^3.8.7",
"vue": "^3.2.23",
"vditor": "^3.8.8",
"vue": "^3.2.25",
"vue-router": "^4.0.12",
"wangeditor": "^4.7.10",
"xgplayer": "^2.31.4"
Expand All @@ -54,41 +54,41 @@
"@amap/amap-jsapi-types": "^0.0.8",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@iconify/json": "^1.1.438",
"@iconify/json": "^1.1.441",
"@iconify/vue": "^3.1.1",
"@types/bmapgl": "^0.0.4",
"@types/chroma-js": "^2.1.3",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@vitejs/plugin-vue": "^1.10.1",
"@vue/compiler-sfc": "^3.2.23",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"@vitejs/plugin-vue": "^1.10.2",
"@vue/compiler-sfc": "^3.2.25",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^9.1.0",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^6.3.0",
"dotenv": "^10.0.0",
"eslint": "^8.4.0",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.1.1",
"eslint-plugin-vue": "^8.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.5.1",
"rollup-plugin-visualizer": "^5.5.2",
"sass": "^1.44.0",
"typescript": "^4.5.2",
"unplugin-icons": "^0.12.22",
"unplugin-vue-components": "^0.17.3",
"sass": "^1.45.0",
"typescript": "^4.5.3",
"unplugin-icons": "^0.12.23",
"unplugin-vue-components": "^0.17.8",
"vite": "~2.5.10",
"vite-plugin-html": "^2.1.1",
"vite-plugin-windicss": "^1.5.4",
"vue-tsc": "~0.29.6",
"vue-tsc": "^0.29.8",
"vueuc": "^0.4.18",
"windicss": "^3.2.1"
},
Expand Down
Loading

1 comment on commit 230a50a

@vercel
Copy link

@vercel vercel bot commented on 230a50a Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.