diff --git a/src/entries/MedalShowcase.ts b/src/entries/MedalShowcase.ts new file mode 100644 index 0000000..1a0a8c3 --- /dev/null +++ b/src/entries/MedalShowcase.ts @@ -0,0 +1,17 @@ +import { createApp } from "vue"; + +import "virtual:uno.css"; +import MedalShowcase from "../widgets/MedalList/MedalShowcase.vue"; + +const eles = document.querySelectorAll( + ".medal-showcase", +) as unknown as HTMLCollectionOf; + +for (const showcaseEle of Array.from(eles)) { + const data = showcaseEle.dataset; + createApp(MedalShowcase, { + medalList: data.medal ? data.medal.split(";") : [], + medalGroupList: data.medalgroup ? data.medalgroup.split(";") : [], + spoiler: data.spoiler !== undefined, + }).mount(showcaseEle); +} diff --git a/src/widgets/MedalList/Medal.vue b/src/widgets/MedalList/Medal.vue index 00c3303..4a347fe 100644 --- a/src/widgets/MedalList/Medal.vue +++ b/src/widgets/MedalList/Medal.vue @@ -116,7 +116,7 @@ export default defineComponent({ rarityGradient[medalData.rarity], ]" > -

+

{{ medalData.name }}

diff --git a/src/widgets/MedalList/MedalGroup.vue b/src/widgets/MedalList/MedalGroup.vue index 9362afe..46b7907 100644 --- a/src/widgets/MedalList/MedalGroup.vue +++ b/src/widgets/MedalList/MedalGroup.vue @@ -90,7 +90,7 @@ export default defineComponent({
-

+

- +