From f4f639e072e673fed0f24865539c81e9532e796a Mon Sep 17 00:00:00 2001 From: stapxs <1007028430.stapx@gmail.com> Date: Fri, 19 Jul 2024 10:33:50 +0800 Subject: [PATCH] =?UTF-8?q?CI=20=E6=B5=81=E7=A8=8B=E4=BC=98=E5=8C=96=20:wh?= =?UTF-8?q?eelchair:=20=E8=BF=BD=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=A1=E6=81=AF:=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=89=93=E5=BC=80=20GitHub,=20=E7=82=B9=E5=87=BB=E6=89=93?= =?UTF-8?q?=E5=BC=80=20blog,=20=E5=88=87=E6=8D=A2=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E4=B8=BB=E9=A2=98,=20=E5=88=87=E6=8D=A2=E4=B8=BB=E4=BD=93?= =?UTF-8?q?=E8=89=B2,=20=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF;=20=E6=89=80?= =?UTF-8?q?=E6=9C=89=E7=BB=9F=E8=AE=A1=E5=8F=AA=E8=AE=A1=E6=AC=A1,=20?= =?UTF-8?q?=E4=B8=8D=E4=B8=8A=E4=BC=A0=E5=85=B6=E4=BB=96=E5=86=85=E5=AE=B9?= =?UTF-8?q?=20:construction=5Fworker:=20=E7=BB=99=20pr=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=20lint=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-app.yml | 11 ----------- .github/workflows/pr-check.yml | 28 ++++++++++++++++++++++++++++ package.json | 2 +- src/App.vue | 1 - src/components/AboutPan.vue | 22 ++++++++++++++++++---- src/function/utils/msgUtil.ts | 3 +++ src/pages/options/OptView.vue | 18 ++++++++++++++++-- 7 files changed, 66 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/pr-check.yml diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index bc904c3b..1158aa36 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -43,17 +43,6 @@ jobs: fi # 获取版本号 echo VERSION=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT - # 设置 Node.js 版本 - - name: Load Node.js - uses: actions/setup-node@v4 - with: - node-version: 18.x - # 更新依赖 - - name: Install - run: yarn - # 代码检查 - - name: Lint - run: yarn lint # ========================= 构建 Web 版本 ========================= build-pages: diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 00000000..664bd546 --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,28 @@ +# 在主分支上构建 +name: lint +on: + pull_request: # PR 触发 + branches: + - next + +jobs: + lint: + runs-on: ubuntu-latest + steps: + # 拉取代码 + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + persist-credentials: false + # 设置 Node.js 版本 + - name: Load Node.js + uses: actions/setup-node@v4 + with: + node-version: 18.x + # 更新依赖 + - name: Install + run: yarn + # 代码检查 + - name: Lint + run: yarn lint \ No newline at end of file diff --git a/package.json b/package.json index b8dab9bc..255e7ed4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stapxs-qq-lite", - "version": "2.7.17", + "version": "2.7.18", "private": false, "author": "Stapx Steve [林槐]", "description": "一个兼容 OneBot 的非官方网页版 QQ 客户端,使用 Vue 重制的全新版本。", diff --git a/src/App.vue b/src/App.vue index ea1c362b..7d286a3a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -257,7 +257,6 @@ export default defineComponent({ this.tags.page = view }, barMainClick() { - console.log(1111) if(loginInfo.status) { this.changeTab('信息', 'Messages', false) } else { diff --git a/src/components/AboutPan.vue b/src/components/AboutPan.vue index 258d254c..46907726 100644 --- a/src/components/AboutPan.vue +++ b/src/components/AboutPan.vue @@ -25,9 +25,9 @@ {{ $t('description') }} v{{ packageInfo.version }}
@@ -127,12 +127,14 @@