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 +1 -1
- package/src/values/Score.vue +11 -1
package/package.json
CHANGED
package/src/values/Score.vue
CHANGED
|
@@ -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
|
-
|
|
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"));
|