From 568f98589b6c30bb3f807517d28039b12dd54be3 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 2 Oct 2022 11:54:30 +0300 Subject: companion-lite: rewrite to use IndieAuth This is a naive implementation that doesn't have some security checks. It's ok tho, should work fine... can refine it later --- kittybox-rs/companion-lite/index.html | 20 +-- kittybox-rs/companion-lite/src/base64.ts | 89 +++++++++++ kittybox-rs/companion-lite/src/indieauth.ts | 113 +++++++++++++ kittybox-rs/companion-lite/src/main.ts | 213 ++++++++++++++++++------- kittybox-rs/companion-lite/src/micropub_api.ts | 125 +++++++++++---- 5 files changed, 461 insertions(+), 99 deletions(-) create mode 100644 kittybox-rs/companion-lite/src/base64.ts create mode 100644 kittybox-rs/companion-lite/src/indieauth.ts (limited to 'kittybox-rs/companion-lite') diff --git a/kittybox-rs/companion-lite/index.html b/kittybox-rs/companion-lite/index.html index b643ba2..e494cd9 100644 --- a/kittybox-rs/companion-lite/index.html +++ b/kittybox-rs/companion-lite/index.html @@ -1,3 +1,4 @@ + @@ -18,20 +19,19 @@ + +