From 447f31342339e3d331888bf3b7583de08c071f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=82=D1=83=D0=B0=D0=BD?= Date: Wed, 14 Jan 2026 14:54:44 +0300 Subject: [PATCH 1/2] feat: implement tree-shaking --- @codexteam/ui/.gitignore | 23 ++ @codexteam/ui/.npmignore | 1 + @codexteam/ui/dev/index.html | 2 + @codexteam/ui/package.json | 35 +- @codexteam/ui/src/styles/fonts.pcss | 2 + @codexteam/ui/src/styles/index.pcss | 1 - @codexteam/ui/src/styles/typography.pcss | 2 - .../ui/src/vue/components/chart/Chart.vue | 323 +++++++++--------- .../ui/src/vue/components/chart/ChartLine.vue | 6 +- .../ui/src/vue/components/counter/Counter.vue | 8 +- .../ui/src/vue/components/editor/Editor.vue | 2 +- .../ui/src/vue/components/tabbar/Tabbar.vue | 4 +- .../components/theme-preview/ThemePreview.vue | 4 +- @codexteam/ui/tsconfig.dts.json | 3 +- @codexteam/ui/vite.config.ts | 25 +- 15 files changed, 257 insertions(+), 184 deletions(-) create mode 100644 @codexteam/ui/.gitignore create mode 100644 @codexteam/ui/src/styles/fonts.pcss diff --git a/@codexteam/ui/.gitignore b/@codexteam/ui/.gitignore new file mode 100644 index 00000000..edd8c274 --- /dev/null +++ b/@codexteam/ui/.gitignore @@ -0,0 +1,23 @@ +# Dependencies +node_modules/ + +# Build output +dist/ + +# Logs +*.log + +# Test app (internal testing only) +test-app/ + +# Editor +.idea/ +.vscode/ +*.sw? + +# OS +.DS_Store + +# Environment +.env +.env.local diff --git a/@codexteam/ui/.npmignore b/@codexteam/ui/.npmignore index cac6efbf..483359e4 100644 --- a/@codexteam/ui/.npmignore +++ b/@codexteam/ui/.npmignore @@ -1,4 +1,5 @@ dev/ +test-app/ node_modules/ src/ *.log diff --git a/@codexteam/ui/dev/index.html b/@codexteam/ui/dev/index.html index aa1fe81c..40e8bba0 100644 --- a/@codexteam/ui/dev/index.html +++ b/@codexteam/ui/dev/index.html @@ -10,7 +10,9 @@ - diff --git a/@codexteam/ui/src/vue/components/chart/ChartLine.vue b/@codexteam/ui/src/vue/components/chart/ChartLine.vue index fedbc1c2..9e7501bb 100644 --- a/@codexteam/ui/src/vue/components/chart/ChartLine.vue +++ b/@codexteam/ui/src/vue/components/chart/ChartLine.vue @@ -29,12 +29,12 @@ { }); -