|
@ -30,11 +30,13 @@ module.exports= |
|
|
{ |
|
|
{ |
|
|
main: function(result, request) |
|
|
main: function(result, request) |
|
|
{ |
|
|
{ |
|
|
|
|
|
console.log("main of login.js"); |
|
|
result.write("<div class=\"w3-col l8 s12\">"); |
|
|
result.write("<div class=\"w3-col l8 s12\">"); |
|
|
return new Promise(function(resolve, reject) |
|
|
return new Promise(function(resolve, reject) |
|
|
{ |
|
|
{ |
|
|
utils.include(result, './admin/login.html').then(function() |
|
|
utils.include(result, './admin/login.html').then(function() |
|
|
{ |
|
|
{ |
|
|
|
|
|
console.log("got login html"); |
|
|
return require("../sidebar/sidebar.js").main(result); |
|
|
return require("../sidebar/sidebar.js").main(result); |
|
|
}).then(function() |
|
|
}).then(function() |
|
|
{ |
|
|
{ |
|
|