commit db45a669e3778d8f9dac6bdf908306c58e5a1672
Author: Wang Defa <61809431+wangdefaa@users.noreply.github.com>
Date: Thu Jul 9 15:31:29 2026 +0800
初始提交:OCI 面板前端(含 GenAI 网关一期)
diff --git a/.env.development b/.env.development
new file mode 100644
index 0000000..a62bf31
--- /dev/null
+++ b/.env.development
@@ -0,0 +1,2 @@
+# 开发期默认走内置 mock;对接真实后端时改为 0 并启动 oci-portal(:8080)
+VITE_MOCK=0
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a739064
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+node_modules
+dist
+*.local
+.DS_Store
+npm-debug.log*
+.playwright-cli
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..3ee2d11
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,6 @@
+{
+ "semi": false,
+ "singleQuote": true,
+ "printWidth": 100,
+ "trailingComma": "all"
+}
diff --git a/env.d.ts b/env.d.ts
new file mode 100644
index 0000000..4287929
--- /dev/null
+++ b/env.d.ts
@@ -0,0 +1,10 @@
+///
| 名称 | +私网 IP | +公网 IP | +子网 | +状态 | +操作 | +
|---|---|---|---|---|---|
|
+
+
+ {{ v.displayName || '(未命名)' }}
+
+
+ 主网卡
+
+
+ |
+ {{ v.privateIp || '—' }} | +{{ v.publicIp || '—' }} | +
+
+ {{ v.subnetName }}
+
+ |
+
+ |
+ |
|
+
+ IPV6
+
+
+ {{ addr }}
+
+
+
+ 无
+
+
+ |
+ |||||
{{ fmtBody(contentLog.requestBody) }}
+ {{ fmtBody(contentLog.responseBody) }}
+ scheme://[user:pass@]host:port
+ scheme 为 socks5 / http / https
+ host:port[:user:pass]
+ 无协议头,缺省按 SOCKS5;# 开头为注释
+ | 名称 | +类型 | +Client ID | +状态 | +操作 | +
|---|---|---|---|---|
| {{ row.name }} | ++ + {{ row.provider }} + + | ++ {{ row.clientId }} + | ++ + + {{ row.disabled ? '已禁用' : '启用中' }} + + | +
+ |
+
{{ rootPassword }}
+