From fa5f7ec0c27402b0b2f725bc193348fd4bcf60e0 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sun, 3 Nov 2024 12:59:25 -0500 Subject: [PATCH] refactor: cleanup --- .../lib/components/main/CommandPalette.svelte | 7 +++---- apps/desktop/src/lib/utils.ts | 6 ------ .../routes/extension/ui-iframe/+page.svelte | 2 +- apps/desktop/static/favicon.png | Bin 1571 -> 3546 bytes apps/desktop/static/logo-w-bg.png | Bin 3546 -> 0 bytes apps/desktop/static/svelte.svg | 1 - apps/desktop/static/tauri.svg | 6 ------ apps/desktop/static/vite.svg | 1 - .../main/GlobalCommandPaletteFooter.svelte | 2 +- 9 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 apps/desktop/src/lib/utils.ts delete mode 100644 apps/desktop/static/logo-w-bg.png delete mode 100644 apps/desktop/static/svelte.svg delete mode 100644 apps/desktop/static/tauri.svg delete mode 100644 apps/desktop/static/vite.svg diff --git a/apps/desktop/src/lib/components/main/CommandPalette.svelte b/apps/desktop/src/lib/components/main/CommandPalette.svelte index c455c89..f608c2a 100644 --- a/apps/desktop/src/lib/components/main/CommandPalette.svelte +++ b/apps/desktop/src/lib/components/main/CommandPalette.svelte @@ -1,4 +1,7 @@ + import { appConfig, winExtMap } from "@/stores" - import { cn } from "@/utils" + import { cn } from "@kksh/ui/utils" import { goBackOnEscape } from "@/utils/key" import { goHome } from "@/utils/route" import { positionToTailwindClasses } from "@/utils/style" diff --git a/apps/desktop/static/favicon.png b/apps/desktop/static/favicon.png index 825b9e65af7c104cfb07089bb28659393b4f2097..0a514e6194355b2c21533af77a87d0d1bee31838 100644 GIT binary patch literal 3546 zcmaJ^XHb)2vwagHgq{$3k5mDrNEL(tp(_YTQ4|n@2qK0eMM4Oe5PB1&Hvtu;gCZau zq^Ok8q(~EK!VS_pAK$-w|J<3~XJ^jr%(Jt5&dzM)EmH$#23`gL0GN#o(H7^C@Lz}0 zp1Y=Lx%aZ9@j?MH0 zxXvMin<;0DzfK>cn#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6OXRY=5%C^* z26z?l)1=$bz30!so5tfABdSYzO+H=CpV~aaUefmjvfZ3Ttu9W&W3Iu6ROlh0MFA5h z;my}8lB0tAV-Rvc2Zs_CCVyVS^YIEviJkC##wQ4gpYZ1D8M^Avr<`+(Zr}qtfwth% z2+uEH?AbkbnS|%(7o6=Ny=21k<^*@Ogy#pl%$~27@civTy1&uy#(g>o?nW2?n^|0E zyBqv=uQes9e3Pu6&CmlZ=^Q%cGi~> P00000NkvXXu0mjfisAQ7 diff --git a/apps/desktop/static/logo-w-bg.png b/apps/desktop/static/logo-w-bg.png deleted file mode 100644 index 0a514e6194355b2c21533af77a87d0d1bee31838..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3546 zcmaJ^XHb)2vwagHgq{$3k5mDrNEL(tp(_YTQ4|n@2qK0eMM4Oe5PB1&Hvtu;gCZau zq^Ok8q(~EK!VS_pAK$-w|J<3~XJ^jr%(Jt5&dzM)EmH$#23`gL0GN#o(H7^C@Lz}0 zp1Y=Lx%aZ9@j?MH0 zxXvMin<;0DzfK>cn#@98LPJIfE*6T{Cuscmcb)Vdpr5-FrWk*j0}M(SRIwv-d8nao&e7 z2KsrhMe?xf+GwJ^^I4Bssz32m62sFeLU6@zxiicjtoZAEG7lVGeMXFwQZ;B1&b*8f z2~0)=Xam*@Z*`h1x-?vh^}-+&R~@|Rzbs*AHjFVL&4OwC)CyTztPxtdA?RTz8vg5& zy#RJ^fI~r`Xl?mf?|~jBn=0X5tRXM6-9}DF0}rR;Nw|WzIj!pSrZY$Ny|)3?5eTe} z>31T43Vr^EHlB1Q>GgA3X-XduJbAZO&RA^Vx19-@fVgNZ7o}t6JXapSVG}ga|c;Cz6_PKQ*dBWdon?`d~7N0;H1z7FA z$UFh=9n}^DtaNp~tEstde7DrcyAVT@aE7Wf%1uhz?!n1$7EDb|5r15=XYTT7m~fLblxa%G}okQ-Tx{0bZ!qB5kVO!ncPr`>s&L z-dn!yGe`tVf=>>WZl)`cXqkC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