diff --git a/manifest.json b/manifest.json
index d88089d..0ec3a7d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"name": "Furbooru Tagging Assistant",
"description": "Experimental extension with a set of tools to make the tagging faster and easier. Made specifically for Furbooru.",
- "version": "0.3.2",
+ "version": "0.3.3",
"browser_specific_settings": {
"gecko": {
"id": "furbooru-tagging-assistant@thecore.city"
diff --git a/package-lock.json b/package-lock.json
index c78ff81..50cf5af 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,14 @@
{
"name": "furbooru-tagging-assistant",
- "version": "0.3.2",
+ "version": "0.3.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "furbooru-tagging-assistant",
- "version": "0.3.2",
+ "version": "0.3.3",
"dependencies": {
+ "@fortawesome/fontawesome-free": "^6.7.1",
"lz-string": "^1.5.0"
},
"devDependencies": {
@@ -405,6 +406,14 @@
"node": ">=12"
}
},
+ "node_modules/@fortawesome/fontawesome-free": {
+ "version": "6.7.1",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.7.1.tgz",
+ "integrity": "sha512-ALIk/MOh5gYe1TG/ieS5mVUsk7VUIJTJKPMK9rFFqOgfp0Q3d5QiBXbcOMwUvs37fyZVCz46YjOE6IFeOAXCHA==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
@@ -2395,6 +2404,11 @@
"dev": true,
"optional": true
},
+ "@fortawesome/fontawesome-free": {
+ "version": "6.7.1",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.7.1.tgz",
+ "integrity": "sha512-ALIk/MOh5gYe1TG/ieS5mVUsk7VUIJTJKPMK9rFFqOgfp0Q3d5QiBXbcOMwUvs37fyZVCz46YjOE6IFeOAXCHA=="
+ },
"@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
diff --git a/package.json b/package.json
index 92044cd..0817b99 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,13 @@
{
"name": "furbooru-tagging-assistant",
- "version": "0.3.2",
+ "version": "0.3.3",
"private": true,
"scripts": {
"build": "npm run build:popup && npm run build:extension",
"build:popup": "vite build",
"build:extension": "node build-extension.js",
- "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
@@ -24,6 +24,7 @@
},
"type": "module",
"dependencies": {
+ "@fortawesome/fontawesome-free": "^6.7.1",
"lz-string": "^1.5.0"
}
}
diff --git a/src/app.d.ts b/src/app.d.ts
index 9b049f4..3735081 100644
--- a/src/app.d.ts
+++ b/src/app.d.ts
@@ -1,24 +1,31 @@
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
+import MaintenanceProfile from "$entities/MaintenanceProfile.ts";
+
declare global {
- namespace App {
- // interface Error {}
- // interface Locals {}
- // interface PageData {}
- // interface PageState {}
- // interface Platform {}
- type LinkTarget = "_blank" | "_self" | "_parent" | "_top";
- type IconName = (
- "tag"
- | "paint-brush"
- | "arrow-left"
- | "info-circle"
- | "wrench"
- | "globe"
- | "plus"
- | "file-export"
- );
+ namespace App {
+ // interface Error {}
+ // interface Locals {}
+ // interface PageData {}
+ // interface PageState {}
+ // interface Platform {}
+ type LinkTarget = "_blank" | "_self" | "_parent" | "_top";
+ type IconName = (
+ "tag"
+ | "paint-brush"
+ | "arrow-left"
+ | "info-circle"
+ | "wrench"
+ | "globe"
+ | "plus"
+ | "file-export"
+ | "trash"
+ );
+
+ interface EntityNamesMap {
+ profiles: MaintenanceProfile;
}
+ }
}
export {};
diff --git a/src/components/maintenance/ProfileView.svelte b/src/components/maintenance/ProfileView.svelte
index 7a01c62..d3084bb 100644
--- a/src/components/maintenance/ProfileView.svelte
+++ b/src/components/maintenance/ProfileView.svelte
@@ -1,5 +1,5 @@
+
+
+{#if targetProfile}
+
+ Do you want to remove profile "{targetProfile.settings.name}"? This action is irreversible.
+
+
+{:else}
+ Loading...
+{/if}
diff --git a/src/routes/features/maintenance/[id]/edit/+page.svelte b/src/routes/features/maintenance/[id]/edit/+page.svelte
index 498671c..f87e2cb 100644
--- a/src/routes/features/maintenance/[id]/edit/+page.svelte
+++ b/src/routes/features/maintenance/[id]/edit/+page.svelte
@@ -8,7 +8,7 @@
import {page} from "$app/stores";
import {goto} from "$app/navigation";
import {maintenanceProfilesStore} from "$stores/maintenance-profiles-store.js";
- import MaintenanceProfile from "$entities/MaintenanceProfile.js";
+ import MaintenanceProfile from "$entities/MaintenanceProfile.ts";
/** @type {string} */
let profileId = $page.params.id;
@@ -46,16 +46,6 @@
await targetProfile.save();
await goto('/features/maintenance/' + targetProfile.id);
}
-
- async function deleteProfile() {
- if (!targetProfile) {
- console.warn('Attempting to delete the profile, but the profile is not loaded yet.');
- return;
- }
-
- await targetProfile.delete();
- await goto('/features/maintenance');
- }