refactor: 将图标依赖从 lucide-svelte 迁移至 @lucide/svelte
This commit is contained in:
1 parent
2eb55e2efd
commit
832c656805
14 files changed
+14
-14
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { toastState } from '$lib/stores/toast.svelte';
|
import { toastState } from '$lib/stores/toast.svelte';
|
||||||
import { Check, CircleX, Info, X } from 'lucide-svelte';
|
import { Check, CircleX, Info, X } from '@lucide/svelte';
|
||||||
import { fade, fly } from 'svelte/transition';
|
import { fade, fly } from 'svelte/transition';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Calendar } from 'lucide-svelte';
|
import { Calendar } from '@lucide/svelte';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
value = $bindable(''),
|
value = $bindable(''),
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
ListOrdered,
|
ListOrdered,
|
||||||
SquareSplitVertical,
|
SquareSplitVertical,
|
||||||
Strikethrough
|
Strikethrough
|
||||||
} from 'lucide-svelte';
|
} from '@lucide/svelte';
|
||||||
import { addToast } from '$lib/stores/toast.svelte';
|
import { addToast } from '$lib/stores/toast.svelte';
|
||||||
import { imagePreviewPlugin } from '$lib/editor/imagePreviewPlugin';
|
import { imagePreviewPlugin } from '$lib/editor/imagePreviewPlugin';
|
||||||
import { tableFormatterPlugin } from '$lib/editor/tableFormatterPlugin';
|
import { tableFormatterPlugin } from '$lib/editor/tableFormatterPlugin';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { tick } from 'svelte';
|
import { tick } from 'svelte';
|
||||||
import { ListTree, X } from 'lucide-svelte';
|
import { ListTree, X } from '@lucide/svelte';
|
||||||
import ArticleOutline from './ArticleOutline.svelte';
|
import ArticleOutline from './ArticleOutline.svelte';
|
||||||
import type { EditorOutline } from '$lib/editor/outline.svelte';
|
import type { EditorOutline } from '$lib/editor/outline.svelte';
|
||||||
let { outline }: { outline: EditorOutline } = $props();
|
let { outline }: { outline: EditorOutline } = $props();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { ChevronDown } from 'lucide-svelte';
|
import { ChevronDown } from '@lucide/svelte';
|
||||||
|
|
||||||
type SelectValue = string | number;
|
type SelectValue = string | number;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
|
|
||||||
import { ExternalLink } from 'lucide-svelte';
|
import { ExternalLink } from '@lucide/svelte';
|
||||||
import Toast from '$lib/components/Toast.svelte';
|
import Toast from '$lib/components/Toast.svelte';
|
||||||
import ConfirmDialog from '$lib/components/ConfirmDialog.svelte';
|
import ConfirmDialog from '$lib/components/ConfirmDialog.svelte';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import { ArrowUpRight } from 'lucide-svelte';
|
import { ArrowUpRight } from '@lucide/svelte';
|
||||||
let { data }: { data: PageData } = $props();
|
let { data }: { data: PageData } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
|
|
||||||
import { enhance } from '$app/forms';
|
import { enhance } from '$app/forms';
|
||||||
import { File, Upload } from 'lucide-svelte';
|
import { File, Upload } from '@lucide/svelte';
|
||||||
import type { ActionData, PageData } from './$types';
|
import type { ActionData, PageData } from './$types';
|
||||||
import { addToast } from '$lib/stores/toast.svelte';
|
import { addToast } from '$lib/stores/toast.svelte';
|
||||||
import { confirmState } from '$lib/stores/confirm.svelte';
|
import { confirmState } from '$lib/stores/confirm.svelte';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import { ExternalLink } from 'lucide-svelte';
|
import { ExternalLink } from '@lucide/svelte';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
import { confirmState } from '$lib/stores/confirm.svelte';
|
import { confirmState } from '$lib/stores/confirm.svelte';
|
||||||
import Button from '$lib/components/admin/Button.svelte';
|
import Button from '$lib/components/admin/Button.svelte';
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
import EditorSidebarTabs from '$lib/components/admin/EditorSidebarTabs.svelte';
|
import EditorSidebarTabs from '$lib/components/admin/EditorSidebarTabs.svelte';
|
||||||
import ArticleAttachments from '$lib/components/admin/ArticleAttachments.svelte';
|
import ArticleAttachments from '$lib/components/admin/ArticleAttachments.svelte';
|
||||||
import { untrack } from 'svelte';
|
import { untrack } from 'svelte';
|
||||||
import { ArrowLeft } from 'lucide-svelte';
|
import { ArrowLeft } from '@lucide/svelte';
|
||||||
|
|
||||||
let { data, form }: { data: PageData; form: ActionData } = $props();
|
let { data, form }: { data: PageData; form: ActionData } = $props();
|
||||||
const initialData = $state.snapshot(untrack(() => data));
|
const initialData = $state.snapshot(untrack(() => data));
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
import ArticleAttachments from '$lib/components/admin/ArticleAttachments.svelte';
|
import ArticleAttachments from '$lib/components/admin/ArticleAttachments.svelte';
|
||||||
|
|
||||||
import { createSlugAutoHandler } from '$lib/utils/slugify';
|
import { createSlugAutoHandler } from '$lib/utils/slugify';
|
||||||
import { ArrowLeft } from 'lucide-svelte';
|
import { ArrowLeft } from '@lucide/svelte';
|
||||||
|
|
||||||
let { form }: { form: ActionData } = $props();
|
let { form }: { form: ActionData } = $props();
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import { ExternalLink } from 'lucide-svelte';
|
import { ExternalLink } from '@lucide/svelte';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
import { confirmState } from '$lib/stores/confirm.svelte';
|
import { confirmState } from '$lib/stores/confirm.svelte';
|
||||||
import Button from '$lib/components/admin/Button.svelte';
|
import Button from '$lib/components/admin/Button.svelte';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import type { PageData, ActionData } from './$types';
|
import type { PageData, ActionData } from './$types';
|
||||||
import { deserialize } from '$app/forms';
|
import { deserialize } from '$app/forms';
|
||||||
import { Save, X } from 'lucide-svelte';
|
import { Save, X } from '@lucide/svelte';
|
||||||
import ContentEditor from '$lib/components/admin/ContentEditor.svelte';
|
import ContentEditor from '$lib/components/admin/ContentEditor.svelte';
|
||||||
import { EditorOutline } from '$lib/editor/outline.svelte';
|
import { EditorOutline } from '$lib/editor/outline.svelte';
|
||||||
import FeaturedImagePicker from '$lib/components/admin/FeaturedImagePicker.svelte';
|
import FeaturedImagePicker from '$lib/components/admin/FeaturedImagePicker.svelte';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
import type { PageData, ActionData } from './$types';
|
import type { PageData, ActionData } from './$types';
|
||||||
import { deserialize } from '$app/forms';
|
import { deserialize } from '$app/forms';
|
||||||
import { ArrowLeft, X } from 'lucide-svelte';
|
import { ArrowLeft, X } from '@lucide/svelte';
|
||||||
import ContentEditor from '$lib/components/admin/ContentEditor.svelte';
|
import ContentEditor from '$lib/components/admin/ContentEditor.svelte';
|
||||||
import { EditorOutline } from '$lib/editor/outline.svelte';
|
import { EditorOutline } from '$lib/editor/outline.svelte';
|
||||||
import FeaturedImagePicker from '$lib/components/admin/FeaturedImagePicker.svelte';
|
import FeaturedImagePicker from '$lib/components/admin/FeaturedImagePicker.svelte';
|
||||||
|
|||||||
Reference in new issue
Block a user