Skip to content

Commit 2a8831b

Browse files
feat(website): showcase recent actions and use Node 26 in CI
1 parent a38c4a5 commit 2a8831b

11 files changed

Lines changed: 135 additions & 4 deletions

File tree

‎.github/workflows/build-pages.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ jobs:
4444
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
4545
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
4646
with:
47-
node-version: 24
47+
node-version: '26.x'
48+
check-latest: true
4849
cache: pnpm
4950
cache-dependency-path: pnpm-lock.yaml
51+
- name: Show website toolchain
52+
run: |
53+
node --version
54+
pnpm --version
5055
- run: pnpm install --frozen-lockfile
5156
- name: Build website
5257
env:

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,19 @@ jobs:
2121
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 (Node 24)
2222
with:
2323
persist-credentials: false
24+
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
25+
with:
26+
node-version: '26.x'
27+
check-latest: true
28+
package-manager-cache: false
2429
- name: Show runner and toolchain
2530
run: |
2631
sw_vers
2732
uname -m
2833
test "$(uname -m)" = arm64
2934
xcodebuild -version
3035
swift --version
36+
node --version
3137
- name: Verify deterministic behavior
3238
run: make verify
3339
- name: Verify GitHub token authentication

‎.github/workflows/deploy-website.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353
persist-credentials: false
5454
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
5555
with:
56-
node-version: 24
56+
node-version: '26.x'
57+
check-latest: true
58+
- name: Show deployment Node version
59+
run: node --version
5760
- name: Verify published application source and fetch the successful website build
5861
id: candidate
5962
env:

‎docs/DEVELOPMENT.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ Sparkle executables, adds ad-hoc bundle signatures, checks arm64-only contents
2222
and creates the DMG.
2323
Outputs are under build/ and ignored by Git.
2424

25+
Website development and CI use Node 26.x. CI resolves the newest stable patch
26+
with `check-latest: true`; keep local development on the same major series.
27+
Use the pnpm version declared in `package.json`, independently of Node's version
28+
or a globally installed package-manager launcher. Website CI installs with the
29+
frozen lockfile and prints both resolved tool versions.
30+
2531
For routine acceptance, select checks from
2632
[HARNESS](../specs/HARNESS.md#default-acceptance). Covered Core behavior uses
2733
automated results; app/extension changes also need unsigned compilation, with
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Website feature visibility and Node 26 CI
2+
3+
Status: in-progress
4+
Next action: Verify locally with Node 26, then push and confirm the website build/deployment.
5+
6+
## Scope and decisions
7+
8+
- Follow the newest stable Node 26.x in source CI and website project-script
9+
jobs using `check-latest: true`, with version logs. Pinned Actions retain their
10+
own bundled runtimes; the project's pnpm version and frozen lockfile stay fixed.
11+
- Add a bilingual homepage section for Quick Search/global shortcut, Copy File
12+
Contents, direct creation and keyboard-navigation improvements. Link to actual
13+
guide anchors and retain current defaults, authorization rules and text limits.
14+
- Reuse the site's colors, layout and native links. Current-release discovery
15+
continues to use public Latest metadata.
16+
17+
## Context
18+
19+
- [Presentation](../../specs/domains/presentation.md),
20+
[distribution](../../specs/domains/distribution.md),
21+
[website-only deployment](../DISTRIBUTION.md#website-only-updates),
22+
[Harness](../../specs/HARNESS.md).
23+
- `modern-web-guidance`: consulted `card`, `responsive-design` and `css`.
24+
Applied semantic article/footer links, intrinsic card columns, existing theme
25+
tokens and logical spacing; no new dependency or interactive mock app.
26+
27+
## Evidence
28+
29+
Starting source: primary `a38c4a58afb60e9ae105cf385585d22bec16f2a5`.
30+
Local Node is v26.12.1; the official release index reports v26.13.0 as the newest
31+
stable 26.x on 2026-10-29. CI's rolling 26.x selection will resolve it.
32+
Local evidence: `build/website-node26.noindex/run.juhc925w`.
33+
34+
- `SITE_BASE=/FileMint/ pnpm run site:build`: passed, 27 tests and generation.
35+
Node 26.12.1 runs the existing pnpm 11.26.0 CLI through task-local symlinks;
36+
no global runtime or package-manager installation was changed.
37+
- `make verify` and unsigned `make build`: passed. Main and embedded Finder
38+
executables compiled; no native UI replay or app installation was required.
39+
- Ruby's standard YAML parser accepted all three workflows; permissions,
40+
deployment gates, matrix and aggregate dependencies match their prior values.
41+
Each setup-node step selects `26.x` with `check-latest: true`.
42+
- Generated Chinese/English homepage guide links all resolve to existing anchors
43+
(13 each). Chrome visual checks cover the Chinese desktop section and English
44+
at 390px, with no horizontal overflow; temporary viewport override was reset.
45+
46+
Remote source CI, website build and live deployment verification pending.

‎specs/domains/distribution.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Part of the [FileMint SPEC](../SPEC.md). This file owns the behavior below; othe
7474
Recheck identities after downloading and deploy the retained archive without
7575
rebuilding or modifying releases. Release-dispatched builds never auto-deploy;
7676
the existing application-publication and release-bound website gates remain.
77+
- CI jobs running project scripts use the latest stable Node 26.x, selected by
78+
`actions/setup-node` with `check-latest: true`; record the resolved Node version
79+
in job logs. Website builds retain the package-manager version from
80+
`package.json` and frozen-lockfile installation. A pinned Action's own bundled
81+
JavaScript runtime is separate from the Node used for project commands.
7782
- Source CI runs the complete offline `make verify` suite and
7883
`CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO make build` on the standard
7984
arm64 `macos-15` and `macos-26` runners. The build uses the existing Release

‎specs/domains/presentation.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ owns the rules, supported storage, counts, explicit actions and recovery behavio
271271
copy/comparison for checksums. Identify both tools as opt-in and retain their
272272
actual selection/filesystem limits in the guide. Do not imply encryption,
273273
proof of origin, atomic batches or universal cloud/NAS compatibility.
274+
- The homepage also introduces Quick Search and its optional global shortcut,
275+
Copy File Contents, direct creation drafts and compact/keyboard-friendly
276+
native interactions. Give each workflow a clear bilingual guide link and
277+
state its actual defaults and limits. Keep the current-release label dynamic;
278+
do not turn the homepage into a hard-coded release banner or simulated app UI.
274279
- Current-release labels come from the public GitHub `releases/latest` endpoint
275280
for FileMintApp/FileMint at page load, never from project.yml, README release
276281
includes or a hard-coded version. Accept only published, non-draft,

‎website/.vitepress/theme/LandingPage.vue‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,29 @@ function onTabKey(event: KeyboardEvent, index: number) {
3333
event.preventDefault(); choose(next)
3434
document.getElementById(`scene-tab-${next}`)?.focus()
3535
}
36+
const everydayActions = computed(() => [
37+
{
38+
id: 'search', title: t('一个入口,找到常用操作。', 'One place for everyday actions.'),
39+
body: t('搜索新建操作、启用的模板、常用文件与设置。上下键选择,Return 执行,不必来回找入口。', 'Find creation actions, enabled templates, favorites and settings. Choose with arrow keys and press Return to continue.'),
40+
hint: t('应用内 ⌘⇧K · 可选全局 ⌃⌥K', 'In app: ⌘⇧K · Optional global: ⌃⌥K'),
41+
note: t('在「通用 → 快捷搜索」启用全局快捷键,可录制其他组合;默认关闭。', 'Enable the global shortcut in General → Quick Search or record another combination. It starts off.'),
42+
link: t('使用快捷搜索', 'Use Quick Search'), anchor: t('用快捷搜索找到操作、模板和设置', 'find-actions-templates-and-settings-with-quick-search')
43+
},
44+
{
45+
id: 'copy', title: t('拷贝内容,省去一次打开。', 'Copy the contents. Keep your flow.'),
46+
body: t('右键一个文本文件,把完整内容放入剪贴板。代码、Markdown 和配置文件保留原有空白与换行。', 'Right-click a text file to copy its complete contents. Keep whitespace and line endings in code, Markdown and configuration files.'),
47+
hint: t('完整读取 · 本机处理', 'COMPLETE CONTENTS · ON YOUR MAC'),
48+
note: t('在「文件(夹)工具」中按需开启。源文件与解码文本各限 8 MiB,受支持的文本与有限 RTF 格式适用。', 'Enable it in File & Folder Tools. Source and decoded text are each limited to 8 MiB; supported text and a limited RTF subset are accepted.'),
49+
link: t('了解拷贝文件内容', 'Explore Copy File Contents'), anchor: t('拷贝文件内容', 'copy-file-contents')
50+
},
51+
{
52+
id: 'creation', title: t('直接新建,顺畅切换。', 'Create directly. Move smoothly.'),
53+
body: t('新建操作直接打开创建面板,在「保存位置」里换目录。图片预览窗口更紧凑,设置侧栏连续上下键切换更顺畅。', 'Open creation drafts directly and change the destination in Save Location. Image previews fit their content, and rapid arrow keys keep settings selection in step.'),
54+
hint: t('Tab 切换 · ⌘↩ 创建 · Esc 取消', 'Tab to navigate · ⌘↩ to create · Esc to cancel'),
55+
note: t('只有「创建」才写入文件;实际缺少写入权限时,仍按 macOS 提示授权。', 'Only Create writes a file. macOS still requests authorization when write access is missing.'),
56+
link: t('查看创建流程', 'Explore the creation flow'), anchor: t('自己填写名称与内容', 'choose-the-name-and-starter-content')
57+
}
58+
])
3659
const fileTools = computed(() => [
3760
{
3861
id: 'rename', label: t('批量重命名', 'Batch Rename'),
@@ -104,6 +127,20 @@ const faqs = computed(() => [
104127

105128
<div class="fm-principles fm-wrap"><span>{{ t('原生 macOS 体验', 'Native to macOS') }}</span><span>{{ t('文件在本机处理', 'Files stay on your Mac') }}</span><span>{{ t('无需账号', 'No account needed') }}</span><span>{{ t('菜单按你所需', 'Your menu, your way') }}</span></div>
106129

130+
<section id="quick-actions" class="fm-section fm-wrap fm-everyday" aria-labelledby="quick-actions-title">
131+
<div class="fm-section-heading">
132+
<div><p class="fm-eyebrow">{{ t('常用操作,更顺手', 'LESS FRICTION, EVERY DAY') }}</p><h2 id="quick-actions-title">{{ t('少一次往返。', 'Fewer detours.') }}<br><em>{{ t('多一点专注。', 'More focus.') }}</em></h2></div>
133+
<p>{{ t('从呼出操作到保存文件,让常用步骤更直接。已有模板与设置继续保留,新能力按需开启。', 'From finding an action to saving a file, keep everyday steps direct. Retain your templates and settings, and enable new tools as needed.') }}</p>
134+
</div>
135+
<div class="fm-everyday-grid">
136+
<article v-for="action in everydayActions" :key="action.id" class="fm-everyday-card" :aria-labelledby="`everyday-${action.id}`">
137+
<h3 :id="`everyday-${action.id}`">{{ action.title }}</h3>
138+
<div><p>{{ action.body }}</p><p class="fm-everyday-hint">{{ action.hint }}</p><p class="fm-everyday-note">{{ action.note }}</p></div>
139+
<footer><a class="fm-text-link" :href="`${page('guide')}#${action.anchor}`">{{ action.link }} <span aria-hidden="true">↗</span></a></footer>
140+
</article>
141+
</div>
142+
</section>
143+
107144
<section id="file-tools" class="fm-section fm-wrap fm-file-tools" aria-labelledby="file-tools-title">
108145
<div class="fm-section-heading">
109146
<div><p class="fm-eyebrow">01 / {{ t('文件工具,进一步', 'TAKE YOUR FILES FURTHER') }}</p><h2 id="file-tools-title">{{ t('整理得有序。', 'Names in order.') }}<br><em>{{ t('核对得清楚。', 'Contents checked.') }}</em></h2></div>

‎website/.vitepress/theme/style.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ body { -webkit-font-smoothing: antialiased; }
9797
.fm-landing h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.35; font-weight: 530; letter-spacing: -.04em; }
9898
.fm-section h2 { margin-top: 18px; }
9999
.fm-section-heading > p { color: var(--vp-c-text-2); font-size: 14px; line-height: 1.95; max-width: 340px; padding-bottom: 3px; }
100+
.fm-everyday { padding-bottom: 0; }
101+
.fm-everyday-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 22px; }
102+
.fm-everyday-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--vp-c-divider); border-radius: 12px; background: var(--vp-c-bg-soft); }
103+
.fm-everyday-card h3 { font-size: 21px; font-weight: 570; line-height: 1.55; }
104+
.fm-everyday-card > div { margin-block: 18px 26px; font-size: 13px; line-height: 1.9; color: var(--vp-c-text-2); }
105+
.fm-everyday-card .fm-everyday-hint { margin-block: 22px 12px; color: var(--fm-accent); font-size: 11px; font-weight: 600; }
106+
.fm-everyday-card .fm-everyday-note { font-size: 12px; }
107+
.fm-everyday-card footer { margin-block-start: auto; }
100108
.fm-file-tools { padding-bottom: 0; }
101109
.fm-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
102110
.fm-tool { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--vp-c-divider); border-radius: 14px; overflow: hidden; }

‎website/en/guide.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,16 @@ Open **Extensions → File & Folder Tools**, enable the master switch, then enab
8787
<p class="guide-caption">This is an example with tools enabled. Check the Permanent Delete setting before using it.</p>
8888

8989
- **Copy Names / Paths:** Select one or more items, then use the context menu. Multiple items are copied one per line. With Copy Paths enabled, you can also right-click an in-scope folder background to copy that folder's full path.
90-
- **Copy File Contents:** Enable this child tool, then right-click one supported ordinary local text file to copy its complete contents. Accept UTF-8, BOM-declared UTF-16 and a limited validated RTF subset, with source and decoded text each limited to 8 MiB. Preserve whitespace and line endings without truncation; failure or cancellation leaves the clipboard untouched. Images, PDF, Office documents, RTF attachments and tables are unsupported.
9190
- **Move File / Folder:** Select the source items and choose this action. Then right-click the **background of the destination folder** and choose **Move Selected Items Here**. The first step only remembers the sources; existing names are never overwritten or merged.
9291
- **Delete Permanently:** Bypasses Trash and asks for confirmation by default. It cannot be undone. Enable it only when you need it.
9392
- **AirDrop / Send Alias to Desktop:** AirDrop opens the native macOS chooser so you select a recipient. An alias points to the original item without moving it.
9493

94+
### Copy File Contents
95+
96+
Enable the module and Copy File Contents in File & Folder Tools, then right-click one supported ordinary local text file in Finder. Clipboard publication follows a complete read; if you copy something else while it runs, the older request does not overwrite your newer clipboard.
97+
98+
Enable this child tool, then right-click one supported ordinary local text file to copy its complete contents. Accept UTF-8, BOM-declared UTF-16 and a limited validated RTF subset, with source and decoded text each limited to 8 MiB. Preserve whitespace and line endings without truncation; failure or cancellation leaves the clipboard untouched. Images, PDF, Office documents, RTF attachments and tables are unsupported.
99+
95100
### Batch Rename
96101

97102
Number a photo collection, organize project files, or apply a list of names you already have. Preview the changes first. This tool starts off.

0 commit comments

Comments
 (0)