Skip to content

Commit 8033c3b

Browse files
committed
基础框架
0 parents  commit 8033c3b

29 files changed

Lines changed: 6646 additions & 0 deletions

.github/workflows/auto_deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 自动发布
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
deploy_web:
7+
name: 发布Web
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: 克隆项目
11+
uses: actions/checkout@v5
12+
# - name: 安装Bun
13+
# uses: oven-sh/setup-bun@v2
14+
# with:
15+
# bun-version: latest
16+
- name: 构建
17+
run: bun run build
18+
- name: 发布
19+
uses: cloudflare/wrangler-action@v3
20+
with:
21+
wranglerVersion: latest
22+
packageManager: bun
23+
accountId: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
24+
apiToken: ${{secrets.CLOUDFLARE_API_TOKEN}}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
/dist/
3+
/.tanstack/

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"commentTranslate.hover.enabled": false
3+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
...

bun.lock

Lines changed: 880 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
import { defineConfig, globalIgnores } from 'eslint/config'
7+
8+
export default defineConfig([
9+
globalIgnores(['dist']),
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs['recommended-latest'],
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
rules: {
23+
semi: "warn",
24+
quotes: "warn"
25+
}
26+
},
27+
])

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="zh">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
8+
<link rel="icon" href="/icon.svg">
9+
<script type="module" src="./src/main.tsx"></script>
10+
</head>
11+
12+
</html>

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"private": true,
3+
"type": "module",
4+
"scripts": {
5+
"dev": "vite",
6+
"build": "vite build"
7+
},
8+
"dependencies": {
9+
"@emotion/react": "11.14.0",
10+
"@emotion/styled": "11.14.1",
11+
"@mui/material": "7.3.2",
12+
"@tanstack/react-router": "1.131.50",
13+
"@tanstack/react-router-devtools": "1.131.50",
14+
"react": "19.1.1",
15+
"react-dom": "19.1.1"
16+
},
17+
"devDependencies": {
18+
"@eslint/js": "9.36.0",
19+
"@iconify/json": "^2.2.386",
20+
"@iconify/tailwind4": "1.0.6",
21+
"@tailwindcss/vite": "4.1.13",
22+
"@tanstack/router-plugin": "1.131.50",
23+
"@tauri-apps/cli": "2.8.4",
24+
"@types/react": "19.1.13",
25+
"@types/react-dom": "19.1.9",
26+
"@vitejs/plugin-react": "5.0.3",
27+
"eslint": "9.36.0",
28+
"eslint-plugin-react-hooks": "5.2.0",
29+
"eslint-plugin-react-refresh": "0.4.20",
30+
"globals": "16.4.0",
31+
"tailwindcss": "4.1.13",
32+
"typescript": "5.9.2",
33+
"typescript-eslint": "8.44.0",
34+
"vite": "7.1.7"
35+
}
36+
}

public/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

src-tauri/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target/
2+
/gen/
3+
/icons/

0 commit comments

Comments
 (0)