1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-24 07:12:57 +00:00

Moving /settings route to /features to avoid confusion

This commit is contained in:
2024-09-30 17:46:04 +04:00
parent d0c910d5bb
commit 2f8a47b808
7 changed files with 18 additions and 18 deletions

View File

@@ -4,7 +4,7 @@
</script>
<Menu>
<MenuItem href="/settings/maintenance">Tagging Profiles</MenuItem>
<MenuItem href="/features/maintenance">Tagging Profiles</MenuItem>
<hr>
<MenuItem href="/preferences">Preferences</MenuItem>
<MenuItem href="/about">About</MenuItem>

View File

@@ -6,5 +6,5 @@
<Menu>
<MenuItem href="/">Back</MenuItem>
<hr>
<MenuItem href="/settings/maintenance">Tagging Profiles</MenuItem>
<MenuItem href="/features/maintenance">Tagging Profiles</MenuItem>
</Menu>

View File

@@ -27,12 +27,12 @@
<Menu>
<MenuItem icon="arrow-left" href="/">Back</MenuItem>
<MenuItem icon="plus" href="/settings/maintenance/new/edit">Create New</MenuItem>
<MenuItem icon="plus" href="/features/maintenance/new/edit">Create New</MenuItem>
{#if profiles.length}
<hr>
{/if}
{#each profiles as profile}
<MenuRadioItem href="/settings/maintenance/{profile.id}"
<MenuRadioItem href="/features/maintenance/{profile.id}"
name="active-profile"
value="{profile.id}"
checked="{$activeProfileStore === profile.id}"
@@ -42,5 +42,5 @@
{/each}
<hr>
<MenuItem href="#" on:click={resetActiveProfile}>Reset Active Profile</MenuItem>
<MenuItem href="/settings/maintenance/import">Import Profile</MenuItem>
<MenuItem href="/features/maintenance/import">Import Profile</MenuItem>
</Menu>

View File

@@ -22,7 +22,7 @@
profile = resolvedProfile;
} else {
console.warn(`Profile ${profileId} not found.`);
goto('/settings/maintenance');
goto('/features/maintenance');
}
}
@@ -38,7 +38,7 @@
</script>
<Menu>
<MenuItem href="/settings/maintenance" icon="arrow-left">Back</MenuItem>
<MenuItem href="/features/maintenance" icon="arrow-left">Back</MenuItem>
<hr>
</Menu>
{#if profile}
@@ -46,7 +46,7 @@
{/if}
<Menu>
<hr>
<MenuItem icon="wrench" href="/settings/maintenance/{profileId}/edit">Edit Profile</MenuItem>
<MenuItem icon="wrench" href="/features/maintenance/{profileId}/edit">Edit Profile</MenuItem>
<MenuItem icon="tag" href="#" on:click={activateProfile}>
{#if isActiveProfile}
<span>Profile is Active</span>
@@ -54,7 +54,7 @@
<span>Activate Profile</span>
{/if}
</MenuItem>
<MenuItem icon="file-export" href="/settings/maintenance/{profileId}/export">
<MenuItem icon="file-export" href="/features/maintenance/{profileId}/export">
Export Profile
</MenuItem>
</Menu>

View File

@@ -30,7 +30,7 @@
profileName = targetProfile.settings.name;
tagsList = [...targetProfile.settings.tags].sort((a, b) => a.localeCompare(b));
} else {
goto('/settings/maintenance');
goto('/features/maintenance');
}
}
@@ -44,7 +44,7 @@
targetProfile.settings.tags = [...tagsList];
await targetProfile.save();
await goto('/settings/maintenance/' + targetProfile.id);
await goto('/features/maintenance/' + targetProfile.id);
}
async function deleteProfile() {
@@ -54,12 +54,12 @@
}
await targetProfile.delete();
await goto('/settings/maintenance');
await goto('/features/maintenance');
}
</script>
<Menu>
<MenuItem icon="arrow-left" href="/settings/maintenance{profileId === 'new' ? '' : '/' + profileId}">
<MenuItem icon="arrow-left" href="/features/maintenance{profileId === 'new' ? '' : '/' + profileId}">
Back
</MenuItem>
<hr>

View File

@@ -20,7 +20,7 @@
let compressedProfile = '';
if (!profile) {
goto('/settings/maintenance/');
goto('/features/maintenance/');
} else {
exportedProfile = profile.toJSON();
compressedProfile = profile.toCompressedJSON();
@@ -30,7 +30,7 @@
</script>
<Menu>
<MenuItem href="/settings/maintenance/{profileId}" icon="arrow-left">
<MenuItem href="/features/maintenance/{profileId}" icon="arrow-left">
Back
</MenuItem>
<hr>

View File

@@ -53,7 +53,7 @@
}
candidateProfile.save().then(() => {
goto(`/settings/maintenance`);
goto(`/features/maintenance`);
});
}
@@ -65,13 +65,13 @@
const clonedProfile = new MaintenanceProfile(crypto.randomUUID(), candidateProfile.settings);
clonedProfile.settings.name += ` (Clone ${new Date().toISOString()})`;
clonedProfile.save().then(() => {
goto(`/settings/maintenance`);
goto(`/features/maintenance`);
});
}
</script>
<Menu>
<MenuItem icon="arrow-left" href="/settings/maintenance">Back</MenuItem>
<MenuItem icon="arrow-left" href="/features/maintenance">Back</MenuItem>
<hr>
</Menu>
{#if errorMessage}