summaryrefslogtreecommitdiff
path: root/docs (unfollow)
Commit message (Collapse)AuthorFilesLines
6 daysREADME.md: Remove "(WIP)"Runxi Yu1-1/+1
6 daysRevert "auth.go: Set SameSite=Strict"Runxi Yu1-1/+1
This reverts commit a6a5db47eb7a2040cd70dbd39e16d7de3fd9bd9f. Users are unable to log in with it. I'll look for another way to prevent CSRF.
6 days*.html: s/IA Docs/IA/gRunxi Yu4-4/+4
6 daysauth.go: Set SameSite=StrictRunxi Yu1-1/+1
We use GET requests for some administration endpoints (most importantly, the ones managing the global state).
6 daysImplement course selection started/stopped statesRunxi Yu10-21/+135
Implements: https://todo.sr.ht/~runxiyu/cca/13
6 daysstaff.html: Add search functionalityRunxi Yu1-0/+11
6 daysstate.go: Cancel connections when setting state 0Runxi Yu1-8/+16
6 daysnewcourses.go: setupCourses must be run after commitRunxi Yu1-10/+11
Otherwise it reads an old snapshot of the database...
6 dayswsc.go: Check newCtx.Done() when entering other event casesRunxi Yu1-12/+25
We select the context done channel when entering other cases too (see below) because we need to make sure the context cancel works even if both the cancel signal and another event arrive while processing a select cycle. It's a bit verbose and looks repetitive but is technically more correct than code without it.
6 dayswsh.go: Remove old TODO about limiting connections per userRunxi Yu1-7/+0
This has been implemented quite a while ago.
6 dayswsh.go: Remove TODO about checking pgErrRunxi Yu1-1/+0
If the UUIDs actually collide, we're doomed anyway. Okay... this isn't the best way to write software that must be ultra-reliable, but this doesn't need to be ultra-reliable.
6 daysexport.go: Remove unnecessary TODORunxi Yu1-1/+1
6 daysauth.go: Remove access token expiration fields and related TODORunxi Yu1-14/+5
We're only using the token immediately after it is issued, so it's a bit unnecessary.
6 daysauth.go: Remove TODO about implementing nonce checksRunxi Yu1-7/+0
It's the OAuth provider that's responsible for checking this nonce.
6 daysauth.go: Remove TODO about using ON CONFLICTRunxi Yu1-7/+0
I think using the pgErr method actually makes the logic easier to follow especially since I'm not updating the "confirmed" field when UPDATEing but it's being initialized to false during INSERT.
6 daysReplace tcourse.sql with an example importable CSVRunxi Yu3-14/+15
6 daysValidate course group and course type when importing from CSVRunxi Yu1-0/+24
6 daysAllow staff to upload a CSV containing coursesRunxi Yu6-39/+432
Implements: https://todo.sr.ht/~runxiyu/cca/2
6 daysexport.go: Remove unnecessary fields from user queryRunxi Yu1-3/+3
6 daysstyle.css: Fix file selector buttonsRunxi Yu1-1/+7
7 days{wsp,wsx}.go: Move comment about RFC1459-like message formatRunxi Yu2-23/+23
7 daysauth.go, schema.sql: Add "confirmed" field to usersRunxi Yu2-2/+3
7 daysindex.go, student_disabled.html: Repsect state = 0Runxi Yu3-17/+98
References: https://todo.sr.ht/~runxiyu/cca/13
7 days*.go, schema.sql, staff.html: Implement state settingRunxi Yu7-3/+187
References: https://todo.sr.ht/~runxiyu/cca/13
7 days*.go, tmpl/staff.html: Allow staff to export choicesRunxi Yu6-2/+250
Implements: https://todo.sr.ht/~runxiyu/cca/3
7 daysstaff.html: Update from students.html and only display link to /exportRunxi Yu1-112/+5
7 daysdocs/fields.txt: RemoveRunxi Yu1-27/+0
7 days{courses,wsc}.go: Atomic 64-bit alignmentRunxi Yu2-4/+7
7 dayswsc.go: Use sync.Map for cancelPool to reduce lock contentionRunxi Yu1-21/+10
7 daysstudent.html: Use separate columns for Selected and MaxRunxi Yu1-2/+9
8 dayseslint.sh: Call eslint directly rather than through npxRunxi Yu1-1/+1
8 days*.go: Update commentsRunxi Yu8-30/+17
8 daysbench.go: Update number of coursesRunxi Yu1-1/+1
8 daysstudent.js: Don't N then Y the same course on selectv0.1.8Runxi Yu1-1/+1
8 daysstudent.{html,js}: Deselect courses in the same group when selectingRunxi Yu2-5/+7
8 daysstudent.html: Slightly better looks around tickboxRunxi Yu1-8/+10
8 daystcourse.sql: Add more example CCAsRunxi Yu1-5/+13
8 days{courses,index}.go, student.html, style.css: Group by course groupRunxi Yu4-20/+34
8 daysstudent.html: Simplify JSRunxi Yu1-2/+1
8 daysindex.go, {login,student}.html: Use structs rather than maps for tmplRunxi Yu3-22/+28
8 days*.go: Use sync.Map instead of map[int]*courseT for coursesRunxi Yu6-73/+115
I'm not sure whether this is actually better than locking.
8 days{courses,wsc,wsp}.go: Usems should be sync.MapRunxi Yu3-19/+12
This is a classic few-reads, many-writes situation where a sync.Map would lead to substantially less lock contention.
8 days{courses,wsc,wsm}.go: map[courseGroupT](bool->struct{})Runxi Yu3-8/+8
This makes it use slightly less memory. Approximately courseGroupT bits per connection!
8 daysstyle.css: Work around Firefox bug 217769Runxi Yu1-0/+8
Firefox eats the left, bottom, and right borders when tbody is empty. This is a bug known for 21 years (that was Firefox 37 or something). References: https://bugzilla.mozilla.org/show_bug.cgi?id=217769
9 days*.go: Further wrap errorsRunxi Yu6-24/+52
9 dayserr.go: Create, and unify some error definitionsRunxi Yu5-38/+55
9 daysRevert "latexify-source.sh: \subsection{\texttt{%s}}"Runxi Yu1-11/+11
This reverts commit a9916b3a7df327836f18011edcbf8cc218260f89.
9 daysstudent.js: Use "let" rather than "var"v0.1.7Runxi Yu1-2/+2
9 dayslatexify-source.sh: Don't set -xRunxi Yu1-1/+1
9 dayscca.scfg.example: usem_delay_shift_bits should default to 5Runxi Yu1-1/+1