mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
Merge branch 'main' of https://github.com/nomic-ai/gpt4all-ui
This commit is contained in:
commit
27a8872308
@ -51,10 +51,17 @@
|
|||||||
<i data-feather="database"></i>
|
<i data-feather="database"></i>
|
||||||
</button>
|
</button>
|
||||||
<input type="file" ref="fileDialog" style="display: none" @change="importDiscussions" />
|
<input type="file" ref="fileDialog" style="display: none" @change="importDiscussions" />
|
||||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90"
|
<div @click="toggleDropdown" class="text-2xl hover:text-secondary duration-75">
|
||||||
title="Import discussions" type="button" @click.stop="$refs.fileDialog.click()">
|
<i data-feather="import"></i>
|
||||||
<i data-feather="log-in"></i>
|
</div>
|
||||||
</button>
|
<div @click="toggleDropdown" class="text-2xl hover:text-secondary duration-75">
|
||||||
|
<i data-feather="log-in"></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="isOpen" class="dropdown">
|
||||||
|
<button @click="importDiscussions">LOLLMS</button>
|
||||||
|
<button @click="importChatGPT">ChatGPT</button>
|
||||||
|
</div>
|
||||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Filter discussions"
|
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Filter discussions"
|
||||||
type="button" @click="isSearch = !isSearch" :class="isSearch ? 'text-secondary' : ''">
|
type="button" @click="isSearch = !isSearch" :class="isSearch ? 'text-secondary' : ''">
|
||||||
<i data-feather="search"></i>
|
<i data-feather="search"></i>
|
||||||
@ -355,6 +362,11 @@ export default {
|
|||||||
panelCollapsed: false // left panel collapse
|
panelCollapsed: false // left panel collapse
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isOpen: false
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showToastMessage(text){
|
showToastMessage(text){
|
||||||
console.log("sending",text)
|
console.log("sending",text)
|
||||||
@ -363,6 +375,12 @@ export default {
|
|||||||
togglePanel() {
|
togglePanel() {
|
||||||
this.panelCollapsed = !this.panelCollapsed;
|
this.panelCollapsed = !this.panelCollapsed;
|
||||||
},
|
},
|
||||||
|
toggleDropdown() {
|
||||||
|
this.isOpen = !this.isOpen;
|
||||||
|
},
|
||||||
|
importChatGPT() {
|
||||||
|
// handle ChatGPT import
|
||||||
|
},
|
||||||
async api_get_req(endpoint) {
|
async api_get_req(endpoint) {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get("/" + endpoint);
|
const res = await axios.get("/" + endpoint);
|
||||||
@ -376,8 +394,6 @@ export default {
|
|||||||
console.log(error.message, 'api_get_req')
|
console.log(error.message, 'api_get_req')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
async list_discussions() {
|
async list_discussions() {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user