Skip to content

Commit 33683e4

Browse files
committed
更新注释
1 parent 5b2809d commit 33683e4

File tree

4 files changed

+10
-27
lines changed

4 files changed

+10
-27
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,48 @@
1-
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
2-
#
31
name: Deploy site to Pages
42

53
on:
64
push:
75
branches: [main]
86

9-
# 允许你从 Actions 选项卡手动运行此工作流程
107
workflow_dispatch:
118

12-
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

18-
# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
19-
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
2014
concurrency:
2115
group: pages
2216
cancel-in-progress: false
2317

2418
jobs:
25-
# 构建工作
2619
build:
2720
runs-on: ubuntu-latest
2821
steps:
2922
- name: Checkout
3023
uses: actions/checkout@v4
3124
with:
32-
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
33-
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消注释
34-
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
25+
fetch-depth: 0
26+
# - uses: pnpm/action-setup@v3
27+
# - uses: oven-sh/setup-bun@v1
3528
- name: Setup Node
3629
uses: actions/setup-node@v4
3730
with:
3831
node-version: 20
39-
cache: npm # pnpm / yarn
32+
cache: npm # pnpm / yarn
4033
- name: Setup Pages
4134
uses: actions/configure-pages@v4
4235
- name: Install dependencies
43-
run: npm ci # pnpm install / yarn install / bun install
36+
run: npm ci # pnpm install / yarn install / bun install
4437
- name: Build with VitePress
4538
env:
4639
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
run: npm run build # pnpm docs:build / yarn docs:build / bun run docs:build
40+
run: npm run build # pnpm docs:build / yarn docs:build / bun run docs:build
4841
- name: Upload artifact
4942
uses: actions/upload-pages-artifact@v3
5043
with:
5144
path: dist
5245

53-
# 部署工作
5446
deploy:
5547
environment:
5648
name: github-pages

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ s-page {
9494
position: relative;
9595
display: flex;
9696
flex-direction: column;
97-
margin-right: 3px; /* 为宽度调节条留空间 */
97+
margin-right: 3px; /* space for width adjust bar */
9898
}
9999
#editor {
100100
height: 0;

src/editor/inputs/strInputs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const { dataItem, fnType } = defineProps<InputProps>();
2222
2323
const inputBox = ref<HTMLElementTagNameMap["s-text-field"][]>();
2424
25-
// Chromium 文本框输入三个字形以上的连字时渲染不生效
26-
// 需要在失去焦点时手动对文本框赋值以触发渲染
27-
// 直接操作 .value 属性不会触发 Vue 的响应式更新,无需担忧性能
25+
// In Chromium, ligatures of three or more glyphs in text input fields may not render correctly
26+
// You need to manually assign the value to the input when it loses focus to trigger rendering
27+
// Directly setting the .value property does not trigger Vue's reactivity system, so there's no performance concern
2828
2929
function handleBlur(index: number) {
3030
const element = inputBox.value![index];

src/types.ts

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

0 commit comments

Comments
 (0)