feat: initialization project

This commit is contained in:
ayang
2025-03-28 12:53:16 +08:00
commit 24e8bfd03c
232 changed files with 19159 additions and 0 deletions

3
.commitlintrc Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "@commitlint/config-conventional"
}

25
.gitignore vendored Normal file
View File

@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
target
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

8
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"recommendations": [
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer",
"biomejs.biome",
"antfu.unocss"
]
}

4919
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

14
Cargo.toml Normal file
View File

@@ -0,0 +1,14 @@
[workspace]
resolver="2"
members = [
"src-tauri"
]
[workspace.dependencies]
tauri = "2"
serde = "1"
serde_json = "1"
fs_extra = "1"
tauri-plugin = { version = "2", features = ["build"] }
tauri-nspanel = { git = "https://github.com/ahkohd/tauri-nspanel", branch = "v2" }
tauri-plugin-custom-window = { path = "./src-tauri/src/plugins/window" }

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# Tauri + React + Typescript
This template should help get you started developing with Tauri, React and Typescript in Vite.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)

56
biome.json Normal file
View File

@@ -0,0 +1,56 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noConsoleLog": "error"
},
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error",
"useExhaustiveDependencies": "off"
},
"nursery": {
"useSortedClasses": {
"level": "error",
"fix": "safe"
}
},
"style": {
"noUnusedTemplateLiteral": {
"level": "error",
"fix": "safe"
},
"useTemplate": {
"level": "error",
"fix": "safe"
},
"useSelfClosingElements": {
"level": "error",
"fix": "safe"
}
},
"a11y": {
"useAltText": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}

16
index.html Normal file
View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BongoCat</title>
<script src="/js/live2dcubismcore.min.js"></script>
<script src="/js/live2d.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

64
package.json Normal file
View File

@@ -0,0 +1,64 @@
{
"name": "bongo-cat",
"private": true,
"author": {
"name": "ayangweb",
"email": "ayangweb@foxmail.com"
},
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "run-s build:icon dev:vite",
"build": "run-s build:*",
"dev:vite": "vite",
"build:vite": "vite build",
"build:icon": "tauri icon src-tauri/assets/logo.png",
"preview": "vite preview",
"tauri": "tauri",
"lint": "biome check --write src",
"preinstall": "npx only-allow pnpm",
"prepare": "simple-git-hooks",
"release": "release-it"
},
"dependencies": {
"@tauri-apps/api": "^2.4.0",
"@tauri-apps/plugin-os": "^2.2.1",
"@tauri-apps/plugin-process": "^2.2.0",
"@unocss/reset": "66.1.0-beta.7",
"pixi-live2d-display": "^0.4.0",
"pixi.js": "^6.5.10",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.4.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@tauri-apps/cli": "^2.4.0",
"@types/node": "^22.13.14",
"@types/react": "^18.3.20",
"@types/react-dom": "^18.3.5",
"@unocss/preset-rem-to-px": "66.1.0-beta.7",
"@vitejs/plugin-react": "^4.3.4",
"lint-staged": "^15.5.0",
"npm-run-all": "^4.1.5",
"release-it": "^18.1.2",
"simple-git-hooks": "^2.12.1",
"typescript": "~5.6.3",
"unocss": "66.1.0-beta.7",
"vite": "^6.2.3"
},
"pnpm": {
"patchedDependencies": {
"pixi-live2d-display": "patches/pixi-live2d-display.patch"
}
},
"simple-git-hooks": {
"commit-msg": "npx --no-install commitlint -e",
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"**.{ts,tsx,json}": ["biome check --apply --no-errors-on-unmatched"]
}
}

View File

@@ -0,0 +1,25 @@
diff --git a/core/README.md b/core/README.md
deleted file mode 100644
index ad383747237ee1a22ce39d01fbc7e77ac94b8e47..0000000000000000000000000000000000000000
diff --git a/core/live2d.d.ts b/core/live2d.d.ts
deleted file mode 100644
index 0283512ed1c9ea01d7dd1b67b76d660237b453e8..0000000000000000000000000000000000000000
diff --git a/cubism/.vscode/extensions.json b/cubism/.vscode/extensions.json
deleted file mode 100644
index fda5ad57b9567b939382ba15fb1d3b9f1fecf77e..0000000000000000000000000000000000000000
diff --git a/cubism/.vscode/tasks.json b/cubism/.vscode/tasks.json
deleted file mode 100644
index 7cd3fffed85da69d5af154f63480bce8766a038f..0000000000000000000000000000000000000000
diff --git a/types/index.d.ts b/types/index.d.ts
index dff08ce9cdd9adefd15841a750c556fc3203c750..51bae2d4d8d5cd25c3b9219d96e91dc4c96bb95c 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -1154,7 +1154,7 @@ export declare abstract class InternalModel extends EventEmitter {
/**
* The managed Live2D core model.
*/
- abstract readonly coreModel: object;
+ abstract readonly coreModel: CubismModel;
abstract readonly settings: ModelSettings;
focusController: FocusController;
abstract motionManager: MotionManager;

6882
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
public/images/hands/Alt.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
public/images/hands/AltGr.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
public/images/hands/BackQuote.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
public/images/hands/Backspace.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
public/images/hands/CapsLock.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
public/images/hands/Delete.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
public/images/hands/DownArrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
public/images/hands/Escape.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
public/images/hands/F0.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F5.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F7.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F8.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/F9.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
public/images/hands/KeyA.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
public/images/hands/KeyB.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
public/images/hands/KeyC.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
public/images/hands/KeyD.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
public/images/hands/KeyE.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
public/images/hands/KeyF.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
public/images/hands/KeyG.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
public/images/hands/KeyH.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
public/images/hands/KeyI.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
public/images/hands/KeyJ.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
public/images/hands/KeyK.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
public/images/hands/KeyL.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
public/images/hands/KeyM.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
public/images/hands/KeyN.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
public/images/hands/KeyO.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
public/images/hands/KeyP.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
public/images/hands/KeyQ.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
public/images/hands/KeyR.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
public/images/hands/KeyS.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
public/images/hands/KeyT.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
public/images/hands/KeyU.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
public/images/hands/KeyV.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
public/images/hands/KeyW.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
public/images/hands/KeyX.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
public/images/hands/KeyY.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
public/images/hands/KeyZ.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
public/images/hands/LeftArrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
public/images/hands/MetaLeft.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
public/images/hands/MetaRight.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
public/images/hands/Num0.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
public/images/hands/Num1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
public/images/hands/Num2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
public/images/hands/Num3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
public/images/hands/Num4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
public/images/hands/Num5.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
public/images/hands/Num6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
public/images/hands/Num7.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
public/images/hands/Num8.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
public/images/hands/Num9.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
public/images/hands/Return.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
public/images/hands/ShiftLeft.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
public/images/hands/Slash.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
public/images/hands/Space.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
public/images/hands/Tab.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
public/images/hands/UpArrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
public/images/hands/leftup.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
public/images/hands/rightup.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
public/images/keys/Alt.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
public/images/keys/AltGr copy.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
public/images/keys/AltGr.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
public/images/keys/BackQuote.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
public/images/keys/Backspace.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
public/images/keys/CapsLock.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
public/images/keys/Delete.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
public/images/keys/DownArrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
public/images/keys/Escape.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
public/images/keys/F0.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
public/images/keys/F1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
public/images/keys/F2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
public/images/keys/F3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
public/images/keys/F4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
public/images/keys/F5.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
public/images/keys/F6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Some files were not shown because too many files have changed in this diff Show More