This commit is contained in:
Saifeddine ALOUI 2024-10-16 22:59:48 +02:00
parent 9ea7a6e280
commit fb91c2b249
8 changed files with 32 additions and 31 deletions

8
web/dist/assets/index-9O6Btwmi.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-K2Bv9YN3.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DFmU6K6z.css">
<script type="module" crossorigin src="/assets/index-DPFvvYVB.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-9O6Btwmi.css">
</head>
<body>
<div id="app"></div>

View File

@ -31,7 +31,7 @@
<div class="mt-auto pt-4 border-t">
<div class="flex justify-between items-center flex-wrap">
<button @click.stop="$emit('toggle-favorite', app.uid)" class="text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out" :title="isFavorite ? 'Remove from favorites' : 'Add to favorites'">
<button @click.stop="$emit('toggle-favorite', app.name)" class="text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out" :title="isFavorite ? 'Remove from favorites' : 'Add to favorites'">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" :fill="isFavorite ? 'currentColor' : 'none'" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />
</svg>

View File

@ -470,14 +470,13 @@
title="Toggle View Mode"
>
<template #icon>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-10 h-10 text-blue-500 transition-colors duration-300 group-hover:text-yellow-400">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<circle cx="12" cy="5" r="2"></circle>
<path d="M12 7v4"></path>
<line x1="8" y1="16" x2="8" y2="16"></line>
<line x1="16" y1="16" x2="16" y2="16"></line>
</svg>
</template>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<circle cx="12" cy="5" r="2"></circle>
<path d="M12 7v4"></path>
<line x1="8" y1="16" x2="8" y2="16"></line>
<line x1="16" y1="16" x2="16" y2="16"></line>
</svg> </template>
</ChatBarButton>
</div>

View File

@ -104,7 +104,7 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8">
<app-card
v-for="app in favoriteApps"
:key="app.uid"
:key="app.appName"
:app="app"
@toggle-favorite="toggleFavorite"
@install="installApp"
@ -122,7 +122,7 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<app-card
v-for="app in sortedAndFilteredApps"
:key="app.uid"
:key="app.name"
:app="app"
@toggle-favorite="toggleFavorite"
@install="installApp"
@ -244,17 +244,19 @@ export default {
});
},
favoriteApps() {
return this.combinedApps.filter(app => this.favorites.includes(app.uid));
return this.combinedApps.filter(app => this.favorites.includes(app.appName));
},
},
methods: {
toggleSortOrder() {
this.sortOrder = this.sortOrder === 'asc' ? 'desc' : 'asc';
},
toggleFavorite(appUid) {
const index = this.favorites.indexOf(appUid);
toggleFavorite(appName) {
console.log("Toggling favorite")
console.log(appName)
const index = this.favorites.indexOf(appName);
if (index === -1) {
this.favorites.push(appUid);
this.favorites.push(appName);
} else {
this.favorites.splice(index, 1);
}

View File

@ -1,6 +1,6 @@
<template>
<transition name="fade-and-fly">
<div v-if="!isReady" class="fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-hidden">
<div v-if="!isReady" class="fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-gradient-to-br from-blue-400 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-hidden">
<!-- Falling strawberries -->
<div class="absolute inset-0 pointer-events-none overflow-hidden">
<div v-for="n in 50" :key="n" class="absolute animate-fall animate-giggle"