feeds-fun 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feeds-fun",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "author": "Aliaksei Yaletski (Tiendil) <a.eletsky@gmail.com> (https://tiendil.org/)",
5
5
  "description": "Frontend for the Feeds Fun — web-based news reader",
6
6
  "keywords": [
@@ -9,6 +9,9 @@
9
9
  <script lang="ts" setup>
10
10
  import * as api from "@/logic/api";
11
11
  import type * as t from "@/logic/types";
12
+ import {useTagsStore} from "@/stores/tags";
13
+
14
+ const tagsStore = useTagsStore();
12
15
 
13
16
  const properties = defineProps<{value: number; entryId: t.EntryId}>();
14
17
 
@@ -25,7 +28,14 @@
25
28
  const strings = [];
26
29
 
27
30
  for (const rule of rules) {
28
- strings.push(rule.score.toString().padStart(2, " ") + " — " + rule.tags.join(", "));
31
+ const tags = [];
32
+
33
+ for (const tagId of rule.tags) {
34
+ const tagInfo = tagsStore.tags[tagId];
35
+ tags.push(tagInfo.name);
36
+ }
37
+
38
+ strings.push(rule.score.toString().padStart(2, " ") + " — " + tags.join(", "));
29
39
  }
30
40
 
31
41
  alert(strings.join("\n"));