From e73f7f3b26291ddd362ab76f60cfd8cf0681de37 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Fri, 2 Jun 2023 21:36:47 +0000 Subject: [PATCH 1/3] Update 'CODE_OF_CONDUCT.md' --- CODE_OF_CONDUCT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 95e2bd421..143c63d29 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -59,7 +59,7 @@ representative at an online or offline event. ## Enforcement -Servers of abusive, harassing, or otherwise unacceptable behavior may be +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at @thatonecalculator on Codeberg, `@kainoa@calckey.social` on the Fediverse, From 8234c271234dd731ae9d307b0700b799fe1e7160 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 2 Jun 2023 14:52:44 -0700 Subject: [PATCH 2/3] fix: show message on error alert if text is null --- packages/client/src/os.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 0aa823d05..0636bfd3e 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -277,6 +277,9 @@ export function alert(props: { text?: string | null; }): Promise { return new Promise((resolve, reject) => { + if (props.text == null && props.type === "error") { + props.text = "An unknown error occured!" + } popup( MkDialog, props, From 198b87820df8c4aed1678e2e7c404c57e85eeb16 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 2 Jun 2023 14:53:28 -0700 Subject: [PATCH 3/3] chore: formatting --- packages/client/src/components/MkNote.vue | 10 ++++++++-- packages/client/src/components/MkNoteSub.vue | 3 ++- packages/client/src/os.ts | 2 +- packages/client/src/pages/about-calckey.vue | 3 +-- packages/client/src/pages/settings/general.vue | 8 +++++--- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 669fd67ef..7eca22a73 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -68,7 +68,9 @@ class="article" @contextmenu.stop="onContextmenu" @click="noteClick" - :style="{ cursor: expandOnNoteClick && !detailedView ? 'pointer' : '' }" + :style="{ + cursor: expandOnNoteClick && !detailedView ? 'pointer' : '', + }" >
@@ -503,7 +505,11 @@ function scrollIntoView() { } function noteClick(e) { - if (document.getSelection().type === "Range" || props.detailedView || !expandOnNoteClick) { + if ( + document.getSelection().type === "Range" || + props.detailedView || + !expandOnNoteClick + ) { e.stopPropagation(); } else { router.push(notePage(appearNote)); diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 60fbbe11e..c26af1668 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -14,7 +14,8 @@ @contextmenu.stop="onContextmenu" >
-
diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 0636bfd3e..6831d72fa 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -278,7 +278,7 @@ export function alert(props: { }): Promise { return new Promise((resolve, reject) => { if (props.text == null && props.type === "error") { - props.text = "An unknown error occured!" + props.text = "An unknown error occured!"; } popup( MkDialog, diff --git a/packages/client/src/pages/about-calckey.vue b/packages/client/src/pages/about-calckey.vue index f0faa4066..1e16356a5 100644 --- a/packages/client/src/pages/about-calckey.vue +++ b/packages/client/src/pages/about-calckey.vue @@ -98,8 +98,7 @@ :text="'$[sparkle @kainoa@calckey.social] (Main developer)'" /> {{ i18n.ts.disablePagesScript }} - {{ - i18n.ts.expandOnNoteClick - }} + {{ i18n.ts.expandOnNoteClick + }} {{ i18n.ts.flagShowTimelineReplies