Jelajahi Sumber

Merge branch 'main' of http://gitlab.smartai.com/qi/xiaoshu

zhupei 1 tahun lalu
induk
melakukan
a66fa0a62c

+ 15 - 0
dist/assets/6-e1d52ebe.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="100px" height="32px" viewBox="0 0 100 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>上传</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="补图" transform="translate(-48, -148)">
+            <g id="编组-2" transform="translate(48, 148)">
+                <rect id="矩形" fill="#E8EDF5" x="0" y="0" width="100" height="32" rx="16"></rect>
+                <text id="上传图片" font-family="MiSans-Regular, MiSans" font-size="13" font-weight="normal" fill="#000000">
+                    <tspan x="35" y="21">上传图片</tspan>
+                </text>
+                <path d="M28.2,8 L13.8,8 C13.358176,8 13,8.34822667 13,8.77777778 L13,21.2222222 C13,21.6517889 13.358176,22 13.8,22 L28.2,22 C28.64184,22 29,21.6517889 29,21.2222222 L29,8.77777778 C29,8.34822667 28.64184,8 28.2,8 Z M21,19.8611111 C19.67448,19.8611111 18.6,18.8164778 18.6,17.5277778 L14.6,17.5277778 L14.6,9.55555556 L27.4,9.55555556 L27.4,17.5277778 L23.4,17.5277778 C23.4,18.8164778 22.32552,19.8611111 21,19.8611111 Z M24.2,14.2222222 L21.8,14.2222222 L21.8,18.3055556 L20.2,18.3055556 L20.2,14.2222222 L17.8,14.2222222 L21,10.7222222 L24.2,14.2222222 Z" id="形状" fill="#333333" fill-rule="nonzero"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 15 - 0
dist/assets/7-ffa8162d.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="100px" height="32px" viewBox="0 0 100 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>上传hover</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="补图" transform="translate(-170, -148)">
+            <g id="编组-2备份-2" transform="translate(170, 148)">
+                <rect id="矩形" fill="#E8EDF5" x="0" y="0" width="100" height="32" rx="16"></rect>
+                <text id="上传图片" font-family="MiSans-Regular, MiSans" font-size="13" font-weight="normal" fill="#00AEA3">
+                    <tspan x="35" y="21">上传图片</tspan>
+                </text>
+                <path d="M28.2,8 L13.8,8 C13.358176,8 13,8.34822667 13,8.77777778 L13,21.2222222 C13,21.6517889 13.358176,22 13.8,22 L28.2,22 C28.64184,22 29,21.6517889 29,21.2222222 L29,8.77777778 C29,8.34822667 28.64184,8 28.2,8 Z M21,19.8611111 C19.67448,19.8611111 18.6,18.8164778 18.6,17.5277778 L14.6,17.5277778 L14.6,9.55555556 L27.4,9.55555556 L27.4,17.5277778 L23.4,17.5277778 C23.4,18.8164778 22.32552,19.8611111 21,19.8611111 Z M24.2,14.2222222 L21.8,14.2222222 L21.8,18.3055556 L20.2,18.3055556 L20.2,14.2222222 L17.8,14.2222222 L21,10.7222222 L24.2,14.2222222 Z" id="形状" fill="#00AEA3" fill-rule="nonzero"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 15 - 0
dist/assets/8-9ed9b392.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="100px" height="32px" viewBox="0 0 100 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>上传选择</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="补图" transform="translate(-302, -148)">
+            <g id="编组-2备份-3" transform="translate(302, 148)">
+                <rect id="矩形" fill="#00AEA3" x="0" y="0" width="100" height="32" rx="16"></rect>
+                <text id="上传图片" font-family="MiSans-Regular, MiSans" font-size="13" font-weight="normal" fill="#FFFFFF">
+                    <tspan x="35" y="21">上传图片</tspan>
+                </text>
+                <path d="M28.2,8 L13.8,8 C13.358176,8 13,8.34822667 13,8.77777778 L13,21.2222222 C13,21.6517889 13.358176,22 13.8,22 L28.2,22 C28.64184,22 29,21.6517889 29,21.2222222 L29,8.77777778 C29,8.34822667 28.64184,8 28.2,8 Z M21,19.8611111 C19.67448,19.8611111 18.6,18.8164778 18.6,17.5277778 L14.6,17.5277778 L14.6,9.55555556 L27.4,9.55555556 L27.4,17.5277778 L23.4,17.5277778 C23.4,18.8164778 22.32552,19.8611111 21,19.8611111 Z M24.2,14.2222222 L21.8,14.2222222 L21.8,18.3055556 L20.2,18.3055556 L20.2,14.2222222 L17.8,14.2222222 L21,10.7222222 L24.2,14.2222222 Z" id="形状" fill="#FFFFFF" fill-rule="nonzero"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 1 - 1
dist/assets/Agent-44307508.js → dist/assets/Agent-f848c694.js

@@ -1 +1 @@
-import{a4 as t}from"./index-1bac2251.js";function s(a){return t.get("/api/v1/canvas/list",{params:a})}function e(){return t.get("/api/v1/llm/distinct",{})}function n(a){return t.get("/api/v1/conversation/app_usage")}function o(a){return t.post("/api/v1/conversation/app_usage/rm",a)}export{n as a,e as b,o as d,s as q};
+import{a4 as t}from"./index-3012c7dd.js";function s(a){return t.get("/api/v1/canvas/list",{params:a})}function e(){return t.get("/api/v1/llm/distinct",{})}function n(a){return t.get("/api/v1/conversation/app_usage")}function o(a){return t.post("/api/v1/conversation/app_usage/rm",a)}export{n as a,e as b,o as d,s as q};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/Knowledge-080c98c8.js


+ 1 - 1
dist/assets/Login-ed1fe7a2.js → dist/assets/Login-03fbb8c7.js

@@ -1 +1 @@
-import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as i,C as w,D as k,E as n,v as p,B as V,r as a}from"./index-1bac2251.js";const _=v({components:{},props:[],setup(){const{ajax:o,helper:e}=V("$global"),t=a(""),r=a("");return{login:async()=>{const l=await o.user.login(t.value,r.value);l&&(e.write("userName",l.nickname||l.username),e.write("token",l.access_token),e.goLink("/"))},username:t,password:r,goRegister:()=>{e.goLink("register")}}}});function y(o,e,t,r,u,d){const l=i("a-input"),m=i("a-input-password");return w(),k("main",null,[n("section",null,[e[6]||(e[6]=n("header",null,[n("img",{src:g}),n("p",null,"欢迎使用")],-1)),e[7]||(e[7]=n("p",null,"账号登录",-1)),n("section",null,[e[4]||(e[4]=n("p",null,"账号",-1)),n("div",null,[p(l,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=s=>o.username=s)},null,8,["modelValue"])])]),n("section",null,[e[5]||(e[5]=n("p",null,"密码",-1)),n("div",null,[p(m,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=s=>o.password=s)},null,8,["modelValue"])])]),n("section",null,[n("p",{style:{cursor:"pointer"},onClick:e[2]||(e[2]=(...s)=>o.goRegister&&o.goRegister(...s))},"去注册")]),n("div",{onClick:e[3]||(e[3]=(...s)=>o.login&&o.login(...s))},"登录")])])}const $=f(_,[["render",y],["__scopeId","data-v-c8b3e868"]]);export{$ as default};
+import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as i,C as w,D as k,E as n,v as p,B as V,r as a}from"./index-3012c7dd.js";const _=v({components:{},props:[],setup(){const{ajax:o,helper:e}=V("$global"),t=a(""),r=a("");return{login:async()=>{const l=await o.user.login(t.value,r.value);l&&(e.write("userName",l.nickname||l.username),e.write("token",l.access_token),e.goLink("/"))},username:t,password:r,goRegister:()=>{e.goLink("register")}}}});function y(o,e,t,r,u,d){const l=i("a-input"),m=i("a-input-password");return w(),k("main",null,[n("section",null,[e[6]||(e[6]=n("header",null,[n("img",{src:g}),n("p",null,"欢迎使用")],-1)),e[7]||(e[7]=n("p",null,"账号登录",-1)),n("section",null,[e[4]||(e[4]=n("p",null,"账号",-1)),n("div",null,[p(l,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=s=>o.username=s)},null,8,["modelValue"])])]),n("section",null,[e[5]||(e[5]=n("p",null,"密码",-1)),n("div",null,[p(m,{placeholder:"请输入手机号",style:{width:"250px",height:"40px"},modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=s=>o.password=s)},null,8,["modelValue"])])]),n("section",null,[n("p",{style:{cursor:"pointer"},onClick:e[2]||(e[2]=(...s)=>o.goRegister&&o.goRegister(...s))},"去注册")]),n("div",{onClick:e[3]||(e[3]=(...s)=>o.login&&o.login(...s))},"登录")])])}const $=f(_,[["render",y],["__scopeId","data-v-c8b3e868"]]);export{$ as default};

+ 1 - 1
dist/assets/Register-e6d03038.js → dist/assets/Register-6887fc94.js

@@ -1 +1 @@
-import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as p,C as w,D as _,E as s,v as a,B as V,r as u}from"./index-1bac2251.js";const y=v({components:{},props:[],setup(){const{ajax:n,helper:e}=V("$global"),l=u(""),t=u("");return{register:async()=>{const r=await n.user.register(l.value,t.value);r&&(e.write("userName",String(r.username)),e.goLink("/login"))},username:l,password:t}}});function b(n,e,l,t,i,r){const d=p("a-input"),m=p("a-input-password");return w(),_("main",null,[s("section",null,[e[5]||(e[5]=s("header",null,[s("img",{src:g}),s("p",null,"欢迎使用")],-1)),e[6]||(e[6]=s("p",null,"账号注册",-1)),s("section",null,[e[3]||(e[3]=s("p",null,"账号",-1)),s("div",null,[a(d,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:n.username,"onUpdate:modelValue":e[0]||(e[0]=o=>n.username=o)},null,8,["modelValue"])])]),s("section",null,[e[4]||(e[4]=s("p",null,"密码",-1)),s("div",null,[a(m,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:n.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.password=o)},null,8,["modelValue"])])]),s("div",{onClick:e[2]||(e[2]=(...o)=>n.register&&n.register(...o))},"注册")])])}const k=f(y,[["render",b],["__scopeId","data-v-b8d3c93b"]]);export{k as default};
+import{_ as g}from"./login-bd96354f.js";import{_ as f,m as v,x as p,C as w,D as _,E as s,v as a,B as V,r as u}from"./index-3012c7dd.js";const y=v({components:{},props:[],setup(){const{ajax:n,helper:e}=V("$global"),l=u(""),t=u("");return{register:async()=>{const r=await n.user.register(l.value,t.value);r&&(e.write("userName",String(r.username)),e.goLink("/login"))},username:l,password:t}}});function b(n,e,l,t,i,r){const d=p("a-input"),m=p("a-input-password");return w(),_("main",null,[s("section",null,[e[5]||(e[5]=s("header",null,[s("img",{src:g}),s("p",null,"欢迎使用")],-1)),e[6]||(e[6]=s("p",null,"账号注册",-1)),s("section",null,[e[3]||(e[3]=s("p",null,"账号",-1)),s("div",null,[a(d,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:n.username,"onUpdate:modelValue":e[0]||(e[0]=o=>n.username=o)},null,8,["modelValue"])])]),s("section",null,[e[4]||(e[4]=s("p",null,"密码",-1)),s("div",null,[a(m,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:n.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.password=o)},null,8,["modelValue"])])]),s("div",{onClick:e[2]||(e[2]=(...o)=>n.register&&n.register(...o))},"注册")])])}const k=f(y,[["render",b],["__scopeId","data-v-b8d3c93b"]]);export{k as default};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/authheader.vue_vue_type_script_setup_true_lang-14144eae.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/default-layout-58c9f5e5.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-0a73d081.css


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-2d1152e5.js


File diff ditekan karena terlalu besar
+ 1 - 1
dist/assets/index-3012c7dd.js


+ 1 - 1
dist/assets/index-9508215e.js → dist/assets/index-4393621f.js

@@ -1,4 +1,4 @@
-import{a3 as qk,a4 as Ks,m as Of,r as Zt,a5 as Ta,U as t1,b as _h,V as bg,C as zr,D as Fn,E as or,u as Ti,J as _s,K as lc,L as xa,R as r1,_ as zu,l as Iu,a6 as n1,f as wA,w as i1,x as vn,v as Qr,F as Fr,G as Ya,a7 as Ig,Q as qs,Z as mu,M as ys,n as XI,H as Ma,I as Ca,a8 as X5,N as wh,O as Bh,a9 as Wk,aa as Kk,ab as $5,ac as zk,ad as Vk}from"./index-1bac2251.js";import{a as U5,d as Zk,q as Xk}from"./Agent-44307508.js";import{p as $k}from"./icon-chart-38e5438e.js";import{a as JI}from"./auth-54229761.js";import{a as xB,u as e9}from"./index-e65d7b06.js";const SB="/assets/icon-user-007bea0f.jpg",Vp="/assets/icon-picture-144a065f.png";var t9=Object.defineProperty,r9=(D,U,K)=>U in D?t9(D,U,{enumerable:!0,configurable:!0,writable:!0,value:K}):D[U]=K,PI=(D,U,K)=>r9(D,typeof U!="symbol"?U+"":U,K);class j5 extends Error{constructor(U,K){super(U),PI(this,"type"),PI(this,"field"),PI(this,"value"),PI(this,"line"),this.name="ParseError",this.type=K.type,this.field=K.field,this.value=K.value,this.line=K.line}}function dB(D){}function n9(D){const{onEvent:U=dB,onError:K=dB,onRetry:ee=dB,onComment:ge}=D;let Ue="",ht=!0,ut,_t="",Jt="";function ar(sr){const Ir=ht?sr.replace(/^\xEF\xBB\xBF/,""):sr,[hn,Oe]=i9(`${Ue}${Ir}`);for(const Et of hn)Tt(Et);Ue=Oe,ht=!1}function Tt(sr){if(sr===""){yr();return}if(sr.startsWith(":")){ge&&ge(sr.slice(sr.startsWith(": ")?2:1));return}const Ir=sr.indexOf(":");if(Ir!==-1){const hn=sr.slice(0,Ir),Oe=sr[Ir+1]===" "?2:1,Et=sr.slice(Ir+Oe);Fe(hn,Et,sr);return}Fe(sr,"",sr)}function Fe(sr,Ir,hn){switch(sr){case"event":Jt=Ir;break;case"data":_t=`${_t}${Ir}
+import{a3 as qk,a4 as Ks,m as Of,r as Zt,a5 as Ta,U as t1,b as _h,V as bg,C as zr,D as Fn,E as or,u as Ti,J as _s,K as lc,L as xa,R as r1,_ as zu,l as Iu,a6 as n1,f as wA,w as i1,x as vn,v as Qr,F as Fr,G as Ya,a7 as Ig,Q as qs,Z as mu,M as ys,n as XI,H as Ma,I as Ca,a8 as X5,N as wh,O as Bh,a9 as Wk,aa as Kk,ab as $5,ac as zk,ad as Vk}from"./index-3012c7dd.js";import{a as U5,d as Zk,q as Xk}from"./Agent-f848c694.js";import{p as $k}from"./icon-chart-38e5438e.js";import{a as JI}from"./auth-54229761.js";import{a as xB,u as e9}from"./index-a6a8ada9.js";const SB="/assets/icon-user-007bea0f.jpg",Vp="/assets/icon-picture-144a065f.png";var t9=Object.defineProperty,r9=(D,U,K)=>U in D?t9(D,U,{enumerable:!0,configurable:!0,writable:!0,value:K}):D[U]=K,PI=(D,U,K)=>r9(D,typeof U!="symbol"?U+"":U,K);class j5 extends Error{constructor(U,K){super(U),PI(this,"type"),PI(this,"field"),PI(this,"value"),PI(this,"line"),this.name="ParseError",this.type=K.type,this.field=K.field,this.value=K.value,this.line=K.line}}function dB(D){}function n9(D){const{onEvent:U=dB,onError:K=dB,onRetry:ee=dB,onComment:ge}=D;let Ue="",ht=!0,ut,_t="",Jt="";function ar(sr){const Ir=ht?sr.replace(/^\xEF\xBB\xBF/,""):sr,[hn,Oe]=i9(`${Ue}${Ir}`);for(const Et of hn)Tt(Et);Ue=Oe,ht=!1}function Tt(sr){if(sr===""){yr();return}if(sr.startsWith(":")){ge&&ge(sr.slice(sr.startsWith(": ")?2:1));return}const Ir=sr.indexOf(":");if(Ir!==-1){const hn=sr.slice(0,Ir),Oe=sr[Ir+1]===" "?2:1,Et=sr.slice(Ir+Oe);Fe(hn,Et,sr);return}Fe(sr,"",sr)}function Fe(sr,Ir,hn){switch(sr){case"event":Jt=Ir;break;case"data":_t=`${_t}${Ir}
 `;break;case"id":ut=Ir.includes("\0")?void 0:Ir;break;case"retry":/^\d+$/.test(Ir)?ee(parseInt(Ir,10)):K(new j5(`Invalid \`retry\` value: "${Ir}"`,{type:"invalid-retry",value:Ir,line:hn}));break;default:K(new j5(`Unknown field "${sr.length>20?`${sr.slice(0,20)}…`:sr}"`,{type:"unknown-field",field:sr,value:Ir,line:hn}));break}}function yr(){_t.length>0&&U({id:ut,event:Jt||void 0,data:_t.endsWith(`
 `)?_t.slice(0,-1):_t}),ut=void 0,_t="",Jt=""}function Le(sr={}){Ue&&sr.consume&&Tt(Ue),ut=void 0,_t="",Jt="",Ue=""}return{feed:ar,reset:Le}}function i9(D){const U=[];let K="";const ee=D.length;for(let ge=0;ge<ee;ge++){const Ue=D[ge];Ue==="\r"&&D[ge+1]===`
 `?(U.push(K),K="",ge++):Ue==="\r"||Ue===`

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-575ecde2.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-66ad5294.js


+ 0 - 1
dist/assets/index-6d4bd986.js

@@ -1 +0,0 @@
-import{m as s,r as n,U as r,ae as o,x as _,C as c,D as i,v as l,E as t,_ as d}from"./index-1bac2251.js";const u={class:"container"},m={class:"iframe-box"},f=["src"],p={name:"Agent"},v=s({...p,setup(h){const e=n("");return r(()=>{e.value=`${o.RAGFlowUrl?o.RAGFlowUrl:window.location.origin}/flow?${localStorage.Authorization}`}),(x,g)=>{const a=_("Breadcrumb");return c(),i("div",u,[l(a,{items:["Agent","配置"]}),t("div",m,[t("iframe",{src:e.value,height:"100%",width:"100%",frameborder:"0"},null,8,f)])])}}});const B=d(v,[["__scopeId","data-v-82ea0634"]]);export{B as default};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-7f195b1e.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-a6a8ada9.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-a86d7d5d.js


+ 1 - 0
dist/assets/index-b545680f.js

@@ -0,0 +1 @@
+import{m as a,r as s,U as n,ae as r,x as _,C as c,D as d,v as l,E as t,_ as i}from"./index-3012c7dd.js";const u={class:"container"},m={class:"iframe-box"},f=["src"],p={name:"Agent"},v=a({...p,setup(h){const e=s("");return n(()=>{e.value=`${r.RAGFlowUrl}/flow?${localStorage.Authorization}`}),(x,g)=>{const o=_("Breadcrumb");return c(),d("div",u,[l(o,{items:["Agent","配置"]}),t("div",m,[t("iframe",{src:e.value,height:"100%",width:"100%",frameborder:"0"},null,8,f)])])}}});const b=i(v,[["__scopeId","data-v-82ea0634"]]);export{b as default};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-bcb37310.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-f55197f1.js


+ 11 - 0
dist/assets/left-hover-a3579f8d.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>左-hover</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="切图" transform="translate(-260, -298)" fill="#00AEA3" fill-rule="nonzero">
+            <g id="左备份" transform="translate(260, 298)">
+                <path d="M13.7071068,4.29289322 C13.3165825,3.90236893 12.6834175,3.90236893 12.2928932,4.29289322 L7.29289322,9.29289322 C6.90236893,9.68341751 6.90236893,10.3165825 7.29289322,10.7071068 L12.2928932,15.7071068 C12.6834175,16.0976311 13.3165825,16.0976311 13.7071068,15.7071068 C14.0976311,15.3165825 14.0976311,14.6834175 13.7071068,14.2928932 L9.415,10 L13.7071068,5.70710678 C14.0675907,5.34662282 14.0953203,4.77939176 13.7902954,4.38710056 L13.7071068,4.29289322 Z" id="路径"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 11 - 0
dist/assets/left-normal-61869892.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>左</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="切图" transform="translate(-260, -270)" fill="#333333" fill-rule="nonzero">
+            <g id="左" transform="translate(260, 270)">
+                <path d="M13.7071068,4.29289322 C13.3165825,3.90236893 12.6834175,3.90236893 12.2928932,4.29289322 L7.29289322,9.29289322 C6.90236893,9.68341751 6.90236893,10.3165825 7.29289322,10.7071068 L12.2928932,15.7071068 C12.6834175,16.0976311 13.3165825,16.0976311 13.7071068,15.7071068 C14.0976311,15.3165825 14.0976311,14.6834175 13.7071068,14.2928932 L9.415,10 L13.7071068,5.70710678 C14.0675907,5.34662282 14.0953203,4.77939176 13.7902954,4.38710056 L13.7071068,4.29289322 Z" id="路径"></path>
+            </g>
+        </g>
+    </g>
+</svg>

TEMPAT SAMPAH
dist/assets/loading-201e54fb.gif


+ 1 - 1
dist/assets/loading-93c41312.js → dist/assets/loading-3b12a650.js

@@ -1 +1 @@
-import{r as a}from"./index-1bac2251.js";function l(e=!1){const o=a(e);return{loading:o,setLoading:t=>{o.value=t},toggle:()=>{o.value=!o.value}}}export{l as u};
+import{r as a}from"./index-3012c7dd.js";function l(e=!1){const o=a(e);return{loading:o,setLoading:t=>{o.value=t},toggle:()=>{o.value=!o.value}}}export{l as u};

+ 11 - 0
dist/assets/right-hover-47e09444.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>右- hover</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="切图" transform="translate(-222, -298)" fill="#00AEA3" fill-rule="nonzero">
+            <g id="右备份" transform="translate(222, 298)">
+                <path d="M7.29289322,4.29289322 C7.68341751,3.90236893 8.31658249,3.90236893 8.70710678,4.29289322 L13.7071068,9.29289322 C14.0976311,9.68341751 14.0976311,10.3165825 13.7071068,10.7071068 L8.70710678,15.7071068 C8.31658249,16.0976311 7.68341751,16.0976311 7.29289322,15.7071068 C6.90236893,15.3165825 6.90236893,14.6834175 7.29289322,14.2928932 L11.585,10 L7.29289322,5.70710678 C6.93240926,5.34662282 6.90467972,4.77939176 7.20970461,4.38710056 L7.29289322,4.29289322 Z" id="路径"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 11 - 0
dist/assets/right-normal-32bb0c29.svg

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>右</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="切图" transform="translate(-222, -270)" fill="#333333" fill-rule="nonzero">
+            <g id="右" transform="translate(222, 270)">
+                <path d="M7.29289322,4.29289322 C7.68341751,3.90236893 8.31658249,3.90236893 8.70710678,4.29289322 L13.7071068,9.29289322 C14.0976311,9.68341751 14.0976311,10.3165825 13.7071068,10.7071068 L8.70710678,15.7071068 C8.31658249,16.0976311 7.68341751,16.0976311 7.29289322,15.7071068 C6.90236893,15.3165825 6.90236893,14.6834175 7.29289322,14.2928932 L11.585,10 L7.29289322,5.70710678 C6.93240926,5.34662282 6.90467972,4.77939176 7.20970461,4.38710056 L7.29289322,4.29289322 Z" id="路径"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 2 - 2
dist/index.html

@@ -5,8 +5,8 @@
         <link rel="icon" href="/logo.svg" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
         <title>大模型系统</title>
-      <script type="module" crossorigin src="/assets/index-1bac2251.js"></script>
-      <link rel="stylesheet" href="/assets/index-685b47ef.css">
+      <script type="module" crossorigin src="/assets/index-3012c7dd.js"></script>
+      <link rel="stylesheet" href="/assets/index-0a73d081.css">
     </head>
     <body>
         <div id="app"></div>

+ 23 - 16
src/components/DialogWrap.vue

@@ -30,7 +30,7 @@
             <p style="margin-top: 0">{{ item.question }}</p>
           </div>
           <!-- 如果是代码则不显示头像 -->
-          <div class="dialog-header" v-if="item?.capacity && !(item.code || item.sql)">
+          <div class="dialog-header" v-if="item?.capacity">
             <img alt="avatar" src="/src/assets/slider/logo.jpg" width="28" />
           </div>
 
@@ -160,7 +160,7 @@
           </div>
 
           <!-- 如果有图片 -->
-          <div v-if="item?.image_url">
+          <div v-if="item?.image_url" style="margin-left: 50px;">
             <a-image width="500" :src="item?.image_url" />
           </div>
 
@@ -170,6 +170,8 @@
             <span>
               <b>{{ item.file.file_name }}</b>
             </span>
+
+            <icon-download style="margin-right: 24px;font-size: 32px;" />
           </div>
           <div class="dialog-other" v-if="item?.other">
             <p v-if="isSetting">
@@ -227,7 +229,7 @@ import { defineComponent, ref, onBeforeUnmount, onMounted, reactive, nextTick, i
 import formatAnwserString from './refference-effect/format-anwser-string';
 import applyRefferencePopover from './refference-effect/apply-refference-popover';
 
-import {getDocumentUrl} from '../ajax/document';
+import { getDocumentUrl } from '../ajax/document';
 
 export default defineComponent({
   components: {
@@ -355,7 +357,7 @@ export default defineComponent({
     // 点击文档,打开新页面
     const openDocuementPage = (knowledge) => {
       const doc_name = knowledge.doc_name;
-      const doc_id =  knowledge.id;
+      const doc_id = knowledge.id;
 
       // const pdf_url = `http://192.168.20.119:11080/v1/document/get/${doc_id}`;
       const pdf_url = getDocumentUrl(doc_id);
@@ -432,7 +434,7 @@ export default defineComponent({
       // TODO: 只允许保存一条消息
       let msg_list = [];
 
-      function createSocket(){
+      function createSocket() {
         const token = helper.read("token");
         // 如果是智能数据,则拿缓存里的数据开启对话
         if (helper.read("sendData") && helper.read("sendData").agent_id == 'basic_excel_talk') {
@@ -448,7 +450,7 @@ export default defineComponent({
 
         // 监听socket开启事件
         // 当socket开启后,遍历消息,并发送
-        helper.webSocket.onopen = function(event){
+        helper.webSocket.onopen = function (event) {
           msg_list.forEach(item => {
             helper.webSocket.send(item);
           });
@@ -459,20 +461,20 @@ export default defineComponent({
       }
 
       // 发送socket数据
-      function sendSocketMsg(dt){
+      function sendSocketMsg(dt) {
         // 判断socket是否开启
         // 如果开启,则直接发送,如果没有开启,则将数据推入消息队列 
-        if(helper.webSocket.readyState === 0){
+        if (helper.webSocket.readyState === 0) {
           msg_list.push(dt);
         }
-        if(helper.webSocket.readyState === 1){
+        if (helper.webSocket.readyState === 1) {
           helper.webSocket.send(dt);
         }
-        if(helper.webSocket.readyState === 2){
+        if (helper.webSocket.readyState === 2) {
           // 正在关闭
           console.log('web socket正在关闭');
         }
-        if(helper.webSocket.readyState === 3){
+        if (helper.webSocket.readyState === 3) {
           msg_list.push(dt);
 
           // 已关闭: 重新开启socket
@@ -530,7 +532,7 @@ export default defineComponent({
             });
           }
 
-          // 如果是智能数据则优先处理代码
+          // 智能数据
           if (props.type == 'smartData') {
             answerData.value = '正在处理中...'
             // 以下是智能数据对话的变量
@@ -556,14 +558,16 @@ export default defineComponent({
 
             if (sql) answerSql.value = getHTML(sql);
           }
+          // 出题
           if (props.type == 'question') {
-            const { file_url, filename, excel_name } = JSON.parse(event.data);
+            const { file_url, file_name } = JSON.parse(event.data);
+            const port = window.location.port ? `:${window.location.port}` : '';
 
             if (file_url) {
               const file = {
                 file_type: 'word',
-                file_url: `http://${window.location.hostname}${port}${excel_url}`,
-                file_name: `${excel_name}.docx` || '点击下载',
+                file_url: `http://${window.location.hostname}${port}${file_url}`,
+                file_name: `${file_name}.docx` || '点击下载',
               }
               answerFile.value = file
             }
@@ -626,7 +630,7 @@ export default defineComponent({
     return {
       goKnowledge,
       randomKey,
-      
+
       showFeedback,
       copyAnswer,
       dialogList,
@@ -701,6 +705,7 @@ export default defineComponent({
   background-color: #F5F7FE;
   border-radius: 16px;
   padding: 6px;
+  margin-left: 50px;
 
   >img {
     width: 50px;
@@ -861,6 +866,7 @@ export default defineComponent({
     background-color: #32333c;
     color: #BCBDC3;
     margin: 16px 0;
+    margin-left: 50px;
 
     .dialog-code-footer-title {
       font-size: 16px;
@@ -1025,6 +1031,7 @@ export default defineComponent({
   bottom: 0;
   overflow-y: auto;
   overflow-x: hidden;
+  padding-right: 32px;
 }
 
 .section-open {

+ 6 - 5
src/views/Home.vue

@@ -14,7 +14,7 @@
 
       <div class="wrap">
         <Index :number="swiperNumber" v-if="navId === -1" @select-nav="selectNav" />
-        
+
         <div :class="{ 'border-wrap': true, 'border-no-wrap': navId === -2 }" v-else>
           <div>
             <header v-if="!showDialog">
@@ -92,7 +92,7 @@
                   paddingBottom: `${textValue.length > maxLength / 2 ? '20px' : ''}`
                 }">
               </a-textarea>
-              
+
               <a-button :style="{ width: '500px' }" type="primary" @click="beginCombine">开始</a-button>
             </footer>
 
@@ -315,12 +315,12 @@ export default defineComponent({
           });
         }
       }
-      
+
       // 如果不是历史记录对话模式,则创建对话
       if (!historyMode.value) {
         const data = await ajax.message.createDialog(selectId.value);
 
-        if(data){
+        if (data) {
           dialogId.value = data.chat_id;
         }
       }
@@ -538,7 +538,7 @@ export default defineComponent({
       border-radius: 14px;
       display: flex;
       flex-direction: column;
-      padding: 0 32px;
+      padding-left: 32px;
       position: relative;
 
       >div {
@@ -592,6 +592,7 @@ export default defineComponent({
         overflow: hidden;
 
         &.section-padding {
+          padding-right: 32px;
           padding-bottom: 50px;
         }
       }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini