░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/ui/features/assignment_grade_summary/react/grades
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: GradesApi.js
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ import axios from '@canvas/axios' import {camelizeProperties, underscoreProperties} from '@canvas/convert-case' export function bulkSelectProvisionalGrades(courseId, assignmentId, provisionalGradeIds) { const url = `/api/v1/courses/${courseId}/assignments/${assignmentId}/provisional_grades/bulk_select` return axios.put(url, {provisional_grade_ids: provisionalGradeIds}) } export function selectProvisionalGrade(courseId, assignmentId, provisionalGradeId) { const url = `/api/v1/courses/${courseId}/assignments/${assignmentId}/provisional_grades/${provisionalGradeId}/select` return axios.put(url) } export function updateProvisionalGrade(courseId, submission) { const url = `/courses/${courseId}/gradebook/update_submission` const data = { submission: { ...underscoreProperties(submission), provisional: true, }, } return axios.post(url, data).then(response => camelizeProperties(response.data[0].submission)) }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 GradeActions.js
JS
5.5 KB
2023-09-24 03:36
EDIT
📄 GradesApi.js
JS
1.6 KB
2023-09-24 03:36
EDIT
📄 gradesReducer.js
JS
6.4 KB
2023-09-24 03:36
EDIT