Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/api/interface/cronjob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export namespace Cronjob {
alertMethod: string;
alertMethodItems: Array<string>;

scopes?: string[];
scopes: string[];
}
export interface Item {
val: string;
Expand Down Expand Up @@ -110,6 +110,8 @@ export namespace Cronjob {
alertCount: number;
alertTitle: string;
alertMethod: string;

scopes: string[];
}
export interface CronjobTrans {
name: string;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/global/form-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ const checkVolumeName = (rule: any, value: any, callback: any) => {

const checkLinuxName = (rule: any, value: any, callback: any) => {
if (value === '' || typeof value === 'undefined' || value == null) {
callback(new Error(i18n.global.t('commons.rule.linuxName', ['/\\:*?\'"<>|'])));
callback(new Error(i18n.global.t('commons.rule.linuxName', ['/\\:*?\'"()<>|'])));
} else {
const reg = /^[^/\\\"'|<>?*]{1,128}$/;
const reg = /^[^/\\\"'|<>()?*]{1,128}$/;
if (!reg.test(value) && value !== '') {
callback(new Error(i18n.global.t('commons.rule.linuxName', ['/\\:*?\'"<>|'])));
callback(new Error(i18n.global.t('commons.rule.linuxName', ['/\\:*?\'"()<>|'])));
} else {
callback();
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/container/template/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const onExport = () => {
cancelButtonText: i18n.global.t('commons.button.cancel'),
},
).then(async () => {
const exportData = data.value.map((item: Container.TemplateInfo) => ({
const exportData = selects.value.map((item: Container.TemplateInfo) => ({
name: item.name,
description: item.description,
content: item.content,
Expand Down
Loading