From 24dff4e0d9654926c987c8e85ca8cb6338e1f610 Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Tue, 28 Dec 2021 21:39:29 +0800 Subject: [PATCH] fix: remove useModal.tsx --- .github/workflows/gh-pages.yml | 32 +- package.json | 26 +- public/index.html | 1 - src/api/login/index.ts | 16 - src/components/a-custom-modal/index.vue | 3 + src/components/iconfont/icon-font.tsx | 9 +- src/components/icons-select/index.vue | 2 +- src/hooks/useModal.tsx | 105 - src/router/generator-router.tsx | 6 +- src/views/shared/demos/custom-modal.vue | 18 +- .../shared/demos/form/basic-form/index.vue | 6 + .../shared/demos/form/rule-form/index.vue | 6 + yarn.lock | 1983 +++++++++-------- 13 files changed, 1076 insertions(+), 1137 deletions(-) delete mode 100644 src/hooks/useModal.tsx diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 65f829831..e3add557e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,16 +1,13 @@ -name: deploy - +name: syncToGitee env: # 7 GiB by default on GitHub, setting to 6 GiB # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources NODE_OPTIONS: --max-old-space-size=6144 - on: push: branches: [main] - jobs: - deploy: + repo-sync: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -33,3 +30,28 @@ jobs: personal_token: ${{ secrets.PERSONAL_TOKEN }} commit_message: Update ghPages force_orphan: true + + - name: Mirror the Github organization repos to Gitee. + uses: Yikun/hub-mirror-action@master + with: + src: 'github/buqiyuan' + dst: 'gitee/buqiyuan' + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + static_list: 'vue3-antd-admin' + force_update: true + debug: true + + - name: Build Gitee Pages + uses: yanglbme/gitee-pages-action@main + with: + # 注意替换为你的 Gitee 用户名 + gitee-username: buqiyuan + # 注意在 Settings->Secrets 配置 GITEE_PASSWORD + gitee-password: ${{ secrets.GITEE_PASSWORD }} + # 注意替换为你的 Gitee 仓库,仓库名严格区分大小写,请准确填写,否则会出错 + gitee-repo: buqiyuan/vue3-antd-admin + # 是否强制使用 HTTPS + https: false + # 要部署的分支,默认是 master,若是其他分支,则需要指定(指定的分支必须存在) + branch: gh-pages diff --git a/package.json b/package.json index e497ad56f..ab5abe75f 100644 --- a/package.json +++ b/package.json @@ -17,15 +17,16 @@ "test prod gzip": "http-server dist --cors --gzip -c-1" }, "dependencies": { - "@vueuse/core": "^7.4.0", - "ant-design-vue": "3.0.0-alpha.15", + "@vueuse/core": "^7.4.1", + "ant-design-vue": "3.0.0-beta.3", "axios": "^0.24.0", - "core-js": "^3.20.0", + "core-js": "^3.20.1", "dayjs": "^1.10.7", "lodash": "^4.17.21", "mitt": "^3.0.0", + "mockjs": "^1.1.0", "nprogress": "^1.0.0-1", - "pinia": "2.0.8", + "pinia": "2.0.9", "qs": "^6.10.2", "socket.io-client": "4.4.0", "sortablejs": "^1.14.0", @@ -33,13 +34,13 @@ "vue-router": "^4.0.12" }, "devDependencies": { - "@commitlint/cli": "^15.0.0", - "@commitlint/config-conventional": "^15.0.0", + "@commitlint/cli": "^16.0.1", + "@commitlint/config-conventional": "^16.0.0", "@types/lodash": "^4.14.178", - "@types/node": "^17.0.3", + "@types/node": "^17.0.5", "@types/webpack-env": "^1.16.3", - "@typescript-eslint/eslint-plugin": "^5.8.0", - "@typescript-eslint/parser": "^5.8.0", + "@typescript-eslint/eslint-plugin": "^5.8.1", + "@typescript-eslint/parser": "^5.8.1", "@vue/cli-plugin-babel": "^5.0.0-rc.1", "@vue/cli-plugin-eslint": "^5.0.0-rc.1", "@vue/cli-plugin-router": "^5.0.0-rc.1", @@ -47,7 +48,7 @@ "@vue/cli-plugin-vuex": "^5.0.0-rc.1", "@vue/cli-service": "^5.0.0-rc.1", "@vue/compiler-sfc": "^3.2.26", - "@vue/eslint-config-typescript": "^9.1.0", + "@vue/eslint-config-typescript": "^10.0.0", "babel-plugin-import": "^1.13.3", "babel-plugin-lodash": "^3.3.4", "commitizen": "^4.2.4", @@ -60,9 +61,8 @@ "husky": "^7.0.4", "less": "^4.1.2", "less-loader": "10.2.0", - "lint-staged": "^12.1.3", + "lint-staged": "^12.1.4", "lodash-webpack-plugin": "^0.11.6", - "mockjs": "^1.1.0", "path-browserify": "^1.0.1", "postcss-html": "^1.3.0", "prettier": "^2.5.1", @@ -109,7 +109,7 @@ "stylelint --fix" ], "*.{scss,less,styl,html}": [ - "stylelint --fix", + "stylelint --allow-empty-input", "prettier --write" ], "*.md": [ diff --git a/public/index.html b/public/index.html index d0a8aaadc..953c8f203 100644 --- a/public/index.html +++ b/public/index.html @@ -8,7 +8,6 @@ <%= htmlWebpackPlugin.options.title %> -