From 3e19af01a2dfb9ec6d479f78d6d43c7e0ab8e30b Mon Sep 17 00:00:00 2001 From: su469843 Date: Wed, 1 Jul 2026 05:34:30 +0000 Subject: [PATCH 01/11] =?UTF-8?q?feat:=20=E8=87=AA=E5=8A=A8=E6=9E=84?= =?UTF-8?q?=E5=BB=BADocker=E9=95=9C=E5=83=8F=E5=B9=B6=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=88=B0GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: traeagent --- .github/workflows/docker-publish.yml | 69 ++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..b08e434 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,69 @@ +name: Build and Push Docker Image + +on: + push: + branches: [main] + workflow_dispatch: + +env: + REGISTRY: ghcr.io + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Extract version from package.json + id: version + run: | + VERSION=$(node -p "require('./package.json').version") + echo "version=$VERSION" >> "$GITHUB_OUTPUT" + echo "Detected package version: $VERSION" + + - name: Lowercase image name + id: image + run: | + IMAGE_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + echo "image_name=$IMAGE_NAME" >> "$GITHUB_OUTPUT" + + - name: Set up QEMU (for multi-arch builds) + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ steps.image.outputs.image_name }} + tags: | + type=raw,value=latest + type=sha,format=short + type=raw,value=${{ steps.version.outputs.version }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + target: production + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max From afa625386b7bfa3cecd9f4314d355a8a5d97b794 Mon Sep 17 00:00:00 2001 From: su469843 Date: Wed, 1 Jul 2026 05:40:51 +0000 Subject: [PATCH 02/11] =?UTF-8?q?feat:=20=E8=87=AA=E5=8A=A8=E6=9E=84?= =?UTF-8?q?=E5=BB=BADocker=E9=95=9C=E5=83=8F=E5=B9=B6=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=88=B0GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: traeagent --- index.html | 10 +- src/components/ApiConfig.vue | 961 ++++++++++++----------------------- src/services/api.js | 52 +- src/stores/novel.js | 105 +--- src/style.css | 341 +++++++++++-- 5 files changed, 669 insertions(+), 800 deletions(-) diff --git a/index.html b/index.html index 53e6b5b..8c4fe16 100644 --- a/index.html +++ b/index.html @@ -2,12 +2,16 @@ - + - 91写作 - AI智能小说创作工具 + + 墨章 · AI 智能小说创作工具 + + +
- \ No newline at end of file + diff --git a/src/components/ApiConfig.vue b/src/components/ApiConfig.vue index 8ef4aa4..5e1187d 100644 --- a/src/components/ApiConfig.vue +++ b/src/components/ApiConfig.vue @@ -1,239 +1,97 @@