From 9dfd6aa77518b3a1e6bfd926a3b7719c32a8c97f Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 24 Oct 2022 23:19:33 +0300 Subject: use the new api --- src/components/Form.astro | 16 ++-- src/components/Post.astro | 9 +- src/components/Thread.astro | 25 +++--- src/lib/api.ts | 17 ++-- src/lib/image.ts | 42 +++------ src/lib/thread.ts | 169 +++++++++++++++-------------------- src/lib/util.ts | 27 ++---- src/models/Thread.ts | 26 +++--- src/pages/board/[board].astro | 2 - src/pages/board/[board]/[tid].astro | 4 +- src/pages/create/[board].astro | 4 +- src/pages/create/[board]/[tid].astro | 2 +- src/pages/create/comment.ts | 14 ++- src/pages/create/thread.ts | 14 ++- src/styles/thread.css | 3 + 15 files changed, 157 insertions(+), 217 deletions(-) (limited to 'src') diff --git a/src/components/Form.astro b/src/components/Form.astro index 540a4d4..93192a0 100644 --- a/src/components/Form.astro +++ b/src/components/Form.astro @@ -1,20 +1,17 @@ --- -import { sha256 } from 'js-sha256'; - export interface Props { board: string; tid?: string } const { board, tid } = Astro.props; -const iphash = sha256(Astro.clientAddress); ---
-