mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:58:25 +01:00
Superinit!!!
This commit is contained in:
parent
916372e5b4
commit
b9d27ce53c
1 changed files with 43 additions and 0 deletions
43
src/libpoketube/init/superinit.js
Normal file
43
src/libpoketube/init/superinit.js
Normal file
|
@ -0,0 +1,43 @@
|
|||
function initlog(args) {
|
||||
console.log("[LIBPT INTSYS] " + args);
|
||||
}
|
||||
|
||||
function init(app, config, rendertemplate) {
|
||||
initlog("Starting superinit");
|
||||
initlog("[START] Load pages");
|
||||
|
||||
try {
|
||||
initlog("Loading video pages ");
|
||||
require("../init/pages-video.js")(app, config, rendertemplate);
|
||||
|
||||
initlog("Loaded video pages ");
|
||||
initlog("Loading redirects/old pages ");
|
||||
require("../init/pages-redir.js")(app, config, rendertemplate);
|
||||
initlog("loaded redirects/old pages ");
|
||||
|
||||
initlog("Loading Download and channel pages");
|
||||
require("../init/pages-channel-and-download.js")(
|
||||
app,
|
||||
config,
|
||||
rendertemplate
|
||||
);
|
||||
|
||||
initlog("Loaded Download and channel pages");
|
||||
initlog("Loading static pages");
|
||||
require("../init/pages-static.js")(app, config, rendertemplate);
|
||||
initlog("loaded static pages");
|
||||
initlog("Loading main pages");
|
||||
require("../init/pages-404-and-main.js")(app, config, rendertemplate);
|
||||
initlog("loaded main pages");
|
||||
|
||||
initlog("[OK] Load pages");
|
||||
|
||||
initlog("Loaded pages - initing poketube finnished :3");
|
||||
} catch {
|
||||
initlog("[FAILED] Load pages");
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sinit: init,
|
||||
};
|
Loading…
Reference in a new issue