Skip to content

Commit 775ed30

Browse files
committed
first commit
Signed-off-by: sakumisu <1203593632@qq.com>
0 parents  commit 775ed30

29 files changed

+3718
-0
lines changed

.github/copilot-instructions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copilot Instructions
2+
3+
<!-- Use this file to provide workspace-specific custom instructions to Copilot. For more details, visit https://code.visualstudio.com/docs/copilot/copilot-customization\#_use-a-githubcopilotinstructionsmd-file -->
4+
5+
## Project Overview
6+
This is a Vue 3 + TypeScript project built with Vite for showcasing products including:
7+
- cherryusb
8+
- cherryecat
9+
- cherrysh
10+
- cherrydap
11+
12+
## Code Style Guidelines
13+
- Use TypeScript for all components and utilities
14+
- Use Vue 3 Composition API
15+
- Follow Vue.js best practices
16+
- Use modern CSS with CSS Grid and Flexbox
17+
- Maintain responsive design principles
18+
- Use semantic HTML elements
19+
20+
## Project Structure
21+
- `/src/components` - Reusable Vue components
22+
- `/src/views` - Page components
23+
- `/src/router` - Vue Router configuration
24+
- `/src/types` - TypeScript type definitions
25+
- `/src/data` - Static data and mock content

.github/workflows/deploy.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# 构建并部署到 GitHub Pages
2+
name: Deploy to GitHub Pages
3+
4+
on:
5+
# 当推送到 main 分支时触发
6+
push:
7+
8+
# 允许手动触发工作流
9+
workflow_dispatch:
10+
11+
# 设置 GITHUB_TOKEN 权限,允许部署到 GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# 只允许同时运行一个部署,跳过正在运行和最新队列之间的运行队列
18+
# 但是,不要取消正在进行的运行,因为我们希望让这些生产部署完成
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# 构建作业
25+
build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '20'
35+
cache: 'npm'
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v4
39+
with:
40+
# 自动注入正确的基础 URL
41+
static_site_generator: custom
42+
43+
- name: Install dependencies
44+
run: |
45+
npm ci
46+
47+
- name: Build with Vite
48+
run: |
49+
npm run build
50+
env:
51+
NODE_ENV: production
52+
CI: true
53+
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./dist
58+
59+
# 部署作业
60+
deploy:
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
needs: build
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>cherry-embedded</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)