Commit graph

108 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
ae58ca89eb Add debug option to make volunteer debugging easier. 2023-09-04 12:42:33 -05:00
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
Ben Rog-Wilhelm
a32fe3e90c Add a commented-out line to support specific DB files during dev. 2023-08-25 02:25:07 -05:00
Ben Rog-Wilhelm
143eb36aaa
Bump Postgres version. 2023-05-13 16:35:10 -05:00
Ben Rog-Wilhelm
0af172d173
Shift a bunch of root-directory files into a new less-cluttered bootstrap directory. 2023-02-15 14:54:09 -06:00
Ben Rog-Wilhelm
9da3451ed9
Remove explicit Docker container names to allow storing multiple in parallel. 2023-02-15 14:05:08 -06:00
Ben Rog-Wilhelm
18437003cf Beef up the Production check a little and do true comparison correctly. 2022-11-21 09:43:07 -06:00
Ben Rog-Wilhelm
adc24ec91e
Add Dev Mode and fix test race conditions. 2022-11-09 21:29:18 -06:00
FatherInire
a12123ca01
Initial e2e testing
Authored by @FatherInire
2022-05-13 02:55:29 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
Aevann1
97295d2dfd vc 2022-02-22 15:34:41 +02:00
Aevann1
e2df0fc2fb fg 2022-02-21 07:55:37 +02:00
Aevann1
cffc44bc9f big chungus commit 2022-02-12 01:32:14 +02:00
Aevann1
0a313c5aa5 dude subdramas lmao 2022-02-10 22:35:16 +02:00
Aevann1
0b7f586721 fsd 2022-02-05 20:47:21 +02:00
Aevann1
b3a9da6103 fds\ 2022-02-05 13:31:05 +02:00
Aevann1
e0204a9693 fds 2022-02-05 13:10:16 +02:00
Aevann1
c3f9b38182 v 2022-01-24 22:04:40 +02:00
Aevann1
cb4386b9b8 cvvc 2022-01-24 18:49:23 +02:00
Aevann1
24d2b18a38 dfs 2022-01-19 14:44:05 +02:00
Aevann1
613219d826 big one 2022-01-18 13:19:32 +02:00
Aevann1
9c6ff97e4d bbbb 2022-01-15 08:01:39 +02:00
Aevann1
1bea9edf79 under attack 2022-01-09 17:15:02 +02:00
Aevann1
d497c856a6 fsd 2022-01-02 15:22:12 +02:00
Aevann1
3fd819d3a4 fds 2022-01-01 02:45:26 +02:00
Aevann1
a078f9c5e6 fdssdf 2021-12-29 10:40:06 +02:00
Aevann1
4e90a17314 fdsfds 2021-12-29 08:43:20 +02:00
Aevann1
705c5ccae1 fdsfd 2021-12-28 06:47:02 +02:00
Aevann1
374ed05fe3 sdf 2021-12-24 05:22:00 +02:00
Aevann1
a013320f07 fdssfd 2021-12-21 16:47:38 +02:00
Aevann1
bc2eace198 fds 2021-12-21 16:43:55 +02:00
Aevann1
4f41bc9acd fdsfsd 2021-12-21 01:55:59 +02:00
Aevann1
1bdbd3cf1b fsdsfd 2021-12-15 21:30:26 +02:00
Aevann1
ab660900c5 i pray 2021-12-15 00:48:37 +02:00
Aevann1
1b49a03cea 1 2021-11-26 21:28:55 +02:00
Aevann1
5ce19cfba2 fdsfsd 2021-11-25 23:47:48 +02:00
Aevann1
5f258477d6 fdssdf 2021-11-15 01:59:25 +02:00
Aevann1
714c6fd4dc dsfdsf 2021-11-14 02:45:21 +02:00
Aevann1
90a6e7c53b redundant 2021-11-06 17:52:48 +02:00
Aevann1
e618434200 fdssdf 2021-11-04 17:22:00 +02:00
Aevann1
c523c28783 dfssfd4 2021-11-03 00:13:41 +02:00
Aevann1
2fc0aeb504 fds 2021-10-27 22:12:16 +02:00
Aevann1
5bc9ff507c fsd 2021-10-27 20:53:57 +02:00
Aevann1
9503e543c0 tabs 2021-10-21 22:50:15 +02:00
Aevann1
4d9ac24480 gf 2021-10-20 14:00:42 +02:00
Yo Mama
2f09fffa15 fix docker file 2021-10-19 01:20:17 +02:00
Yo Mama
d986784c78 Changes from regex censor v1 2021-10-18 22:46:57 +02:00
Aevann1
80d2571dff dfsfds 2021-10-18 03:26:30 +02:00
Yo Mama
a509b084d9 Merge branch 'master' into regex-censor
# Conflicts:
#	.gitignore
#	docker-compose.yml
#	files/classes/comment.py
#	files/classes/submission.py
#	files/helpers/const.py
#	requirements.txt
2021-10-16 21:29:36 +02:00
Yo Mama
b83e0c6665 Initial working version of word censor 2021-10-16 19:04:08 +02:00