From f8467610f659a15931c982978c89e1b225dd8067 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Wed, 25 Jun 2025 20:10:14 +0800 Subject: [PATCH] =?UTF-8?q?:poop:=20=E4=B8=BB=E9=A1=B5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- .../src/main/resources/application.yml | 2 +- .../src/main/resources/templates/index.html | 242 +++++++++++++++--- 3 files changed, 208 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index a0e2170..657310b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ dist-ssr .eslintcache report.html vite.config.*.timestamp* - +application-prod.yml bunny-web.site.csr bunny-web.site.key bunny-web.site_bundle.crt diff --git a/generator-code-server/generator-code/src/main/resources/application.yml b/generator-code-server/generator-code/src/main/resources/application.yml index df0fbdf..6c73de8 100644 --- a/generator-code-server/generator-code/src/main/resources/application.yml +++ b/generator-code-server/generator-code/src/main/resources/application.yml @@ -3,7 +3,7 @@ server: spring: profiles: - active: dev + active: prod application: name: generator-code thymeleaf: diff --git a/generator-code-server/generator-code/src/main/resources/templates/index.html b/generator-code-server/generator-code/src/main/resources/templates/index.html index 0877efc..31482a0 100644 --- a/generator-code-server/generator-code/src/main/resources/templates/index.html +++ b/generator-code-server/generator-code/src/main/resources/templates/index.html @@ -16,6 +16,7 @@ +
@@ -39,17 +40,20 @@
- - 数据库: {{dbCount}} - + + + 数据库: {{databaseList.length}} + - 数据库表: {{tableCount}} - + + 数据库表: {{rawTableList.length}} +

- 点击 表名生成 进行跳转 + + 点击 表名 或 + 生成 进行跳转

@@ -58,7 +62,7 @@
+ href="https://github.com/BunnyMaster/generator-code-server" target="_blank"> + href="https://gitee.com/BunnyBoss/generator-code-server" target="_blank"> @@ -101,16 +105,51 @@ 数据库表选择 - +
- + +
+ +
+ + + 数据库连接详情 + + +
+
+
    +
  • + 数据库: {{databaseInfo.databaseProductName}} + {{databaseInfo.databaseProductVersion}} +
  • +
  • + 驱动: {{databaseInfo.driverName}} + ({{databaseInfo.driverVersion}}) +
  • +
  • URL: + {{databaseInfo.url}} +
  • +
  • 用户: {{databaseInfo.username}}
  • +
  • 当前库: {{databaseInfo.currentDatabase}}
  • +
+
+
+
@@ -121,25 +160,34 @@ 数据表列表 +
- + +
+
+ Loading... +
+
+ + +
- + - + - + -
#表名表名 注释 所属数据库操作操作
{{index + 1}} {{ table.tableName}} {{ table.comment }} {{ table.tableCat }} + @@ -149,64 +197,186 @@
+ + + + + \ No newline at end of file