From 246e7f39e47fa263f37e98766030f4dca5d40ae7 Mon Sep 17 00:00:00 2001 From: chadmin Date: Sun, 27 Oct 2024 10:54:45 -0700 Subject: [PATCH] fix(dependency) Replace @vicons/tabler with @tabler/icons-vue --- components.d.ts | 12 ---- package.json | 1 - pnpm-lock.yaml | 7 -- scripts/create-tool.mjs | 4 +- src/components/CollapsibleToolMenu.vue | 3 +- src/components/FavoriteButton.vue | 3 +- src/components/InputCopyable.vue | 3 +- src/components/NavbarButtons.vue | 10 +-- src/components/TextareaCopyable.vue | 4 +- src/layouts/base.layout.vue | 12 ++-- .../command-palette/command-palette.store.ts | 17 ++--- .../command-palette/command-palette.vue | 4 +- src/pages/404.page.vue | 5 +- src/pages/Home.page.vue | 4 +- src/tools/ascii-text-drawer/index.ts | 4 +- src/tools/base64-file-converter/index.ts | 4 +- src/tools/base64-string-converter/index.ts | 4 +- src/tools/basic-auth-generator/index.ts | 4 +- src/tools/bcrypt/index.ts | 4 +- .../benchmark-builder/benchmark-builder.vue | 6 +- .../benchmark-builder/dynamic-values.vue | 6 +- src/tools/benchmark-builder/index.ts | 4 +- src/tools/bip39-generator/bip39-generator.vue | 12 ++-- src/tools/bip39-generator/index.ts | 4 +- src/tools/camera-recorder/camera-recorder.vue | 16 ++--- src/tools/camera-recorder/index.ts | 4 +- src/tools/case-converter/index.ts | 4 +- src/tools/chmod-calculator/index.ts | 4 +- src/tools/chronometer/index.ts | 4 +- src/tools/color-converter/index.ts | 4 +- src/tools/crontab-generator/index.ts | 4 +- src/tools/date-time-converter/index.ts | 4 +- src/tools/device-information/index.ts | 4 +- .../index.ts | 4 +- src/tools/email-normalizer/index.ts | 4 +- src/tools/emoji-picker/emoji-picker.vue | 3 +- src/tools/emoji-picker/index.ts | 4 +- src/tools/encryption/index.ts | 4 +- src/tools/eta-calculator/index.ts | 4 +- src/tools/git-memo/index.ts | 4 +- src/tools/hash-text/index.ts | 4 +- src/tools/hmac-generator/index.ts | 4 +- src/tools/html-entities/index.ts | 4 +- .../html-wysiwyg-editor/editor/menu-bar.vue | 66 +++++++++---------- src/tools/html-wysiwyg-editor/index.ts | 4 +- src/tools/iban-validator-and-parser/index.ts | 4 +- src/tools/integer-base-converter/index.ts | 4 +- src/tools/ipv4-address-converter/index.ts | 4 +- src/tools/ipv4-range-expander/index.ts | 4 +- .../ipv4-range-expander.vue | 4 +- src/tools/ipv4-subnet-calculator/index.ts | 4 +- .../ipv4-subnet-calculator.vue | 6 +- src/tools/ipv6-ula-generator/index.ts | 4 +- src/tools/json-diff/index.ts | 4 +- src/tools/json-minify/index.ts | 4 +- src/tools/json-to-csv/index.ts | 4 +- src/tools/json-to-toml/index.ts | 4 +- src/tools/json-to-xml/index.ts | 4 +- src/tools/json-to-yaml-converter/index.ts | 4 +- src/tools/json-viewer/index.ts | 4 +- src/tools/jwt-parser/index.ts | 4 +- src/tools/keycode-info/index.ts | 4 +- src/tools/list-converter/index.ts | 4 +- src/tools/lorem-ipsum-generator/index.ts | 4 +- src/tools/mac-address-generator/index.ts | 4 +- src/tools/mac-address-lookup/index.ts | 4 +- src/tools/markdown-to-html/index.ts | 4 +- src/tools/math-evaluator/index.ts | 4 +- src/tools/meta-tag-generator/index.ts | 4 +- src/tools/mime-types/index.ts | 4 +- .../numeronym-generator.vue | 3 +- .../otp-code-generator-and-validator/index.ts | 4 +- .../otp-code-generator-and-validator.vue | 3 +- src/tools/password-strength-analyser/index.ts | 4 +- src/tools/pdf-signature-checker/index.ts | 4 +- src/tools/percentage-calculator/index.ts | 4 +- src/tools/phone-parser-and-formatter/index.ts | 4 +- src/tools/qr-code-generator/index.ts | 4 +- src/tools/random-port-generator/index.ts | 4 +- src/tools/regex-memo/index.ts | 4 +- src/tools/regex-tester/index.ts | 4 +- src/tools/roman-numeral-converter/index.ts | 4 +- src/tools/rsa-key-pair-generator/index.ts | 4 +- src/tools/safelink-decoder/index.ts | 4 +- src/tools/slugify-string/index.ts | 4 +- src/tools/sql-prettify/index.ts | 4 +- src/tools/string-obfuscator/index.ts | 4 +- .../string-obfuscator/string-obfuscator.vue | 3 +- src/tools/svg-placeholder-generator/index.ts | 4 +- src/tools/temperature-converter/index.ts | 4 +- src/tools/text-diff/index.ts | 4 +- src/tools/text-statistics/index.ts | 4 +- src/tools/text-to-binary/index.ts | 4 +- src/tools/text-to-nato-alphabet/index.ts | 4 +- src/tools/text-to-unicode/index.ts | 4 +- src/tools/token-generator/index.ts | 4 +- src/tools/toml-to-json/index.ts | 5 +- src/tools/toml-to-yaml/index.ts | 4 +- src/tools/ulid-generator/index.ts | 4 +- src/tools/url-encoder/index.ts | 4 +- src/tools/url-parser/index.ts | 4 +- src/tools/url-parser/url-parser.vue | 5 +- src/tools/user-agent-parser/index.ts | 4 +- .../user-agent-parser/user-agent-parser.vue | 12 ++-- src/tools/uuid-generator/index.ts | 4 +- src/tools/wifi-qr-code-generator/index.ts | 4 +- src/tools/xml-formatter/index.ts | 4 +- src/tools/xml-to-json/index.ts | 4 +- src/tools/yaml-to-json-converter/index.ts | 4 +- src/tools/yaml-to-toml/index.ts | 4 +- src/tools/yaml-viewer/index.ts | 4 +- src/ui/c-alert/c-alert.theme.ts | 12 ++-- src/ui/c-button/c-button.demo.vue | 3 +- src/ui/c-collapse/c-collapse.vue | 4 +- src/ui/c-input-text/c-input-text.vue | 7 +- src/ui/c-select/c-select.demo.vue | 4 +- src/ui/c-select/c-select.vue | 3 +- src/ui/c-text-copyable/c-text-copyable.vue | 5 +- 118 files changed, 297 insertions(+), 312 deletions(-) diff --git a/components.d.ts b/components.d.ts index 3e65c3cc5..e67b052f9 100644 --- a/components.d.ts +++ b/components.d.ts @@ -89,18 +89,6 @@ declare module '@vue/runtime-core' { HtmlWysiwygEditor: typeof import('./src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue')['default'] HttpStatusCodes: typeof import('./src/tools/http-status-codes/http-status-codes.vue')['default'] IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default'] - 'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default'] - 'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default'] - IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] - IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default'] - IconMdiClose: typeof import('~icons/mdi/close')['default'] - IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default'] - IconMdiEye: typeof import('~icons/mdi/eye')['default'] - IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default'] - IconMdiHeart: typeof import('~icons/mdi/heart')['default'] - IconMdiSearch: typeof import('~icons/mdi/search')['default'] - IconMdiTranslate: typeof import('~icons/mdi/translate')['default'] - IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default'] InputCopyable: typeof import('./src/components/InputCopyable.vue')['default'] IntegerBaseConverter: typeof import('./src/tools/integer-base-converter/integer-base-converter.vue')['default'] Ipv4AddressConverter: typeof import('./src/tools/ipv4-address-converter/ipv4-address-converter.vue')['default'] diff --git a/package.json b/package.json index 5c991cff6..d75c00f8f 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "@types/figlet": "^1.5.8", "@types/markdown-it": "^13.0.7", "@vicons/material": "^0.12.0", - "@vicons/tabler": "^0.12.0", "@vueuse/core": "^10.3.0", "@vueuse/head": "^1.0.0", "@vueuse/router": "^10.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3798ae171..a2bd1c268 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,9 +38,6 @@ dependencies: '@vicons/material': specifier: ^0.12.0 version: 0.12.0 - '@vicons/tabler': - specifier: ^0.12.0 - version: 0.12.0 '@vueuse/core': specifier: ^10.3.0 version: 10.3.0(vue@3.3.4) @@ -3667,10 +3664,6 @@ packages: resolution: {integrity: sha512-chv1CYAl8P32P3Ycwgd5+vw/OFNc2mtkKdb1Rw4T5IJmKy6GVDsoUKV3N2l208HATn7CCQphZtuPDdsm7K2kmA==} dev: false - /@vicons/tabler@0.12.0: - resolution: {integrity: sha512-3+wUFuxb7e8OzZ8Wryct1pzfA2vyoF4lwW98O9s27ZrfCGaJGNmqG+q8A7vQ92Mf+COCgxpK+rhNPTtTvaU6qw==} - dev: false - /@vitejs/plugin-vue-jsx@3.0.2(vite@4.4.9)(vue@3.3.4): resolution: {integrity: sha512-obF26P2Z4Ogy3cPp07B4VaW6rpiu0ue4OT2Y15UxT5BZZ76haUY9guOsZV3uWh/I6xc+VeiW+ZVabRE82FyzWw==} engines: {node: ^14.18.0 || >=16.0.0} diff --git a/scripts/create-tool.mjs b/scripts/create-tool.mjs index 94b702509..f2e12b312 100644 --- a/scripts/create-tool.mjs +++ b/scripts/create-tool.mjs @@ -46,7 +46,7 @@ createToolFile( createToolFile( `index.ts`, ` -import { ArrowsShuffle } from '@vicons/tabler'; +import { IconArrowsShuffle } from '@tabler/icons-vue'; import { defineTool } from '../tool'; export const tool = defineTool({ @@ -55,7 +55,7 @@ export const tool = defineTool({ description: '', keywords: ['${toolName.split('-').join("', '")}'], component: () => import('./${toolName}.vue'), - icon: ArrowsShuffle, + icon: IconArrowsShuffle, createdAt: new Date('${new Date().toISOString().split('T')[0]}'), }); `, diff --git a/src/components/CollapsibleToolMenu.vue b/src/components/CollapsibleToolMenu.vue index 9a73ddd64..4e11f91a8 100644 --- a/src/components/CollapsibleToolMenu.vue +++ b/src/components/CollapsibleToolMenu.vue @@ -2,6 +2,7 @@ import { useStorage } from '@vueuse/core'; import { useThemeVars } from 'naive-ui'; import { RouterLink, useRoute } from 'vue-router'; +import { IconChevronRight } from '@tabler/icons-vue'; import MenuIconItem from './MenuIconItem.vue'; import type { Tool, ToolCategory } from '@/tools/tools.types'; @@ -48,7 +49,7 @@ const themeVars = useThemeVars();
- + diff --git a/src/components/FavoriteButton.vue b/src/components/FavoriteButton.vue index e43ed8ab5..3a67b8b79 100644 --- a/src/components/FavoriteButton.vue +++ b/src/components/FavoriteButton.vue @@ -1,4 +1,5 @@