From f91b33db38ed45c124f7b26634165f5bd46aac0a Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:20:18 -0600 Subject: [PATCH] fix: remove external dependency for icones (#805) * change all icons to use iconify * fix minor UI elements * fix layout of table --- backend/go.sum | 10 -- frontend/components/App/Header.vue | 4 +- frontend/components/App/ImportDialog.vue | 3 +- frontend/components/App/Toast.vue | 10 +- frontend/components/Base/ActionsDivider.vue | 14 --- frontend/components/Base/Card.vue | 7 +- frontend/components/Base/SectionHeader.vue | 2 +- frontend/components/Form/Autocomplete2.vue | 9 +- frontend/components/Form/Password.vue | 4 +- frontend/components/Icon.vue | 31 ------ frontend/components/Item/AttachmentsList.vue | 9 +- frontend/components/Item/Card.vue | 3 +- frontend/components/Item/CreateModal.vue | 9 +- frontend/components/Item/View/Selectable.vue | 9 +- frontend/components/Item/View/Table.vue | 17 +++- frontend/components/Label/Chip.vue | 6 +- frontend/components/Label/CreateModal.vue | 3 +- frontend/components/Location/Card.vue | 13 +-- frontend/components/Location/CreateModal.vue | 3 +- frontend/components/Location/Selector.vue | 3 +- frontend/components/Location/Tree/Node.vue | 12 ++- frontend/components/Search/Filter.vue | 3 +- frontend/components/global/CopyText.vue | 11 +-- .../global/DetailsSection/DetailsSection.vue | 3 +- frontend/components/global/PageQRCode.vue | 3 +- frontend/global.d.ts | 1 + frontend/layouts/default.vue | 24 +++-- frontend/nuxt.config.ts | 9 +- frontend/package.json | 3 +- frontend/pages/index.vue | 30 ++++-- frontend/pages/item/[id]/index.vue | 15 ++- frontend/pages/item/[id]/index/edit.vue | 13 ++- .../pages/item/[id]/index/maintenance.vue | 21 ++-- frontend/pages/items.vue | 15 ++- frontend/pages/label/[id].vue | 10 +- frontend/pages/location/[id].vue | 9 +- frontend/pages/locations.vue | 3 +- frontend/pages/profile.vue | 20 ++-- frontend/pages/tools.vue | 13 ++- frontend/pnpm-lock.yaml | 99 ++++++++++++++++--- 40 files changed, 303 insertions(+), 183 deletions(-) delete mode 100644 frontend/components/Base/ActionsDivider.vue delete mode 100644 frontend/components/Icon.vue create mode 100644 frontend/global.d.ts diff --git a/backend/go.sum b/backend/go.sum index ba91e97..72dfa1a 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -111,8 +111,6 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/ github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= @@ -122,8 +120,6 @@ github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJm github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/olahol/melody v1.1.4 h1:RQHfKZkQmDxI0+SLZRNBCn4LiXdqxLKRGSkT8Dyoe/E= github.com/olahol/melody v1.1.4/go.mod h1:GgkTl6Y7yWj/HtfD48Q5vLKPVoZOH+Qqgfa7CvJgJM4= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo/v2 v2.9.2 h1:BA2GMJOtfGAfagzYtrAlufIP0lq6QERkFmHLMLPwFSU= github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts= github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE= @@ -141,10 +137,6 @@ github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -235,8 +227,6 @@ modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4= modernc.org/mathutil v1.6.0/go.mod h1:Ui5Q9q1TR2gFm0AQRqQUaBWFLAhQpCwNcuhBOSedWPo= modernc.org/memory v1.7.2 h1:Klh90S215mmH8c9gO98QxQFsY+W451E8AnzjoE2ee1E= modernc.org/memory v1.7.2/go.mod h1:NO4NVCQy0N7ln+T9ngWqOQfi7ley4vpwvARR+Hjw95E= -modernc.org/sqlite v1.29.1 h1:19GY2qvWB4VPw0HppFlZCPAbmxFU41r+qjKZQdQ1ryA= -modernc.org/sqlite v1.29.1/go.mod h1:hG41jCYxOAOoO6BRK66AdRlmOcDzXf7qnwlwjUIOqa0= modernc.org/sqlite v1.29.2 h1:xgBSyA3gemwgP31PWFfFjtBorQNYpeypGdoSDjXhrgI= modernc.org/sqlite v1.29.2/go.mod h1:hG41jCYxOAOoO6BRK66AdRlmOcDzXf7qnwlwjUIOqa0= modernc.org/strutil v1.2.0 h1:agBi9dp1I+eOnxXeiZawM8F4LawKv4NzGWSaLfyeNZA= diff --git a/frontend/components/App/Header.vue b/frontend/components/App/Header.vue index a142f8d..91c2672 100644 --- a/frontend/components/App/Header.vue +++ b/frontend/components/App/Header.vue @@ -1,4 +1,6 @@ - - diff --git a/frontend/components/Item/AttachmentsList.vue b/frontend/components/Item/AttachmentsList.vue index ddad600..8f0dcd9 100644 --- a/frontend/components/Item/AttachmentsList.vue +++ b/frontend/components/Item/AttachmentsList.vue @@ -6,15 +6,15 @@ class="flex items-center justify-between py-3 pl-3 pr-4 text-sm" >
-
- + - +
@@ -23,6 +23,9 @@ - - diff --git a/frontend/components/global/DetailsSection/DetailsSection.vue b/frontend/components/global/DetailsSection/DetailsSection.vue index e5fead8..dd4faf8 100644 --- a/frontend/components/global/DetailsSection/DetailsSection.vue +++ b/frontend/components/global/DetailsSection/DetailsSection.vue @@ -16,7 +16,7 @@