diff --git a/public/editor-client/package.json b/public/editor-client/package.json index 8a6cf8fb74..0839c5c715 100644 --- a/public/editor-client/package.json +++ b/public/editor-client/package.json @@ -10,7 +10,9 @@ "translation": "gulp translate", "lint": "eslint -c .eslintrc --ext .ts ./src", "tsc": "tsc --skipLibCheck", - "test": "jest --passWithNoTests" + "test": "jest --passWithNoTests", + "prettier:check": "prettier --config --check \"src/**/*.*\"", + "prettier:write": "prettier --config --write \"src/**/*.*\"" }, "keywords": [ "api" diff --git a/public/editor-client/src/config.ts b/public/editor-client/src/config.ts index 6d5eb8e300..957960c22d 100644 --- a/public/editor-client/src/config.ts +++ b/public/editor-client/src/config.ts @@ -1,12 +1,12 @@ -import {readIconUrl} from "@/types/Icon"; -import {Arr, Bool, Obj, Str} from "@brizy/readers"; -import {match, mPipe, optional, parseStrict} from "fp-utilities"; -import {CollectionType} from "./types/Collections"; -import {ImagePatterns, PLUGIN_ENV} from "./types/global"; -import {pipe} from "./utils/fp/pipe"; -import {onNullish} from "./utils/onNullish"; -import {throwOnNullish} from "./utils/throwOnNullish"; -import {MValue} from "./utils/types"; +import { readIconUrl } from "@/types/Icon"; +import { Arr, Bool, Obj, Str } from "@brizy/readers"; +import { match, mPipe, optional, parseStrict } from "fp-utilities"; +import { CollectionType } from "./types/Collections"; +import { ImagePatterns, PLUGIN_ENV } from "./types/global"; +import { pipe } from "./utils/fp/pipe"; +import { onNullish } from "./utils/onNullish"; +import { throwOnNullish } from "./utils/throwOnNullish"; +import { MValue } from "./utils/types"; interface DefaultTemplates { kitsUrl: string; diff --git a/public/editor-client/src/fonts/index.ts b/public/editor-client/src/fonts/index.ts index 2ad24b1988..c5658d09b9 100644 --- a/public/editor-client/src/fonts/index.ts +++ b/public/editor-client/src/fonts/index.ts @@ -1,9 +1,13 @@ -import { addAdobeAccount, getAdobeFont } from "../api"; +import { + addAdobeAccount, + FontsData, + getAdobeFont, + getUploadedFonts +} from "../api"; import { AdobeFonts } from "../types/AdobeFonts"; +import { Response } from "../types/Response"; import { t } from "../utils/i18n"; import { Fonts, KitData } from "./types"; -import { FontsData, getUploadedFonts } from "../api"; -import { Response } from "../types/Response"; const convertDataToLocal = (mockTypeKitData: KitData): Fonts => { const families = mockTypeKitData.kit.families.map((family) => ({ diff --git a/public/editor-client/src/types/AiText.ts b/public/editor-client/src/types/AiText.ts index dd7775ac49..4192f4ced7 100644 --- a/public/editor-client/src/types/AiText.ts +++ b/public/editor-client/src/types/AiText.ts @@ -1,11 +1,11 @@ export enum RequestOptions { - Model = "gpt-3.5-turbo", + Model = "gpt-3.5-turbo" } export enum Role { User = "user", System = "system", - Assistant = "assistant", + Assistant = "assistant" } export enum Action { @@ -15,7 +15,7 @@ export enum Action { Professional = "Professional", Casual = "Casual", Confident = "Confident", - Friendly = "Friendly", + Friendly = "Friendly" } interface ConversationMessage { @@ -64,5 +64,5 @@ export const LanguageCodes: Record = { ces: "Czech", bel: "Belarusian", swe: "Swedish", - kaz: "Kazakh", + kaz: "Kazakh" };