mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 17:31:55 +08:00
feat(ui): improve i18n
This commit is contained in:
parent
09919cb3cb
commit
d7e205aee7
@ -128,11 +128,11 @@
|
|||||||
"access.form.ssh_username.placeholder": "请输入用户名",
|
"access.form.ssh_username.placeholder": "请输入用户名",
|
||||||
"access.form.ssh_password.label": "密码",
|
"access.form.ssh_password.label": "密码",
|
||||||
"access.form.ssh_password.placeholder": "请输入密码",
|
"access.form.ssh_password.placeholder": "请输入密码",
|
||||||
"access.form.ssh_password.tooltip": "使用密码连接到 SSH 时必填。",
|
"access.form.ssh_password.tooltip": "使用密码连接到 SSH 时必填。<br>该字段与密钥文件字段二选一。",
|
||||||
"access.form.ssh_key.label": "SSH 密钥",
|
"access.form.ssh_key.label": "SSH 密钥",
|
||||||
"access.form.ssh_key.placeholder": "请输入 SSH 密钥文件",
|
"access.form.ssh_key.placeholder": "请输入 SSH 密钥文件",
|
||||||
"access.form.ssh_key.upload": "选择文件",
|
"access.form.ssh_key.upload": "选择文件",
|
||||||
"access.form.ssh_key.tooltip": "使用 SSH 密钥连接到 SSH 时必填。",
|
"access.form.ssh_key.tooltip": "使用 SSH 密钥连接到 SSH 时必填。<br>该字段与密码字段二选一。",
|
||||||
"access.form.ssh_key_passphrase.label": "SSH 密钥口令",
|
"access.form.ssh_key_passphrase.label": "SSH 密钥口令",
|
||||||
"access.form.ssh_key_passphrase.placeholder": "请输入 SSH 密钥口令",
|
"access.form.ssh_key_passphrase.placeholder": "请输入 SSH 密钥口令",
|
||||||
"access.form.ssh_key_passphrase.tooltip": "使用 SSH 密钥连接到 SSH 时选填。"
|
"access.form.ssh_key_passphrase.tooltip": "使用 SSH 密钥连接到 SSH 时选填。"
|
||||||
|
@ -17,7 +17,7 @@ export const list = async (request: ListWorkflowRequest) => {
|
|||||||
const page = request.page || 1;
|
const page = request.page || 1;
|
||||||
const perPage = request.perPage || 10;
|
const perPage = request.perPage || 10;
|
||||||
|
|
||||||
const options: RecordListOptions = { sort: "-created" };
|
const options: RecordListOptions = { requestKey: null, sort: "-created" };
|
||||||
if (request.enabled != null) {
|
if (request.enabled != null) {
|
||||||
options.filter = pb.filter("enabled={:enabled}", { enabled: request.enabled });
|
options.filter = pb.filter("enabled={:enabled}", { enabled: request.enabled });
|
||||||
}
|
}
|
||||||
@ -26,7 +26,9 @@ export const list = async (request: ListWorkflowRequest) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const get = async (id: string) => {
|
export const get = async (id: string) => {
|
||||||
return await getPocketBase().collection(COLLECTION_NAME).getOne<WorkflowModel>(id);
|
return await getPocketBase().collection(COLLECTION_NAME).getOne<WorkflowModel>(id, {
|
||||||
|
requestKey: null,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const save = async (record: Record<string, string | boolean | WorkflowNode>) => {
|
export const save = async (record: Record<string, string | boolean | WorkflowNode>) => {
|
||||||
|
@ -16,5 +16,6 @@ export const list = async (request: ListWorkflowLogsRequest) => {
|
|||||||
.getList<WorkflowRunLog>(page, perPage, {
|
.getList<WorkflowRunLog>(page, perPage, {
|
||||||
filter: getPocketBase().filter("workflow={:workflowId}", { workflowId: request.id }),
|
filter: getPocketBase().filter("workflow={:workflowId}", { workflowId: request.id }),
|
||||||
sort: "-created",
|
sort: "-created",
|
||||||
|
requestKey: null,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user