fix(ui): tsc-check error

This commit is contained in:
Fu Diwei 2024-12-20 21:01:24 +08:00
parent a917d6c2c5
commit 63ffb9df14
4 changed files with 18 additions and 18 deletions

View File

@ -324,7 +324,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel></FormLabel>
<FormControl>
<Input placeholder="输入密钥路径" {...field} />
<Input placeholder="输入密钥路径" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -339,7 +339,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>PFX </FormLabel>
<FormControl>
<Input type="password" placeholder="输入 PFX 密码" {...field} />
<Input type="password" placeholder="输入 PFX 密码" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -356,7 +356,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>JKS </FormLabel>
<FormControl>
<Input placeholder="输入 JKS 别名" {...field} />
<Input placeholder="输入 JKS 别名" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -370,7 +370,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>JKS Keypass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Keypass" {...field} />
<Input type="password" placeholder="输入 JKS Keypass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -384,7 +384,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>JKS Storepass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Storepass" {...field} />
<Input type="password" placeholder="输入 JKS Storepass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -423,7 +423,7 @@ Remove-Item -Path "$pfxPath" -Force
<FormItem>
<FormLabel>{t("domain.deployment.form.shell_pre_command.label")}</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -455,7 +455,7 @@ Remove-Item -Path "$pfxPath" -Force
</DropdownMenu>
</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>

View File

@ -242,7 +242,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel></FormLabel>
<FormControl>
<Input placeholder="输入密钥路径" {...field} />
<Input placeholder="输入密钥路径" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -257,7 +257,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>PFX </FormLabel>
<FormControl>
<Input type="password" placeholder="输入 PFX 密码" {...field} />
<Input type="password" placeholder="输入 PFX 密码" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -274,7 +274,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>JKS </FormLabel>
<FormControl>
<Input placeholder="输入 JKS 别名" {...field} />
<Input placeholder="输入 JKS 别名" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -288,7 +288,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>JKS Keypass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Keypass" {...field} />
<Input type="password" placeholder="输入 JKS Keypass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -302,7 +302,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>JKS Storepass</FormLabel>
<FormControl>
<Input type="password" placeholder="输入 JKS Storepass" {...field} />
<Input type="password" placeholder="输入 JKS Storepass" {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -318,7 +318,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>{t("domain.deployment.form.shell_pre_command.label")}</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_pre_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>
@ -332,7 +332,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
<FormItem>
<FormLabel>{t("domain.deployment.form.shell_command.label")}</FormLabel>
<FormControl>
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...field} />
<Textarea placeholder={t("domain.deployment.form.shell_command.placeholder")} {...(field as any)} />
</FormControl>
<FormMessage />
</FormItem>

View File

@ -2,7 +2,7 @@ import { produce } from "immer";
import { nanoid } from "nanoid";
import i18n from "@/i18n";
import { deployTargets, KVType } from "./domain";
import { deployTargets } from "./domain";
export type WorkflowRunLog = {
id: string;
@ -108,7 +108,7 @@ export const workflowNodeTypeDefaultOutput: Map<WorkflowNodeType, WorkflowNodeIo
[WorkflowNodeType.Notify, []],
]);
export type WorkflowNodeConfig = Record<string, string | boolean | number | KVType[] | string[] | undefined>;
export type WorkflowNodeConfig = Record<string, unknown>;
export type WorkflowNode = {
id: string;

View File

@ -18,7 +18,7 @@ const AccessList = () => {
const [modalApi, ModelContextHolder] = Modal.useModal();
const [notificationApi, NotificationContextHolder] = notification.useNotification();
const { accesses, fetchAccesses, deleteAccess } = useAccessStore();
const { initialized, accesses, fetchAccesses, deleteAccess } = useAccessStore();
const tableColumns: TableProps<AccessModel>["columns"] = [
{
@ -181,7 +181,7 @@ const AccessList = () => {
<Table<AccessModel>
columns={tableColumns}
dataSource={tableData}
loading={loading}
loading={!initialized || loading}
locale={{
emptyText: <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} description={t("access.nodata")} />,
}}