forked from tuvn86/webapp-conversation
feat: lint code
This commit is contained in:
parent
2e46f795a4
commit
cfd0c9532f
36 changed files with 226 additions and 210 deletions
29
types/app.ts
29
types/app.ts
|
|
@ -1,31 +1,31 @@
|
|||
import { Locale } from '@/i18n'
|
||||
import type { Locale } from '@/i18n'
|
||||
|
||||
export type PromptVariable = {
|
||||
key: string,
|
||||
name: string,
|
||||
type: "string" | "number" | "select",
|
||||
default?: string | number,
|
||||
key: string
|
||||
name: string
|
||||
type: 'string' | 'number' | 'select'
|
||||
default?: string | number
|
||||
options?: string[]
|
||||
max_length?: number
|
||||
required: boolean
|
||||
}
|
||||
|
||||
export type PromptConfig = {
|
||||
prompt_template: string,
|
||||
prompt_variables: PromptVariable[],
|
||||
prompt_template: string
|
||||
prompt_variables: PromptVariable[]
|
||||
}
|
||||
|
||||
export type TextTypeFormItem = {
|
||||
label: string,
|
||||
variable: string,
|
||||
label: string
|
||||
variable: string
|
||||
required: boolean
|
||||
max_length: number
|
||||
}
|
||||
|
||||
export type SelectTypeFormItem = {
|
||||
label: string,
|
||||
variable: string,
|
||||
required: boolean,
|
||||
label: string
|
||||
variable: string
|
||||
required: boolean
|
||||
options: string[]
|
||||
}
|
||||
/**
|
||||
|
|
@ -79,14 +79,13 @@ export type IChatItem = {
|
|||
isOpeningStatement?: boolean
|
||||
}
|
||||
|
||||
|
||||
export type ResponseHolder = {}
|
||||
|
||||
export type ConversationItem = {
|
||||
id: string
|
||||
name: string
|
||||
inputs: Record<string, any> | null
|
||||
introduction: string,
|
||||
introduction: string
|
||||
}
|
||||
|
||||
export type AppInfo = {
|
||||
|
|
@ -95,4 +94,4 @@ export type AppInfo = {
|
|||
default_language: Locale
|
||||
copyright?: string
|
||||
privacy_policy?: string
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue