commit 21a21c1dfddcbf1605fd1abaddd9d31c951a3363 Author: feie9454 Date: Wed Sep 10 17:39:23 2025 +0800 init commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..33895ab --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Vue 3 + TypeScript + Vite + +This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 ` + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..2a44f47 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "circuit-virtual-lab", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vue-tsc -b && vite build", + "preview": "vite preview" + }, + "dependencies": { + "openai": "^5.20.0", + "vue": "^3.5.18" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.1", + "@vue/tsconfig": "^0.7.0", + "typescript": "~5.8.3", + "vite": "^7.1.2", + "vue-tsc": "^3.0.5" + } +} diff --git a/public/vite.svg b/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..f1e28b3 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,1375 @@ + + + + + diff --git a/src/assets/Jersey20-Regular.ttf b/src/assets/Jersey20-Regular.ttf new file mode 100644 index 0000000..2e9fc67 Binary files /dev/null and b/src/assets/Jersey20-Regular.ttf differ diff --git a/src/assets/vue.svg b/src/assets/vue.svg new file mode 100644 index 0000000..770e9d3 --- /dev/null +++ b/src/assets/vue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/circuit-ele/battery.png b/src/circuit-ele/battery.png new file mode 100644 index 0000000..e5bd239 Binary files /dev/null and b/src/circuit-ele/battery.png differ diff --git a/src/circuit-ele/capacitor.png b/src/circuit-ele/capacitor.png new file mode 100644 index 0000000..a50db23 Binary files /dev/null and b/src/circuit-ele/capacitor.png differ diff --git a/src/circuit-ele/inductor.png b/src/circuit-ele/inductor.png new file mode 100644 index 0000000..db297c1 Binary files /dev/null and b/src/circuit-ele/inductor.png differ diff --git a/src/circuit-ele/light_bulb.png b/src/circuit-ele/light_bulb.png new file mode 100644 index 0000000..3f472d8 Binary files /dev/null and b/src/circuit-ele/light_bulb.png differ diff --git a/src/circuit-ele/light_bulb_grow.png b/src/circuit-ele/light_bulb_grow.png new file mode 100644 index 0000000..211fcc1 Binary files /dev/null and b/src/circuit-ele/light_bulb_grow.png differ diff --git a/src/circuit-ele/meter.png b/src/circuit-ele/meter.png new file mode 100644 index 0000000..d77b71e Binary files /dev/null and b/src/circuit-ele/meter.png differ diff --git a/src/circuit-ele/resistor.png b/src/circuit-ele/resistor.png new file mode 100644 index 0000000..b5e4b5b Binary files /dev/null and b/src/circuit-ele/resistor.png differ diff --git a/src/circuit-ele/switch_off.png b/src/circuit-ele/switch_off.png new file mode 100644 index 0000000..0caa140 Binary files /dev/null and b/src/circuit-ele/switch_off.png differ diff --git a/src/circuit-ele/switch_on.png b/src/circuit-ele/switch_on.png new file mode 100644 index 0000000..b0d1278 Binary files /dev/null and b/src/circuit-ele/switch_on.png differ diff --git a/src/components/AIAssistant.vue b/src/components/AIAssistant.vue new file mode 100644 index 0000000..7361952 --- /dev/null +++ b/src/components/AIAssistant.vue @@ -0,0 +1,270 @@ + + +