From 0a34802b7ef2d2727df4b3b769bd4d664ace2bfa Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Wed, 26 Jan 2022 21:41:26 +0800 Subject: [PATCH] feat(views): add about page --- .github/workflows/gh-pages.yml | 5 + components.d.ts | 44 + package.json | 60 +- public/index.html | 37 - src/components/core/draggable-modal/index.vue | 3 +- src/layout/header/index.vue | 7 +- src/layout/logo/index.vue | 2 +- src/layout/menu/menu-item.vue | 10 +- src/layout/menu/menu.vue | 23 +- src/locales/lang/en-US/routes/account.ts | 4 + src/locales/lang/zh-CN/routes/account.ts | 4 + src/publicPath.ts | 2 - src/router/staticModules/account.ts | 33 + src/router/staticModules/index.ts | 3 +- src/views/account/about.vue | 59 ++ src/views/account/settings.vue | 1 + src/views/system/permission/menu/index.vue | 2 +- .../system/permission/role/formSchemas.ts | 4 +- src/views/system/permission/user/index.vue | 2 +- tsconfig.json | 19 +- types/global.d.ts | 14 +- types/shims/shims-tsx.d.ts | 12 +- types/vue-router.d.ts | 5 +- vite.config.ts | 23 +- yarn.lock | 782 +++++++++--------- 25 files changed, 668 insertions(+), 492 deletions(-) create mode 100644 components.d.ts delete mode 100644 public/index.html create mode 100644 src/locales/lang/en-US/routes/account.ts create mode 100644 src/locales/lang/zh-CN/routes/account.ts delete mode 100644 src/publicPath.ts create mode 100644 src/router/staticModules/account.ts create mode 100644 src/views/account/about.vue create mode 100644 src/views/account/settings.vue diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 76ed6c19..9e268a7c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -6,12 +6,17 @@ env: on: push: branches: [main] + jobs: repo-sync: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + # 设置服务器时区为东八区 + - name: Set time zone + run: sudo timedatectl set-timezone 'Asia/Shanghai' + - name: Setup Node.js v14.x uses: actions/setup-node@v1 with: diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 00000000..9e52982e --- /dev/null +++ b/components.d.ts @@ -0,0 +1,44 @@ +// generated by unplugin-vue-components +// We suggest you to commit this file into source control +// Read more: https://github.com/vuejs/vue-next/pull/3399 + +declare module 'vue' { + export interface GlobalComponents { + ACard: typeof import('ant-design-vue/es')['Card']; + AForm: typeof import('ant-design-vue/es')['Form']; + AFormItem: typeof import('ant-design-vue/es')['FormItem']; + AInput: typeof import('ant-design-vue/es')['Input']; + AInputSearch: typeof import('ant-design-vue/es')['InputSearch']; + ALayout: typeof import('ant-design-vue/es')['Layout']; + ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent']; + ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']; + BasicBasicHelp: typeof import('./src/components/basic/basic-help/index.vue')['default']; + BasicButtonButton: typeof import('./src/components/basic/button/button.vue')['default']; + BasicCheckBox: typeof import('./src/components/basic/check-box/index.vue')['default']; + BasicContextMenuSrcContextMenu: typeof import('./src/components/basic/context-menu/src/ContextMenu.vue')['default']; + BasicExcelSrcImportExcel: typeof import('./src/components/basic/excel/src/ImportExcel.vue')['default']; + BasicIconsSelect: typeof import('./src/components/basic/icons-select/index.vue')['default']; + BasicLocalePicker: typeof import('./src/components/basic/locale-picker/index.vue')['default']; + BasicLockscreen: typeof import('./src/components/basic/lockscreen/index.vue')['default']; + BasicLockscreenHuaweiCharge: typeof import('./src/components/basic/lockscreen/huawei-charge.vue')['default']; + BasicLockscreenLockscreen: typeof import('./src/components/basic/lockscreen/lockscreen.vue')['default']; + BasicLockscreenXiaomiCharge: typeof import('./src/components/basic/lockscreen/xiaomi-charge.vue')['default']; + BasicProgress: typeof import('./src/components/basic/progress/index.vue')['default']; + BasicSplitPanel: typeof import('./src/components/basic/split-panel/index.vue')['default']; + BasicSvgIconSvgIcon: typeof import('./src/components/basic/svg-icon/svg-icon.vue')['default']; + BasicTitleI18n: typeof import('./src/components/basic/title-i18n/index.vue')['default']; + CoreDraggableModal: typeof import('./src/components/core/draggable-modal/index.vue')['default']; + CoreDynamicTableComponentsQueryForm: typeof import('./src/components/core/dynamic-table/components/query-form/index.vue')['default']; + CoreDynamicTableComponentsTableAction: typeof import('./src/components/core/dynamic-table/components/table-action.vue')['default']; + CoreDynamicTableComponentsTableSettings: typeof import('./src/components/core/dynamic-table/components/table-settings/index.vue')['default']; + CoreDynamicTableComponentsTableSettingsColumnSetting: typeof import('./src/components/core/dynamic-table/components/table-settings/column-setting.vue')['default']; + CoreDynamicTableComponentsTableSettingsRefreshSetting: typeof import('./src/components/core/dynamic-table/components/table-settings/refresh-setting.vue')['default']; + CoreDynamicTableComponentsTableSettingsSizeSetting: typeof import('./src/components/core/dynamic-table/components/table-settings/size-setting.vue')['default']; + CoreDynamicTableComponentsToolBar: typeof import('./src/components/core/dynamic-table/components/tool-bar/index.vue')['default']; + CoreDynamicTableDynamicTable: typeof import('./src/components/core/dynamic-table/dynamic-table.vue')['default']; + CoreSchemaFormSchemaForm: typeof import('./src/components/core/schema-form/schema-form.vue')['default']; + CoreSchemaFormSchemaFormItem: typeof import('./src/components/core/schema-form/schema-form-item.vue')['default']; + } +} + +export {}; diff --git a/package.json b/package.json index f8df7215..8423f089 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,11 @@ { "name": "vite-vue3-admin", "version": "0.1.0", - "private": true, + "author": { + "name": "buqiyuan", + "email": "1743369777@qq.com", + "url": "https://github.com/buqiyuan" + }, "scripts": { "serve": "npm run dev", "dev": "vite", @@ -18,67 +22,71 @@ "test:br": "npx http-server dist --cors --brotli -c-1" }, "dependencies": { - "@vueuse/core": "^7.5.3", - "ant-design-vue": "3.0.0-beta.4", - "axios": "^0.24.0", - "core-js": "^3.20.2", + "@vueuse/core": "^7.5.5", + "ant-design-vue": "3.0.0-beta.8", + "axios": "^0.25.0", + "core-js": "^3.20.3", "dayjs": "^1.10.7", "file-saver": "^2.0.5", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "nprogress": "^1.0.0-1", "pinia": "2.0.9", - "qs": "^6.10.2", + "qs": "^6.10.3", "socket.io-client": "^4.4.1", "sortablejs": "^1.14.0", - "vue": "^3.2.26", - "vue-i18n": "^9.2.0-beta.26", + "vue": "^3.2.29", + "vue-i18n": "^9.2.0-beta.29", "vue-router": "^4.0.12", - "xlsx": "^0.17.4" + "xlsx": "^0.17.5" }, "devDependencies": { - "@commitlint/cli": "^16.0.2", + "@commitlint/cli": "^16.1.0", "@commitlint/config-conventional": "^16.0.0", "@types/lodash-es": "^4.17.5", - "@types/node": "^17.0.8", - "@typescript-eslint/eslint-plugin": "^5.9.0", - "@typescript-eslint/parser": "^5.9.0", + "@types/node": "^17.0.12", + "@typescript-eslint/eslint-plugin": "^5.10.1", + "@typescript-eslint/parser": "^5.10.1", "@vitejs/plugin-legacy": "^1.6.4", - "@vitejs/plugin-vue": "^2.0.1", + "@vitejs/plugin-vue": "^2.1.0", "@vitejs/plugin-vue-jsx": "^1.3.3", - "@vue/compiler-sfc": "^3.2.26", + "@vue/compiler-sfc": "^3.2.29", "commitizen": "^4.2.4", "cross-env": "^7.0.3", - "eslint": "^8.6.0", + "eslint": "^8.7.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-vue": "^8.2.0", + "eslint-plugin-vue": "^8.3.0", "gh-pages": "^3.2.3", "husky": "^7.0.4", "less": "^4.1.2", "less-loader": "10.2.0", - "lint-staged": "^12.1.7", + "lint-staged": "^12.3.1", "lodash-webpack-plugin": "^0.11.6", "mockjs": "^1.1.0", "postcss-html": "^1.3.0", "prettier": "^2.5.1", - "stylelint": "^14.2.0", + "stylelint": "^14.3.0", "stylelint-config-html": "^1.0.0", "stylelint-config-prettier": "^9.0.3", "stylelint-config-recommended": "^6.0.0", "stylelint-config-standard": "^24.0.0", "stylelint-order": "^5.0.0", - "typescript": "^4.5.4", - "unplugin-vue-components": "^0.17.11", - "vite": "^2.7.10", + "typescript": "^4.5.5", + "unplugin-vue-components": "^0.17.14", + "vite": "^2.7.13", "vite-plugin-mock": "^2.9.6", "vite-plugin-svg-icons": "^1.1.0", - "vite-plugin-windicss": "^1.6.2", - "vue-eslint-parser": "^8.0.1", - "windicss": "^3.4.2" + "vite-plugin-windicss": "^1.6.3", + "vue-eslint-parser": "^8.2.0", + "windicss": "^3.4.3" }, "__npminstall_done": false, - "homepage": "git@buqiyuan.github.io/vite-vue3-admin", + "repository": { + "type": "git", + "url": "https://github.com/buqiyuan/vue3-antd-admin" + }, + "homepage": "https://buqiyuan.gitee.io/vite-vue3-admin", "keywords": [ "vue", "ant-design-vue", diff --git a/public/index.html b/public/index.html deleted file mode 100644 index d0a8aaad..00000000 --- a/public/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - - -
- - - - - - - diff --git a/src/components/core/draggable-modal/index.vue b/src/components/core/draggable-modal/index.vue index 2ebf6331..0f4a1e92 100644 --- a/src/components/core/draggable-modal/index.vue +++ b/src/components/core/draggable-modal/index.vue @@ -271,6 +271,7 @@ left: 0 !important; width: 100% !important; height: 100% !important; + max-width: 100vw !important; } .ant-modal-content { width: 100% !important; @@ -305,7 +306,7 @@ } } .ant-modal-content { - // width: ~'v-bind("props.width")px'; + /* width: ~'v-bind("props.width")px'; */ display: flex; flex-direction: column; width: 100%; diff --git a/src/layout/header/index.vue b/src/layout/header/index.vue index 18d09e85..7434e59a 100644 --- a/src/layout/header/index.vue +++ b/src/layout/header/index.vue @@ -36,8 +36,11 @@ {{ userInfo.name }} -