Code Review
/
src
/
app-framework-demo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
98522d2
)
Cleanup
author
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 16 Dec 2015 23:47:38 +0000
(
00:47
+0100)
committer
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 16 Dec 2015 23:47:38 +0000
(
00:47
+0100)
afb-client/app/Frontend/pages/Home/Home.html
patch
|
blob
|
history
afb-client/app/Frontend/pages/Home/HomeModule.js
patch
|
blob
|
history
afb-client/app/Frontend/services/ConfigApp.js
patch
|
blob
|
history
diff --git
a/afb-client/app/Frontend/pages/Home/Home.html
b/afb-client/app/Frontend/pages/Home/Home.html
index
6eda66d
..
69c4dbe
100644
(file)
--- a/
afb-client/app/Frontend/pages/Home/Home.html
+++ b/
afb-client/app/Frontend/pages/Home/Home.html
@@
-11,8
+11,8
@@
animationIn: slideInRight
<img class="logo" src="images/logo/triskel_iot_bzhx250.png" alt="IoT.bzh Logo" style="height:150px;">
App Framework Binder Simple Client
</h3>
<img class="logo" src="images/logo/triskel_iot_bzhx250.png" alt="IoT.bzh Logo" style="height:150px;">
App Framework Binder Simple Client
</h3>
-
-<token-refresh></token-refresh>
+<!--
+<token-refresh></token-refresh>
-->
<div class="button-box box-content ">
<div class="button-box box-content ">
diff --git
a/afb-client/app/Frontend/pages/Home/HomeModule.js
b/afb-client/app/Frontend/pages/Home/HomeModule.js
index
ba6c5ea
..
30e796e
100644
(file)
--- a/
afb-client/app/Frontend/pages/Home/HomeModule.js
+++ b/
afb-client/app/Frontend/pages/Home/HomeModule.js
@@
-56,7
+56,7
@@
angular.module('HomeModule', ['SubmitButton', 'TokenRefresh'])
scope.OpenSession = function() {
console.log ("OpenSession");
var postdata= {/* any json your application may need */};
scope.OpenSession = function() {
console.log ("OpenSession");
var postdata= {/* any json your application may need */};
- var handler = $http.post(ConfigApp.api.token + 'create?token='+ConfigApp.session.
token
, postdata);
+ var handler = $http.post(ConfigApp.api.token + 'create?token='+ConfigApp.session.
initial
, postdata);
handler.success(scope.ProcessResponse);
handler.error(scope.ProcessError);
handler.success(scope.ProcessResponse);
handler.error(scope.ProcessError);
diff --git
a/afb-client/app/Frontend/services/ConfigApp.js
b/afb-client/app/Frontend/services/ConfigApp.js
index
adec5ac
..
310ef88
100644
(file)
--- a/
afb-client/app/Frontend/services/ConfigApp.js
+++ b/
afb-client/app/Frontend/services/ConfigApp.js
@@
-21,10
+21,11
@@
session: { // Those data are updated by session service
refresh : '/api/token/refresh',
ping : '/api/token/check',
session: { // Those data are updated by session service
refresh : '/api/token/refresh',
ping : '/api/token/check',
-
token
: '123456789', // typical dev initial token
+
initial
: '123456789', // typical dev initial token
timeout : 3600, // timeout is updated client sessin context creation
timeout : 3600, // timeout is updated client sessin context creation
+ pingrate: 60, // Ping rate to check if server is still alive
uuid : '', // uuid map with cookie or long term session access key
uuid : '', // uuid map with cookie or long term session access key
- pingrate: 60 // Ping rate to check if server is still alive
+ token : '' // will be returned from authentication
}
};
}
};