This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
almost done: chunk upload and event logs
- Loading branch information
Theodor Truffer
committed
Feb 12, 2021
1 parent
9c5963a
commit 7e8d126
Showing
17 changed files
with
323 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
/** | ||
* Class ilOneDriveDeleteGUI | ||
* @author Theodor Truffer <[email protected]> | ||
* | ||
* @ilCtrl_IsCalledBy ilOneDriveDeleteGUI : ilObjCloudGUI | ||
*/ | ||
class ilOneDriveDeleteGUI extends ilCloudPluginDeleteGUI | ||
{ | ||
|
@@ -35,8 +37,16 @@ public function deleteItem() | |
$response->message = $tpl->getMessageHTML($e->getMessage(), "failure"); | ||
} | ||
} | ||
echo "<script language='javascript' type='text/javascript'>window.parent.il.CloudFileList.afterDeleteItem(" . ilJsonUtil::encode($response) | ||
echo "<script type='text/javascript'>window.parent.il.CloudFileList.afterDeleteItem(" . ilJsonUtil::encode($response) | ||
. ");</script>"; | ||
exit; } | ||
exit; | ||
} | ||
|
||
public function initDeleteItem() | ||
{ | ||
global $DIC; | ||
parent::initDeleteItem(); | ||
$this->gui->setFormAction($DIC->ctrl()->getFormActionByClass(ilCloudPluginDeleteGUI::class)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,50 @@ | ||
const columns: { | ||
dataIndex: string, | ||
key: string | ||
}[] = [ | ||
{ | ||
dataIndex: "id", | ||
key: "id" | ||
}, | ||
{ | ||
dataIndex: "timestamp", | ||
key: "timestamp" | ||
}, | ||
{ | ||
dataIndex: "event_type", | ||
key: "event_type" | ||
}, | ||
{ | ||
dataIndex: "path", | ||
key: "path" | ||
}, | ||
{ | ||
dataIndex: "object_type", | ||
key: "object_type" | ||
}, | ||
{ | ||
dataIndex: "additional_data", | ||
key: "additional_data" | ||
} | ||
]; | ||
const columns = (translate: ((a: string) => string)) : any => { | ||
return [ | ||
{ | ||
dataIndex: "timestamp", | ||
key: "timestamp", | ||
sorter: (a: any, b: any) => Date.parse(a.timestamp) - Date.parse(b.timestamp), | ||
defaultSortOrder: 'descend', | ||
title: translate('column.timestamp') | ||
}, | ||
{ | ||
dataIndex: "user_id", | ||
key: "user", | ||
title: translate('column.user') | ||
}, | ||
{ | ||
dataIndex: "event_type_translated", | ||
key: "event_type", | ||
title: translate('column.event_type'), | ||
filters: [ | ||
{ text: translate("event_type.upload_started"), value: 'upload_started' }, | ||
{ text: translate("event_type.upload_complete"), value: 'upload_complete' }, | ||
{ text: translate("event_type.upload_aborted"), value: 'upload_aborted' }, | ||
{ text: translate("event_type.upload_failed"), value: 'upload_failed' }, | ||
{ text: translate("event_type.object_deleted"), value: 'object_deleted' }, | ||
{ text: translate("event_type.object_renamed"), value: 'object_renamed' }, | ||
], | ||
onFilter: (value: string, record: any) => { | ||
console.log('value: ' + value); | ||
console.log(record); | ||
return record.event_type === value; | ||
} | ||
}, | ||
{ | ||
dataIndex: "path", | ||
key: "path", | ||
title: translate('column.path') | ||
}, | ||
{ | ||
dataIndex: "object_type_translated", | ||
key: "object_type", | ||
title: translate('column.object_type') | ||
}, | ||
{ | ||
dataIndex: "additional_data_translated", | ||
key: "additional_data", | ||
title: translate('column.additional_data') | ||
} | ||
]; | ||
}; | ||
export default columns; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.