From 53a09b91c7be55960c69ba4fc90c804a37365a88 Mon Sep 17 00:00:00 2001 From: freeplay Date: Wed, 5 Jul 2023 23:49:09 -0400 Subject: [PATCH] chore: format --- packages/client/src/components/MkNote.vue | 11 ++- .../src/components/global/MkPageHeader.vue | 7 +- packages/client/src/scripts/helpMenu.ts | 49 +++++----- packages/client/src/style.scss | 6 +- packages/client/src/ui/visitor.vue | 5 +- packages/client/src/ui/visitor/kanban.vue | 91 +++++++++++++------ 6 files changed, 108 insertions(+), 61 deletions(-) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 5683ec6be0..cf8bc88d55 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -128,8 +128,15 @@ -
- +
+
- + {{ i18n.ts.home }} diff --git a/packages/client/src/scripts/helpMenu.ts b/packages/client/src/scripts/helpMenu.ts index 7d08393f84..00ca019016 100644 --- a/packages/client/src/scripts/helpMenu.ts +++ b/packages/client/src/scripts/helpMenu.ts @@ -6,7 +6,6 @@ import XTutorial from "../components/MkTutorialDialog.vue"; import { i18n } from "@/i18n"; import { $i } from "@/account"; - export function openHelpMenu_(ev: MouseEvent) { os.popupMenu( [ @@ -42,33 +41,39 @@ export function openHelpMenu_(ev: MouseEvent) { window.open("https://calckey.org/apps", "_blank"); }, }, - $i ? null : { - type: "link", - text: i18n.ts._mfm.cheatSheet, - icon: "ph-question ph-bold ph-lg", - to: "/mfm-cheat-sheet", - }, - $i ? { - type: "button", - action: async () => { - defaultStore.set("tutorial", 0); - os.popup(XTutorial, {}, {}, "closed"); - }, - text: i18n.ts.replayTutorial, - icon: "ph-circle-wavy-question ph-bold ph-lg", - } : undefined, + $i + ? null + : { + type: "link", + text: i18n.ts._mfm.cheatSheet, + icon: "ph-question ph-bold ph-lg", + to: "/mfm-cheat-sheet", + }, + $i + ? { + type: "button", + action: async () => { + defaultStore.set("tutorial", 0); + os.popup(XTutorial, {}, {}, "closed"); + }, + text: i18n.ts.replayTutorial, + icon: "ph-circle-wavy-question ph-bold ph-lg", + } + : undefined, null, { type: "parent", text: i18n.ts.developer, icon: "ph-code ph-bold ph-lg", children: [ - $i ? { - type: "link", - to: "/api-console", - text: "API Console", - icon: "ph-terminal-window ph-bold ph-lg", - } : undefined, + $i + ? { + type: "link", + to: "/api-console", + text: "API Console", + icon: "ph-terminal-window ph-bold ph-lg", + } + : undefined, { text: i18n.ts.document, icon: "ph-file-doc ph-bold ph-lg", diff --git a/packages/client/src/style.scss b/packages/client/src/style.scss index a0551db4a1..1f95121db6 100644 --- a/packages/client/src/style.scss +++ b/packages/client/src/style.scss @@ -540,11 +540,13 @@ hr { } } -._formLinksGridFlex { // "grid", anyways display flex my beloved +._formLinksGridFlex { + // "grid", anyways display flex my beloved display: flex; flex-wrap: wrap; gap: 12px; - > ._button, > .linkBoxed { + > ._button, + > .linkBoxed { flex-basis: 34%; flex-grow: 1; width: 0; diff --git a/packages/client/src/ui/visitor.vue b/packages/client/src/ui/visitor.vue index d0a3908d80..6f0649ba9f 100644 --- a/packages/client/src/ui/visitor.vue +++ b/packages/client/src/ui/visitor.vue @@ -6,7 +6,10 @@
-