feat: select school terms and smooth refractive Dock motion

This commit is contained in:
Codex
2026-10-13 19:08:36 +08:00
parent 3e2d8864af
commit 50fcc70e8e
33 changed files with 1245 additions and 94 deletions
@@ -11,8 +11,8 @@ const timetable = 'https://yjsjy.uestc.edu.cn/pyxx/pygl/xskbcx/index/1';
function term(id) {
const result = {
selectedIndex: 1,
options: [false, false].map(selected => ({
selected,
options: [false, false].map((selected, index) => ({
selected, value: String(73 - index),
setAttribute() { this.selected = true; },
removeAttribute() { this.selected = false; },
})),
@@ -56,6 +56,7 @@ assert.equal(probe(doc('https://yjsjy.uestc.edu.cn/pyxx/jzsso/login')).authentic
const top = probe(doc(timetable, {table: true}));
assert.equal(top.pages.length, 1);
assert.deepEqual(top.terms, [73, 72], 'bounded school term choices contain only dropdown IDs');
assert.match(top.pages[0].html, /value="1" selected="selected"/);
assert.doesNotMatch(top.pages[0].html, /value="0" selected/);