You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New /web/contest/ pages break XMOJ-Script navigation and layout #1029
Open a contest problem with the script's monochrome styling enabled.
Actual behavior
The user supplied a screenshot of problem A, “动物园”, showing a broken navigation layout: the raw “Toggle navigation” button is visible beside 小明的OJ, while monochrome styling is applied to the problem tabs and content. The expected enhanced navigation is missing. The screenshot was supplied in the development conversation; it is not hosted at a public URL.
Expected behavior
The updated contest pages should retain working navigation and layout and support applicable XMOJ-Script enhancements, including when navigating between contest problems.
Initial investigation
The new entry page is a client-rendered application: its HTML contains #app and loads /web/assets/index-BcirNBsv.js as a module.
Existing contest-specific logic in XMOJ.user.js dispatches on /contest.php; problem handling dispatches on /problem.php.
The script performs legacy DOM transformations and stylesheet replacement. Compatibility with asynchronous rendering and the new route structure needs investigation.
No fix had been made when this issue was filed. The exact failure mechanism and affected feature scope are still being investigated.
Activity
feat: 兼容新版 /web/contest/ 比赛页面 (#1029)
fix: 新版比赛页面使用与旧版页面一致的界面和导航栏行为 (#1029)
fix: 新版比赛页面恢复旧版左侧题目切换器 (#1029)
refactor: 旧版比赛页面重定向到新版 /web 页面,并移除其处理代码 (#1029)
refactor: 题目切换器改用接口数据,移除刷新按钮 (#1029)
fix: 减少页面加载时的闪烁和布局偏移 (#1029)