-
Notifications
You must be signed in to change notification settings - Fork 5
/
uki_mail_app.js
64 lines (53 loc) · 2.14 KB
/
uki_mail_app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(function() {
// define namespace
uki_mail_app = {};
// all core modules
include('frameworks/uki/uki-core.js');
// used views, comment out unused ones
include('frameworks/uki/uki-view/view/box.js');
include('frameworks/uki/uki-view/view/image.js');
include('frameworks/uki/uki-view/view/button.js');
// include('frameworks/uki/uki-view/view/checkbox.js');
// include('frameworks/uki/uki-view/view/radio.js');
include('frameworks/uki/uki-view/view/textField.js');
include('frameworks/uki/uki-view/view/label.js');
include('frameworks/uki/uki-view/view/list.js');
include('frameworks/uki/uki-view/view/table.js');
// include('frameworks/uki/uki-view/view/slider.js');
include('frameworks/uki/uki-view/view/splitPane.js');
include('frameworks/uki/uki-view/view/scrollPane.js');
// include('frameworks/uki/uki-view/view/popup.js');
include('frameworks/uki/uki-view/view/flow.js');
// include('frameworks/uki/uki-view/view/toolbar.js');
// theme
include('uki_mail_app/theme.js');
// data
include('frameworks/uki/uki-data/ajax.js');
include('frameworks/uki/uki-data/model.js');
include('uki_mail_app/const.js');
include('uki_mail_app/view/toolbarButton.js');
include('uki_mail_app/view/messageTable.js');
include('uki_mail_app/view/searchField.js');
include('uki_mail_app/view/messageTable/column.js');
include('uki_mail_app/layout/main.js');
include('uki_mail_app/view/messageTable/dateColumn.js');
include('uki_mail_app/view/toolbar.js');
include('uki_mail_app/model/message.js');
include('uki_mail_app/view/folders.js');
include('uki_mail_app/view/folders/render.js');
include('uki_mail_app/view/messageTable/drag.js');
include('uki_mail_app/model/mailbox.js');
include('uki_mail_app/controller/main.js');
include('uki_mail_app/controller/editor.js');
include('uki_mail_app/layout/editor.js');
uki_mail_app.theme.imagePath = 'i/theme/';
// skip interface creation if we're testing
if (window.TESTING) return;
var action;
if (action = location.href.match(/[?&]action=([^&]+)/)) {
var messages = location.href.match(/[?&]messages=([^&]+)/);
uki_mail_app.controller.editor(action[1], messages && messages[1].split('-') || []);
} else {
uki_mail_app.controller.main();
}
})();