Add the profile app in template.js

pull/1/head
yflory 8 years ago
parent 8f2db44793
commit 40f4fc2682

@ -284,6 +284,10 @@ define([
return h('div#container'); return h('div#container');
}; };
Pages['/profile/'] = Pages['/profile/index.html'] = function () {
return h('div#container');
};
Pages['/register/'] = Pages['/register/index.html'] = function () { Pages['/register/'] = Pages['/register/index.html'] = function () {
return [h('div#main', [ return [h('div#main', [
h('div.mainOverlay'), h('div.mainOverlay'),

@ -139,6 +139,8 @@ $(function () {
require([ '/settings/main.js', ], function () {}); require([ '/settings/main.js', ], function () {});
} else if (/^\/user\//.test(pathname)) { } else if (/^\/user\//.test(pathname)) {
require([ '/user/main.js'], function () {}); require([ '/user/main.js'], function () {});
} else if (/^\/profile\//.test(pathname)) {
require([ '/profile/main.js'], function () {});
} else if (/^\/register\//.test(pathname)) { } else if (/^\/register\//.test(pathname)) {
require([ '/register/main.js' ], function () {}); require([ '/register/main.js' ], function () {});
} else if (/^\/login\//.test(pathname)) { } else if (/^\/login\//.test(pathname)) {

Loading…
Cancel
Save