Skip to content

Commit ddd4ffa

Browse files
committed
Merge branch 'main' into gd/regex-escape
# Conflicts: # app/composables/useMarkdown.ts # app/composables/useStructuredFilters.ts # package.json # pnpm-lock.yaml
2 parents af1f197 + a2254fd commit ddd4ffa

File tree

627 files changed

+56387
-38835
lines changed

Some content is hidden

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

627 files changed

+56387
-38835
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: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,21 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

23-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
23+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
2424
with:
2525
node-version: lts/*
26-
27-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
28-
name: 🟧 Install pnpm
29-
with:
3026
cache: true
3127

32-
- name: πŸ“¦ Install dependencies
33-
run: pnpm install
34-
3528
- name: 🎨 Check for non-RTL/non-a11y CSS classes
36-
run: pnpm lint:css
29+
run: vp run lint:css
3730

3831
- name: 🌐 Compare translations
39-
run: pnpm i18n:check
32+
run: vp run i18n:check
4033

4134
- name: 🌍 Update lunaria data
42-
run: pnpm build:lunaria
35+
run: vp run build:lunaria
4336

4437
- name: πŸ”  Fix lint errors
45-
run: pnpm lint:fix
38+
run: vp run lint:fix
4639

4740
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
30+
with:
31+
node-version: lts/*
32+
cache: true
33+
34+
- name: 🟧 Install pnpm globally
35+
run: vp install -g pnpm
36+
37+
- name: πŸ§ͺ Run Chromatic Visual and Accessibility Tests
38+
uses: chromaui/action@f191a0224b10e1a38b2091cefb7b7a2337009116 # v16.0.0
39+
env:
40+
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
41+
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
42+
CHROMATIC_SLUG: ${{ github.repository }}

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 27 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- release
78
push:
89
branches:
910
- main
@@ -27,20 +28,16 @@ jobs:
2728
steps:
2829
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2930

30-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
31+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
3132
with:
3233
node-version: lts/*
33-
34-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
35-
name: 🟧 Install pnpm
36-
with:
37-
cache: true
34+
run-install: false
3835

3936
- name: πŸ“¦ Install dependencies (root only, no scripts)
40-
run: pnpm install --filter . --ignore-scripts
37+
run: vp install --filter . --ignore-scripts
4138

4239
- name: πŸ”  Lint project
43-
run: pnpm lint
40+
run: vp run lint
4441

4542
types:
4643
name: πŸ’ͺ Type check
@@ -49,20 +46,13 @@ jobs:
4946
steps:
5047
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5148

52-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
49+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
5350
with:
5451
node-version: lts/*
55-
56-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
57-
name: 🟧 Install pnpm
58-
with:
5952
cache: true
6053

61-
- name: πŸ“¦ Install dependencies
62-
run: pnpm install
63-
6454
- name: πŸ’ͺ Type check
65-
run: pnpm test:types
55+
run: vp run test:types
6656

6757
unit:
6858
name: πŸ§ͺ Unit tests
@@ -71,20 +61,13 @@ jobs:
7161
steps:
7262
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7363

74-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
64+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
7565
with:
7666
node-version: lts/*
77-
78-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
79-
name: 🟧 Install pnpm
80-
with:
8167
cache: true
8268

83-
- name: πŸ“¦ Install dependencies
84-
run: pnpm install
85-
8669
- name: πŸ§ͺ Unit tests
87-
run: pnpm test:unit run --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
70+
run: vp test --project unit --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
8871

8972
- name: β¬†οΈŽ Upload test results to Codecov
9073
if: ${{ !cancelled() }}
@@ -99,33 +82,26 @@ jobs:
9982
steps:
10083
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
10184

102-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
85+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
10386
with:
10487
node-version: lts/*
105-
106-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
107-
name: 🟧 Install pnpm
108-
with:
10988
cache: true
11089

111-
- name: πŸ“¦ Install dependencies
112-
run: pnpm install
113-
11490
- name: 🌐 Install browser
115-
run: pnpm playwright install chromium-headless-shell
91+
run: vp exec playwright install chromium-headless-shell
11692

11793
- name: πŸ§ͺ Component tests
118-
run: pnpm test:nuxt run --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
94+
run: vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
11995

12096
- name: β¬†οΈŽ Upload coverage reports to Codecov
121-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
97+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
12298
with:
12399
report_type: test_results
124100
env:
125101
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
126102

127103
- name: β¬†οΈŽ Upload coverage reports to Codecov
128-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
104+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
129105
env:
130106
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
131107

@@ -138,25 +114,18 @@ jobs:
138114
steps:
139115
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
140116

141-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
117+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
142118
with:
143119
node-version: lts/*
144-
145-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
146-
name: 🟧 Install pnpm
147-
with:
148120
cache: true
149121

150-
- name: πŸ“¦ Install dependencies
151-
run: pnpm install
152-
153122
- name: πŸ—οΈ Build project
154-
run: pnpm build:test
123+
run: vp run build:test
155124
env:
156125
VALIDATE_HTML: true
157126

158127
- name: πŸ–₯️ Test project (browser)
159-
run: pnpm test:browser:prebuilt
128+
run: vp run test:browser:prebuilt
160129

161130
a11y:
162131
name: β™Ώ Accessibility audit
@@ -168,23 +137,16 @@ jobs:
168137
steps:
169138
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
170139

171-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
140+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
172141
with:
173142
node-version: lts/*
174-
175-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
176-
name: 🟧 Install pnpm
177-
with:
178143
cache: true
179144

180-
- name: πŸ“¦ Install dependencies
181-
run: pnpm install
182-
183145
- name: πŸ—οΈ Build project
184-
run: pnpm build:test
146+
run: vp run build:test
185147

186148
- name: β™Ώ Accessibility audit (Lighthouse - ${{ matrix.mode }} mode)
187-
run: pnpm test:a11y:prebuilt
149+
run: vp run test:a11y:prebuilt
188150
env:
189151
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
190152
LIGHTHOUSE_COLOR_MODE: ${{ matrix.mode }}
@@ -196,23 +158,13 @@ jobs:
196158
steps:
197159
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
198160

199-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
161+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
200162
with:
201163
node-version: lts/*
202-
203-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
204-
name: 🟧 Install pnpm
205-
with:
206164
cache: true
207165

208-
- name: πŸ“¦ Install dependencies
209-
run: pnpm install
210-
211166
- name: 🧹 Check for unused code
212-
run: pnpm knip
213-
214-
- name: 🧹 Check for unused production code
215-
run: pnpm knip --production
167+
run: vp run knip
216168

217169
i18n:
218170
name: 🌐 i18n validation
@@ -221,22 +173,18 @@ jobs:
221173
steps:
222174
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
223175

224-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
176+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
225177
with:
226178
node-version: lts/*
227-
228-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
229-
name: 🟧 Install pnpm
230-
with:
231-
cache: true
179+
run-install: false
232180

233181
- name: πŸ“¦ Install dependencies (root only, no scripts)
234-
run: pnpm install --filter . --ignore-scripts
182+
run: vp install --filter . --ignore-scripts
235183

236184
- name: 🌐 Check for missing or dynamic i18n keys
237-
run: pnpm i18n:report
185+
run: vp run i18n:report
238186

239187
- name: 🌐 Check i18n schema is up to date
240188
run: |
241-
pnpm i18n:schema
189+
vp run i18n:schema
242190
git diff --exit-code i18n/schema.json

β€Ž.github/workflows/lunaria.ymlβ€Ž

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,10 @@ jobs:
2828
# Makes the action clone the entire git history
2929
fetch-depth: 0
3030

31-
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
31+
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
3232
with:
3333
node-version: lts/*
34-
35-
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
36-
name: 🟧 Install pnpm
37-
with:
3834
cache: true
3935

40-
- name: πŸ“¦ Install dependencies
41-
run: pnpm install
42-
4336
- name: Generate Lunaria Overview
4437
uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # v1-prerelease

β€Ž.github/workflows/provenance.ymlβ€Ž

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
Β (0)