vue-course-requisite
Version:
Vue plugin for displaying, configuring, and modifying course pre and co requisites.
67 lines (66 loc) • 1.21 kB
JavaScript
export default [
{
id: 1,
full_number: 'ECE 101'
},
{
id: 2,
full_number: 'ECE 102',
coreq: {
type: 'course', course: { id: 1 }
}
},
{
id: 3,
full_number: 'ECE 201',
prereq: {
type: 'or',
operands: [
{ type: 'course', course: { id: 1 } },
{ type: 'course', course: { id: 2 } }
]
}
},
{
id: 4,
full_number: 'ECE 202',
prereq: {
type: 'or',
operands: [
{ type: 'course', course: { id: 1 } },
{ type: 'course', concurrency_ind: true, course: { id: 2 } }
]
},
coreq: {
type: 'course', course: { id: 3 }
}
},
{
id: 5,
full_number: 'ECE 203',
prereq: {
type: 'and',
operands: [
{ type: 'course', course: { id: 1 } },
{ type: 'course', course: { id: 2 } }
]
}
},
{
id: 6,
full_number: 'ECE 301',
prereq: {
type: 'or',
operands: [
{
type: 'and',
operands: [
{ type: 'course', course: { id: 1 } },
{ type: 'course', course: { id: 2 } }
]
},
{ type: 'course', course: { id: 3 } }
]
}
}
]