Last change
on this file since 443 was
443,
checked in by hendrikvanantwerpen, 12 years ago
|
Reorganized for Node --- the SVN gods hate us all!
Lost all historical info on moved files, because SVN is a f *.
Also we have Node now, serving both the static content and forwarding
database requests.
|
File size:
719 bytes
|
Line | |
---|
1 | define([ |
---|
2 | 'dojo/_base/array', |
---|
3 | 'dojo/parser', |
---|
4 | './app/Content', |
---|
5 | './app/Page', |
---|
6 | './app/Router', |
---|
7 | './ui/MainMenu', |
---|
8 | './routes', |
---|
9 | './store', |
---|
10 | 'dojo/domReady!', |
---|
11 | './stddeps' |
---|
12 | ],function(array,parser,Content,Page,Router,MainMenu,routes,store) { |
---|
13 | parser.parse(); |
---|
14 | |
---|
15 | store.info() |
---|
16 | .then(function(){ |
---|
17 | new MainMenu({},"menu").startup(); |
---|
18 | array.forEach(routes,function(route){ |
---|
19 | Router.register(route); |
---|
20 | }); |
---|
21 | Router.startup(); |
---|
22 | },function(){ |
---|
23 | Content.startup(); |
---|
24 | Content.set(new Page({ |
---|
25 | templateString: "<div>Application database is not properly configured. Contact your system administrator.</div>" |
---|
26 | })); |
---|
27 | }); |
---|
28 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.