Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier write #2006

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion public/editor-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
18 changes: 9 additions & 9 deletions public/editor-client/src/config.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
10 changes: 7 additions & 3 deletions public/editor-client/src/fonts/index.ts
Original file line number Diff line number Diff line change
@@ -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) => ({
Expand Down
8 changes: 4 additions & 4 deletions public/editor-client/src/types/AiText.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -15,7 +15,7 @@ export enum Action {
Professional = "Professional",
Casual = "Casual",
Confident = "Confident",
Friendly = "Friendly",
Friendly = "Friendly"
}

interface ConversationMessage {
Expand Down Expand Up @@ -64,5 +64,5 @@ export const LanguageCodes: Record<string, string> = {
ces: "Czech",
bel: "Belarusian",
swe: "Swedish",
kaz: "Kazakh",
kaz: "Kazakh"
};