use eslint auto fix
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
MIN_TOP_P
|
||||
} from "./versions";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
onSettingsChanged(settings: InfioSettings): void;
|
||||
|
||||
settings: InfioSettings;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { InfioSettings } from "../types/settings";
|
||||
|
||||
import ModelsSettings from "./ModelsSettings";
|
||||
|
||||
interface CustomSettingsProps {
|
||||
type CustomSettingsProps = {
|
||||
plugin: InfioPlugin;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
export interface DropdownComponentProps {
|
||||
export type DropdownComponentProps = {
|
||||
name: string;
|
||||
description?: string;
|
||||
options: string[];
|
||||
@@ -32,7 +32,7 @@ export const DropdownComponent: React.FC<DropdownComponentProps> = ({
|
||||
</div>
|
||||
);
|
||||
|
||||
export interface TextComponentProps {
|
||||
export type TextComponentProps = {
|
||||
name: string;
|
||||
description?: string;
|
||||
placeholder: string;
|
||||
@@ -62,7 +62,7 @@ export const TextComponent: React.FC<TextComponentProps> = ({
|
||||
</div>
|
||||
);
|
||||
|
||||
export interface ToggleComponentProps {
|
||||
export type ToggleComponentProps = {
|
||||
name?: string;
|
||||
description?: string;
|
||||
value: boolean;
|
||||
|
||||
@@ -6,7 +6,7 @@ import { InfioSettings } from "../types/settings";
|
||||
|
||||
import { DropdownComponent, TextComponent, ToggleComponent } from "./FormComponents";
|
||||
|
||||
interface ModelRowProps {
|
||||
type ModelRowProps = {
|
||||
model: CustomLLMModel;
|
||||
canDelete: boolean;
|
||||
onToggle: (enabled: boolean) => void;
|
||||
@@ -31,7 +31,7 @@ const ModelRow: React.FC<ModelRowProps> = ({ model, canDelete, onToggle, onDelet
|
||||
</tr>
|
||||
);
|
||||
|
||||
interface ModelFormProps {
|
||||
type ModelFormProps = {
|
||||
providers: string[];
|
||||
onSubmit: (model: CustomLLMModel) => void;
|
||||
isEmbeddingModel: boolean;
|
||||
@@ -96,7 +96,7 @@ const ModelForm: React.FC<ModelFormProps> = ({ providers, onSubmit, isEmbeddingM
|
||||
);
|
||||
};
|
||||
|
||||
interface ModelListProps {
|
||||
type ModelListProps = {
|
||||
models: CustomLLMModel[];
|
||||
chatModelKey: string;
|
||||
applyModelKey: string;
|
||||
@@ -139,7 +139,7 @@ const ModelList: React.FC<ModelListProps> = ({
|
||||
</div>
|
||||
);
|
||||
|
||||
interface ModelsSettingsProps {
|
||||
type ModelsSettingsProps = {
|
||||
settings: InfioSettings;
|
||||
setSettings: (settings: InfioSettings) => void;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as React from "react";
|
||||
|
||||
import SettingsItem from "./SettingsItem";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as React from "react";
|
||||
|
||||
import SettingsItem from "./SettingsItem";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import * as React from "react";
|
||||
import Context from "../../core/autocomplete/context-detection";
|
||||
import { FewShotExample } from "../versions";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as React from "react";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string | React.ReactNode;
|
||||
errorMessage?: string;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useRef } from "react";
|
||||
|
||||
import SettingsItem from "./SettingsItem";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as React from "react";
|
||||
|
||||
import SettingsItem from "./SettingsItem";
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
placeholder: string;
|
||||
|
||||
@@ -3,7 +3,7 @@ import * as React from "react";
|
||||
import { Trigger } from "../versions";
|
||||
|
||||
|
||||
interface IProps {
|
||||
type IProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
triggers: Trigger[];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
import { z } from "zod";
|
||||
|
||||
import { azureOAIApiSettingsSchema, fewShotExampleSchema, MAX_DELAY, MAX_MAX_CHAR_LIMIT, MIN_DELAY, MIN_MAX_CHAR_LIMIT, modelOptionsSchema, openAIApiSettingsSchema } from "../shared";
|
||||
import { MAX_DELAY, MAX_MAX_CHAR_LIMIT, MIN_DELAY, MIN_MAX_CHAR_LIMIT, azureOAIApiSettingsSchema, fewShotExampleSchema, modelOptionsSchema, openAIApiSettingsSchema } from "../shared";
|
||||
|
||||
import block_qoute_example from "./few-shot-examples/block-qoute-example";
|
||||
import codeblock_function_completion from "./few-shot-examples/codeblock-function-completion";
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { isRegexValid, isValidIgnorePattern } from "../../../utils/auto-complete";
|
||||
|
||||
import {
|
||||
azureOAIApiSettingsSchema, fewShotExampleSchema,
|
||||
MAX_DELAY,
|
||||
MAX_MAX_CHAR_LIMIT,
|
||||
MAX_DELAY, MAX_MAX_CHAR_LIMIT,
|
||||
MIN_DELAY,
|
||||
MIN_MAX_CHAR_LIMIT,
|
||||
azureOAIApiSettingsSchema,
|
||||
fewShotExampleSchema,
|
||||
modelOptionsSchema,
|
||||
ollamaApiSettingsSchema,
|
||||
openAIApiSettingsSchema,
|
||||
|
||||
Reference in New Issue
Block a user