summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2016-10-09 21:34:40 +0800
committerYukai Huang2016-10-09 21:34:40 +0800
commit2ccaf7119162f596fbc6ceb011cbf841575e21d5 (patch)
treeac2c71790473c6d6e95291c3e0482ab651c7cebb /public
parent8a254ea4f109db99bdc172ba2717997c4d5dd490 (diff)
Update common.js.example
Diffstat (limited to 'public')
-rw-r--r--public/js/common.js.example31
1 files changed, 30 insertions, 1 deletions
diff --git a/public/js/common.js.example b/public/js/common.js.example
index 11c32acc..c6325721 100644
--- a/public/js/common.js.example
+++ b/public/js/common.js.example
@@ -92,4 +92,33 @@ function checkIfAuth(yesCallback, noCallback) {
} else {
noCallback();
}
-} \ No newline at end of file
+}
+
+module.exports = {
+ domain: domain,
+ urlpath: urlpath,
+ debug: debug,
+ GOOGLE_API_KEY: GOOGLE_API_KEY,
+ GOOGLE_CLIENT_ID: GOOGLE_CLIENT_ID,
+ DROPBOX_APP_KEY: DROPBOX_APP_KEY,
+ port: port,
+ serverurl: serverurl,
+ noteid: noteid,
+ noteurl: noteurl,
+ version: version,
+ checkAuth: checkAuth,
+ profile: profile,
+ lastLoginState: lastLoginState,
+ lastUserId: lastUserId,
+ loginStateChangeEvent: loginStateChangeEvent,
+
+ /* export functions */
+ resetCheckAuth: resetCheckAuth,
+ setLoginState: setLoginState,
+ checkLoginStateChanged: checkLoginStateChanged,
+ getLoginState: getLoginState,
+ getUserId: getUserId,
+ clearLoginState: clearLoginState,
+ checkIfAuth: checkIfAuth
+};
+}