Skip to content

Commit

Permalink
Preparing for 23T3
Browse files Browse the repository at this point in the history
  • Loading branch information
chamhayden committed Aug 30, 2023
1 parent 24862aa commit c2a7146
Show file tree
Hide file tree
Showing 4 changed files with 614 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ config.DEV = (!process.env.NODE_ENV || process.env.NODE_ENV === 'development');
config.BASE_URL = config.DEV ? 'http://localhost:6080' : 'https://cgi.cse.unsw.edu.au/~cs6080';
config.BASE_NAME = config.DEV ? '/' : '/~cs6080/';

config.terms = config.DEV ? ['sample'] : ['sample', '23T1'];
config.DEFAULT_TERM = config.DEV ? 'sample' : '23T1';
config.terms = config.DEV ? ['sample'] : ['sample', '23T3'];
config.DEFAULT_TERM = config.DEV ? 'sample' : '23T3';

config.joinSchema = {
content_tutorials: {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/page/CourseOutline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import makePage from '../component/makePage';
import CourseOutline22T1 from './CourseOutlines/CourseOutline22T1';
import CourseOutline22T3 from './CourseOutlines/CourseOutline22T3';
import CourseOutline23T1 from './CourseOutlines/CourseOutline23T1';
import CourseOutline23T3 from './CourseOutlines/CourseOutline23T3';

import { Context, useContext } from '../context';

Expand All @@ -30,6 +31,8 @@ const CourseOutline = () => {
return <CourseOutline22T3 />
} else if (getters.term === '23T1') {
return <CourseOutline23T1 />
} else if (getters.term === '23T3') {
return <CourseOutline23T3 />
} else {
return <>This is a sample course outline!</>;
}
Expand Down
Loading

0 comments on commit c2a7146

Please sign in to comment.