Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

Update for add marker in listobject recursive #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added font-awesome/fonts-old/fontawesome-webfont.eot
Binary file not shown.
16 changes: 16 additions & 0 deletions font-awesome/fonts-old/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added font-awesome/fonts-old/fontawesome-webfont.ttf
Binary file not shown.
Binary file added font-awesome/fonts-old/fontawesome-webfont.woff
Binary file not shown.
Binary file added font-awesome/fonts-old/fontawesome-webfont.woff2
Binary file not shown.
Binary file modified font-awesome/fonts/fontawesome-webfont.eot
Binary file not shown.
2 changes: 2 additions & 0 deletions font-awesome/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified font-awesome/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file modified font-awesome/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file modified font-awesome/fonts/fontawesome-webfont.woff2
Binary file not shown.
13 changes: 9 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 26 additions & 31 deletions src/browser/js/dashboardStatus/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const listAllObjects = devicesDevicesInput => {
? devicesDevicesInput
: []
: devices;

let iDeviceFileCount = 0;

// if no devices for config/device.json, set loaded to true
Expand Down Expand Up @@ -152,8 +152,8 @@ export const listConfigFiles = (devicesDevices, devicesDevicesInput) => {
dispatch(setConfigObjects(configObjectsUniqueAry));
dispatch(fetchConfigFileContentAll(configObjectsUniqueAry));
dispatch(loadedConfig(true));
if(devicesDevicesInput == undefined){
dispatch(listLogFiles())
if (devicesDevicesInput == undefined) {
dispatch(listLogFiles());
}
}
})
Expand All @@ -164,15 +164,15 @@ export const listConfigFiles = (devicesDevices, devicesDevicesInput) => {
dispatch(setConfigObjects(configObjectsUniqueAry));
dispatch(fetchConfigFileContentAll(configObjectsUniqueAry));
dispatch(loadedConfig(true));
if(devicesDevicesInput == undefined){
dispatch(listLogFiles())
if (devicesDevicesInput == undefined) {
dispatch(listLogFiles());
}
}
});
});
} else if (!getState().dashboardStatus.loadedFiles) {
if(devicesDevicesInput == undefined){
dispatch(listLogFiles())
if (devicesDevicesInput == undefined) {
dispatch(listLogFiles());
}
}
};
Expand All @@ -186,23 +186,23 @@ export const listLogFiles = devicesFilesInput => {

return function(dispatch, getState) {
let devices = getState().buckets.list ? getState().buckets.list : [];
devices = devices.filter(e => e.match(loggerRegex));

const devicesFilesDefaultMax = 3;

// by default show all devices for the device info and none for the log file info (unless fewer than 3 devices)
let devicesFiles = devicesFilesInput
? devicesFilesInput.length
? devicesFilesInput
: []
: devices.length <= devicesFilesDefaultMax
? devices
: [];

// if no devices for files, set loaded to true
if (devicesFiles.length == 0) {
dispatch(loadedFiles(true));
}
devices = devices.filter(e => e.match(loggerRegex));

const devicesFilesDefaultMax = 3;

// by default show all devices for the device info and none for the log file info (unless fewer than 3 devices)
let devicesFiles = devicesFilesInput
? devicesFilesInput.length
? devicesFilesInput
: []
: devices.length <= devicesFilesDefaultMax
? devices
: [];

// if no devices for files, set loaded to true
if (devicesFiles.length == 0) {
dispatch(loadedFiles(true));
}

if (!getState().dashboardStatus.loadedFiles) {
devicesFiles.map(device => {
Expand Down Expand Up @@ -269,7 +269,7 @@ export const listLogFiles = devicesFilesInput => {
if (e > periodStartVarFormat) {
const deviceId = device;
const lastModified = e;
const size = sizePerTime[e] / (1024*1024);
const size = sizePerTime[e] / (1024 * 1024);
const count = countPerTime[e];
dataPerTimeAry.push({
deviceId,
Expand All @@ -288,7 +288,7 @@ export const listLogFiles = devicesFilesInput => {
}
});

dispatch(setDevicesFilesCount(iCount))
dispatch(setDevicesFilesCount(iCount));

if (iCount == devicesFiles.length) {
dispatch(setObjectsData(mf4ObjectsHourAry));
Expand All @@ -307,11 +307,6 @@ export const listLogFiles = devicesFilesInput => {
});
}
};





};

export const clearDataDevices = () => ({
Expand Down
4 changes: 2 additions & 2 deletions src/browser/js/jsonrpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class JSONrpc {
options.params = {};
}

let s3Explorer = new S3Explorer(options.params, token);
const s3Explorer = new S3Explorer(options.params, token);

let result;

Expand All @@ -44,7 +44,7 @@ export default class JSONrpc {
result = s3Explorer.getSessionsObject();
break;
case "ListBuckets":
result = s3Explorer.listBuckets();
result = s3Explorer.listBuckets(options.params.marker);
break;
case "StorageInfo":
result = s3Explorer.storageInfo();
Expand Down
Loading