浏览代码

管理后台视觉优化

wangqi49 5 月之前
父节点
当前提交
4a6c23a8c3

二进制
.DS_Store


+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 72 - 0
.idea/workspace.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="AutoImportSettings">
+    <option name="autoReloadType" value="SELECTIVE" />
+  </component>
+  <component name="ChangeListManager">
+    <list default="true" id="b38871b0-bb40-441f-b377-5921d5041038" name="Changes" comment="">
+      <change beforePath="$PROJECT_DIR$/src/main/resources/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application-dev.yml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/resources/static/css/admin/console.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/css/admin/console.css" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/resources/static/image/icon/console-logo.png" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/image/icon/console-logo.png" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/resources/templates/admin/console.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/admin/console.html" afterDir="false" />
+    </list>
+    <option name="SHOW_DIALOG" value="false" />
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+    <option name="LAST_RESOLUTION" value="IGNORE" />
+  </component>
+  <component name="Git.Settings">
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
+  </component>
+  <component name="ProjectColorInfo">{
+  &quot;associatedIndex&quot;: 5
+}</component>
+  <component name="ProjectId" id="2q6LjQ5BW9EohyMPSlCGUSYWtA4" />
+  <component name="ProjectViewState">
+    <option name="openDirectoriesWithSingleClick" value="true" />
+    <option name="showLibraryContents" value="true" />
+  </component>
+  <component name="PropertiesComponent">{
+  &quot;keyToString&quot;: {
+    &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
+    &quot;git-widget-placeholder&quot;: &quot;master&quot;,
+    &quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
+    &quot;last_opened_file_path&quot;: &quot;/Users/wangqi49/Desktop/webchat&quot;,
+    &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
+    &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
+  }
+}</component>
+  <component name="RunManager">
+    <configuration name="WebChatApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
+      <module name="webchat" />
+      <option name="SPRING_BOOT_MAIN_CLASS" value="com.webchat.WebChatApplication" />
+      <method v="2">
+        <option name="Make" enabled="true" />
+      </method>
+    </configuration>
+  </component>
+  <component name="SharedIndexes">
+    <attachedChunks>
+      <set>
+        <option value="bundled-jdk-9f38398b9061-39b83d9b5494-intellij.indexing.shared.core-IU-241.15989.150" />
+        <option value="bundled-js-predefined-1d06a55b98c1-91d5c284f522-JavaScript-IU-241.15989.150" />
+      </set>
+    </attachedChunks>
+  </component>
+  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
+  <component name="TaskManager">
+    <task active="true" id="Default" summary="Default task">
+      <changelist id="b38871b0-bb40-441f-b377-5921d5041038" name="Changes" comment="" />
+      <created>1733978212725</created>
+      <option name="number" value="Default" />
+      <option name="presentableId" value="Default" />
+      <updated>1733978212725</updated>
+      <workItem from="1733978214186" duration="212000" />
+      <workItem from="1733978436158" duration="59000" />
+    </task>
+    <servers />
+  </component>
+  <component name="TypeScriptGeneratedFilesManager">
+    <option name="version" value="3" />
+  </component>
+</project>

二进制
src/.DS_Store


二进制
src/main/.DS_Store


二进制
src/main/resources/.DS_Store


+ 7 - 7
src/main/resources/application-dev.yml

@@ -16,9 +16,9 @@ swagger:
 spring:
   # set mysql config
   datasource:
-    url: jdbc:mysql://mysql57.rdsmfzxxwn3idxt.rds.bd.baidubce.com:3306/webchat?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
-    username: wangqi
-    password: wq547759477
+    url: jdbc:mysql://127.0.0.1:3306/webchat?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    username: root
+    password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
     hikari:
       maximum-pool-size: 50
@@ -39,7 +39,7 @@ spring:
   elasticsearch:
     message-index: chat_mess_dev
     rest:
-      uris: http://8.140.184.12:9200
+      uris: # es配置
 
 # 大模型配置,应用于对话机器人
 llm:
@@ -47,11 +47,11 @@ llm:
     # 当前开启使用哪个模型 kimi or deepseek
     model: kimi
     kimi:
-      api-key: sk-BsG4iFzdpTBbrsx5cCMlTVCRzI5pdlwGco8286ranZ746aX6
+      api-key: # 替换自己的kimi ak
       model: moonshot-v1-8k
     deepseek:
       api-key: #替换为自己的deepseek开发者apiKey
       model: deepseek-chat
     liblib:
-      accessKey: at4oOOb07YDuCFhICHWE-g
-      SecretKey: XegvK69OprhgesBBD6R5ohJlc9y0wqVC
+      accessKey: # 替换自己的liblib ak,注册liblib会送500积分
+      SecretKey: # 替换自己的liblib sk,注册liblib会送500积分

+ 4 - 4
src/main/resources/static/css/admin/console.css

@@ -12,14 +12,14 @@
     position: fixed;
     top: 65px;
     left: 0px;
-    width: 240px;
+    width: 200px;
     height: calc(100% - 65px);
     background: #393D49;
 }
 #console-body {
     position: absolute;
-    top: 80px;
-    left: 270px;
+    top: 70px;
+    left: 240px;
     width: calc(100% - 300px);
     height: auto;
     min-height: calc(100% - 80px);
@@ -29,7 +29,7 @@
 }
 .console-logo {
     position: absolute;
-    left: 40px;
+    left: 15px;
     font-size: 20px;
     line-height: 65px;
 }

二进制
src/main/resources/static/image/icon/console-logo.png


二进制
src/main/resources/templates/.DS_Store


+ 37 - 6
src/main/resources/templates/admin/console.html

@@ -8,7 +8,7 @@
     <meta http-equiv="cache-control" content="no-cache">
     <meta http-equiv="expires" content="0">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <title>程序员盒子旗下推出轻博客系统-控制台</title>
+    <title>webchat-控制台</title>
 
     <link rel="shortcut icon" href="/favicon.ico" />
     <link rel="bookmark" href="/favicon.ico" />
@@ -20,16 +20,16 @@
     <script src="/js/client/auth.js" type="text/javascript"></script>
 </head>
 
-<body>
+<body style="background-color: whitesmoke">
 <center>
     <!-- 控制台头部 -->
-    <div id="console-header" style="box-shadow: none">
-        <a href="/admin/console" class="console-logo"><img src="/image/icon/console-logo.png" style="height: 30px"></a>
+    <div id="console-header" style="box-shadow: none; background-color: whitesmoke; z-index: 999">
+        <a href="/admin/console" class="console-logo"><img src="/image/icon/console-logo.png" style="height: 45px"></a>
         <img src="" id="login-user-avatar" style="position: absolute; right: 80px; top: 10px; height: 40px; width:
         40px; border-radius: 80px">
     </div>
     <!-- 控制台导航 -->
-    <div id="console-left">
+    <div id="console-left" style="background-color: whitesmoke">
         <ul class="layui-nav layui-nav-tree layui-inline" style="margin-top: 20px; width: 240px;border: 0px;
         text-align: left" lay-filter="demo" id="menu-ul">
             <li class="layui-nav-item">
@@ -50,7 +50,8 @@
         </ul>
     </div>
     <!-- 控制台主体 -->
-    <iframe id="console-body" name="_body" src="/admin/default"></iframe>
+    <iframe id="console-body" name="_body" src="/admin/default"
+            style="background-color: white; padding: 20px; border-radius: 10px 10px 0px 0px; overflow: hidden"></iframe>
 </center>
 </body>
 
@@ -92,4 +93,34 @@
         });
     })
 </script>
+
+<style>
+    .layui-nav {
+        background-color: whitesmoke;
+        color: black;
+    }
+    .layui-nav-item {
+        background-color: whitesmoke;
+        color: black;
+    }
+    .layui-nav .layui-nav-item a {
+        color: black;
+        font-size: 15px;
+    }
+    .layui-nav .layui-nav-item a:hover {
+        color: #1f40f6;
+        font-size: 15px;
+        font-weight: 500;
+    }
+    .layui-nav-item .layui-this {
+        background-color: transparent;
+        color: #1f40f6;
+        font-weight: 500;
+    }
+    .layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover {
+        background-color: transparent;
+        color: #1f40f6;
+        font-weight: 500;
+    }
+</style>
 </html>

二进制
static/upload/image/329b617d9f4e484aafba0af295bca37a.png