This commit is contained in:
2026-03-30 20:24:28 +09:00
7 changed files with 74 additions and 0 deletions
+4
View File
@@ -1,7 +1,11 @@
<template> <template>
<Header /> <Header />
<main :class='[ <main :class='[
<<<<<<< HEAD
"w-full", "h-full", "px-3", "w-full", "h-full", "px-3",
=======
"w-full", "h-full",
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
"flex", "justify-center", "flex-1", "flex", "justify-center", "flex-1",
"bg-neutral-100", "dark:bg-zinc-800", "bg-neutral-100", "dark:bg-zinc-800",
"text-black", "dark:text-white", "text-black", "dark:text-white",
+7
View File
@@ -1,7 +1,10 @@
html, body { html, body {
width: 100%; width: 100%;
height: 100%; height: 100%;
<<<<<<< HEAD
max-height: fit-content; max-height: fit-content;
=======
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
margin: 0; margin: 0;
} }
@@ -12,4 +15,8 @@ html {
body { body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
<<<<<<< HEAD
=======
min-height: 100vh;
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
} }
+7
View File
@@ -4,7 +4,14 @@ export async function isSignin(db: Database) {
const origin = await getByIndex(db.server, "name", "origin"); const origin = await getByIndex(db.server, "name", "origin");
const token = await getByIndex(db.server, "name", "token"); const token = await getByIndex(db.server, "name", "token");
<<<<<<< HEAD
if (!origin || !token) { if (!origin || !token) {
=======
if (
origin === undefined ||
token === undefined
) {
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
return false; return false;
} }
+16
View File
@@ -1,4 +1,5 @@
<template> <template>
<<<<<<< HEAD
<div <div
v-if="processStatus === true" v-if="processStatus === true"
:class='[ :class='[
@@ -33,10 +34,13 @@
<Progress v-if='processStatus === "async"' /> <Progress v-if='processStatus === "async"' />
</div> </div>
=======
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { useHead } from "@vueuse/head"; import { useHead } from "@vueuse/head";
<<<<<<< HEAD
import Database, { getByIndex } from "@/lib/db"; import Database, { getByIndex } from "@/lib/db";
import useAPI from "@/lib/api"; import useAPI from "@/lib/api";
import { isSignin } from "@/lib/account"; import { isSignin } from "@/lib/account";
@@ -44,12 +48,18 @@ import { useRouter } from "vue-router";
import { ref } from "vue"; import { ref } from "vue";
import Progress from "@/components/Progress.vue"; import Progress from "@/components/Progress.vue";
import User from "@/components/User.vue"; import User from "@/components/User.vue";
=======
import Database from "@/lib/db";
import { isSignin } from "@/lib/account";
import { useRouter } from "vue-router";
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
useHead({ useHead({
title: "ホーム | Clean Follow uwuzu", title: "ホーム | Clean Follow uwuzu",
}); });
const db = new Database(); const db = new Database();
<<<<<<< HEAD
const router = useRouter(); const router = useRouter();
const me = ref<any>(); const me = ref<any>();
@@ -98,4 +108,10 @@ const hostname = ref<string>("");
processStatus.value = false; processStatus.value = false;
}) (); }) ();
=======
if (!await isSignin(db)) {
useRouter().replace("/signin");
}
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
</script> </script>
+30
View File
@@ -21,10 +21,30 @@
]' ]'
> >
<h1 class="text-3xl font-bold">確認</h1> <h1 class="text-3xl font-bold">確認</h1>
<<<<<<< HEAD
<User <User
:meData="meData" :meData="meData"
:hostname="hostname" :hostname="hostname"
/> />
=======
<div class="flex w-full border rounded-lg p-2">
<img
:src="meData.user_icon"
:alt="`${tokenData.username}さんのアイコン`"
class="w-30 h-30 rounded-full"
/>
<div class="flex flex-col ml-2">
<span class="text-2xl font-bold">{{ meData.username }}</span>
<span>@{{ meData.userid }}@{{ hostname }}</span>
<textarea
class="resize-none h-full"
v-html="meData.profile"
disabled
/>
</div>
</div>
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
<p>あなたは{{ meData.username }}ですか</p> <p>あなたは{{ meData.username }}ですか</p>
<div class="flex gap-6"> <div class="flex gap-6">
@@ -69,8 +89,12 @@ import useAPI from "@/lib/api";
import Database from "@/lib/db"; import Database from "@/lib/db";
import Progress from "@/components/Progress.vue"; import Progress from "@/components/Progress.vue";
import Button from "@/components/Button.vue"; import Button from "@/components/Button.vue";
<<<<<<< HEAD
import { ref } from "vue";import User from "@/components/User.vue"; import { ref } from "vue";import User from "@/components/User.vue";
=======
import { ref } from "vue";
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
const db = new Database(); const db = new Database();
const query = useRoute().query; const query = useRoute().query;
@@ -85,8 +109,14 @@ useHead({
title: "サインイン処理 | Clean Follow uwuzu", title: "サインイン処理 | Clean Follow uwuzu",
}); });
<<<<<<< HEAD
if (await isSignin(db)) if (await isSignin(db))
useRouter().replace("/"); useRouter().replace("/");
=======
if (await isSignin(db)) {
useRouter().replace("/");
}
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
const stageDetails = { const stageDetails = {
redirect: "リダイレクトしています", redirect: "リダイレクトしています",
+6
View File
@@ -93,8 +93,14 @@ useHead({
title: "サインイン | Clean Follow uwuzu", title: "サインイン | Clean Follow uwuzu",
}); });
<<<<<<< HEAD
if (await isSignin(new Database())) if (await isSignin(new Database()))
useRouter().replace("/"); useRouter().replace("/");
=======
if (await isSignin(new Database())) {
useRouter().replace("/");
}
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
const emit = defineEmits(["failed"]); const emit = defineEmits(["failed"]);
const sprtVer = __CONFIG.uwuzu.supportedVersion; const sprtVer = __CONFIG.uwuzu.supportedVersion;
+4
View File
@@ -17,7 +17,11 @@ export default defineConfig({
min: "1.6.5", min: "1.6.5",
max: "1.6.10", max: "1.6.10",
}, },
<<<<<<< HEAD
requiredScopes: ["read:me", "read:users"] requiredScopes: ["read:me", "read:users"]
=======
requiredScopes: ["read:me"]
>>>>>>> 49ca1fac60aecb94a7d76865c14a673f1ca1eccf
}, },
}), }),
}, },