From 9beaeb820fff41678205369ee0435c42a6f7d4da Mon Sep 17 00:00:00 2001 From: SegaraRai Date: Sun, 18 Aug 2024 21:12:27 +0900 Subject: [PATCH] fix: fix interop issue with @nuxt/icon --- app/components/AppHeader.vue | 4 +- app/components/NatureApplianceCardContent.vue | 8 +- app/components/NatureApplianceControlAC.vue | 8 +- app/components/NatureApplianceDeviceInfo.vue | 5 +- app/components/NatureDeviceCard.vue | 4 +- app/components/NatureDeviceSensorList.vue | 5 +- app/components/ThemeSelector.vue | 6 +- app/pages/about.vue | 4 +- app/pages/index.vue | 2 +- app/pages/signin.vue | 6 +- app/utils/natureConstantsAC.ts | 54 ++-- app/utils/natureDeviceIcons.ts | 4 +- app/utils/natureIcons.ts | 258 +++++++++--------- app/utils/useNatureDeviceSensors.ts | 6 +- buildLuontoIcons.mts | 36 +-- icons/build/luonto/mdi-11.svg | 1 + icons/build/luonto/mdi-12.svg | 1 + icons/build/luonto/mdi-angle-1.svg | 1 + icons/build/luonto/mdi-angle-2.svg | 1 + icons/build/luonto/mdi-angle-3.svg | 1 + icons/build/luonto/mdi-angle-4.svg | 1 + icons/build/luonto/mdi-angle-5.svg | 1 + icons/build/luonto/mdi-angle-a.svg | 1 + icons/build/luonto/mdi-angle-lock.svg | 1 + icons/build/luonto/mdi-angle-sync.svg | 1 + icons/build/luonto/mdi-fan-4.svg | 1 + icons/build/luonto/mdi-fan-5.svg | 1 + icons/build/luonto/mdi-off.svg | 1 + icons/build/luonto/mdi-on.svg | 1 + icons/{ => src}/luonto-mdi-11.svg | 0 icons/{ => src}/luonto-mdi-12.svg | 0 icons/{ => src}/luonto-mdi-angle-1.svg | 0 icons/{ => src}/luonto-mdi-angle-2.svg | 0 icons/{ => src}/luonto-mdi-angle-3.svg | 0 icons/{ => src}/luonto-mdi-angle-4.svg | 0 icons/{ => src}/luonto-mdi-angle-5.svg | 0 icons/{ => src}/luonto-mdi-angle-a.svg | 0 icons/{ => src}/luonto-mdi-angle-lock.svg | 0 icons/{ => src}/luonto-mdi-angle-sync.svg | 0 icons/{ => src}/luonto-mdi-fan-4.svg | 0 icons/{ => src}/luonto-mdi-fan-5.svg | 0 icons/{ => src}/luonto-mdi-off.svg | 0 icons/{ => src}/luonto-mdi-on.svg | 0 luontoIcons.json | 72 ----- nuxt.config.ts | 8 + package.json | 2 +- pnpm-lock.yaml | 61 ++--- tailwind.config.ts | 37 --- 48 files changed, 247 insertions(+), 357 deletions(-) create mode 100644 icons/build/luonto/mdi-11.svg create mode 100644 icons/build/luonto/mdi-12.svg create mode 100644 icons/build/luonto/mdi-angle-1.svg create mode 100644 icons/build/luonto/mdi-angle-2.svg create mode 100644 icons/build/luonto/mdi-angle-3.svg create mode 100644 icons/build/luonto/mdi-angle-4.svg create mode 100644 icons/build/luonto/mdi-angle-5.svg create mode 100644 icons/build/luonto/mdi-angle-a.svg create mode 100644 icons/build/luonto/mdi-angle-lock.svg create mode 100644 icons/build/luonto/mdi-angle-sync.svg create mode 100644 icons/build/luonto/mdi-fan-4.svg create mode 100644 icons/build/luonto/mdi-fan-5.svg create mode 100644 icons/build/luonto/mdi-off.svg create mode 100644 icons/build/luonto/mdi-on.svg rename icons/{ => src}/luonto-mdi-11.svg (100%) rename icons/{ => src}/luonto-mdi-12.svg (100%) rename icons/{ => src}/luonto-mdi-angle-1.svg (100%) rename icons/{ => src}/luonto-mdi-angle-2.svg (100%) rename icons/{ => src}/luonto-mdi-angle-3.svg (100%) rename icons/{ => src}/luonto-mdi-angle-4.svg (100%) rename icons/{ => src}/luonto-mdi-angle-5.svg (100%) rename icons/{ => src}/luonto-mdi-angle-a.svg (100%) rename icons/{ => src}/luonto-mdi-angle-lock.svg (100%) rename icons/{ => src}/luonto-mdi-angle-sync.svg (100%) rename icons/{ => src}/luonto-mdi-fan-4.svg (100%) rename icons/{ => src}/luonto-mdi-fan-5.svg (100%) rename icons/{ => src}/luonto-mdi-off.svg (100%) rename icons/{ => src}/luonto-mdi-on.svg (100%) delete mode 100644 luontoIcons.json diff --git a/app/components/AppHeader.vue b/app/components/AppHeader.vue index 45563ca..9816e01 100644 --- a/app/components/AppHeader.vue +++ b/app/components/AppHeader.vue @@ -95,7 +95,7 @@ const items = computed((): DropdownItem[][] => [ [ { label: `Luonto ${appVersion}`, - icon: "i-ph-github-logo-bold", + icon: "i-ph:github-logo-bold", href: "https://github.com/SegaraRai/luonto", target: "_blank", }, @@ -103,7 +103,7 @@ const items = computed((): DropdownItem[][] => [ [ { label: "サインアウト", - icon: "i-ph-sign-out-bold", + icon: "i-ph:sign-out-bold", click: signOutHandler, }, ], diff --git a/app/components/NatureApplianceCardContent.vue b/app/components/NatureApplianceCardContent.vue index ec8d4fb..6366aa0 100644 --- a/app/components/NatureApplianceCardContent.vue +++ b/app/components/NatureApplianceCardContent.vue @@ -1,9 +1,9 @@ diff --git a/app/components/NatureApplianceDeviceInfo.vue b/app/components/NatureApplianceDeviceInfo.vue index 1cc536e..2be9acb 100644 --- a/app/components/NatureApplianceDeviceInfo.vue +++ b/app/components/NatureApplianceDeviceInfo.vue @@ -12,10 +12,11 @@