-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
86 lines (65 loc) · 1.95 KB
/
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//AppName_<Major>.<Minor>.<Patch/Upgrade>.<BuildNo>
//firebase_crud 1.0.0.10
var App = function(){
if (!(this instanceof App) ){
return new App();
}
};
var app = new App();
requirejs.config({
text: {
useXhr: function (url, protocol, hostname, port) {
// allow cross-domain requests
// remote server allows CORS
return true;
}
},
baseUrl: 'lib',
// urlArgs: "v=" + (new Date()).getTime(),
paths : {
framework : '../framework',
template : '..',
}
});
require([
'https://www.gstatic.com/firebasejs/3.3.0/firebase.js',
// 'framework/app',
'framework/app.util',
'framework/app.util.timestamp',
// 'framework/app.util.clear_timestamp',
'framework/app.util.online',
'framework/app.util.debug',
'framework/app.util.status',
'framework/app.util.status.firebase',
'framework/app.util.status.online',
'framework/app.util.template',
'framework/app.util.request',
'framework/app.util.element',
'framework/app.util.mutation',
'framework/app.config',
'framework/app.controller',
'framework/app.controller.signin',
'framework/app.controller.signup',
'framework/app.controller.signout',
'framework/app.controller.user',
'framework/app.controller.user.signin',
'framework/app.controller.user.input',
'framework/app.user',
'framework/app.user.view',
'framework/app.user.email',
'framework/app.user.data',
'framework/app.user.uid',
'framework/app.user.status',
// 'framework/app.user.signin',
// 'framework/app.user.signout',
],function(){
app.config();
require([
'framework/app.view.signin',
],function(html_data){
App.prototype.user.view = html_data;
App.prototype.util.element.get('body').innerHTML = html_data;
App.prototype.controller.signin();
});
// app.user.signout();
});