mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add progress bar
This commit is contained in:
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
#Wed Jan 27 14:08:17 WAT 2021
|
||||
#Wed Jan 27 15:04:01 WAT 2021
|
||||
path.3=classes_1.dex
|
||||
path.2=classes_0.dex
|
||||
path.1=classes.dex
|
||||
|
||||
+19
-79
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+190
-263
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
@@ -165,14 +165,14 @@ let LoginPage = class LoginPage {
|
||||
yield alert.present();
|
||||
});
|
||||
}
|
||||
loginRocketChat() {
|
||||
loginRocketChat(user) {
|
||||
let postData = {
|
||||
"user": this.username,
|
||||
"password": this.password
|
||||
"user": user.username,
|
||||
"password": user.password,
|
||||
};
|
||||
this.authService.loginChat(postData).subscribe((res) => {
|
||||
console.log(res.data);
|
||||
this.storageService.store(src_app_config_auth_constants__WEBPACK_IMPORTED_MODULE_8__["AuthConnstants"].AUTH, res.data);
|
||||
console.log('Logged user \n' + res.data);
|
||||
console.log('Login to Rocket chat OK');
|
||||
}, (error) => {
|
||||
console.log('Network error');
|
||||
@@ -193,7 +193,7 @@ let LoginPage = class LoginPage {
|
||||
};
|
||||
if (yield this.authService.login(this.userattempt)) {
|
||||
console.log(this.userattempt);
|
||||
this.loginRocketChat();
|
||||
this.loginRocketChat(this.userattempt);
|
||||
this.router.navigate(['/home/events']);
|
||||
}
|
||||
else {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+6
-5
@@ -314,17 +314,18 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
||||
}
|
||||
}, {
|
||||
key: "loginRocketChat",
|
||||
value: function loginRocketChat() {
|
||||
value: function loginRocketChat(user) {
|
||||
var _this = this;
|
||||
|
||||
var postData = {
|
||||
"user": this.username,
|
||||
"password": this.password
|
||||
"user": user.username,
|
||||
"password": user.password
|
||||
};
|
||||
this.authService.loginChat(postData).subscribe(function (res) {
|
||||
console.log(res.data);
|
||||
|
||||
_this.storageService.store(src_app_config_auth_constants__WEBPACK_IMPORTED_MODULE_8__["AuthConnstants"].AUTH, res.data);
|
||||
|
||||
console.log('Logged user \n' + res.data);
|
||||
console.log('Login to Rocket chat OK');
|
||||
}, function (error) {
|
||||
console.log('Network error');
|
||||
@@ -363,7 +364,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
||||
}
|
||||
|
||||
console.log(this.userattempt);
|
||||
this.loginRocketChat();
|
||||
this.loginRocketChat(this.userattempt);
|
||||
this.router.navigate(['/home/events']);
|
||||
_context2.next = 12;
|
||||
break;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-13
@@ -88,20 +88,7 @@ let ChatService = class ChatService {
|
||||
getAllConnectedUsers() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'users.presence', this.options);
|
||||
}
|
||||
//Check whether user is online or offline
|
||||
getUserPresence(id) {
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpParams"]();
|
||||
params = params.set("userId", id);
|
||||
let opts = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'users.getPresence', opts);
|
||||
}
|
||||
//Load messages from roomId
|
||||
loadJoinedRooms() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'im.list', this.options);
|
||||
}
|
||||
getAllDirectMessages() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'im.list', this.options);
|
||||
}
|
||||
@@ -216,6 +203,9 @@ let ChatService = class ChatService {
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.info', opts);
|
||||
}
|
||||
renameGroup(body) {
|
||||
return this.http.post(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.rename', body, this.options);
|
||||
}
|
||||
};
|
||||
ChatService.ctorParameters = () => [
|
||||
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+5
-17
@@ -153,25 +153,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
key: "getAllConnectedUsers",
|
||||
value: function getAllConnectedUsers() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'users.presence', this.options);
|
||||
} //Check whether user is online or offline
|
||||
|
||||
}, {
|
||||
key: "getUserPresence",
|
||||
value: function getUserPresence(id) {
|
||||
var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpParams"]();
|
||||
params = params.set("userId", id);
|
||||
var opts = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'users.getPresence', opts);
|
||||
} //Load messages from roomId
|
||||
|
||||
}, {
|
||||
key: "loadJoinedRooms",
|
||||
value: function loadJoinedRooms() {
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'im.list', this.options);
|
||||
}
|
||||
}, {
|
||||
key: "getAllDirectMessages",
|
||||
value: function getAllDirectMessages() {
|
||||
@@ -324,6 +307,11 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.info', opts);
|
||||
}
|
||||
}, {
|
||||
key: "renameGroup",
|
||||
value: function renameGroup(body) {
|
||||
return this.http.post(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.rename', body, this.options);
|
||||
}
|
||||
}]);
|
||||
|
||||
return ChatService;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user