From 026329b68b3c6cb6ab1375ddcb40b1de8cb2d469 Mon Sep 17 00:00:00 2001 From: tako0614 Date: Wed, 17 Jul 2024 22:23:59 +0900 Subject: [PATCH] Refactor code to use 'timestamp' instead of 'time' in ChatTalkContent --- components/OtherMessage.tsx | 11 +-- components/WelcomeMessage.tsx | 2 +- components/welcome.tsx | 48 +++++++++-- islands/ChatTalkContent.tsx | 81 +++++++----------- routes/api/v2/client/friends/list.ts | 2 +- routes/api/v2/client/friends/request/list.ts | 2 +- routes/api/v2/client/settings/privacy.ts | 10 ++- routes/api/v2/client/talks/friend/data.ts | 4 +- routes/api/v2/client/talks/friend/text.ts | 5 +- routes/api/v2/client/users/friendkey.ts | 5 +- routes/api/v2/client/users/icon.ts | 2 +- routes/api/v2/client/users/settings.ts | 5 +- .../v2/server/information/users/changes.ts | 5 +- .../v2/server/information/users/profile.ts | 20 ++++- static/logo.png | Bin 0 -> 4954 bytes util/takosClient.ts | 7 ++ 16 files changed, 131 insertions(+), 78 deletions(-) create mode 100644 static/logo.png diff --git a/components/OtherMessage.tsx b/components/OtherMessage.tsx index 842e198d..737ca168 100644 --- a/components/OtherMessage.tsx +++ b/components/OtherMessage.tsx @@ -1,28 +1,23 @@ -const ChatOtherMessage = ( - { time, message, sender, senderNickName, isPrimary }: any, -) => { +const ChatOtherMessage = ({ name, time, message, isPrimary, nickName }: any) => { const isPrimaryClass = isPrimary ? "c-talk-chat other primary" : "c-talk-chat other subsequent"; - return (
  • {isPrimary && (
    )} -
    {isPrimary && (
    -

    {senderNickName}

    +

    {nickName}

    )} -

    {convertLineBreak(message)} diff --git a/components/WelcomeMessage.tsx b/components/WelcomeMessage.tsx index 439ebeaf..616e6155 100644 --- a/components/WelcomeMessage.tsx +++ b/components/WelcomeMessage.tsx @@ -17,7 +17,7 @@ const ChatOtherMessage = (

    )} diff --git a/components/welcome.tsx b/components/welcome.tsx index f9d7a697..f5f26c19 100644 --- a/components/welcome.tsx +++ b/components/welcome.tsx @@ -90,7 +90,7 @@ function welcome() {
    logo @@ -142,6 +142,44 @@ function welcome() { list
    +
    +
    +
    +

    © 2024 Tomiyama Shota.

    +

    + Operat By takoserver +

    + +

    + This site is protected by reCAPTCHA and the Google + Privacy Policy and + Terms of Service apply. +

    + +
    +
    +