rDrama/files/assets/js
Ben Rog-Wilhelm 310c6c4424
Rig up chat to be suitable for a Doge election. (Hopefully.) (#692)
* Integrate chat from upstream

Substantially borrowed from upstream ref: 13a208ee88e55 (before they
started editing generated artefacts instead of source).

Integrated, including:
  - Remove previously removed features: emoji, hats, and name colors
  - Compensate for lack of unified root template
  - Add React build process to Dockerfile and `bootstrap/init.sh`
  - Preliminary integration of chat websocket workers

For testing, modify `supervisord.conf.dev` to put chat on port 80 and
the site service on some other port. Then visit: http://localhost/chat

Still to do:
  - Access control for specific small-groups (and admins probably):
    Set the values somewhere (site_settings.json? Redis?) and use for
    authorization in `chat_is_allowed`.
  - Proxying only /chat to the websocket workers
  - Chat persistance across restarts: either Redis devops or to DB

* Add nginx server to do appropriate redirection.

* Add necessary columns to User.

* Wire up chat permissions.

* Reload chat on source change.

* Add a better structure for slash commands and add/remove functionality.

* Stop putting up previews of slash commands.

* We require more whitespace.

* Strip DMs out entirely, I currently do not want to deal with them.

* Change "Users Online" to just "Users".

* Clean up a little more DM detritus.

* Save chat history in database.

* Remove unnecessary hefty query to the DB.

* Clean up optimistic messages.

* Initial implementation of notification icon.

* Update readme a little bit.

* Fix notification highlight (mostly).

* Remove chat version number that will never be updated.

* Fix: Errors on logged-out users.

* Add function to nuke the chat state.

* Update DB.

* Add a dedicated deployable docker image.

* Fix: init_build.sh execute bit not set.

* Whoops, screwed up the abort() call.

* Relax chat rate limiter.

* Remove a somewhat silly comment.

* Remove an unnecessary g.db.add().

---------

Co-authored-by: TLSM <duolsm@outlook.com>
2023-09-04 12:42:20 -05:00
..
vendor Added purify for html sanitization 2022-06-05 10:58:17 -05:00
award_modal.js combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
ban_modal.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
bootstrap.js v 2022-02-22 11:37:24 +02:00
clipboard.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
comments+submission_admin.js fix remove/approve buttons not working from listing page 2023-07-28 16:18:47 -05:00
comments+submission_listing.js Change hidden score placeholder from ? to empty string 2022-10-28 03:55:07 -05:00
comments.js using optional chaining seems to break older browsers 2023-07-27 11:22:44 -05:00
comments_v.js combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
delete_post_modal.js combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
filter_actions.js Fix the other report button for posts on the comments page 2022-08-19 03:18:35 -05:00
followers.js combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
following.js combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
formatting.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
fp.js sdfdsf 2021-12-18 21:54:54 +02:00
hcaptcha.js sdfdsf 2021-12-18 21:54:54 +02:00
header.js combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
horizon_tweet.2bd42981e3af03ce9186a5655508da28.js fsdfsd 2021-12-09 22:38:59 +02:00
horizon_tweet.4027cff8c5dfbbf9b414b0df963e6b7d.js fdsfds 2021-12-10 19:57:53 +02:00
lite-youtube.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
lozad.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
marked.custom.js 139: Disabled multimedia embedding 2022-08-07 01:30:47 -05:00
micromodal.js Adding usernotes. 2022-05-16 11:53:24 -05:00
mobile_navigation_bar.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
new_comments_count.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
pusher.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
report_post_modal.js Add reasons to report screens 2022-09-26 03:07:48 -05:00
service-worker.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
settings_blocks.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
settings_profile.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
settings_security.js Fix 2FA modal not displaying in UI (#178). (#180) 2022-08-16 22:38:19 -05:00
signup.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
sort_table.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
submission_listing.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
submit.js remove holes (#492) 2023-04-01 00:13:30 -05:00
togglePostEdit.js Add trailing LF to text files 2022-05-10 21:05:51 -04:00
twitter.js Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
twitterlight.js gdfg 2022-03-31 18:28:53 +02:00
userpage_v.js Fix: Null reference when sending messages through a non-comment window. 2023-08-06 22:35:11 -05:00
volunteer.js Volunteer Janitor: Minor cleanups. 2022-12-01 18:53:24 -08:00