mirror of
https://github.com/coaidev/coai.git
synced 2025-06-04 04:40:22 +09:00
fix type check
This commit is contained in:
parent
607c3934da
commit
ebd8a6f1c6
@ -105,7 +105,9 @@ function FileList({ value, removeFile }: FileListProps) {
|
|||||||
{value.length > 3 && full && (
|
{value.length > 3 && full && (
|
||||||
<div className={`file-item`}>
|
<div className={`file-item`}>
|
||||||
<Paperclip className={`h-4 w-4 ml-2 mr-1.5`} />
|
<Paperclip className={`h-4 w-4 ml-2 mr-1.5`} />
|
||||||
<div className={`file-name mr-1`}>{t('file.number', { number: value.length })}</div>
|
<div className={`file-name mr-1`}>
|
||||||
|
{t("file.number", { number: value.length })}
|
||||||
|
</div>
|
||||||
<div className={`grow`} />
|
<div className={`grow`} />
|
||||||
<Button
|
<Button
|
||||||
variant={`ghost`}
|
variant={`ghost`}
|
||||||
@ -140,7 +142,10 @@ function FileList({ value, removeFile }: FileListProps) {
|
|||||||
<div className={`file-item`}>
|
<div className={`file-item`}>
|
||||||
<Paperclip className={`h-4 w-4 ml-2 mr-1.5`} />
|
<Paperclip className={`h-4 w-4 ml-2 mr-1.5`} />
|
||||||
<div className={`file-name mr-1`}>
|
<div className={`file-name mr-1`}>
|
||||||
{t('file.zipper', { filename: file.name, number: value.length - 1 })}
|
{t("file.zipper", {
|
||||||
|
filename: file.name,
|
||||||
|
number: value.length - 1,
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div className={`grow`} />
|
<div className={`grow`} />
|
||||||
<div className={`file-size mr-2`}>{(size / 1024).toFixed(2)}KB</div>
|
<div className={`file-size mr-2`}>{(size / 1024).toFixed(2)}KB</div>
|
||||||
|
@ -7,10 +7,7 @@ import { selectAuthenticated } from "@/store/auth.ts";
|
|||||||
import { useToast } from "@/components/ui/use-toast.ts";
|
import { useToast } from "@/components/ui/use-toast.ts";
|
||||||
import { Model } from "@/conversation/types.ts";
|
import { Model } from "@/conversation/types.ts";
|
||||||
import { modelEvent } from "@/events/model.ts";
|
import { modelEvent } from "@/events/model.ts";
|
||||||
import {
|
import { isSubscribedSelector } from "@/store/subscription.ts";
|
||||||
enterpriseSelector,
|
|
||||||
isSubscribedSelector,
|
|
||||||
} from "@/store/subscription.ts";
|
|
||||||
import { teenagerSelector } from "@/store/package.ts";
|
import { teenagerSelector } from "@/store/package.ts";
|
||||||
import { ToastAction } from "@/components/ui/toast.tsx";
|
import { ToastAction } from "@/components/ui/toast.tsx";
|
||||||
|
|
||||||
|
@ -250,9 +250,7 @@ function Subscription() {
|
|||||||
<Compass className={`h-4 w-4 mr-1`} />
|
<Compass className={`h-4 w-4 mr-1`} />
|
||||||
{t("sub.pro-gpt4")}
|
{t("sub.pro-gpt4")}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>{t("sub.pro-gpt4-desc")}</div>
|
||||||
{t("sub.pro-gpt4-desc")}
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<BookText className={`h-4 w-4 mr-1`} />
|
<BookText className={`h-4 w-4 mr-1`} />
|
||||||
{t("sub.pro-claude")}
|
{t("sub.pro-claude")}
|
||||||
|
@ -168,10 +168,11 @@ const resources = {
|
|||||||
"large-file": "Large File Parsing",
|
"large-file": "Large File Parsing",
|
||||||
"large-file-prompt":
|
"large-file-prompt":
|
||||||
"Uploading and parsing large files, please wait patiently",
|
"Uploading and parsing large files, please wait patiently",
|
||||||
"number": "{{number}} files",
|
number: "{{number}} files",
|
||||||
"zipper": "{{filename}} and {{number}} more ...",
|
zipper: "{{filename}} and {{number}} more ...",
|
||||||
"empty-file": "Empty File",
|
"empty-file": "Empty File",
|
||||||
"empty-file-prompt": "File content is empty, has been automatically ignored",
|
"empty-file-prompt":
|
||||||
|
"File content is empty, has been automatically ignored",
|
||||||
},
|
},
|
||||||
generate: {
|
generate: {
|
||||||
title: "AI Project Generator",
|
title: "AI Project Generator",
|
||||||
@ -407,8 +408,8 @@ const resources = {
|
|||||||
"over-size-prompt": "单个附件大小不能超过 {{size}} MB",
|
"over-size-prompt": "单个附件大小不能超过 {{size}} MB",
|
||||||
"large-file": "大文件解析",
|
"large-file": "大文件解析",
|
||||||
"large-file-prompt": "正在上传并解析大文件中,请耐心等待",
|
"large-file-prompt": "正在上传并解析大文件中,请耐心等待",
|
||||||
"number": "{{number}} 个文件",
|
number: "{{number}} 个文件",
|
||||||
"zipper": "{{filename}} 和其他 {{number}} 个文件",
|
zipper: "{{filename}} 和其他 {{number}} 个文件",
|
||||||
"empty-file": "无内容文件",
|
"empty-file": "无内容文件",
|
||||||
"empty-file-prompt": "文件内容为空,已自动忽略",
|
"empty-file-prompt": "文件内容为空,已自动忽略",
|
||||||
},
|
},
|
||||||
@ -655,10 +656,11 @@ const resources = {
|
|||||||
"large-file": "Большой файл разбора",
|
"large-file": "Большой файл разбора",
|
||||||
"large-file-prompt":
|
"large-file-prompt":
|
||||||
"Загрузка и разбор большого файла, пожалуйста, подождите",
|
"Загрузка и разбор большого файла, пожалуйста, подождите",
|
||||||
"number": "{{number}} файлов",
|
number: "{{number}} файлов",
|
||||||
"zipper": "{{filename}} и другие {{number}} файлов",
|
zipper: "{{filename}} и другие {{number}} файлов",
|
||||||
"empty-file": "Пустой файл",
|
"empty-file": "Пустой файл",
|
||||||
"empty-file-prompt": "Содержимое файла пустое, автоматически проигнорировано",
|
"empty-file-prompt":
|
||||||
|
"Содержимое файла пустое, автоматически проигнорировано",
|
||||||
},
|
},
|
||||||
generate: {
|
generate: {
|
||||||
title: "Генератор AI проектов",
|
title: "Генератор AI проектов",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {FileArray, FileObject} from "@/conversation/file.ts";
|
import { FileArray, FileObject } from "@/conversation/file.ts";
|
||||||
|
|
||||||
export function getFile(file: FileObject): string {
|
export function getFile(file: FileObject): string {
|
||||||
return `\`\`\`file
|
return `\`\`\`file
|
||||||
|
Loading…
Reference in New Issue
Block a user