feat: add hub additional html
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
import { ArrowLeft } from "lucide-svelte";
|
import { ArrowLeft } from "lucide-svelte";
|
||||||
import { isNodeServer, isTauri } from "src/ts/storage/globalApi";
|
import { isNodeServer, isTauri } from "src/ts/storage/globalApi";
|
||||||
import { language } from "src/lang";
|
import { language } from "src/lang";
|
||||||
import { getRisuHub } from "src/ts/characterCards";
|
import { getRisuHub, hubAdditionalHTML } from "src/ts/characterCards";
|
||||||
import RisuHubIcon from "./Realm/RealmHubIcon.svelte";
|
import RisuHubIcon from "./Realm/RealmHubIcon.svelte";
|
||||||
import Title from "./Title.svelte";
|
import Title from "./Title.svelte";
|
||||||
|
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
sort: ''
|
sort: ''
|
||||||
}) then charas}
|
}) then charas}
|
||||||
{#if charas.length > 0}
|
{#if charas.length > 0}
|
||||||
|
{@html hubAdditionalHTML}
|
||||||
<div class="w-full flex gap-4 p-2 flex-wrap justify-center">
|
<div class="w-full flex gap-4 p-2 flex-wrap justify-center">
|
||||||
{#each charas as chara}
|
{#each charas as chara}
|
||||||
<RisuHubIcon onClick={() => {$OpenRealmStore = true}} chara={chara} />
|
<RisuHubIcon onClick={() => {$OpenRealmStore = true}} chara={chara} />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { downloadRisuHub, getRisuHub, type hubType } from "src/ts/characterCards";
|
import { downloadRisuHub, getRisuHub, hubAdditionalHTML, type hubType } from "src/ts/characterCards";
|
||||||
import { ArrowLeft, ArrowRight, MenuIcon, SearchIcon, XIcon } from "lucide-svelte";
|
import { ArrowLeft, ArrowRight, MenuIcon, SearchIcon, XIcon } from "lucide-svelte";
|
||||||
import { alertInput } from "src/ts/alert";
|
import { alertInput } from "src/ts/alert";
|
||||||
import { language } from "src/lang";
|
import { language } from "src/lang";
|
||||||
@@ -91,6 +91,7 @@
|
|||||||
{language.random}
|
{language.random}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
{@html hubAdditionalHTML}
|
||||||
<div class="w-full flex gap-4 p-2 flex-wrap justify-center">
|
<div class="w-full flex gap-4 p-2 flex-wrap justify-center">
|
||||||
{#key charas}
|
{#key charas}
|
||||||
{#each charas as chara}
|
{#each charas as chara}
|
||||||
|
|||||||
@@ -1274,7 +1274,7 @@ export type hubType = {
|
|||||||
type:string
|
type:string
|
||||||
}
|
}
|
||||||
|
|
||||||
let hubAdditionalHTML = ''
|
export let hubAdditionalHTML = ''
|
||||||
|
|
||||||
export async function getRisuHub(arg:{
|
export async function getRisuHub(arg:{
|
||||||
search:string,
|
search:string,
|
||||||
|
|||||||
Reference in New Issue
Block a user