mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 分析页更新,添加关于页面
This commit is contained in:
@ -2,3 +2,4 @@ export * from './auth';
|
||||
export * from './common';
|
||||
export * from './storage';
|
||||
export * from './router';
|
||||
export * from './package';
|
||||
|
31
src/utils/package/index.ts
Normal file
31
src/utils/package/index.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import type { VersionInfo } from '@/interface';
|
||||
import version from './version.json';
|
||||
|
||||
interface Version {
|
||||
dependencies: {
|
||||
[key: string]: string;
|
||||
};
|
||||
devDependencies: {
|
||||
[key: string]: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface PackageVersion {
|
||||
dependencies: VersionInfo[];
|
||||
devDependencies: VersionInfo[];
|
||||
}
|
||||
|
||||
const versionWithType = version as Version;
|
||||
|
||||
function transformVersionData(tuple: [string, string]): VersionInfo {
|
||||
const [name, version] = tuple;
|
||||
return {
|
||||
name,
|
||||
version
|
||||
};
|
||||
}
|
||||
|
||||
export const packageVersion: PackageVersion = {
|
||||
dependencies: Object.entries(versionWithType.dependencies).map(item => transformVersionData(item)),
|
||||
devDependencies: Object.entries(versionWithType.dependencies).map(item => transformVersionData(item))
|
||||
};
|
65
src/utils/package/version.json
Normal file
65
src/utils/package/version.json
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@antv/g2plot": "^2.3.39",
|
||||
"@better-scroll/core": "^2.4.2",
|
||||
"@vueuse/core": "^6.7.4",
|
||||
"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.20.1",
|
||||
"pinia": "^2.0.0",
|
||||
"qs": "^6.10.1",
|
||||
"vue": "^3.2.20",
|
||||
"vue-router": "^4.0.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^14.1.0",
|
||||
"@commitlint/config-conventional": "^14.1.0",
|
||||
"@iconify/json": "^1.1.417",
|
||||
"@iconify/vue": "^3.0.0",
|
||||
"@types/chroma-js": "^2.1.3",
|
||||
"@types/qs": "^6.9.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
||||
"@typescript-eslint/parser": "^5.3.0",
|
||||
"@vicons/antd": "^0.11.0",
|
||||
"@vicons/carbon": "^0.11.0",
|
||||
"@vicons/fa": "^0.11.0",
|
||||
"@vicons/fluent": "^0.11.0",
|
||||
"@vicons/ionicons4": "^0.11.0",
|
||||
"@vicons/ionicons5": "^0.11.0",
|
||||
"@vicons/material": "^0.11.0",
|
||||
"@vicons/tabler": "^0.11.0",
|
||||
"@vitejs/plugin-vue": "^1.9.4",
|
||||
"@vue/compiler-sfc": "^3.2.21",
|
||||
"@vue/eslint-config-prettier": "^6.0.0",
|
||||
"@vue/eslint-config-typescript": "^9.0.0",
|
||||
"commitizen": "^4.2.4",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"cz-customizable": "^6.3.0",
|
||||
"dotenv": "^10.0.0",
|
||||
"eslint": "^8.1.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "^2.25.2",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-vue": "^8.0.3",
|
||||
"husky": "^7.0.4",
|
||||
"lint-staged": "^11.2.6",
|
||||
"patch-package": "^6.4.7",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"prettier": "^2.4.1",
|
||||
"rollup-plugin-visualizer": "^5.5.2",
|
||||
"sass": "^1.43.4",
|
||||
"typescript": "^4.4.4",
|
||||
"unplugin-icons": "^0.12.17",
|
||||
"unplugin-vue-components": "^0.17.0",
|
||||
"vite": "2.5.10",
|
||||
"vite-plugin-html": "^2.1.1",
|
||||
"vite-plugin-windicss": "^1.4.12",
|
||||
"vue-tsc": "^0.28.10",
|
||||
"vueuc": "^0.4.15",
|
||||
"windicss": "^3.2.0"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user