diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..866e8ee --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.html linguist-detectable=false +*.vue linguist-detectable=true diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 33ef0da..4891842 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -3,7 +3,7 @@ name: 构建并部署前端到生产环境 on: push: branches: - - main + - develop - dev - test @@ -28,7 +28,7 @@ jobs: - name: 设置镜像标签 id: tag run: | - if [ "${{ github.ref }}" = "refs/heads/main" ]; then + if [ "${{ github.ref }}" = "refs/heads/develop" ]; then echo "tag=latest" >> $GITHUB_OUTPUT elif [ "${{ github.ref }}" = "refs/heads/dev" ]; then echo "tag=dev" >> $GITHUB_OUTPUT @@ -52,8 +52,8 @@ jobs: docker push ${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }} docker push ${{ env.IMAGE_NAME }}:${{ github.sha }} - - name: 部署到本地(仅 main 分支) - if: github.ref == 'refs/heads/main' + - name: 部署到本地(仅 develop 分支) + if: github.ref == 'refs/heads/develop' run: | mkdir -p ${{ env.DEPLOY_DIR }} diff --git a/.gitignore b/.gitignore index 71e2bf4..9fc774f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,22 @@ logs *.log npm-debug.log* +npminstall-debug.log yarn-debug.log* yarn-error.log* +# Common local files +dist-ssr +*.local +.cursorrules +.claude +.codex +.env.development +.env.production +.scratch +.agents +Thumbs.db + # Runtime data pids *.pid @@ -91,4 +104,4 @@ dist/ # OS .DS_Store -Thumbs.db \ No newline at end of file +Thumbs.db diff --git a/App.vue b/App.vue index 6737a67..914dd7f 100644 --- a/App.vue +++ b/App.vue @@ -7,13 +7,18 @@ \ No newline at end of file + diff --git a/components/FunctionCard.vue b/components/FunctionCard.vue index be23dd3..5831030 100644 --- a/components/FunctionCard.vue +++ b/components/FunctionCard.vue @@ -1,16 +1,10 @@ diff --git a/components/WifiCard.vue b/components/WifiCard.vue index 7cb20ae..ca08954 100644 --- a/components/WifiCard.vue +++ b/components/WifiCard.vue @@ -3,7 +3,8 @@ WiFi配置 - + + @@ -12,25 +13,27 @@ 网络名称 {{ deviceInfo.ssidName }} - 连接密码 {{ deviceInfo.ssidPwd }} - diff --git a/pages/asset-package-history/asset-package-history.vue b/pages/asset-package-history/asset-package-history.vue index 62d2258..4647b4f 100644 --- a/pages/asset-package-history/asset-package-history.vue +++ b/pages/asset-package-history/asset-package-history.vue @@ -1,8 +1,11 @@