Skip to content

Commit 04a1e56

Browse files
committed
docs: update project structure section in README
1 parent 68994e5 commit 04a1e56

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@ PrePrompt 是一個為個人工作流程設計的小工具,重點不只是文
3030

3131
> 新字詞會統一加上 `_` 前後綴,以避免與原字詞混淆。
3232
33+
## 專案結構
34+
35+
```text
36+
.
37+
├── index.html
38+
├── demo.png
39+
├── README.md
40+
└── assets
41+
├── favicon.png
42+
├── css
43+
│ ├── base.css # 基本變數與全域樣式
44+
│ ├── layout.css # 版面配置
45+
│ └── components.css # 元件樣式
46+
└── js
47+
├── app.js # 前端入口,負責初始化與事件綁定
48+
├── constants.js # 常數與預設資料
49+
├── storage.js # LocalStorage 讀寫
50+
├── mappings.js # 詞組列表渲染
51+
├── import-export.js# JSON 匯入 / 匯出
52+
├── output.js # 替換結果更新與點擊複製
53+
├── sortable.js # 詞組拖曳排序
54+
└── toast.js # 狀態訊息顯示
55+
```
56+
3357
## 資料儲存
3458

3559
原始文章和替代詞組會儲存在瀏覽器的 LocalStorage 中,不會送到伺服器。

0 commit comments

Comments
 (0)