Commit graph

61 commits

Author SHA1 Message Date
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
9d088cf93c Add volunteer frequency histogram code. 2023-06-12 21:16:21 -05:00
Snakes
1647b4cf20
Update dotenv support to make operative (#564)
b46ada9f72 added support for dotenv files to be loaded in lieu of
actual environment variables. This code has since been neglected across
infrastructure changes that removed the need for an env file, moved
its location, and changed dependency management style.

This won't be operative in production (and already isn't, since there'd
be an ImportError on 'dotenv' if so) but makes some local testing
setups more convenient.
2023-03-29 21:59:34 -05:00
FatherInire
b46ada9f72
Fix some deprecations and factor out a helper function (#387) 2022-10-27 22:15:48 -05:00
Ben Rog-Wilhelm
1404ffd762
Fix: .gitignore ignores a critical file. 2022-05-14 02:13:08 -05:00
FatherInire
a12123ca01
Initial e2e testing
Authored by @FatherInire
2022-05-13 02:55:29 -05:00
Aevann1
9895ca2110 fsd 2022-04-29 16:02:52 +02:00
Aevann1
97bf54c0d6 fds 2022-04-20 17:58:52 +02:00
Aevann1
07d782581d fsd 2022-04-16 17:05:33 +02:00
Aevann1
ce48cc7282 fsd 2022-04-12 21:09:15 +02:00
Aevann1
265a13a601 site settings 2022-04-12 21:05:50 +02:00
Aevann1
ccacd78fa8 fart mode 2022-04-12 19:29:52 +02:00
Aevann1
24fa3fa105 verified 2022-02-26 20:29:00 +02:00
Aevann1
9213f0dbeb fd 2022-02-26 17:57:13 +02:00
Aevann1
d4a33c06ce bv 2022-02-08 16:49:49 +02:00
Aevann1
65122c970b vcxvcx 2022-01-28 05:22:31 +02:00
Aevann1
f7bb016f50 chaos unfolds 2022-01-22 16:08:14 +02:00
outruncolors
2a4818177a
Slots (#175)
* Initial commit.

* Changes

* Remove dead code

* Remove dead code

* Remove dead code

Co-authored-by: Outrun Colors, LLC <outruncolors@gmail.com>
Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-01-22 04:52:23 -08:00
Aevann1
0266a26084 fdsfs 2022-01-21 14:06:26 +02:00
Aevann1
f26c74a3ae bbb 2022-01-14 08:47:14 +02:00
Aevann1
691ed4df87 bb 2022-01-13 03:22:12 +02:00
Aevann1
1bea9edf79 under attack 2022-01-09 17:15:02 +02:00
Aevann1
f71c8026de sfdsd 2021-12-21 01:42:16 +02:00
Aevann1
75db411520 fdsfsd 2021-12-17 06:46:39 +02:00
Aevann1
d6b8cad2de fsdfds 2021-12-17 06:46:30 +02:00
Aevann1
3ab59c7068 fsdfsd 2021-12-17 06:46:05 +02:00
Aevann1
7c4c2315a1 dsfsf 2021-12-15 23:14:52 +02:00
Aevann1
1e74386573 fdsfsd 2021-12-15 02:10:27 +02:00
Aevann1
628618df89 fdsfsd 2021-12-14 00:28:19 +02:00
kek7198
f8fb59c410 Merge branch 'master' into mistletoe 2021-12-12 11:06:57 -06:00
Aevann1
86cba7a01f fdsdfs 2021-12-12 18:39:17 +02:00
kek7198
b398a378a4 Merge branch 'master' into mistletoe 2021-12-11 11:40:21 -06:00
Aevann1
1b2d2e96be fsdfsd 2021-12-11 19:38:16 +02:00
kek7198
b3579dd596 Merge branch 'master' into mistletoe 2021-12-09 14:40:45 -06:00
Aevann1
8805bf72ea fdfsdsd 2021-12-09 22:12:21 +02:00
fireworks88
c67bf28236 tailwind 2021-11-25 22:47:51 +01:00
Aevann1
8a0953be8a dsfsdf 2021-10-29 19:59:22 +02:00
Aevann1
300619328a bruh 2021-10-25 16:47:19 +02:00
Yo Mama
b83e0c6665 Initial working version of word censor 2021-10-16 19:04:08 +02:00
Aevann1
3116f8141d fdsfds 2021-10-08 15:09:51 +02:00
Aevann1
49c40e972e sneed 2021-10-07 00:31:20 +02:00
Aevann1
7b3591534f dfssf 2021-10-03 21:10:44 +02:00
Aevann1
65bc7c83f8 fdsfds 2021-10-03 21:05:59 +02:00
Aevann1
54918cdddb sneed 2021-10-01 08:53:23 +02:00
Aevann1
4bd9185cf0 blah blah blah 2021-09-24 21:53:58 +00:00
Aevann1
a4cdf18ad3 dfs 2021-09-20 15:11:10 +02:00
Aevann1
d51fc9382d force push 2021-09-13 14:57:31 +02:00
Aevann1
d3167f09bd gf 2021-09-12 03:41:48 +02:00
Aevann1
fe5171be87 fd 2021-09-12 03:19:56 +02:00
Aevann1
a685a21233 sneed 2021-09-11 18:19:56 +02:00