From b0002334d182c0865ab7876513097dc28f9edc52 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Sat, 1 Feb 2025 16:50:12 +0900 Subject: [PATCH] chore: format and lint --- components/publish/PublishWidget.vue | 95 ++++++++++++----------- components/status/ScheduledStatusCard.vue | 2 + 2 files changed, 50 insertions(+), 47 deletions(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 9ac0cf1d..fb7f1b20 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -90,6 +90,7 @@ function trimPollOptions() { && trimmedOptions.length >= currentInstance.value?.configuration?.polls.maxOptions) { draft.value.params.poll!.options = trimmedOptions } + else { draft.value.params.poll!.options = [...trimmedOptions, ''] } @@ -334,37 +335,37 @@ function stopQuestionMarkPropagation(e: KeyboardEvent) { - -
-
- - - - -
-
    -
  1. - {{ i + 1 }}. - {{ error }} -
  2. -
-
+ +
+
+ + + + +
+
    +
  1. + {{ i + 1 }}. + {{ error }} +
  2. +
+
- -
-
- -
-
+ +
+
+ +
+
- - - - - - + + + + + + -
+
diff --git a/components/status/ScheduledStatusCard.vue b/components/status/ScheduledStatusCard.vue index 8191ca04..be088e9e 100644 --- a/components/status/ScheduledStatusCard.vue +++ b/components/status/ScheduledStatusCard.vue @@ -15,6 +15,8 @@ const client = useMastoClient() async function cancelSchedule(id: string) { const status = await client.v1.scheduledStatuses.$select(id) + // DEBUG: temporarily disable + // eslint-disable-next-line no-alert if (confirm('Are you sure to cancel this scheduled post?')) status.remove() }