コミットグラフ

321 コミット

作成者 SHA1 メッセージ 日付
n9k 568b1a78db Make user's default name the placeholder in the nojs chat form 2022-02-18 21:28:44 +13:00
n9k 4f85b52af0 Eradicate typo in js that breaks tripcodes
Any single-user tripcode update deleted all existing tripcode display css
rules, because of one place where there was `stylesheet_color` (the global
variable) where it should have been `stylesheet` (the function argument).

Also now using proper js function named-argument syntax. (Why is it legal
to declare global variables in the arguments of a function call? What?)

In JavaScript, declaring a global variable in a function call is not OK:

  > function f(x) {
  ...   console.log(typeof n);
  ...   return x;
  ... }
  > f(var n = 42)
  Uncaught SyntaxError: Unexpected token 'var'
  > f(let n = 42)
  Uncaught SyntaxError: missing ) after argument list
  > f(const n = 42)
  Uncaught SyntaxError: Unexpected token 'const'

Unless of course you elide the variable keyword:

  > f(7)
  undefined
  7
  > f(n = 42)
  number
  42
  > n
  42

Not even once.
2022-02-18 19:06:23 +13:00
n9k d848d1532e Reflect appearance changes with js 2022-02-18 18:17:01 +13:00
n9k 1e6563c4a2 Some more project structure 2022-02-18 14:32:34 +13:00
n9k 43e1a33088 Nojs appearance form, tripcodes, colours 2022-02-18 11:56:51 +13:00
n9k 7dbcd43f30 Logicaler project structure, see rest of commit message
Incoming requests are handled in anonstream/routes/. Route handlers
mainly depend on files in anonstream/, which in turn depend on files in
anonstream/helpers/ and anonstream/utils/. Utils are pure functions and
helpers are almost pure functions; they don't mutate state but they
do depend on the global app config.
2022-02-17 13:30:09 +13:00
n9k 090981860c Add css rules for hiding chat 2022-02-17 13:30:09 +13:00
n9k 801f663959 Limit info height to max for viewport in mobile view
Remove padding around non-tripcode tripcode in the nojs chat form
2022-02-17 13:30:09 +13:00
n9k 0d583c8617 Add color input to nojs form 2022-02-17 13:30:09 +13:00
n9k 0eeee250ed Fix js removing messages 2022-02-17 13:30:09 +13:00
n9k e77862f4ff Nojs chat, store all user names/colors in js, forget about inactive users
Project structure evolving a bit
2022-02-17 13:30:05 +13:00
n9k 797b7dffe1 Remove colliding `accesskey`s 2022-02-15 23:19:11 +13:00
n9k 60b0cb1ebc Indent with 2 spaces in js 2022-02-15 23:16:10 +13:00
n9k 694c6a4995 Nojs comment submission, notify for rejected comments
Fix with-user wrapper (wasn't collecting users)
2022-02-15 23:11:53 +13:00
n9k e217addfb9 Move README back to project root 2022-02-15 13:05:34 +13:00
n9k 885c10b5de Initial noscript markup for chat form & stream info
Use with-user decorator on routes (instead of with-token)
2022-02-14 23:16:09 +13:00
n9k 5d0cac0b0f Concatenate segments
Add small js failsafe, other minor changes
2022-02-13 22:25:02 +13:00
n9k edba60e3e1 Embed token in markup, fix authorization 2022-02-13 17:46:28 +13:00
n9k 71586420b6 Project structure, chat markup/style, websockets 2022-02-13 17:00:10 +13:00
n9k 8d1a03f9a8 Basic layout 2022-02-12 15:27:40 +13:00
n9k 4962815a6b Initial commit 2021-04-09 17:10:22 +00:00