From 5f27c462bb8c6281ea23713928e670c569e42594 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 22 May 2023 17:00:50 -0700 Subject: [PATCH] chore: formatting --- package.json | 2 +- packages/backend/src/misc/nyaize.ts | 4 ++- .../global/MkMisskeyFlavoredMarkdown.vue | 8 +++-- .../src/components/global/MkPageHeader.vue | 32 +++++++++++-------- packages/client/src/pages/mfm-cheat-sheet.vue | 14 +++++--- 5 files changed, 38 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 7f8a2741b..236e6cc79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "14.0.0-dev17", + "version": "14.0.0-dev18", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/backend/src/misc/nyaize.ts b/packages/backend/src/misc/nyaize.ts index a8af59450..dd0c5bbdf 100644 --- a/packages/backend/src/misc/nyaize.ts +++ b/packages/backend/src/misc/nyaize.ts @@ -9,7 +9,9 @@ export function nyaize(text: string): string { .replace(/(?<=n)a/gi, (x) => (x === "A" ? "YA" : "ya")) .replace(/(?<=morn)ing/gi, (x) => (x === "ING" ? "YAN" : "yan")) .replace(/(?<=every)one/gi, (x) => (x === "ONE" ? "NYAN" : "nyan")) - .replace(/non(?=[bcdfghjklmnpqrstvwxyz])/gi, (x) => (x === "NON" ? "NYAN" : "nyan")) + .replace(/non(?=[bcdfghjklmnpqrstvwxyz])/gi, (x) => + x === "NON" ? "NYAN" : "nyan", + ) // ko-KR .replace(/[나-낳]/g, (match) => String.fromCharCode( diff --git a/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue b/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue index 896891d5e..4a5c2ec0f 100644 --- a/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue +++ b/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue @@ -301,8 +301,12 @@ const props = withDefaults( } @keyframes mfm-fade { - 0% { opacity: 0; } - 100% { opacity: 1; } + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } } diff --git a/packages/client/src/components/global/MkPageHeader.vue b/packages/client/src/components/global/MkPageHeader.vue index c1cf0e9a1..1892ec0c0 100644 --- a/packages/client/src/components/global/MkPageHeader.vue +++ b/packages/client/src/components/global/MkPageHeader.vue @@ -69,7 +69,12 @@