Skip to content

Commit

Permalink
v5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Jan 24, 2025
1 parent 3d993bb commit 6ed480c
Show file tree
Hide file tree
Showing 370 changed files with 11,439 additions and 6,883 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ node_modules
dist*
dist-ssr
*.local
*.tsbuildinfo
.eslintcache
.stylelintcache
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
shamefully-hoist=true
strict-peer-dependencies=false
engine-strict=true
verify-deps-before-run=prompt
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"json",
"jsonc",
"yaml"
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}
16 changes: 16 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://shadcn-vue.com/schema.json",
"style": "default",
"typescript": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/assets/index.css",
"baseColor": "neutral",
"cssVariables": true
},
"framework": "vite",
"aliases": {
"components": "@/ui/shadcn",
"utils": "@/utils"
}
}
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default antfu(
ignores: [
'public',
'dist*',
'src/ui/shadcn/ui',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.svg" />
<link rel="stylesheet" href="/browser_upgrade/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Expires" content="0">
Expand Down
7 changes: 7 additions & 0 deletions loading.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
background-color: snow;
}

.loading-container *::before,
.loading-container *::after {
box-sizing: content-box;
}

.loading-container .loading {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -169,13 +174,15 @@
position: relative;
margin-top: 20px;
font-size: 24px;
line-height: 1.5;
}

.loading-container .tips {
position: relative;
margin-top: 10px;
font-size: 16px;
opacity: 0.5;
line-height: 1.5;
}

.loading-container .tips::after {
Expand Down
114 changes: 59 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,116 +14,120 @@
"lint:tsc": "vue-tsc -b",
"lint:eslint": "eslint . --cache --fix",
"lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
"postinstall": "simple-git-hooks",
"preinstall": "npx only-allow pnpm"
"preinstall": "npx only-allow pnpm",
"postinstall": "simple-git-hooks"
},
"dependencies": {
"@antv/g2plot": "^2.4.32",
"@bytemd/plugin-gfm": "^1.21.0",
"@bytemd/vue-next": "^1.21.0",
"@headlessui/vue": "^1.7.23",
"@imengyu/vue3-context-menu": "^1.4.4",
"@tinymce/tinymce-vue": "^6.1.0",
"@visactor/vchart": "^1.13.0",
"@vue-office/docx": "^1.6.2",
"@vue-office/excel": "^1.7.11",
"@vue-office/pdf": "^2.0.9",
"@vueuse/components": "^12.0.0",
"@vueuse/core": "^12.0.0",
"@vueuse/integrations": "^12.0.0",
"@vee-validate/zod": "^4.15.0",
"@visactor/vchart": "^1.13.4",
"@vue-office/docx": "^1.6.3",
"@vue-office/excel": "^1.7.14",
"@vue-office/pdf": "^2.0.10",
"@vueuse/components": "^12.5.0",
"@vueuse/core": "^12.5.0",
"@vueuse/integrations": "^12.5.0",
"animate.css": "^4.1.1",
"axios": "^1.7.9",
"bytemd": "^1.21.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cropperjs": "^1.6.2",
"dayjs": "^1.11.13",
"defu": "^6.1.4",
"disable-devtool": "^0.3.8",
"echarts": "^5.5.1",
"element-plus": "^2.9.0",
"echarts": "^5.6.0",
"element-plus": "^2.9.3",
"eruda": "^3.4.1",
"floating-vue": "5.2.2",
"hotkeys-js": "^3.13.7",
"lodash-es": "^4.17.21",
"es-toolkit": "^1.31.0",
"hotkeys-js": "^3.13.9",
"lucide-vue-next": "^0.474.0",
"mitt": "^3.0.1",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"overlayscrollbars": "^2.10.1",
"overlayscrollbars-vue": "^0.5.9",
"path-browserify": "^1.0.1",
"path-to-regexp": "^8.2.0",
"pinia": "^2.3.0",
"pinia": "^2.3.1",
"print-js": "^1.6.0",
"qrcode": "^1.5.4",
"qs": "^6.13.1",
"qs": "^6.14.0",
"radix-vue": "^1.9.12",
"scule": "^1.3.0",
"splitpanes": "^3.1.5",
"swiper": "^11.1.15",
"tinymce": "^7.5.1",
"splitpanes": "^3.1.8",
"swiper": "^11.2.1",
"tailwind-merge": "^2.6.0",
"tinymce": "^7.6.1",
"ua-parser-js": "^2.0.0",
"vconsole": "^3.15.1",
"vee-validate": "^4.15.0",
"vue": "^3.5.13",
"vue-currency-input": "^3.1.0",
"vue-currency-input": "^3.2.1",
"vue-esign": "^1.1.4",
"vue-hooks-plus": "^2.2.1",
"vue-m-message": "^4.0.2",
"vue-router": "^4.5.0",
"vue3-count-to": "^1.1.2",
"vxe-table": "^4.7.16",
"xe-utils": "^3.5.32"
"vue-sonner": "^1.3.0",
"vxe-table": "^4.10.5",
"xe-utils": "^3.7.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@antfu/eslint-config": "3.11.2",
"@iconify/json": "^2.2.280",
"@iconify/vue": "^4.2.0",
"@antfu/eslint-config": "3.16.0",
"@faker-js/faker": "^9.4.0",
"@iconify/json": "^2.2.299",
"@iconify/vue": "^4.3.0",
"@stylistic/stylelint-config": "^2.0.0",
"@types/lodash-es": "^4.17.12",
"@types/mockjs": "^1.0.10",
"@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.3",
"@types/qrcode": "^1.5.5",
"@types/qs": "^6.9.17",
"@types/qs": "^6.9.18",
"@types/splitpanes": "^2.2.6",
"@unocss/eslint-plugin": "^0.65.1",
"@unocss/eslint-plugin": "^65.4.3",
"@unocss/preset-legacy-compat": "^65.4.3",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"autoprefixer": "^10.4.20",
"boxen": "^8.0.1",
"eslint": "^9.16.0",
"eslint": "^9.18.0",
"esno": "^4.8.0",
"fs-extra": "^11.2.0",
"fs-extra": "^11.3.0",
"http-server": "^14.1.1",
"inquirer": "^12.2.0",
"lint-staged": "^15.2.10",
"npm-run-all2": "^7.0.1",
"inquirer": "^12.3.2",
"lint-staged": "^15.4.2",
"npm-run-all2": "^7.0.2",
"picocolors": "^1.1.1",
"plop": "^4.0.1",
"postcss": "^8.4.49",
"postcss": "^8.5.1",
"postcss-nested": "^7.0.2",
"sass-embedded": "^1.82.0",
"sass-embedded": "^1.83.4",
"simple-git-hooks": "^2.11.1",
"stylelint": "^16.11.0",
"stylelint-config-recess-order": "^5.1.1",
"stylelint": "^16.12.0",
"stylelint-config-recess-order": "^6.0.0",
"stylelint-config-standard-scss": "^14.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-scss": "^6.10.0",
"stylelint-scss": "^6.10.1",
"svgo": "^3.3.2",
"typescript": "^5.6.3",
"unocss": "^0.65.1",
"typescript": "^5.7.3",
"unocss": "^65.4.3",
"unocss-preset-animations": "^1.1.1",
"unocss-preset-scrollbar": "^0.3.1",
"unplugin-auto-import": "^0.18.6",
"unplugin-turbo-console": "^1.10.6",
"unplugin-vue-components": "^0.27.5",
"vite": "^6.0.3",
"unplugin-auto-import": "^19.0.0",
"unplugin-turbo-console": "^1.11.1",
"unplugin-vue-components": "^28.0.0",
"vite": "^6.0.11",
"vite-plugin-app-loading": "^0.3.0",
"vite-plugin-archiver": "^0.1.1",
"vite-plugin-banner": "^0.8.0",
"vite-plugin-compression2": "^1.3.3",
"vite-plugin-fake-server": "^2.1.4",
"vite-plugin-env-parse": "^1.0.15",
"vite-plugin-fake-server": "^2.2.0",
"vite-plugin-pages": "^0.32.4",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-devtools": "^7.6.7",
"vite-plugin-vue-devtools": "^7.7.1",
"vite-plugin-vue-meta-layouts": "^0.5.1",
"vue-tsc": "^2.1.10"
"vue-tsc": "^2.2.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
Expand Down
23 changes: 12 additions & 11 deletions plop-templates/mock/mock.hbs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import Mock from 'mockjs'
import { faker } from '@faker-js/faker'
import { defineFakeRoute } from 'vite-plugin-fake-server/client'

const AllList: any[] = []
for (let i = 0; i < 50; i++) {
AllList.push(Mock.mock({
id: '@id',
title: '@ctitle(10, 20)',
}))
AllList.push({
id: i + 1,
title: faker.color.human(),
})
}

export default [
export default defineFakeRoute([
{
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/list',
method: 'get',
response: (option: any) => {
const { title, from, limit } = option.query
response: ({ query }) => {
const { title, from, limit } = query
const list = AllList.filter((item) => {
return title ? item.title.includes(title) : true
})
Expand All @@ -33,8 +34,8 @@ export default [
{
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/detail',
method: 'get',
response: (option: any) => {
const info = AllList.filter(item => item.id === option.query.id)
response: ({ query }) => {
const info = AllList.filter(item => item.id === query.id)
return {
error: '',
status: 1,
Expand Down Expand Up @@ -81,4 +82,4 @@ export default [
}
},
},
]
])
Loading

0 comments on commit 6ed480c

Please sign in to comment.