ckn.systems.backend
Version:
CKN Systems Package for Backend
41 lines (33 loc) • 1.51 kB
JavaScript
exports.name = "ckn.default";
exports.template = "ckn.default.ejs";
exports.title = "CKN Platform";
exports.contents = [];
exports.scripts = [];
exports.styles = [];
exports.initial = () => {
// JQuery
exports.scripts.push("node_modules/jquery/dist/jquery.js");
// Bootstrap
exports.styles.push("node_modules/bootstrap/dist/css/bootstrap.min.css");
exports.scripts.push("node_modules/bootstrap/dist/js/bootstrap.bundle.js");
// Font
exports.styles.push("node_modules/@fortawesome/fontawesome-free/css/all.css");
// SweetAlert2
exports.scripts.push("node_modules/sweetalert2/dist/sweetalert2.js");
exports.styles.push("node_modules/sweetalert2/dist/sweetalert2.css");
// AdminLTE
exports.styles.push("node_modules/admin-lte/dist/css/adminlte.min.css");
exports.scripts.push("node_modules/admin-lte/dist/js/adminlte.min.js");
// Chart.JS
exports.scripts.push("node_modules/chart.js/dist/chart.min.js");
// CKN
exports.scripts.push("node_modules/ckn.systems/ckn.systems.js");
exports.scripts.push("node_modules/ckn.systems.frontend/ckn.systems.frontend.js");
};
exports.prepare = session => {
if (session.title == null) session.title = exports.title;
if (session.contents == null) session.contents = exports.contents;
if (session.scripts == null) session.scripts = exports.scripts;
if (session.styles == null) session.styles = exports.styles;
session.theme = exports;
}