rDrama/files/helpers
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
..
config Rig up chat to be suitable for a Doge election. (Hopefully.) (#692) 2023-09-04 12:42:20 -05:00
alerts.py Rejigger the Mod/Report state system. 2023-07-01 21:06:40 -05:00
assetcache.py assetcache: add interface for non-Jinja consumers. 2022-08-30 16:23:09 -04:00
caching.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
captcha.py captcha: add captcha to contact page (fixes #482) 2023-02-09 10:41:15 -06:00
comments.py Rejigger the Mod/Report state system. 2023-07-01 21:06:40 -05:00
content.py Don't show users post content from users they've blocked (#639) 2023-07-22 19:47:44 -05:00
contentsorting.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
embeds.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
get.py perms: consistently use >= for admin levels 2023-04-06 07:36:19 -06:00
jinja2.py excise country club (#665) 2023-08-08 23:51:39 -05:00
lazy.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
listing.py excise country club (#665) 2023-08-08 23:51:39 -05:00
math.py Implement mod-viewable janitor-generated badness stats. 2023-04-30 02:08:07 -05:00
media.py videos: remove video uploads lol 2023-02-17 21:26:40 -06:00
sanitize.py removes a line that broke hard line brakes intentionally to fix Markdown implementation fails to produce hard line breaks properly #440 (#591) 2023-07-13 12:16:40 -05:00
security.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
services.py Split notification routes, hard wrap, sort order 2023-07-12 00:24:50 -05:00
strings.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
time.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
validators.py post scheduling (#554) 2023-03-29 16:32:48 -05:00
volunteer_janitor.py 🏦 Database Change: convert created utc to datetimez for volunteer_janitor (#679) 2023-08-25 01:00:09 -05:00
wrappers.py post scheduling (#554) 2023-03-29 16:32:48 -05:00