aboutsummaryrefslogtreecommitdiff
path: root/tmpl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* {main,pw}.go, Makefile, index_login.html: Remove password auth stubRunxi Yu4 days1-38/+0
| | | | | | | | | | I don't think password authentication is really useful, since Microsoft Entra ID is the "proper" way of doing authentication in our school system and there's just little reason to have a password login. I previously wanted to use password authentication for stress testing, but stress testing really could just use completely fake authentication and there's no need for any password whatsoever.
* index.html: Disable checkbox initially when .Selected >= MaxRunxi Yu5 days1-0/+4
|
* {config,index}.go, cca.scfg.example, style.css, *.html: Link to sourceRunxi Yu5 days2-0/+6
|
* index.html, main.js, ws.go: Enhance course selection rejection messageRunxi Yu6 days1-1/+1
|
* index.html: Remind user to report connection closed errorsRunxi Yu6 days1-0/+3
|
* style.css, index.html: Emit warning when CSS doesn't loadRunxi Yu6 days1-0/+3
|
* index.html: Use div instead of main to be semantically appropriateRunxi Yu6 days1-7/+5
|
* index.html: Remove erroneous comma in tag attributesRunxi Yu6 days1-1/+1
|
* index.html, style.css: Use .reading-width instead of sectionRunxi Yu6 days1-2/+2
| | | | Section has semantic meaning and should be accompanied by a heading
* index.html: acronym -> abbrRunxi Yu6 days1-4/+1
| | | | It seems deprecated: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/acronym
* index.html, style.css: #table-of-courses { width: 100%; }Runxi Yu6 days1-1/+1
|
* index.html, style.css: Misc enhancementsRunxi Yu6 days1-17/+16
|
* index.html: Remove "course.Confirmed" as it was removed from structRunxi Yu6 days1-6/+5
|
* main.js, style.css, index.html: Clear notice by JS instead of using noscriptRunxi Yu8 days1-20/+13
|
* index.html, main.js: Display message when connection is closedRunxi Yu11 days1-0/+19
| | | | Also fixed some CSS regressions
* index.html: Fix template to match the new "ID" rather than "Id"Runxi Yu11 days1-5/+5
|
* *.go: LintingRunxi Yu11 days1-1/+1
|
* style.css, index.html: More clean-upRunxi Yu11 days1-20/+0
|
* index.html: Add box styling to the WebSocket warningRunxi Yu2024-09-171-1/+1
|
* ws.go, main.js, index.html: Better WS documentation and structureRunxi Yu2024-09-161-62/+83
|
* index{,_login}.tmpl: Rename .tmpl to .htmlRunxi Yu2024-09-092-0/+0
|
* index.tmpl: Add git.rx and GitHub URLRunxi Yu2024-09-081-1/+1
|
* style.css, index.tmpl: Style changesRunxi Yu2024-09-081-2/+2
|
* main.js, index.tmpl: Confirmation buttonRunxi Yu2024-09-081-0/+13
| | | | | In the future we shall the confirmation button to only work when all fields are correctly completed.
* index.tmpl: Place the search bar inside the tableRunxi Yu2024-09-081-3/+5
|
* *: Password login stubRunxi Yu2024-09-081-1/+36
|
* index.tmpl: Rename the "Course" field into "Name", in the HTMLRunxi Yu2024-09-081-1/+1
|
* index.tmpl: Add .coursecheckbox to checkboxesRunxi Yu2024-09-081-1/+1
|
* index.tmpl: Search barRunxi Yu2024-09-081-3/+18
|
* index.tmpl: Checkbox should not have {{.Id}} as textRunxi Yu2024-09-081-1/+1
|
* *: Display coursesRunxi Yu2024-09-081-34/+38
|
* *: Basic WebSocket connection may be established nowRunxi Yu2024-09-081-1/+39
|
* index.tmpl: JavaScript warningRunxi Yu2024-09-081-1/+23
|
* *: Call Graph API for department informationRunxi Yu2024-09-071-62/+5
| | | | | | | | | | | | I am using a hybrid flow with "id_token" for OpenID Connect and "code" for an Authorization Code. I would use "token" too but that doesn't seem to be supported for standard web-apps and could result in strange session-hijacking issues. We still need PKCE sometime in the future; however it's not a priority: the worst attack someone could pull off is to use a different user's Authorization Code and steal a Department, which probably isn't too big of a deal as the Authorization Code should be secret anyways.
* *: Basic authentication and templatesRunxi Yu2024-09-072-0/+158
These are imported from FBFP and slightly modified to be specific to YKPS (while not being hard to port to other environments that use APIs that use OAUTH 2.0). Some code is also simplified. Database code still needs an audit, and things are not tested yet.