refactor(core): refactor tag to use di (#6079)

use case
```
const tagService = useService(TagService);
const tags = useLiveData(tagService.tags);
const currentTagLiveData = tagService.tagByTagId(tagId);
const currentTag = useLiveData(currentTagLiveData);

```
This commit is contained in:
JimmFly
2024-03-19 08:39:15 +00:00
parent 332cd3b380
commit 9030ca511e
24 changed files with 468 additions and 355 deletions
@@ -201,7 +201,8 @@ export const ListItemTags: StoryFn<PageTagsProps> = props => (
);
ListItemTags.args = {
tags: testTags,
// FIXME: this is a hack to make the storybook work
// tags: testTags,
hoverExpandDirection: 'left',
widthOnHover: 600,
maxItems: 5,