diff --git a/.coding-aider-plans/refactor_tools_toolcontent.md b/.coding-aider-plans/refactor_tools_toolcontent.md deleted file mode 100644 index 997ac4b..0000000 --- a/.coding-aider-plans/refactor_tools_toolcontent.md +++ /dev/null @@ -1,20 +0,0 @@ -[Coding Aider Plan] - -## Overview -This plan outlines the refactoring of existing tools to utilize a `ToolContent` component. This will standardize the structure and styling of tool content across the application, improving maintainability and user experience. - -## Problem Description -Currently, some tools directly render their content without using a common `ToolContent` component. This leads to inconsistencies in styling, layout, and overall structure. It also makes it harder to apply global changes or updates to the tool content areas. - -## Goals -- Identify tools that do not currently use `ToolContent`. -- Implement `ToolContent` in these tools. -- Ensure consistent styling and layout across all tools. - -## Additional Notes and Constraints -- The `ToolContent` component should be flexible enough to accommodate the different types of content used by each tool. -- Ensure that the refactoring does not introduce any regressions or break existing functionality. -- Consider creating a subplan if the number of tools requiring changes is large or if individual tools require complex modifications. - -## References -- Existing tools that already use `ToolContent` can serve as examples. diff --git a/.coding-aider-plans/refactor_tools_toolcontent_checklist.md b/.coding-aider-plans/refactor_tools_toolcontent_checklist.md deleted file mode 100644 index 50ef392..0000000 --- a/.coding-aider-plans/refactor_tools_toolcontent_checklist.md +++ /dev/null @@ -1,9 +0,0 @@ -[Coding Aider Plan - Checklist] - -- [ ] Create `ToolContent` component if it doesn't exist. -- [ ] Identify tools that do not use `ToolContent`. -- [x] For each identified tool: - - [x] Implement `ToolContent` wrapper. - - [ ] Adjust styling as needed to match existing design. - - [ ] Test the tool to ensure it functions correctly. -- [ ] Review all modified tools to ensure consistency. diff --git a/.coding-aider-plans/refactor_tools_toolcontent_context.yaml b/.coding-aider-plans/refactor_tools_toolcontent_context.yaml deleted file mode 100644 index 3fba323..0000000 --- a/.coding-aider-plans/refactor_tools_toolcontent_context.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -files: -- path: src\pages\tools\list\duplicate\index.tsx - readOnly: false -- path: src\pages\tools\list\index.ts - readOnly: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c062fe4..01d7b95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,34 +1,29 @@ name: CI - on: push: branches: - main + tags: + - 'v*' pull_request: branches: - main - jobs: test-and-build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: '18' - - name: Install dependencies run: npm install - - name: Run tests run: npm run test - - name: Build project run: npm run build - e2e-test: name: 'Playwright Tests' runs-on: ubuntu-latest @@ -49,6 +44,46 @@ jobs: name: playwright-report path: playwright-report/ retention-days: 30 + build-and-push-docker: + name: Build and Push Multi-Platform Docker Image + runs-on: ubuntu-latest + needs: + - test-and-build + - e2e-test + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: 'arm64,amd64' + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: iib0011/omni-tools + tags: | + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + 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 deploy: if: github.ref == 'refs/heads/main' needs: @@ -58,18 +93,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set up Node.js uses: actions/setup-node@v3 with: node-version: '18' - - name: Install dependencies run: npm install - - name: Build project run: npm run build - - name: Deploy to Netlify uses: nwtgck/actions-netlify@v1.2 with: diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 27386d7..68904c0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,33 +4,13 @@