Prior to this change, the MFE would fail to render with any PUBLIC_PATH set. Because that is now handled entirely by `frontend-platform`, we can avoid referring to PUBLIC_PATH entirely, here.
63 lines
1.4 KiB
JavaScript
63 lines
1.4 KiB
JavaScript
import { StrictDict } from 'utils';
|
|
|
|
export const views = StrictDict({
|
|
grades: 'grades',
|
|
bulkManagementHistory: 'bulkManagementHistory',
|
|
});
|
|
|
|
export const modalFieldKeys = StrictDict({
|
|
adjustedGradePossible: 'adjustedGradePossible',
|
|
adjustedGradeValue: 'adjustedGradeValue',
|
|
assignmentName: 'assignmentName',
|
|
reasonForChange: 'reasonForChange',
|
|
todaysDate: 'todaysDate',
|
|
updateModuleId: 'updateModuleId',
|
|
updateUserId: 'updateUserId',
|
|
updateUserName: 'updateUserName',
|
|
open: 'open',
|
|
});
|
|
|
|
export const localFilterKeys = StrictDict({
|
|
assignmentGradeMax: 'assignmentGradeMax',
|
|
assignmentGradeMin: 'assignmentGradeMin',
|
|
courseGradeMax: 'courseGradeMax',
|
|
courseGradeMin: 'courseGradeMin',
|
|
});
|
|
|
|
/**
|
|
* column configuration for bulk management tab's data table
|
|
*/
|
|
export const bulkManagementColumns = [
|
|
{
|
|
accessor: 'filename',
|
|
Header: 'Gradebook',
|
|
columnSortable: false,
|
|
width: 'col-5',
|
|
},
|
|
{
|
|
accessor: 'resultsSummary',
|
|
Header: 'Download Summary',
|
|
columnSortable: false,
|
|
width: 'col',
|
|
},
|
|
{
|
|
accessor: 'user',
|
|
Header: 'Who',
|
|
columnSortable: false,
|
|
width: 'col-1',
|
|
},
|
|
{
|
|
accessor: 'timeUploaded',
|
|
Header: 'When',
|
|
columnSortable: false,
|
|
width: 'col',
|
|
},
|
|
];
|
|
|
|
export const gradeOverrideHistoryColumns = StrictDict({
|
|
adjustedGrade: 'adjustedGrade',
|
|
date: 'date',
|
|
grader: 'grader',
|
|
reason: 'reason',
|
|
});
|