From 222512af05513ebefeab4919c66762ccff1ca71e Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Fri, 21 Jan 2022 22:38:19 +0000 Subject: [PATCH] limter --- src/pageChecks.ts | 2 +- src/utils/clipboardNotifs.ts | 34 +++++++++++++++++----------------- src/utils/dataInterchange.ts | 4 ++-- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/pageChecks.ts b/src/pageChecks.ts index eae30ae..423a89f 100644 --- a/src/pageChecks.ts +++ b/src/pageChecks.ts @@ -36,4 +36,4 @@ export async function pageChecks(url: string, api: API, settings: Settings): Pro return true; } return false; -} \ No newline at end of file +} diff --git a/src/utils/clipboardNotifs.ts b/src/utils/clipboardNotifs.ts index 4bf465f..adbc970 100644 --- a/src/utils/clipboardNotifs.ts +++ b/src/utils/clipboardNotifs.ts @@ -1,22 +1,22 @@ -import i18next from "i18next"; import UIkit from "uikit"; +import i18next from "i18next"; export function addClipboardNotifications(clipboard: ClipboardJS, timeout = 1000): void { - clipboard.on("success", () => { - UIkit.notification(i18next.t("notification_copy_success"), { - status: "success", - timeout: timeout, - }); - }); - clipboard.on("error", function (e: Error) { - UIkit.notification( - i18next.t("notification_copy_error", { - error: e.message, - }), - { - status: "danger", - timeout: timeout, - }, - ); + clipboard.on("success", () => { + UIkit.notification(i18next.t("notification_copy_success"), { + status: "success", + timeout: timeout, }); + }); + clipboard.on("error", function (e: Error) { + UIkit.notification( + i18next.t("notification_copy_error", { + error: e.message, + }), + { + status: "danger", + timeout: timeout, + }, + ); + }); } diff --git a/src/utils/dataInterchange.ts b/src/utils/dataInterchange.ts index f5f8f9f..5d6c08e 100644 --- a/src/utils/dataInterchange.ts +++ b/src/utils/dataInterchange.ts @@ -35,8 +35,8 @@ export function dumpData(data: Record, space = 4, syntax = "jso } else if (syntax == "yaml") { return yaml.dump(data, { indent: space, - quotingType: "\"", - forceQuotes: true + quotingType: '"', + forceQuotes: true, }); } }