From 39a365e15a7c894a781e140864e8b5b08004d423 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 8 Apr 2024 20:51:52 -1000 Subject: [PATCH] Work on prettier UI and more errors --- bun.lockb | Bin 297588 -> 297588 bytes pages/pages/index.vue | 37 ++++++++++++++++++++++++--- pages/pages/oauth/authorize.vue | 44 +++++++++++++++++++++++++++++++- pages/pages/oauth/redirect.vue | 2 +- 4 files changed, 78 insertions(+), 5 deletions(-) diff --git a/bun.lockb b/bun.lockb index 2fa0247f337b80547dfdb33e711e6586bd85072d..ee06f16a8ab72010acfd2aba61679592240f2c57 100755 GIT binary patch delta 32 ocmew|Md-^Ep@tU5ElhX+a4^Oh=$TsT8MHtB!?gYBALjmE0P4&RdjJ3c delta 32 kcmew|Md-^Ep@tU5ElhX+a4<1IK>O1_OxvISVean*0MzRY^Z)<= diff --git a/pages/pages/index.vue b/pages/pages/index.vue index a9eb6045..7c1ca85e 100644 --- a/pages/pages/index.vue +++ b/pages/pages/index.vue @@ -6,7 +6,7 @@
-
+
\ No newline at end of file diff --git a/pages/pages/oauth/authorize.vue b/pages/pages/oauth/authorize.vue index 6a52823a..b6eb6bb8 100644 --- a/pages/pages/oauth/authorize.vue +++ b/pages/pages/oauth/authorize.vue @@ -5,7 +5,7 @@
-
+
@@ -48,6 +48,33 @@
+
+

Invalid access + parameters +

+

This page should be accessed + through a valid OAuth2 authorization request. Please use a Mastodon API client to access this page. +

+

Here are some recommended clients:

+ +

+ Many other clients exist, but they have not been tested for compatibility. Bug reports are nevertheless welcome. +

+ +

+ Found a problem? Report it on the issue tracker. +

+
@@ -58,12 +85,27 @@ import LoginInput from "../../components/LoginInput.vue"; const query = useRoute().query; +const recommendedClients = [ + { + name: "Soapbox", + icon: "https://soapbox.pub/assets/logo.svg", + link: "https://fe.soapbox.pub/", + }, + { + name: "Megalodon", + icon: "https://sk22.github.io/megalodon/mastodon/src/main/res/mipmap-xhdpi/ic_launcher_round.png", + link: "https://sk22.github.io/megalodon/", + }, +]; + const redirect_uri = query.redirect_uri; const response_type = query.response_type; const client_id = query.client_id; const scope = query.scope; const error = decodeURIComponent(query.error as string); +const validUrlParameters = redirect_uri && response_type && client_id && scope; + const oauthProviders = ref< | { name: string; diff --git a/pages/pages/oauth/redirect.vue b/pages/pages/oauth/redirect.vue index 99644a2d..d6f6e62f 100644 --- a/pages/pages/oauth/redirect.vue +++ b/pages/pages/oauth/redirect.vue @@ -13,7 +13,7 @@ account?

{{ application }}

- {{ website }} + {{ website }}