mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Install some stuff.
This commit is contained in:
parent
f8879b307c
commit
004028d7b5
5 changed files with 13 additions and 35 deletions
|
@ -1,24 +0,0 @@
|
|||
<script setup lang="ts">
|
||||
import CheckKidUnfriendlyContent from "~/components/checks/checkKidUnfriendlyContent";
|
||||
const title = ref("");
|
||||
const system = ref("");
|
||||
const checkTitle = async () => {
|
||||
if (!title.value) return;
|
||||
system.value = await CheckKidUnfriendlyContent(title.value);
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
<div
|
||||
class="flex flex-col absolute h-screen w-full inset-0 justify-center align-center text-center"
|
||||
>
|
||||
<h1 class="text-4xl m-2">標體?</h1>
|
||||
<div class="flex flex-row justify-center align-center gap-2">
|
||||
<input type="text" class="text-black rounded-xl p-2 w-[300px]" />
|
||||
<button @click="checkTitle" class="rounded-xl bg-sky-600 p-2">
|
||||
Find
|
||||
</button>
|
||||
</div>
|
||||
<div>{{ system }}</div>
|
||||
</div>
|
||||
<div class="h-screen"></div>
|
||||
</template>
|
|
@ -2,10 +2,9 @@
|
|||
import CheckKidUnfriendlyContent from "~/components/checks/checkKidUnfriendlyContent";
|
||||
const title = ref("");
|
||||
const system = ref(false);
|
||||
const testingReturn = ref("");
|
||||
const checkTitle = async () => {
|
||||
if (!title.value) return;
|
||||
testingReturn.value = await CheckKidUnfriendlyContent(title.value);
|
||||
system.value = await CheckKidUnfriendlyContent(title.value);
|
||||
};
|
||||
useSeoMeta({
|
||||
title: "這個文章是不是使用偏色情的標體?",
|
||||
|
@ -17,7 +16,11 @@ useSeoMeta({
|
|||
>
|
||||
<h1 class="text-4xl m-2">這個文章是不是使用偏色情的標體?</h1>
|
||||
<div class="flex flex-row justify-center align-center gap-2">
|
||||
<input type="text" class="text-black rounded-xl p-2 w-[300px]" />
|
||||
<input
|
||||
type="text"
|
||||
class="text-black rounded-xl p-2 w-[300px]"
|
||||
v-model="title"
|
||||
/>
|
||||
<button @click="checkTitle" class="rounded-xl bg-sky-600 p-2">
|
||||
Find
|
||||
</button>
|
||||
|
@ -25,6 +28,5 @@ useSeoMeta({
|
|||
<span v-if="system" class="text-red-400 text-8xl m-8">是</span>
|
||||
<span v-else class="text-white">不是</span>
|
||||
</div>
|
||||
<div>{{ testingReturn }}</div>
|
||||
<div class="h-screen"></div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue