[feat] authorname
This commit is contained in:
@@ -20,8 +20,8 @@
|
|||||||
<div class="p-6 max-w-full bg-darkbg rounded-md flex flex-col gap-4 w-2xl overflow-y-auto">
|
<div class="p-6 max-w-full bg-darkbg rounded-md flex flex-col gap-4 w-2xl overflow-y-auto">
|
||||||
<div class="w-full flex flex-col">
|
<div class="w-full flex flex-col">
|
||||||
<h1 class="text-2xl font-bold max-w-full overflow-hidden whitespace-nowrap text-ellipsis">{openedData.name}</h1>
|
<h1 class="text-2xl font-bold max-w-full overflow-hidden whitespace-nowrap text-ellipsis">{openedData.name}</h1>
|
||||||
{#if openedData.creatorName}
|
{#if openedData.authorname}
|
||||||
<span class="text-gray-500">{openedData.creatorName}</span>
|
<span class="text-borderc">Made by {openedData.authorname}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex justify-start gap-4 mt-4">
|
<div class="flex justify-start gap-4 mt-4">
|
||||||
<img class="h-36 w-36 rounded-md object-top object-cover" alt={openedData.name} src={`${hubURL}/resource/` + openedData.img}>
|
<img class="h-36 w-36 rounded-md object-top object-cover" alt={openedData.name} src={`${hubURL}/resource/` + openedData.img}>
|
||||||
|
|||||||
@@ -556,7 +556,7 @@ export async function shareRisuHub(char:character, arg:{
|
|||||||
img: Buffer.from(img).toString('base64'),
|
img: Buffer.from(img).toString('base64'),
|
||||||
resources: resources,
|
resources: resources,
|
||||||
token: get(DataBase)?.account?.token,
|
token: get(DataBase)?.account?.token,
|
||||||
anon: arg.anon,
|
username: arg.anon ? '' : (get(DataBase)?.account?.id),
|
||||||
apiver: 3
|
apiver: 3
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -589,6 +589,7 @@ export type hubType = {
|
|||||||
creatorName?:string
|
creatorName?:string
|
||||||
hot:number
|
hot:number
|
||||||
license:string
|
license:string
|
||||||
|
authorname?:string
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getRisuHub(arg?:{
|
export async function getRisuHub(arg?:{
|
||||||
|
|||||||
Reference in New Issue
Block a user