Browse Source

chore: init

main
K 3 weeks ago
commit
eedb83c3f8
  1. 10
      .claude/settings.local.json
  2. 1
      .gitignore
  3. 13
      index.html
  4. 1426
      package-lock.json
  5. 22
      package.json
  6. 1187
      src/App.vue
  7. 4
      src/main.ts
  8. 21
      tsconfig.json
  9. 10
      tsconfig.node.json
  10. 6
      vite.config.ts

10
.claude/settings.local.json

@ -0,0 +1,10 @@
{
"permissions": {
"allow": [
"Bash(npm create *)",
"Bash(npm install *)",
"Bash(npm run *)",
"Bash(pkill -f \"vite\")"
]
}
}

1
.gitignore vendored

@ -0,0 +1 @@
node_modules

13
index.html

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>音频检测系统</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

1426
package-lock.json generated

File diff suppressed because it is too large Load Diff

22
package.json

@ -0,0 +1,22 @@
{
"name": "voiceprint",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.4.0",
"wavesurfer.js": "^7.7.0",
"echarts": "^5.4.3"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",
"typescript": "^5.3.0",
"vite": "^5.0.0",
"vue-tsc": "^1.8.0"
}
}

1187
src/App.vue

File diff suppressed because it is too large Load Diff

4
src/main.ts

@ -0,0 +1,4 @@
import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')

21
tsconfig.json

@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}

10
tsconfig.node.json

@ -0,0 +1,10 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}

6
vite.config.ts

@ -0,0 +1,6 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
})
Loading…
Cancel
Save