From 934e18f72800f0fdf7127c690e4481cd15e08272 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Wed, 30 Jul 2025 19:53:35 +0800 Subject: [PATCH] Replaced IconRenderer with FontAwesome --- src/libs/fontawesome.ts | 10 +- src/views/DatabaseMigration.vue | 206 ++++++++++++-------------------- 2 files changed, 85 insertions(+), 131 deletions(-) diff --git a/src/libs/fontawesome.ts b/src/libs/fontawesome.ts index 8c36ee14..30c745c7 100644 --- a/src/libs/fontawesome.ts +++ b/src/libs/fontawesome.ts @@ -20,6 +20,7 @@ import { faCameraRotate, faCaretDown, faChair, + faChartLine, faCheck, faChevronDown, faChevronLeft, @@ -28,6 +29,7 @@ import { faCircle, faCircleCheck, faCircleInfo, + faCirclePlus, faCircleQuestion, faCircleRight, faCircleUser, @@ -49,6 +51,7 @@ import { faFloppyDisk, faFolderOpen, faForward, + faGear, faGift, faGlobe, faHammer, @@ -58,6 +61,7 @@ import { faHouseChimney, faImage, faImagePortrait, + faInfo, faLeftRight, faLightbulb, faLink, @@ -72,8 +76,8 @@ import { faPersonCircleCheck, faPersonCircleQuestion, faPlus, - faQuestion, faQrcode, + faQuestion, faRightFromBracket, faRotate, faShareNodes, @@ -106,6 +110,7 @@ library.add( faCameraRotate, faCaretDown, faChair, + faChartLine, faCheck, faChevronDown, faChevronLeft, @@ -114,6 +119,7 @@ library.add( faCircle, faCircleCheck, faCircleInfo, + faCirclePlus, faCircleQuestion, faCircleRight, faCircleUser, @@ -135,6 +141,7 @@ library.add( faFloppyDisk, faFolderOpen, faForward, + faGear, faGift, faGlobe, faHammer, @@ -144,6 +151,7 @@ library.add( faHouseChimney, faImage, faImagePortrait, + faInfo, faLeftRight, faLightbulb, faLink, diff --git a/src/views/DatabaseMigration.vue b/src/views/DatabaseMigration.vue index a2edc1c9..ec5e2eef 100644 --- a/src/views/DatabaseMigration.vue +++ b/src/views/DatabaseMigration.vue @@ -91,17 +91,12 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="downloadAccount" > - - + Show Account Seed @@ -110,17 +105,12 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="downloadSettingsContacts" > - - + Download Settings & Contacts @@ -143,17 +133,12 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="compareDatabases" > - - + Compare Databases @@ -162,17 +147,12 @@ class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="migrateAll" > - - + Migrate All @@ -185,10 +165,9 @@ >
-
@@ -207,10 +186,9 @@ >
-
@@ -229,10 +207,7 @@ >
- +

Success

@@ -249,7 +224,7 @@ class="inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="exportComparison" > - + Export Comparison @@ -258,17 +233,12 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="displayDatabases" > - - + Show Previous Data @@ -277,7 +247,7 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-orange-600 hover:bg-orange-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-orange-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="migrateAccounts" > - + Migrate Accounts @@ -286,7 +256,7 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="migrateSettings" > - + Migrate Settings @@ -295,7 +265,7 @@ class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 disabled:opacity-50 disabled:cursor-not-allowed" @click="migrateContacts" > - + Migrate Contacts
@@ -316,11 +286,7 @@ >
- +

@@ -357,10 +323,9 @@
- {{ loadingMessage }}
@@ -375,10 +340,7 @@
- +
@@ -398,10 +360,7 @@
- +
@@ -422,10 +381,7 @@
- +
@@ -445,10 +401,7 @@
- +
@@ -469,9 +422,9 @@
-
@@ -492,10 +445,7 @@
- +
@@ -526,9 +476,9 @@ class="flex items-center justify-between p-3 bg-blue-50 rounded-lg" >
- Add
@@ -541,9 +491,9 @@ class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg" >
- Unmodified
- Keep
@@ -677,9 +627,9 @@ class="flex items-center justify-between p-3 bg-blue-50 rounded-lg" >
- Add
@@ -692,9 +642,9 @@ class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg" >
- Modify
- Unmodified
- Keep
@@ -868,9 +818,9 @@ class="flex items-center justify-between p-3 bg-blue-50 rounded-lg" >
- Add
@@ -883,9 +833,9 @@ class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg" >
- Modify
- Unmodified
- Keep
@@ -1067,7 +1017,6 @@ import { Component, Vue } from "vue-facing-decorator"; import { useClipboard } from "@vueuse/core"; import { Router } from "vue-router"; -import IconRenderer from "../components/IconRenderer.vue"; import { compareDatabases, migrateSettings, @@ -1104,9 +1053,6 @@ import { logger } from "../utils/logger"; */ @Component({ name: "DatabaseMigration", - components: { - IconRenderer, - }, }) export default class DatabaseMigration extends Vue { $router!: Router;