diff --git a/README.md b/README.md
index aee4c81a..9ce96218 100644
--- a/README.md
+++ b/README.md
@@ -43,12 +43,6 @@ pnpm tauri dev
pnpm tauri build
```
-## 使用
-
-1. 在左侧编辑器输入代码
-2. 点击 "执行代码" 按钮执行
-3. 在右侧面板查看输出结果
-
## 技术栈
- **前端:** Vue 3 + TypeScript + Tailwind CSS
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 87b84fb1..e23f671e 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -64,8 +64,8 @@ async fn execute_code(
for cmd in plugin.get_commands() {
let args = plugin.get_execute_args(file_path.to_str().unwrap());
debug!(
- "执行插件代码 -> 执行命令: {} 携带参数: {:?} 语言: {}",
- cmd, args, request.language
+ "执行 {:?} 代码 -> 执行命令: {:?} 携带参数: {:?}",
+ request.language, cmd, args
);
let output = Command::new(cmd)
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index e818205c..0fcf933e 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -13,6 +13,8 @@
"windows": [
{
"title": "CodeForge",
+ "minWidth": 1000,
+ "minHeight": 600,
"width": 1800,
"height": 1200,
"additionalBrowserArgs": "--disable-context-menu"
diff --git a/src/components/About.vue b/src/components/About.vue
index 666e037e..f1ed8e13 100644
--- a/src/components/About.vue
+++ b/src/components/About.vue
@@ -11,7 +11,7 @@
@@ -61,7 +61,7 @@
技术栈
-
+
@@ -42,6 +38,7 @@
import { ref, watch } from 'vue'
import { Play, Square, Trash2 } from 'lucide-vue-next'
import Select from '../ui/Select.vue'
+import Button from '../ui/Button.vue'
interface Language
{
diff --git a/src/components/Settings.vue b/src/components/Settings.vue
index ff9f47ef..020beb25 100644
--- a/src/components/Settings.vue
+++ b/src/components/Settings.vue
@@ -2,7 +2,7 @@
-
-
-
-
-
-
- 关闭
-
-
@@ -139,6 +126,7 @@ import { openPath } from '@tauri-apps/plugin-opener'
import { FileText, Folder, Settings2, X } from 'lucide-vue-next'
import Select from '../ui/Select.vue'
import { useToast } from '../plugins/toast'
+import Button from '../ui/Button.vue'
const toast = useToast()
const isVisible = ref(false)
diff --git a/src/ui/Button.vue b/src/ui/Button.vue
new file mode 100644
index 00000000..31727a1c
--- /dev/null
+++ b/src/ui/Button.vue
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
+
+
+
diff --git a/src/ui/Select.vue b/src/ui/Select.vue
index 1674235f..52f7b044 100644
--- a/src/ui/Select.vue
+++ b/src/ui/Select.vue
@@ -9,7 +9,7 @@
@keydown.arrow-down.prevent="openDropdown"
@keydown.arrow-up.prevent="openDropdown"
:class="[
- 'relative w-full cursor-pointer rounded-lg border bg-white py-1 pl-3 pr-10 text-left transition-all duration-200 ring-1 ring-blue-200',
+ 'relative w-full cursor-pointer rounded-lg border bg-white px-4 py-2 pr-10 text-left transition-all duration-200 ring-1 ring-blue-200',
disabled ? 'cursor-not-allowed bg-gray-50 text-gray-400' : 'hover:border-gray-400',
...buttonClasses
]"