Go to file
mummified-corroding-granny 786ba6aa56 moved toggleelement to register_new_elements() (#111)
We currently cannot see (toggle the dropdown/button) reports that are hidden behind the "show more" (comments) button. This PR fixes that.

Example of what is happening without this PR:
1. open megathread. The thread is long includes hundreds of comments implying need to click "show more" (comments) button
2. without clicking any "show more" (comments) button, click the flaggers button on one of the first comments
3. flaggers are presented as expected
4. click the "show more" (comments) button at the end
5. click the flaggers button on one of the comments that was hidden behind the "show more" (comments) button
6. the button does nothing and has no event listenner associated

With this PR:
1. all flaggers buttons work regardless if hidden behind "Show More" (comments) or not. Tested up to two "Show More" (comments) buttons

I did the PR this way because the view_more button calls register_new_elements() and not bottom.js as a whole

There are other things using data-toggleelement like the undelete button on comments and the Preview button on /submit. Both of those still work as expected

Reviewed-on: #111
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-06 02:07:18 +00:00
files moved toggleelement to register_new_elements() (#111) 2023-02-06 02:07:18 +00:00
migrations rename file 2023-02-01 21:07:15 +02:00
.gitattributes convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
.gitignore remove node shit 2023-01-21 02:14:36 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-01-31 15:29:51 -08:00
Dockerfile add chat script for convenience to me 2023-01-28 16:41:37 +02:00
LICENSE convert LICENSE to tabs 2022-12-06 15:34:09 +02:00
docker-compose.yml uncomment psql logging 2023-01-28 16:41:05 +02:00
env_template refactor donation code 2023-02-01 21:49:39 +02:00
gunicorn.conf.py remove redundant gunicorn conf 2023-01-20 08:18:36 +02:00
imei.sh use magick command 2022-12-16 23:21:47 +02:00
nginx-headers.conf make http://localhost work 2023-01-02 05:13:53 +02:00
nginx-serve-static.conf move CSP to nginx again 2022-12-31 08:38:59 +02:00
nginx.conf remove /admin/chat for being unused and redundant to /contact 2023-01-30 11:57:00 +02:00
pg_hba.conf mn 2022-05-05 01:09:46 +02:00
readme.md restore my previous env structure, fuck off @everyone 2023-01-24 08:01:16 +02:00
requirements.txt fix underscores inside links 2023-01-27 11:11:13 +02:00
schema.sql sneed 2023-01-29 16:00:10 +00:00
seed-db.sql sneed 2023-02-05 20:00:13 +00:00
snappy_event_WPD.txt replace fistmas with christmas in snappy quotes 2022-12-25 19:17:15 +02:00
snappy_event_rDrama.txt replace fistmas with christmas in snappy quotes 2022-12-25 19:17:15 +02:00
snappy_rDrama.txt sneed 2023-02-04 20:00:16 +00:00
startup.sh add '#!/bin/bash' to all .sh files 2023-01-20 08:19:38 +02:00
startup_chat.sh remove node shit 2023-01-21 02:14:36 +02:00
startup_docker.sh fix 500 error on disconnect chat 2023-01-23 02:42:30 +02:00
startup_docker_chat.sh add chat script for convenience to me 2023-01-28 16:41:37 +02:00
supervisord.conf add nginx to docker 2022-10-04 21:48:52 +02:00
ubuntu_setup.sh restore my previous env structure, fuck off @everyone 2023-01-24 08:01:16 +02:00

readme.md

This code runs https://rdrama.net and https://watchpeopledie.tv

Installation (Windows/Linux/MacOS)

1- Install Docker on your machine. Docker installation

2- Run the following commands in the terminal:

git clone https://fsdfsd.net/rDrama/rDrama.git

cd rDrama

cp env_template .env

docker-compose down --rmi all --remove-orphans --volumes

docker-compose up

3- That's it! Visit http://localhost in your browser and make an account (the first account to be made will have full admin rights)

4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the .env file and then restart the docker container.