-
-
-
- {{ progress.email.split('@')[0] }}
- @{{ progress.email.split('@')[1] }}
+ |
+
+
+
+ {{ progress.email.split('@')[0] }}
+ @{{ progress.email.split('@')[1] }}
+
+
|
Object.keys(state.progresses).length)
export const diagnostic = computed(() => state.diagnostic)
export const notificationHistory = computed(() => state.notificationHistory)
export const notificationHistoryConfig = computed(() => state.notificationHistoryConfig)
+export const userActivity = computed(() => state.userActivity)
+export const userActivityConfig = computed(() => state.userActivityConfig)
export const socketConnected = computed(() => connectionState.connected)
export const zmqLastTime = computed(() => connectionState.zmq_last_time)
@@ -56,6 +60,7 @@ export function fullReload() {
getSelectedExercises()
getNotifications()
getProgress()
+ getUsersActivity()
}
export function setCompletedState(completed, user_id, exec_uuid, task_uuid) {
@@ -122,6 +127,15 @@ function getProgress() {
})
}
+function getUsersActivity() {
+ socket.emit("get_users_activity", (user_activity_bundle) => {
+ console.log(user_activity_bundle);
+ state.userActivity = user_activity_bundle.activity
+ state.userActivityConfig = user_activity_bundle.config
+ });
+}
+
+
function getDiangostic() {
state.diagnostic = {}
socket.emit("get_diagnostic", (diagnostic) => {
@@ -203,6 +217,11 @@ socket.on("update_notification_history", (notification_history_bundle) => {
state.notificationHistoryConfig = notification_history_bundle.config
});
+socket.on("update_users_activity", (user_activity_bundle) => {
+ state.userActivity = user_activity_bundle.activity
+ state.userActivityConfig = user_activity_bundle.config
+});
+
function addLimited(target, message, maxCount) {
target.unshift(message)
if (target.length > maxCount) {
|