Skip to content

Commit

Permalink
add maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Dec 29, 2024
1 parent d9578eb commit d9e41fd
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 1 deletion.
55 changes: 55 additions & 0 deletions libs/adminpanel/models/bind.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,59 @@ export declare const models: {
title: string;
icon: string;
};
maintenance: {
model: string;
title: string;
icon: string;
fields: {
id: boolean;
createdAt: boolean;
updatedAt: boolean;
title: string;
description: string;
enable: string;
startDate: string;
stopDate: string;
};
edit: {
fields: {
id: boolean;
createdAt: boolean;
updatedAt: boolean;
title: string;
description: {
title: string;
type: string;
widget: string;
Ace: {
height: number;
fontSize: number;
};
};
enable: string;
startDate: string;
stopDate: string;
};
};
add: {
fields: {
id: boolean;
createdAt: boolean;
updatedAt: boolean;
title: string;
description: {
title: string;
type: string;
widget: string;
Ace: {
height: number;
fontSize: number;
};
};
enable: string;
startDate: string;
stopDate: string;
};
};
};
};
55 changes: 55 additions & 0 deletions libs/adminpanel/models/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,60 @@ exports.models = {
model: 'paymentmethod',
title: 'Payment method',
icon: 'credit-card'
},
maintenance: {
model: "maintenance",
title: "Scheduled Maintenance on the Website",
icon: "pause",
fields: {
id: false,
createdAt: false,
updatedAt: false,
title: "Title",
description: "Description",
enable: "Active",
startDate: "Start Time",
stopDate: "End Time"
},
edit: {
fields: {
id: false,
createdAt: false,
updatedAt: false,
title: "Title",
description: {
title: "Description",
type: "json",
widget: "Ace",
Ace: {
height: 500,
fontSize: 15
}
},
enable: "Active",
startDate: "Start Time",
stopDate: "End Time"
}
},
add: {
fields: {
id: false,
createdAt: false,
updatedAt: false,
title: "Title",
description: {
title: "Description",
type: "json",
widget: "Ace",
Ace: {
height: 500,
fontSize: 15
}
},
enable: "Active",
startDate: "Start Time",
stopDate: "End Time"
}
}
}
};
57 changes: 56 additions & 1 deletion libs/adminpanel/models/bind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const models = {
products: {
model: 'dish',
title: 'Products',
icon: 'hamburger',
icon: 'hamburger',
list: ProductConfig.list(),
edit: ProductConfig.edit(),
add: ProductConfig.add(),
Expand Down Expand Up @@ -67,5 +67,60 @@ export const models = {
model: 'paymentmethod',
title: 'Payment method',
icon: 'credit-card'
},
maintenance: {
model: "maintenance",
title: "Scheduled Maintenance on the Website",
icon: "pause",
fields: {
id: false,
createdAt: false,
updatedAt: false,
title: "Title",
description: "Description",
enable: "Active",
startDate: "Start Time",
stopDate: "End Time"
},
edit: {
fields: {
id: false,
createdAt: false,
updatedAt: false,
title: "Title",
description: {
title: "Description",
type: "json",
widget: "Ace",
Ace: {
height: 500,
fontSize: 15
}
},
enable: "Active",
startDate: "Start Time",
stopDate: "End Time"
}
},
add: {
fields: {
id: false,
createdAt: false,
updatedAt: false,
title: "Title",
description: {
title: "Description",
type: "json",
widget: "Ace",
Ace: {
height: 500,
fontSize: 15
}
},
enable: "Active",
startDate: "Start Time",
stopDate: "End Time"
}
}
}
};

0 comments on commit d9e41fd

Please sign in to comment.