Skip to content

Commit 6193597

Browse files
committed
feat: main window
1 parent 85d80e3 commit 6193597

15 files changed

+1568
-11
lines changed

index.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script type="module" src="/src/renderer/main.tsx"></script>
10+
</body>
11+
</html>

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@
44
"description": "Android adb desktop app",
55
"main": "dist/main/index.js",
66
"scripts": {
7+
"dev": "concurrently \"npm run dev:main\" \"npm run dev:renderer\"",
78
"dev:main": "vite build --watch --config vite.main.ts --mode=development",
9+
"dev:renderer": "vite",
810
"format": "lsla prettier \"src/**/*.{ts,tsx,scss,css,json}\" \"*.{ts,json}\" --write",
9-
"start": "electron ./dist/main/index.js"
11+
"start": "electron ./dist/main/index.js",
12+
"genTheme": "lsla genTheme --input src/common/theme.json --output src/renderer/theme.scss && lsla genTheme --input src/common/theme.json --output src/common/theme.ts"
1013
},
1114
"keywords": [
1215
"adb"
1316
],
1417
"author": "surunzi",
1518
"license": "MIT",
1619
"devDependencies": {
20+
"@vitejs/plugin-react": "^4.3.2",
21+
"concurrently": "^9.0.1",
22+
"custom-electron-titlebar": "^4.2.8",
1723
"electron": "^33.0.1",
24+
"licia": "^1.43.0",
1825
"vite": "^5.4.9"
1926
}
2027
}

src/common/theme.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"token": {
3+
"colorPrimary": "#4fb155"
4+
}
5+
}

0 commit comments

Comments
 (0)