diff --git a/.github/workflows/auto-format-commit.yml b/.github/workflows/auto-format-commit.yml index 84baf2d..59a3688 100644 --- a/.github/workflows/auto-format-commit.yml +++ b/.github/workflows/auto-format-commit.yml @@ -1,53 +1,53 @@ name: Auto Format on: - pull_request_target: - types: [opened, synchronize] + pull_request_target: + types: [opened, synchronize] jobs: - auto-fix: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} + auto-fix: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.head_ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - - name: Set up Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: "latest" + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: "latest" - - name: Install dependencies - run: bun install + - name: Install dependencies + run: bun install - - name: Run formatter - run: bun run format + - name: Run formatter + run: bun run format - - name: Check for changes - id: check_changes - run: | - git diff --exit-code || echo "has_changes=true" >> $GITHUB_ENV + - name: Check for changes + id: check_changes + run: | + git diff --exit-code || echo "has_changes=true" >> $GITHUB_ENV - - name: Commit and push changes - if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true' - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "chore: auto-fix linting and formatting issues" - commit_options: "--no-verify" - file_pattern: "." + - name: Commit and push changes + if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true' + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: auto-fix linting and formatting issues" + commit_options: "--no-verify" + file_pattern: "." - - name: Add PR comment - if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true' - uses: actions/github-script@v7 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Linting and formatting issues were automatically fixed. Please review the changes.' - }); + - name: Add PR comment + if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true' + uses: actions/github-script@v7 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Linting and formatting issues were automatically fixed. Please review the changes.' + }); diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 17aabe6..aee6b97 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,42 +1,42 @@ name: Build and release static export on: - push: - tags: - - "v*" + push: + tags: + - "v*" jobs: - release: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Check out code - uses: actions/checkout@v4 - with: - fetch-depth: 0 + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Set up Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: "latest" + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: "latest" - - name: Install dependencies - run: bun install + - name: Install dependencies + run: bun install - - name: Build static export - run: | - bun run build-ignore-error + - name: Build static export + run: | + bun run build-ignore-error - - name: Compress dist folder - run: zip -r dist.zip dist + - name: Compress dist folder + run: zip -r dist.zip dist - - name: Release - uses: softprops/action-gh-release@v2 - with: - files: dist.zip - - - name: Changelog - run: bun x changelogithub - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: dist.zip + + - name: Changelog + run: bun x changelogithub + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.prettierrc.json b/.prettierrc.json index 0d556dc..397af40 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,12 +1,12 @@ { - "semi": false, - "singleQuote": false, - "printWidth": 100, - "tabWidth": 4, - "trailingComma": "all", - "importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], - "importOrderSeparation": true, - "importOrderSortSpecifiers": true, - "endOfLine": "auto", - "plugins": ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"] + "semi": false, + "singleQuote": false, + "printWidth": 100, + "tabWidth": 4, + "trailingComma": "all", + "importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], + "importOrderSeparation": true, + "importOrderSortSpecifiers": true, + "endOfLine": "auto", + "plugins": ["prettier-plugin-tailwindcss", "@trivago/prettier-plugin-sort-imports"] } diff --git a/bun.lockb b/bun.lockb index 5de484c..36fa3f4 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components.json b/components.json index d5b6312..4879b60 100644 --- a/components.json +++ b/components.json @@ -1,20 +1,20 @@ { - "$schema": "https://ui.shadcn.com/schema.json", - "style": "default", - "rsc": false, - "tsx": true, - "tailwind": { - "config": "tailwind.config.js", - "css": "src/index.css", - "baseColor": "neutral", - "cssVariables": true, - "prefix": "" - }, - "aliases": { - "components": "@/components", - "utils": "@/lib/utils", - "ui": "@/components/ui", - "lib": "@/lib", - "hooks": "@/hooks" - } -} \ No newline at end of file + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/index.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + } +} diff --git a/eslint.config.js b/eslint.config.js index 2a1f800..7a74e0f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,29 +1,27 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import tseslint from 'typescript-eslint' +import js from "@eslint/js" +import reactHooks from "eslint-plugin-react-hooks" +import reactRefresh from "eslint-plugin-react-refresh" +import globals from "globals" +import tseslint from "typescript-eslint" export default tseslint.config( - { ignores: ['dist'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, + { ignores: ["dist"] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ["**/*.{ts,tsx}"], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + "@typescript-eslint/no-explicit-any": "off", + "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], + indent: ["error", 4], + }, }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - "indent": ['error', 4], - }, - }, ) diff --git a/index.html b/index.html index 63c75e6..e20a260 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,14 @@ +
+ + + +