Theoretical handling of system task updates; stdout straight to logger

This commit is contained in:
James Barnsley
2020-01-17 23:14:43 +13:00
parent 0e15a8745e
commit 169396042a
11 changed files with 7788 additions and 54 deletions

View File

@ -32,7 +32,7 @@ export function setSelectedTracks(keys = []) {
};
}
export function showContextMenu(data) {
export function showContextMenu(data) {
// Touchend
if (data.e.changedTouches) {
data.position_x = data.e.changedTouches[0].clientX;
@ -165,7 +165,7 @@ export function createBrowserNotification(data) {
};
}
export function createNotification(data) {
export function createNotification(data) {
// Allow 'message' as an alias of our content
if (data.message) {
data.content = data.message;
@ -228,12 +228,13 @@ export function stopLoading(key) {
};
}
export function startProcess(key, message, data = {}) {
export function startProcess(key, message, data = {}, description = null) {
return {
type: 'START_PROCESS',
key,
message,
data,
description,
};
}
@ -244,12 +245,13 @@ export function resumeProcess(key, message, data = {}) {
};
}
export function updateProcess(key, message, data = {}) {
export function updateProcess(key, message, data = {}, description = null) {
return {
type: 'UPDATE_PROCESS',
key,
message,
data,
description,
};
}