mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 07:41:02 +08:00
Do text-center in copyright in about && add testing data.
This commit is contained in:
parent
046f5ae446
commit
ce1d150c11
@ -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>
|
||||
|
@ -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>
|
||||
|
9
server/api/publishers/lt/[slug].ts
Normal file
9
server/api/publishers/lt/[slug].ts
Normal 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) {}
|
||||
})
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user