Commit a1ff3a3
committed
refactor(home): split Home.vue into components, utils and shared css
- Extract 8 section components (NavBar, Hero, Features, Install, Usage,
Uninstall, Contributors, Footer) + reusable FeatureCard, UsageTable,
CodeBlock, UninstallItem
- Move theme/github state into composables (utils/theme.ts, utils/github.ts)
and shared actions into utils/actions.ts
- Move quick/advanced settings and typing modes data into data/usage.ts
- Replace style.css with assets/shared.css (theme vars + common classes)
- Fix table/tab text color not following theme by restoring :root specificity
- Home.vue reduced from ~3000 lines to layout-only; no visual/logic change1 parent 45ced66 commit a1ff3a3
23 files changed
Lines changed: 3161 additions & 3202 deletions
File tree
- src
- assets
- components
- data
- utils
- views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
25 | 37 | | |
26 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments