diff --git a/.env.example b/.env.example index dd95e80fa1..72402162d6 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,8 @@ # secure password, can use `openssl rand -hex 32` NUXT_SESSION_PASSWORD="" -# HMAC secret for image-proxy and OG image URL signing, can use `openssl rand -hex 32` +# HMAC secret for image-proxy, can use `openssl rand -hex 32` NUXT_IMAGE_PROXY_SECRET="" + +# root of Nuxt-derived secrets such as OG image URL signing (at least 32 characters), can use `openssl rand -hex 32` +NUXT_APP_SECRET="" diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index bd0db4ed67..3fc52d7f43 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -27,7 +27,7 @@ jobs: persist-credentials: false fetch-depth: 0 - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index df10c39c86..4e54129b99 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -28,7 +28,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e8f0b6e7f..fac7f2efd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version sfw: true @@ -50,7 +50,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true @@ -68,7 +68,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true @@ -77,27 +77,26 @@ jobs: - name: 🧪 Unit tests run: vp test --project unit --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml - - parallel: - - name: ⬆︎ Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 - with: - disable_search: true - files: test-report.junit.xml - flags: unit - report_type: test_results - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - - name: ⬆︎ Upload coverage reports to Codecov - if: ${{ !cancelled() }} - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 - with: - disable_search: true - files: coverage/clover.xml - flags: unit - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: ⬆︎ Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + disable_search: true + files: test-report.junit.xml + flags: unit + report_type: test_results + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + - name: ⬆︎ Upload coverage reports to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + disable_search: true + files: coverage/clover.xml + flags: unit + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} test: name: 🧪 Component tests @@ -108,7 +107,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true @@ -120,33 +119,32 @@ jobs: - name: 🧪 Component tests run: vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml - - parallel: - - name: ⬆︎ Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 - with: - disable_search: true - files: test-report.junit.xml - flags: component - report_type: test_results - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - - name: ⬆︎ Upload coverage reports to Codecov - if: ${{ !cancelled() }} - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 - with: - disable_search: true - files: coverage/clover.xml - flags: component - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: ⬆︎ Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + disable_search: true + files: test-report.junit.xml + flags: component + report_type: test_results + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + - name: ⬆︎ Upload coverage reports to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + disable_search: true + files: coverage/clover.xml + flags: component + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} browser: name: 🖥️ Browser tests runs-on: ubuntu-26.04-arm container: - image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e + image: mcr.microsoft.com/playwright:v1.64.1-noble@sha256:47b510dd9230bf0b9bfc9b20102241e577ea7a99334ab4c3ca19f19770e9b8ea steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -163,7 +161,7 @@ jobs: run: apt-get update && apt-get install --yes build-essential shell: bash - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true @@ -201,7 +199,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true @@ -225,7 +223,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true @@ -243,7 +241,7 @@ jobs: with: persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version sfw: true diff --git a/.github/workflows/deploy-canary.yml b/.github/workflows/deploy-canary.yml index 43d5f6f57d..363730cb2e 100644 --- a/.github/workflows/deploy-canary.yml +++ b/.github/workflows/deploy-canary.yml @@ -22,7 +22,7 @@ jobs: persist-credentials: false fetch-depth: 0 - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version run-install: false diff --git a/.github/workflows/lunaria.yml b/.github/workflows/lunaria.yml index 2b87312ac1..3d6253d84b 100644 --- a/.github/workflows/lunaria.yml +++ b/.github/workflows/lunaria.yml @@ -30,7 +30,7 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version cache: true diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 2b674fd4f6..cecd77d48c 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -26,7 +26,7 @@ jobs: fetch-depth: 0 persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version run-install: false diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index a985a11137..40ec2aded9 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -28,7 +28,7 @@ jobs: fetch-depth: 0 persist-credentials: true - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version run-install: false @@ -66,7 +66,7 @@ jobs: - name: 📦 Install dependencies if: steps.check.outputs.skip == 'false' - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: sfw: true run-install: | @@ -106,14 +106,14 @@ jobs: ref: release persist-credentials: false - - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + - uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: node-version-file: .node-version registry-url: https://registry.npmjs.org run-install: false - name: 📦 Install dependencies - uses: voidzero-dev/setup-vp@313600b80b104eadebb9111787d37a2e83e014ca # v1.17.0 + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 with: sfw: true run-install: | diff --git a/.nuxtrc b/.nuxtrc index 0e6b68e606..7fe0c55cb0 100644 --- a/.nuxtrc +++ b/.nuxtrc @@ -1 +1 @@ -setups.@nuxt/test-utils="4.1.0" \ No newline at end of file +setups.@nuxt/test-utils="4.4.0" \ No newline at end of file diff --git a/.storybook/main.ts b/.storybook/main.ts index caeade8193..c43fd7ea37 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -17,7 +17,11 @@ const config = { name: '@storybook-vue/nuxt', options: { docgen: { plugin: 'vue-component-meta', tsconfig: '.nuxt/tsconfig.app.json' } }, }, - staticDirs: ['./.public', { from: '../public', to: '/' }], + staticDirs: [ + './.public', + { from: '../public', to: '/' }, + { from: '../assets/fonts', to: '/fonts' }, + ], features: { backgrounds: false, }, diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index c626f23ef8..ac934afe6b 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -3,52 +3,17 @@ which is disabled in Storybook at this time) */ @font-face { font-family: 'Geist'; - font-weight: 400; + font-weight: 100 900; font-style: normal; font-display: swap; - src: url('/fonts/Geist-Regular.ttf') format('truetype'); - } - @font-face { - font-family: 'Geist'; - font-weight: 500; - font-style: normal; - font-display: swap; - src: url('/fonts/Geist-Medium.ttf') format('truetype'); - } - @font-face { - font-family: 'Geist'; - font-weight: 600; - font-style: normal; - font-display: swap; - src: url('/fonts/Geist-SemiBold.ttf') format('truetype'); - } - @font-face { - font-family: 'Geist'; - font-weight: 700; - font-style: normal; - font-display: swap; - src: url('/fonts/Geist-Bold.ttf') format('truetype'); - } - @font-face { - font-family: 'Geist Mono'; - font-weight: 400; - font-style: normal; - font-display: swap; - src: url('/fonts/GeistMono-Regular.ttf') format('truetype'); - } - @font-face { - font-family: 'Geist Mono'; - font-weight: 500; - font-style: normal; - font-display: swap; - src: url('/fonts/GeistMono-Medium.ttf') format('truetype'); + src: url('/fonts/Geist-Variable.woff2') format('woff2'); } @font-face { font-family: 'Geist Mono'; - font-weight: 700; + font-weight: 100 900; font-style: normal; font-display: swap; - src: url('/fonts/GeistMono-Bold.ttf') format('truetype'); + src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); } html { -webkit-font-smoothing: antialiased; @@ -61,6 +26,18 @@ background-color: var(--bg, oklch(0.171 0 0)) !important; } +