forked from khoanguyen123/aurelia-ui-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
44 lines (41 loc) · 1.36 KB
/
main.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
define(["require", "exports", "./framework/utils/ui-validation"], function (require,
exports,
ui_validations_1) {
function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
//.plugin('aurelia-ui-framework', function (config) {
.feature('framework', function (config) {
// AppKey for local/session storage key prefix
config.App.Key = 'App';
// Application Title
config.App.Title = 'Aurelia UI Framework';
// Application Version
config.App.Version = '2.00';
// HTTPClient Base API URL
config.Http.BaseUrl = './';
// HTTPClient Extra Headers
config.Http.Headers = {
'X-API-VERSION': '1'
};
// HTTPClient Send Basic Authorization Header
config.Http.AuthorizationHeader = false;
})
.plugin('aurelia-validation', function (config) {
config.useViewStrategy(new ui_validations_1.UIValidationStrategy());
});
aurelia.start()
.then(function (a) {
return a.setRoot('./src/app.js');
})
.then(function () {
var splash = window.document.querySelector('.ui-splash');
splash.classList.add('animate');
setTimeout(function () {
splash.parentElement.removeChild(splash);
}, 1000);
});
}
exports.configure = configure;
});