Do text-center in copyright in about && add testing data.

This commit is contained in:
吳元皓 2025-06-01 23:45:59 +08:00
parent 046f5ae446
commit ce1d150c11
4 changed files with 13 additions and 2 deletions

View File

@ -2,7 +2,7 @@
const { t } = useI18n();
</script>
<template>
<div class="gap-2 flex flex-row justift-center align-center text-center">
<div class="gap-2 flex flex-row justify-center align-center text-center">
<!--版權資訊-->
<span class="text-sm">1.0.0</span>
<span class="text-sm">|</span>

View File

@ -32,7 +32,7 @@ const props = defineProps<{
<hr />
<div class="flex flex-col">
<span class="text-xl">版權資訊</span>
<copyrightInfo />
<copyrightInfo class="justify-center align-center text-center" />
</div>
</div>
</template>

View File

@ -0,0 +1,9 @@
import * as cheerio from "cheerio";
export default defineEventHandler(async (event) => {
const slug = getRouterParam(event, "slug");
const buildUrl = "https://today.line.me/tw/v3/publisher/" + slug;
try {
const req = await fetch(buildUrl)
} catch (e) {}
})

View File

@ -89,6 +89,8 @@ async function lineToday(slug: string) {
if (publishMatch) {
publishedAt = findTime(publishMatch[1].trim());
}
const getAuthorUrl = html("entityPublishInfo-avatarLin").html();
console.log(getAuthorUrl);
return {
title: title,
paragraph: paragraph,