mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #14054 from silentoplayz/delete-lightblub
fix: Correct typo in LightBulb component name and imports & delete lightblub.svelte (duplicate of lightbulb.svelte)
This commit is contained in:
commit
86f1aee20b
@ -10,7 +10,7 @@
|
|||||||
import { chatCompletion } from '$lib/apis/openai';
|
import { chatCompletion } from '$lib/apis/openai';
|
||||||
|
|
||||||
import ChatBubble from '$lib/components/icons/ChatBubble.svelte';
|
import ChatBubble from '$lib/components/icons/ChatBubble.svelte';
|
||||||
import LightBlub from '$lib/components/icons/LightBlub.svelte';
|
import LightBulb from '$lib/components/icons/LightBulb.svelte';
|
||||||
import Markdown from '../Messages/Markdown.svelte';
|
import Markdown from '../Messages/Markdown.svelte';
|
||||||
import Skeleton from '../Messages/Skeleton.svelte';
|
import Skeleton from '../Messages/Skeleton.svelte';
|
||||||
|
|
||||||
@ -256,7 +256,7 @@
|
|||||||
explainHandler();
|
explainHandler();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<LightBlub className="size-3 shrink-0" />
|
<LightBulb className="size-3 shrink-0" />
|
||||||
|
|
||||||
<div class="shrink-0">{$i18n.t('Explain')}</div>
|
<div class="shrink-0">{$i18n.t('Explain')}</div>
|
||||||
</button>
|
</button>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
TIP: {
|
TIP: {
|
||||||
border: 'border-emerald-500',
|
border: 'border-emerald-500',
|
||||||
text: 'text-emerald-500',
|
text: 'text-emerald-500',
|
||||||
icon: LightBlub
|
icon: LightBulb
|
||||||
},
|
},
|
||||||
IMPORTANT: {
|
IMPORTANT: {
|
||||||
border: 'border-purple-500',
|
border: 'border-purple-500',
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Info from '$lib/components/icons/Info.svelte';
|
import Info from '$lib/components/icons/Info.svelte';
|
||||||
import Star from '$lib/components/icons/Star.svelte';
|
import Star from '$lib/components/icons/Star.svelte';
|
||||||
import LightBlub from '$lib/components/icons/LightBlub.svelte';
|
import LightBulb from '$lib/components/icons/LightBulb.svelte';
|
||||||
import Bolt from '$lib/components/icons/Bolt.svelte';
|
import Bolt from '$lib/components/icons/Bolt.svelte';
|
||||||
import ArrowRightCircle from '$lib/components/icons/ArrowRightCircle.svelte';
|
import ArrowRightCircle from '$lib/components/icons/ArrowRightCircle.svelte';
|
||||||
import MarkdownTokens from './MarkdownTokens.svelte';
|
import MarkdownTokens from './MarkdownTokens.svelte';
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
export let className = 'w-4 h-4';
|
|
||||||
export let strokeWidth = '1.5';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
fill="none"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
stroke-width={strokeWidth}
|
|
||||||
stroke="currentColor"
|
|
||||||
class={className}
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
d="M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
@ -147,7 +147,7 @@
|
|||||||
<div class="mb-5 grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2">
|
<div class="mb-5 grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2">
|
||||||
{#each filteredItems as item}
|
{#each filteredItems as item}
|
||||||
<button
|
<button
|
||||||
class=" flex space-x-4 cursor-pointer text-left w-full px-3 py-2 hover:bg-gray-50 dark:hover:bg-gray-850 transition rounded-xl"
|
class=" flex space-x-4 cursor-pointer text-left w-full px-3 py-2 hover:bg-black/5 dark:hover:bg-white/5 transition rounded-xl"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
if (item?.meta?.document) {
|
if (item?.meta?.document) {
|
||||||
toast.error(
|
toast.error(
|
||||||
|
Loading…
Reference in New Issue
Block a user