mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-20 04:47:55 +00:00
upgraded
This commit is contained in:
parent
857a97be1c
commit
d741fad842
2
app.py
2
app.py
@ -1312,7 +1312,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
def upload_avatar(self):
|
||||
file = request.files['avatar']
|
||||
file.save(self.lollms_paths.personal_user_infos_path/file.filename)
|
||||
return jsonify({"status": True})
|
||||
return jsonify({"status": True,"file":file.filename})
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.list-move[data-v-a97c5223],.list-enter-active[data-v-a97c5223],.list-leave-active[data-v-a97c5223]{transition:all .5s ease}.list-enter-from[data-v-a97c5223]{transform:translatey(-30px)}.list-leave-to[data-v-a97c5223]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-a97c5223]{position:absolute}.bounce-enter-active[data-v-a97c5223]{animation:bounce-in-a97c5223 .5s}.bounce-leave-active[data-v-a97c5223]{animation:bounce-in-a97c5223 .5s reverse}@keyframes bounce-in-a97c5223{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-a97c5223]{background-color:#0ff}.hover[data-v-a97c5223]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-a97c5223]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
||||
.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.list-move[data-v-a3e2a62f],.list-enter-active[data-v-a3e2a62f],.list-leave-active[data-v-a3e2a62f]{transition:all .5s ease}.list-enter-from[data-v-a3e2a62f]{transform:translatey(-30px)}.list-leave-to[data-v-a3e2a62f]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-a3e2a62f]{position:absolute}.bounce-enter-active[data-v-a3e2a62f]{animation:bounce-in-a3e2a62f .5s}.bounce-leave-active[data-v-a3e2a62f]{animation:bounce-in-a3e2a62f .5s reverse}@keyframes bounce-in-a3e2a62f{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-a3e2a62f]{background-color:#0ff}.hover[data-v-a3e2a62f]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-a3e2a62f]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
||||
Theme: Tokyo-night-Dark
|
||||
origin: https://github.com/enkia/tokyo-night-vscode-theme
|
||||
Description: Original highlight.js style
|
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI - Welcome</title>
|
||||
<script type="module" crossorigin src="/assets/index-cefbd10a.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-1d739553.css">
|
||||
<script type="module" crossorigin src="/assets/index-6e792e12.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-4f9d4363.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -1562,9 +1562,9 @@ export default {
|
||||
.then(response => {
|
||||
console.log("Avatar uploaded successfully")
|
||||
// Assuming the server responds with the file name after successful upload
|
||||
const fileName = response.data.fileName;
|
||||
const fileName = response.fileName;
|
||||
this.user_avatar = fileName; // Update the user_avatar value with the file name
|
||||
this.update_setting("user_avatar",fileName).then(()=>{})
|
||||
this.update_setting("user_avatar", fileName, ()=>{}).then(()=>{})
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error uploading avatar:', error);
|
||||
|
Loading…
Reference in New Issue
Block a user