Skip to content

Commit 01175b0

Browse files
committed
refactor: reduce bundle size
1 parent c521227 commit 01175b0

29 files changed

+2739
-1366
lines changed

desk/auto-imports.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
// biome-ignore lint: disable
77
export {}
88
declare global {
9-
const LucideFileSearch: typeof import('~icons/lucide/file-search')['default']
10-
const LucideKeyboard: typeof import('~icons/lucide/keyboard')['default']
11-
const LucideSearch: typeof import('~icons/lucide/search')['default']
9+
const LucideAlignJustify: typeof import("~icons/lucide/align-justify")["default"];
10+
const LucideFileSearch: typeof import("~icons/lucide/file-search")["default"];
11+
const LucideKeyboard: typeof import("~icons/lucide/keyboard")["default"];
12+
const LucideSearch: typeof import("~icons/lucide/search")["default"];
1213
}

desk/lucide.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

desk/package.json

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
},
1111
"dependencies": {
1212
"@headlessui/vue": "^1.7.22",
13-
"@iconify-json/lucide": "^1.1.99",
14-
"@iconify-json/ph": "^1.1.5",
15-
"@iconify/tools": "^2.2.6",
16-
"@iconify/vue": "^4.1.1",
17-
"@tailwindcss/line-clamp": "^0.4.4",
1813
"@tailwindcss/typography": "^0.5.9",
1914
"@tiptap/core": "^2.2.4",
2015
"@twilio/voice-sdk": "^2.15.0",
@@ -23,21 +18,13 @@
2318
"@vueuse/core": "^13.8.0",
2419
"@vueuse/integrations": "^13.8.0",
2520
"dayjs": "^1.11.7",
26-
"echarts": "^5.4.1",
2721
"frappe-ui": "0.1.192",
2822
"gemoji": "^8.1.0",
29-
"lodash": "^4.17.21",
30-
"lucide-static": "^0.276.0",
3123
"mime": "^3.0.0",
3224
"pinia": "^2.0.33",
33-
"pluralize": "^8.0.0",
3425
"sanitize-html": "^2.10.0",
3526
"socket.io-client": "^4.7.2",
36-
"unplugin-icons": "^0.16.1",
37-
"unplugin-vue-components": "^0.25.2",
38-
"vee-validate": "^4.8.2",
3927
"vue": "^3.5.14",
40-
"vue-echarts": "^6.5.4",
4128
"vue-router": "^4.2.2",
4229
"vuedraggable": "^4.1.0",
4330
"zod": "^3.21.4"
@@ -48,12 +35,14 @@
4835
},
4936
"devDependencies": {
5037
"@vitejs/plugin-vue-jsx": "^3.0.1",
38+
"autoprefixer": "^10.4.13",
39+
"postcss": "^8.4.5",
5140
"prettier": "2.8.4",
41+
"rollup-plugin-visualizer": "^6.0.5",
42+
"tailwindcss": "^3.4.15",
5243
"typescript": "^5.0.2",
5344
"vite": "^4.4.9",
54-
"vite-plugin-pwa": "^0.20.5",
55-
"autoprefixer": "^10.4.13",
56-
"postcss": "^8.4.5",
57-
"tailwindcss": "^3.4.15"
45+
"vite-bundle-visualizer": "^1.2.1",
46+
"vite-plugin-pwa": "^0.20.5"
5847
}
5948
}

desk/src/components/CommunicationArea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ import { CommentTextEditor, EmailEditor, TypingIndicator } from "@/components";
9999
import { CommentIcon, EmailIcon } from "@/components/icons/";
100100
import { useDevice } from "@/composables";
101101
import { useScreenSize } from "@/composables/screen";
102+
import { useShortcut } from "@/composables/shortcuts";
102103
import { showCommentBox, showEmailBox } from "@/pages/ticket/modalStates";
103104
import { ref, watch } from "vue";
104-
import { useShortcut } from "@/composables/shortcuts";
105105
106106
const emit = defineEmits(["update"]);
107107
const content = defineModel("content");

0 commit comments

Comments
 (0)