░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/packages/canvas-planner/src/components/PlannerPreview
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: mock-items.js
/* * Copyright (C) 2021 - 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 moment from 'moment-timezone' import formatMessage from '../../format-message' const COMMON_PROPS = { date: moment().hour(23).minute(59), dateStyle: 'due', points: 100, status: {}, readOnly: true } const MATH_CONTEXT = { id: 'Math', type: 'Course', title: formatMessage('Math'), color: '#BF32A4' } export const SINGLE_COURSE_ITEMS = [ { ...COMMON_PROPS, id: '1', uniqueId: 'assignment-1', context: MATH_CONTEXT, title: formatMessage('A wonderful assignment'), type: 'Assignment' }, { ...COMMON_PROPS, id: '2', uniqueId: 'assignment-2', context: MATH_CONTEXT, title: formatMessage('The best assignment'), type: 'Assignment' }, { ...COMMON_PROPS, id: '3', uniqueId: 'discussion-3', context: MATH_CONTEXT, title: formatMessage('A great discussion'), type: 'Discussion' } ] export const MULTI_COURSE_ITEMS = [ ...SINGLE_COURSE_ITEMS, { ...COMMON_PROPS, id: '3', uniqueId: 'discussion-3', context: { id: 'Science', type: 'Course', title: formatMessage('Science'), color: '#69B8DE' }, title: formatMessage('An amazing discussion assignment'), type: 'Discussion' }, { ...COMMON_PROPS, id: '4', uniqueId: 'quiz-4', context: { id: 'Lang Arts', type: 'Course', title: formatMessage('Language Arts'), color: '#E1AF52' }, title: formatMessage('Fun quiz'), type: 'Quiz' }, { ...COMMON_PROPS, id: '5', uniqueId: 'discussion-5', context: { id: 'Soc Studies', type: 'Course', title: formatMessage('Social Studies'), color: '#0081D3' }, title: formatMessage('Exciting discussion'), type: 'Discussion' } ]
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 index.js
JS
2.7 KB
2023-09-24 03:39
EDIT
📄 kinder-panda.svg
SVG
28.5 KB
2023-09-24 03:39
EDIT
📄 mock-items.js
JS
2.4 KB
2023-09-24 03:39
EDIT