feat: scaffold initial Cheatsheet Hub application

This commit establishes the foundational structure for the Cheatsheet Hub project.

It includes the setup of a Vue 3, Vite, and TailwindCSS stack, along with core application features:

- **Routing:** Configures `vue-router` for Home, Cheatsheet List, and Cheatsheet Detail pages.
- **State Management:** Implements a `pinia` store for theme management (dark/light mode) and mock data.
- **UI Components:** Adds reusable components like `NavBar`, `CheatsheetCard`, and `PrintButton`.
- **Styling:** Integrates TailwindCSS with custom base styles, dark mode support, and print-friendly optimizations.
- **Dependencies:** Adds key libraries including `marked` for content rendering.
This commit is contained in:
xiaomai
2025-09-17 18:03:45 +08:00
parent 7ea9a3c8f9
commit 3058f251bc
18 changed files with 7507 additions and 35 deletions

View File

@@ -16,9 +16,11 @@
"format": "prettier --write src/"
},
"dependencies": {
"marked": "^16.3.0",
"pinia": "^3.0.3",
"vue": "^3.5.18",
"vue-router": "^4.5.1"
"vue-router": "^4.5.1",
"axios": "^1.4.0"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.2",
@@ -35,6 +37,9 @@
"typescript": "~5.8.0",
"vite": "^7.0.6",
"vite-plugin-vue-devtools": "^8.0.0",
"vue-tsc": "^3.0.4"
"vue-tsc": "^3.0.4",
"tailwindcss": "^3.3.3",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.24"
}
}