Skip to content

Commit 54e003c

Browse files
committed
Merge branch 'main' into userquin/feat-add-contributors-popup-card
# Conflicts: # app/components/Link/Base.vue # app/pages/about.vue
2 parents 88a16d5 + 365bd9f commit 54e003c

File tree

231 files changed

+20801
-4242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+20801
-4242
lines changed

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#secure password, can use openssl rand -hex 32
2-
NUXT_SESSION_PASSWORD=""
2+
NUXT_SESSION_PASSWORD=""
3+
4+
#HMAC secret for image proxy URL signing, can use openssl rand -hex 32
5+
NUXT_IMAGE_PROXY_SECRET=""

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-24.04-arm
1919

2020
steps:
21-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

2323
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2424
with:

.github/workflows/chromatic.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: chromatic
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
chromatic:
18+
name: 📚 Chromatic
19+
runs-on: ubuntu-24.04-arm
20+
21+
steps:
22+
- name: ☑️ Checkout
23+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
24+
with:
25+
fetch-depth: 0
26+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
27+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
28+
29+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
30+
with:
31+
node-version: lts/*
32+
33+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34+
name: 🟧 Install pnpm
35+
with:
36+
cache: true
37+
38+
- name: 📦 Install dependencies
39+
run: pnpm install
40+
41+
- name: 🧪 Run Chromatic Visual and Accessibility Tests
42+
uses: chromaui/action@a8ce9c58f59be5cc7090cadfc8f130fb08fcf0c3 # v15.1.0
43+
env:
44+
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
45+
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
46+
CHROMATIC_SLUG: ${{ github.repository }}

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-24.04-arm
2626

2727
steps:
28-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929

3030
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3131
with:
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-24.04-arm
4848

4949
steps:
50-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
50+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5151

5252
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
5353
with:
@@ -69,7 +69,7 @@ jobs:
6969
runs-on: ubuntu-24.04-arm
7070

7171
steps:
72-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
72+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7373

7474
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
7575
with:
@@ -97,7 +97,7 @@ jobs:
9797
runs-on: ubuntu-24.04-arm
9898

9999
steps:
100-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
100+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101101

102102
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
103103
with:
@@ -133,10 +133,10 @@ jobs:
133133
name: 🖥️ Browser tests
134134
runs-on: ubuntu-24.04-arm
135135
container:
136-
image: mcr.microsoft.com/playwright:v1.58.0-noble
136+
image: mcr.microsoft.com/playwright:v1.58.2-noble
137137

138138
steps:
139-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
139+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
140140

141141
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
142142
with:
@@ -166,7 +166,7 @@ jobs:
166166
mode: [dark, light]
167167

168168
steps:
169-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
169+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
170170

171171
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
172172
with:
@@ -194,7 +194,7 @@ jobs:
194194
runs-on: ubuntu-24.04-arm
195195

196196
steps:
197-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
197+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
198198

199199
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
200200
with:
@@ -219,7 +219,7 @@ jobs:
219219
runs-on: ubuntu-24.04-arm
220220

221221
steps:
222-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
222+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
223223

224224
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
225225
with:

.github/workflows/lunaria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
with:
2727
# Necessary for Lunaria to work properly
2828
# Makes the action clone the entire git history

.github/workflows/mirror-tangled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-24.04-arm
1818

1919
steps:
20-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
fetch-depth: 0
2323

.github/workflows/provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: 🔒 Check provenance downgrades
2424
runs-on: ubuntu-slim
2525
steps:
26-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
fetch-depth: 0
2929

.github/workflows/semantic-pull-requests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ jobs:
3434
The subject "{subject}" found in the pull request title "{title}"
3535
didn't match the configured pattern. Please ensure that the subject
3636
doesn't start with an uppercase character.
37+
38+
Examples:
39+
✅ chore(ui): fix button spacing
40+
✅ docs: update README
41+
❌ chore(ui): Fix button spacing
3742
env:
3843
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@ file-tree-sprite.svg
4545

4646
# output
4747
.vercel
48+
49+
# Storybook
50+
*storybook.log
51+
storybook-static
52+
4853
.nvmrc

.storybook/main.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import type { StorybookConfig } from '@storybook-vue/nuxt'
2+
3+
const config = {
4+
stories: ['../app/**/*.stories.@(js|ts)'],
5+
addons: ['@storybook/addon-a11y', '@storybook/addon-docs'],
6+
framework: '@storybook-vue/nuxt',
7+
features: {
8+
backgrounds: false,
9+
},
10+
async viteFinal(config) {
11+
// Replace the built-in vue-docgen plugin with a fault-tolerant version.
12+
// vue-docgen-api can crash on components that import types from other
13+
// .vue files (it tries to parse the SFC with @babel/parser as plain TS).
14+
// This wrapper catches those errors so the build doesn't fail.
15+
const docgenPlugin = config.plugins?.find(
16+
(p): p is Extract<typeof p, { name: string }> =>
17+
!!p && typeof p === 'object' && 'name' in p && p.name === 'storybook:vue-docgen-plugin',
18+
)
19+
20+
if (docgenPlugin && 'transform' in docgenPlugin) {
21+
const hook = docgenPlugin.transform
22+
// Vite plugin hooks can be a function or an object with a `handler` property
23+
const originalFn = typeof hook === 'function' ? hook : hook?.handler
24+
if (originalFn) {
25+
const wrapped = async function (this: unknown, ...args: unknown[]) {
26+
try {
27+
return await originalFn.apply(this, args)
28+
} catch {
29+
return undefined
30+
}
31+
}
32+
if (typeof hook === 'function') {
33+
docgenPlugin.transform = wrapped as typeof hook
34+
} else if (hook) {
35+
hook.handler = wrapped as typeof hook.handler
36+
}
37+
}
38+
}
39+
40+
return config
41+
},
42+
} satisfies StorybookConfig
43+
44+
export default config

0 commit comments

Comments
 (0)