Merge pull request #69 from koloml/feature/tag-groups

Added new Tag Groups feature with ability to customize colors of any tag with specific category
This commit is contained in:
koloml authored and GitHub committed 2025-01-03 06:41:22 +04:00
commit 3e028a1509
18 files changed
+813 -6

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import {writable} from "svelte/store";
import TagGroup from "$entities/TagGroup.ts";
/** @type {import('svelte/store').Writable<TagGroup[]>} */
export const tagGroupsStore = writable([]);
TagGroup
.readAll()
.then(groups => tagGroupsStore.set(groups))
.then(() => {
TagGroup.subscribe(groups => tagGroupsStore.set(groups));
});