Skip to content

Commit cf2bba5

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

29 files changed

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