fix: Make icon import style consistent
This commit is contained in:
parent
9001356f53
commit
6fd8f0f85f
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
import MessageSquare from 'lucide-svelte/icons/message-square';
|
import { MessageSquare } from 'lucide-svelte';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
channelName: string;
|
channelName: string;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import MessagesSquare from 'lucide-svelte/icons/messages-square';
|
import { MessageSquare } from 'lucide-svelte';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import type { PageData } from '../../routes/(main)/$types';
|
import type { PageData } from '../../routes/(main)/$types';
|
||||||
import Channel from './channel.svelte';
|
import Channel from './channel.svelte';
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="flex h-full max-h-screen flex-col gap-2">
|
<div class="flex h-full max-h-screen flex-col gap-2">
|
||||||
<div class="flex h-14 items-center border-b px-4 lg:h-[60px] lg:px-6">
|
<div class="flex h-14 items-center border-b px-4 lg:h-[60px] lg:px-6">
|
||||||
<a href="/" class="flex items-center gap-2 font-semibold">
|
<a href="/" class="flex items-center gap-2 font-semibold">
|
||||||
<MessagesSquare class="h-6 w-6" />
|
<MessageSquare class="h-6 w-6" />
|
||||||
<span class="">SVChat</span>
|
<span class="">SVChat</span>
|
||||||
</a>
|
</a>
|
||||||
<ModeSwitcher />
|
<ModeSwitcher />
|
||||||
|
@ -4,10 +4,7 @@
|
|||||||
import renderMarkdown from '$lib/functions/renderMarkdown';
|
import renderMarkdown from '$lib/functions/renderMarkdown';
|
||||||
import { type TypeMessage } from '$lib/types';
|
import { type TypeMessage } from '$lib/types';
|
||||||
|
|
||||||
import Clipboard from 'lucide-svelte/icons/clipboard';
|
import { Clipboard, SquareUserRound, IdCard, CalendarClock } from 'lucide-svelte';
|
||||||
import SquareUserRound from 'lucide-svelte/icons/square-user-round';
|
|
||||||
import IDCard from 'lucide-svelte/icons/id-card';
|
|
||||||
import CalendarClock from 'lucide-svelte/icons/calendar-clock';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
@ -63,7 +60,7 @@
|
|||||||
>
|
>
|
||||||
<!-- Copy User ID -->
|
<!-- Copy User ID -->
|
||||||
<ContextMenu.Item class="flex cursor-pointer items-center gap-1.5" onclick={() => copy('user ID', uid)}
|
<ContextMenu.Item class="flex cursor-pointer items-center gap-1.5" onclick={() => copy('user ID', uid)}
|
||||||
><IDCard size={16} />Copy User ID</ContextMenu.Item
|
><IdCard size={16} />Copy User ID</ContextMenu.Item
|
||||||
>
|
>
|
||||||
<ContextMenu.Separator />
|
<ContextMenu.Separator />
|
||||||
<!-- Copy Text -->
|
<!-- Copy Text -->
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import * as Tooltip from '$lib/components/ui/tooltip';
|
import * as Tooltip from '$lib/components/ui/tooltip';
|
||||||
import { buttonVariants } from '$lib/components/ui/button';
|
import { buttonVariants } from '$lib/components/ui/button';
|
||||||
import Moon from 'lucide-svelte/icons/moon-star';
|
import { Moon, Sun } from 'lucide-svelte';
|
||||||
import Sun from 'lucide-svelte/icons/sun';
|
|
||||||
import { toggleMode } from 'mode-watcher';
|
import { toggleMode } from 'mode-watcher';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { ContextMenu as ContextMenuPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
import { ContextMenu as ContextMenuPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
||||||
import Check from 'lucide-svelte/icons/check';
|
import { Check, Minus } from 'lucide-svelte';
|
||||||
import Minus from 'lucide-svelte/icons/minus';
|
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { ContextMenu as ContextMenuPrimitive, type WithoutChild } from 'bits-ui';
|
import { ContextMenu as ContextMenuPrimitive, type WithoutChild } from 'bits-ui';
|
||||||
import Circle from 'lucide-svelte/icons/circle';
|
import { Circle } from 'lucide-svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
let { ref = $bindable(null), class: className, children: childrenProp, ...restProps }: WithoutChild<ContextMenuPrimitive.RadioItemProps> = $props();
|
let { ref = $bindable(null), class: className, children: childrenProp, ...restProps }: WithoutChild<ContextMenuPrimitive.RadioItemProps> = $props();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { ContextMenu as ContextMenuPrimitive, type WithoutChild } from 'bits-ui';
|
import { ContextMenu as ContextMenuPrimitive, type WithoutChild } from 'bits-ui';
|
||||||
import ChevronRight from 'lucide-svelte/icons/chevron-right';
|
import { ChevronRight } from 'lucide-svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Dialog as DialogPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
import { Dialog as DialogPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
||||||
import X from 'lucide-svelte/icons/x';
|
import { X } from 'lucide-svelte';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import * as Dialog from './index.js';
|
import * as Dialog from './index.js';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
||||||
import Check from 'lucide-svelte/icons/check';
|
import { Check, Minus } from 'lucide-svelte';
|
||||||
import Minus from 'lucide-svelte/icons/minus';
|
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChild } from 'bits-ui';
|
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChild } from 'bits-ui';
|
||||||
import Circle from 'lucide-svelte/icons/circle';
|
import { Circle } from 'lucide-svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChild } from 'bits-ui';
|
import { DropdownMenu as DropdownMenuPrimitive, type WithoutChild } from 'bits-ui';
|
||||||
import ChevronRight from 'lucide-svelte/icons/chevron-right';
|
import { ChevronRight } from 'lucide-svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';
|
import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';
|
||||||
import Check from 'lucide-svelte/icons/check';
|
import { Check } from 'lucide-svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import ChevronDown from 'lucide-svelte/icons/chevron-down';
|
import { ChevronDown } from 'lucide-svelte';
|
||||||
import { Select as SelectPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
import { Select as SelectPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import ChevronUp from 'lucide-svelte/icons/chevron-up';
|
import { ChevronUp } from 'lucide-svelte';
|
||||||
import { Select as SelectPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
import { Select as SelectPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';
|
import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';
|
||||||
import ChevronDown from 'lucide-svelte/icons/chevron-down';
|
import { ChevronDown } from 'lucide-svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
|
||||||
let { ref = $bindable(null), class: className, children, ...restProps }: WithoutChild<SelectPrimitive.TriggerProps> = $props();
|
let { ref = $bindable(null), class: className, children, ...restProps }: WithoutChild<SelectPrimitive.TriggerProps> = $props();
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Dialog as SheetPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
import { Dialog as SheetPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
||||||
import X from 'lucide-svelte/icons/x';
|
import { X } from 'lucide-svelte';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import SheetOverlay from './sheet-overlay.svelte';
|
import SheetOverlay from './sheet-overlay.svelte';
|
||||||
import { cn } from '$lib/utils.js';
|
import { cn } from '$lib/utils.js';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Button } from '$lib/components/ui/button/index';
|
import { Button } from '$lib/components/ui/button/index';
|
||||||
import * as Tooltip from '$lib/components/ui/tooltip';
|
import * as Tooltip from '$lib/components/ui/tooltip';
|
||||||
import Cog from 'lucide-svelte/icons/cog';
|
import { Cog } from 'lucide-svelte';
|
||||||
import type { PageData } from '../../routes/(main)/$types';
|
import type { PageData } from '../../routes/(main)/$types';
|
||||||
const { data }: { data: PageData } = $props();
|
const { data }: { data: PageData } = $props();
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
import * as Card from '$lib/components/ui/card';
|
import * as Card from '$lib/components/ui/card';
|
||||||
import BrokenHeart from 'lucide-svelte/icons/heart-crack';
|
import { BrokenHeart } from 'lucide-svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class="relative size-full">
|
<main class="relative size-full">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
import { buttonVariants } from '$lib/components/ui/button';
|
import { buttonVariants } from '$lib/components/ui/button';
|
||||||
import { autoResize } from '$lib/functions/autoresize.svelte';
|
import { autoResize } from '$lib/functions/autoresize.svelte';
|
||||||
import Websocket from '$lib/functions/clientWebsocket.svelte';
|
import Websocket from '$lib/functions/clientWebsocket.svelte';
|
||||||
import Send from 'lucide-svelte/icons/send';
|
import { Send } from 'lucide-svelte';
|
||||||
import { io } from 'socket.io-client';
|
import { io } from 'socket.io-client';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
|
Loading…
Reference in New Issue
Block a user