mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-22 12:20:04 +00:00
fix build error
This commit is contained in:
parent
fba647313d
commit
ba01edc691
4
ui/src/declarations.d.ts
vendored
Normal file
4
ui/src/declarations.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
declare module "antd/locale/zh_CN" {
|
||||
import zhCN from "antd/locale/zh_CN";
|
||||
export default zhCN;
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
import useTheme from "./useTheme";
|
||||
|
||||
export { useResponsive, useTheme };
|
||||
export { useTheme };
|
||||
|
@ -190,16 +190,16 @@ const AccessList = () => {
|
||||
current: page,
|
||||
pageSize: pageSize,
|
||||
total: tableTotal,
|
||||
onChange: (page, pageSize) => {
|
||||
onChange: (page: number, pageSize: number) => {
|
||||
setPage(page);
|
||||
setPageSize(pageSize);
|
||||
},
|
||||
onShowSizeChange: (page, pageSize) => {
|
||||
onShowSizeChange: (page: number, pageSize: number) => {
|
||||
setPage(page);
|
||||
setPageSize(pageSize);
|
||||
},
|
||||
}}
|
||||
rowKey={(record) => record.id}
|
||||
rowKey={(record: AccessModel) => record.id}
|
||||
scroll={{ x: "max(100%, 960px)" }}
|
||||
/>
|
||||
</>
|
||||
|
@ -232,16 +232,16 @@ const CertificateList = () => {
|
||||
current: page,
|
||||
pageSize: pageSize,
|
||||
total: tableTotal,
|
||||
onChange: (page, pageSize) => {
|
||||
onChange: (page: number, pageSize: number) => {
|
||||
setPage(page);
|
||||
setPageSize(pageSize);
|
||||
},
|
||||
onShowSizeChange: (page, pageSize) => {
|
||||
onShowSizeChange: (page: number, pageSize: number) => {
|
||||
setPage(page);
|
||||
setPageSize(pageSize);
|
||||
},
|
||||
}}
|
||||
rowKey={(record) => record.id}
|
||||
rowKey={(record: CertificateModel) => record.id}
|
||||
scroll={{ x: "max(100%, 960px)" }}
|
||||
/>
|
||||
|
||||
|
@ -265,7 +265,7 @@ const WorkflowList = () => {
|
||||
content: t("workflow.action.delete.confirm"),
|
||||
onOk: async () => {
|
||||
try {
|
||||
const resp = await removeWorkflow(workflow);
|
||||
const resp: boolean = await removeWorkflow(workflow);
|
||||
if (resp) {
|
||||
setTableData((prev) => prev.filter((item) => item.id !== workflow.id));
|
||||
}
|
||||
@ -313,16 +313,16 @@ const WorkflowList = () => {
|
||||
current: page,
|
||||
pageSize: pageSize,
|
||||
total: tableTotal,
|
||||
onChange: (page, pageSize) => {
|
||||
onChange: (page: number, pageSize: number) => {
|
||||
setPage(page);
|
||||
setPageSize(pageSize);
|
||||
},
|
||||
onShowSizeChange: (page, pageSize) => {
|
||||
onShowSizeChange: (page: number, pageSize: number) => {
|
||||
setPage(page);
|
||||
setPageSize(pageSize);
|
||||
},
|
||||
}}
|
||||
rowKey={(record) => record.id}
|
||||
rowKey={(record: WorkflowModel) => record.id}
|
||||
scroll={{ x: "max(100%, 960px)" }}
|
||||
/>
|
||||
</>
|
||||
|
@ -20,7 +20,7 @@ interface NotifyProviderProps {
|
||||
}
|
||||
|
||||
export const NotifyProvider = ({ children }: NotifyProviderProps) => {
|
||||
const [notify, dispatchNotify] = useReducer(notifyReducer, {});
|
||||
const [notify, dispatchNotify] = useReducer(notifyReducer, {} as SettingsModel<NotifyChannels>);
|
||||
|
||||
useEffect(() => {
|
||||
featchData();
|
||||
|
@ -40,7 +40,7 @@ export const save = async (record: Record<string, string | boolean | WorkflowNod
|
||||
};
|
||||
|
||||
export const remove = async (record: WorkflowModel) => {
|
||||
await getPocketBase().collection(COLLECTION_NAME).delete(record.id);
|
||||
return await getPocketBase().collection(COLLECTION_NAME).delete(record.id);
|
||||
};
|
||||
|
||||
type WorkflowLogsReq = {
|
||||
|
@ -4,18 +4,12 @@
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": [
|
||||
"ES2020",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
@ -31,7 +25,5 @@
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
"include": ["src", "src/declarations.d.ts"]
|
||||
}
|
||||
|
@ -11,9 +11,8 @@
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,5 @@
|
||||
"strict": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"vite.config.ts"
|
||||
]
|
||||
}
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user