diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index ec09cf2..b761e98 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -47,16 +47,12 @@ jobs: - name: Build run: pnpm run build - - name: Setup Pages - uses: actions/configure-pages@v3 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 with: - # Upload dist repository - path: './dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + deploy_key: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist - name: Sync to Gitee uses: wearerequired/git-mirror-action@master diff --git a/env.d.ts b/env.d.ts index aab25cf..122e4eb 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,5 +1,7 @@ /// +declare const LATEST_COMMIT_HASH: string + declare global { interface Navigator { control: any diff --git a/package.json b/package.json index d576593..64666d5 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "vite": "^5.1.7", "vite-plugin-cdn-import": "0.3.5", "vite-plugin-commonjs": "^0.10.1", - "vue-tsc": "^2.0.6" + "vue-tsc": "^2.0.6", + "git-last-commit": "^1.0.1" }, "lint-staged": { "*.{js,ts,vue,jsx,tsx}": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8f9c111..b11c9c0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,6 +103,9 @@ devDependencies: eslint-plugin-vue: specifier: ^9.17.0 version: 9.24.0(eslint@8.57.0) + git-last-commit: + specifier: ^1.0.1 + version: 1.0.1 husky: specifier: ^9.0.11 version: 9.0.11 @@ -2465,6 +2468,10 @@ packages: engines: {node: '>=16'} dev: true + /git-last-commit@1.0.1: + resolution: {integrity: sha512-FDSgeMqa7GnJDxt/q0AbrxbfeTyxp4ImxEw1e4nw6NUHA5FMhFUq33dTXI4Xdgcj1VQ1q5QLWF6WxFrJ8KCBOg==} + dev: true + /git-raw-commits@4.0.0: resolution: {integrity: sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==} engines: {node: '>=16'} diff --git a/src/App.vue b/src/App.vue index a24d59c..289a969 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,16 +6,16 @@ - - - - - - - - - - + +
+ +
+

切换至手机模式才可正常使用

+

1. 按 F12 调出控制台

+

2. 按 Ctrl+Shift+M,或点击下面图标

+
+ +