Skip to content

Commit

Permalink
Rename keys
Browse files Browse the repository at this point in the history
HistorySearch query done
Fix search result table department name
  • Loading branch information
WavJaby committed Feb 29, 2024
1 parent 3b2a473 commit b4fe247
Show file tree
Hide file tree
Showing 16 changed files with 401 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions res/lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ export function parseRawCourseData(rawCourseData, rawUrSchoolData) {
departmentId: rawCourseData.dn,
deptWithSerial: null,
attributeCode: rawCourseData.ca,
systemNumber: rawCourseData.cs,
courseGrade: rawCourseData.g,
classInfo: rawCourseData.co,
classGroup: rawCourseData.cg,
systemNumber: rawCourseData.sc,
forGrade: rawCourseData.g,
forClass: rawCourseData.fc,
forClassGroup: rawCourseData.fg,
category: rawCourseData.ct,
courseName: rawCourseData.cn,
courseNote: rawCourseData.ci,
Expand Down
2 changes: 1 addition & 1 deletion res/minjs_v000/home.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions res/pages/courseSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ function CourseTable(windowRoot, updatePreScheduleData) {
th('系-序號', 'deptWithSerial'),
// th('類別', 'category'),
// th('年級', 'grade'),
// th('班別', 'classInfo'),
// th('組別', 'classGroup'),
// th('班別', 'forClass'),
// th('組別', 'forClassGroup'),
th('時間', 'courseTime'),
th('課程名稱', 'courseName'),
th('選必修', 'required'),
Expand Down Expand Up @@ -483,9 +483,9 @@ function CourseTable(windowRoot, updatePreScheduleData) {
// td(detail.departmentName, 'departmentName'),
td(deptWithSerial, 'deptWithSerial'),
// td(null, 'category', detail.category && text(detail.category)),
// td(null, 'grade', detail.courseGrade && text(detail.courseGrade.toString())),
// td(null, 'classInfo', detail.classInfo && text(detail.classInfo)),
// td(null, 'classGroup', detail.classGroup && text(detail.classGroup)),
// td(null, 'grade', detail.forGrade && text(detail.forGrade.toString())),
// td(null, 'forClass', detail.forClass && text(detail.forClass)),
// td(null, 'forClassGroup', detail.forClassGroup && text(detail.forClassGroup)),
td(null, 'courseTime',
detail.time && detail.time.map(i =>
i.flexTimeDataKey
Expand Down
2 changes: 1 addition & 1 deletion res/pages/courseSearch.css

Large diffs are not rendered by default.

Loading

0 comments on commit b4fe247

Please sign in to comment.