-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnbConfig.js
More file actions
167 lines (137 loc) · 3.78 KB
/
nbConfig.js
File metadata and controls
167 lines (137 loc) · 3.78 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
.................................................
About: App Config
.................................................
@ Version: 0.1
@ Date: 1st Jan, 2015
@ Owner By-Date: -
@ Last Modified By-Date: -
@ Online Url: -
*/
//-----------------------------------------------------------------------------------------
/**
NbApp - Application JS File
@class nbApp
@version 0.1
@date 1st Jan, 2015
@constructor
*/
var nbApp = nbApp || {};
//-----------------------------------------------------------------------------------------
/**
List of configurable parameters
@namespace nbApp
@module Configuration Set
@class Config
@constructor
*/
nbApp.config = {
/**
Config enable app logger variable
@property ENABLE_APP_LOG
@type { (Boolean) }
@default true
@static
**/
ENABLE_APP_LOG : true,
/**
Config Max characters for upload file module
@property MAX_CHARS_UPLOAD_FILE_MODULE
@type { (Number) }
@default (40) Characters
@final
**/
MAX_CHARS_UPLOAD_FILE_MODULE : 40,
/**
Config Max Upload Size for File Module
@property MAX_SIZE_UPLOAD_FILE_MODULE
@type { (Number) }
@default (1048576*5) 5Mb
@final
**/
MAX_SIZE_UPLOAD_FILE_MODULE: (1048576*5),
/**
Client Config ID
@property CLIENT_CONFIG_SETTINGS
@type { (String) }
@default nbClientConfig
@final
**/
CLIENT_CONFIG_SETTINGS : "nbClientConfig"
};
/**
Global Variables used in App
<p>
glbWinFocus: Indicates whether this Window is Focused (setOnFocus)- {Boolean} <br>
glbErrorMsg: Sets the Global Error Message for XHR (readOnly) - {String} Failure Message for AJAX<br>
</p>
@attribute globalVars
@writeOnce
@type { (Object) }
@static
**/
nbApp.config.globalVars = {
glbWinFocus : false,
glbErrorMsg : "Ooops!! your request could not be processed now, please try later.",
glbProcessMsg : "Please wait while your request is being processed...."
};
/**
App General Settings used in App
<p>
appProtocol: Sets the Application Protocol (readOnly) - {String} standard `http://` <br>
appDomainName: Sets the Domain Name (Domain should not have front slash in the end) (readOnly) - {String} `localhost`<br>
appBaseUrl: Sets the Application app base url (Domain should not have front slash in the end) (readOnly) - {String} app base url `"/"`<br>
appViewsBasePath: Sets the Application Views Base Path (readOnly) - {String}
</p>
@attribute appSettings
@writeOnce
@type { (Object) }
@final
@static
**/
nbApp.config.appSettings = {
appProtocol : window.location.protocol + "//",
appDomainName : location.hostname,
appBaseUrl : location.hostname + location.pathname,
appViewsBasePath : ""
};
/**
App Ajax URLs used in App
<p>Its an `object` that has the list of the app ajax url used in XHR</p>
<p>
appHome : home path of the app (readOnly) - {String}
</p>
@attribute appUrls
@type { (Object) } relative urls list
@readOnly
@final
**/
nbApp.config.appUrls = {
appHome : "/?mod=home",
appShowHome : "/?mod=showhome",
appDashboard : "/?mod=dashboard",
appUsers : "/?mod=users",
appArticles : "/?mod=articles",
appSignIn : "/?mod=signin",
appSignInCheck : "/?mod=signincheck",
appUploadMedia : "/?mod=uploadmedia",
appSessionFailure : "/?mod=sessionerror",
appDwlMedia : "/?mod=downloadmedia"
};
/**
App container/link ids for App views
<p>Its an `object` that has the list of the app ajax container ids</p>
@attribute appViewIds
@type { (Object) } relative urls list
@readOnly
@final
**/
nbApp.config.appViewIds = {
mainId : "#nb-dash-container",
loaderMsgContainer : "#nb-loader-msg",
signInForm : "#frmSignIn",
alertMsgBox : ".nb-alert-msg",
appModalBox : "#appModalBox",
appModal : "#appModal"
};
//EOF