From a56890e68c89551b949787945bd1af3ed7c17d70 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sat, 3 Jun 2023 21:09:37 +0900
Subject: [PATCH] Fix types
---
src/renderer/components/Login/LoginForm.vue | 6 ++++-
src/renderer/components/Settings/Filters.vue | 19 +++++++++++---
.../components/Settings/Filters/Edit.vue | 25 +++++++++++++++----
.../components/Settings/Filters/New.vue | 25 ++++++++++++++++---
.../components/TimelineSpace/Compose.vue | 9 ++++---
.../components/TimelineSpace/Contents.vue | 2 +-
.../TimelineSpace/Contents/Bookmarks.vue | 8 +++---
.../TimelineSpace/Contents/Favourites.vue | 8 +++---
.../TimelineSpace/Contents/FollowRequests.vue | 18 ++++++++++---
.../TimelineSpace/Contents/Hashtag/List.vue | 2 +-
.../TimelineSpace/Contents/Search.vue | 9 ++++---
.../TimelineSpace/Contents/Search/Tag.vue | 6 ++---
.../TimelineSpace/Contents/Search/Toots.vue | 18 ++++++++++---
.../components/TimelineSpace/ReceiveDrop.vue | 2 +-
.../organisms/Notification/StatusReaction.vue | 4 +--
src/renderer/components/organisms/Toot.vue | 4 +--
16 files changed, 120 insertions(+), 45 deletions(-)
diff --git a/src/renderer/components/Login/LoginForm.vue b/src/renderer/components/Login/LoginForm.vue
index 38c79716..aef7ff53 100644
--- a/src/renderer/components/Login/LoginForm.vue
+++ b/src/renderer/components/Login/LoginForm.vue
@@ -116,7 +116,11 @@ export default defineComponent({
searching.value = true
try {
const cleanDomain = form.domainName.trim()
- sns.value = await detector(`https://${cleanDomain}`)
+ const res = await detector(`https://${cleanDomain}`)
+ if (res === 'friendica') {
+ throw new Error('Friendica is not supported')
+ }
+ sns.value = res
domain.value = cleanDomain
ElMessage({
message: t('message.domain_confirmed', {
diff --git a/src/renderer/components/Settings/Filters.vue b/src/renderer/components/Settings/Filters.vue
index 0c5af432..ee8054fe 100644
--- a/src/renderer/components/Settings/Filters.vue
+++ b/src/renderer/components/Settings/Filters.vue
@@ -44,12 +44,15 @@