Commit graph

140 commits

Author SHA1 Message Date
FoW ddd13a3e2e Add Korean (ko-kr) to LANGUAGES and locale 2024-02-10 16:17:25 +09:00
Mouse Reeve 381490e31d Adds management command to clear all deleted user data 2024-01-02 10:50:46 -08:00
Mouse Reeve 9b3f4933ac Fixes language code for Ukrainian 2023-12-17 06:57:05 -08:00
Mouse Reeve 5c0e159d43 Adds Ukranian locale and updates locales 2023-12-12 15:42:40 -08:00
Levi Bard ebcacfc6c5 Fix bw-dev initdb 2023-11-09 12:57:45 +01:00
Adeodato Simó b78d51410b
bw-dev: drop use of npm exec by setting PATH in Docker image 2023-10-18 20:37:13 -03:00
Adeodato Simó 6392a8e01d
Merge pull request #2032 from viviicat/bw-dev-npm-fix
Conflicts:
	bw-dev
	dev-tools/Dockerfile
	bookwyrm/static/css/bookwyrm/_all.scss
	bookwyrm/static/css/themes/bookwyrm-dark.scss
	bookwyrm/static/css/themes/bookwyrm-light.scss
2023-10-18 18:54:53 -03:00
Joeri de Ruiter 308dfd1be0 Include Dutch locale 2023-07-23 21:27:42 +02:00
Joeri de Ruiter 75f37d7361 Added mypy to scripts and workflow, and some first annotations for celerywyrm 2023-07-22 13:27:43 +02:00
Wesley Aptekar-Cassels 43b34610a6 Choose installed docker compose command in bw-dev
Docker is removing support for docker-compose, and it doesn't appear to
be possible to install it anymore. Instead, it has been replaced with
compose V2 which is a docker plugin called with 'docker compose' (no
hyphen). See https://docs.docker.com/compose/compose-v2/

Thanks to @Neriderc for noticing this in #2781.
2023-04-11 21:51:31 -04:00
Wesley Aptekar-Cassels 29ac34cb92 Fix help text for bw-dev down 2023-04-06 05:57:21 -04:00
Fredrik Walløe 0495da07a4
Update bw-dev
Added 'down' to list of of commands
2023-04-04 12:08:39 +02:00
Fredrik Walløe b1962ef75d
Added command 'down', to bring down containers
Added the command 'down', which can be used to bring down the docker containers. Equivalent to running 'docker-compose down'
2023-04-01 11:23:27 +02:00
Mouse Reeve 56cc0eb80f Adds Esperanto locale 2023-03-28 15:03:40 -07:00
Mouse Reeve d253a61f02
Merge pull request #2708 from WesleyAC/portable-hashbangs
Use more portable hashbang for dev scripts.
2023-03-12 16:29:10 -07:00
Wesley Aptekar-Cassels cc610372ca Fix dbshell command
dbshell needs to be run in a already-running container, thus exec rather
than run is the correct docker-compose command.
2023-03-09 02:02:56 -05:00
Wesley Aptekar-Cassels abb5dc857e Use more portable shebang for dev scripts
/bin/bash, while common, is not part of the unix standard, and does not
exist on some operating systems (such as NixOS). /usr/bin/env, on the
other hand, is standardized, and thus should exist on all systems.
2023-03-07 13:39:18 -05:00
Mouse Reeve f2a52d4a18 Adds Basque language 2022-12-21 10:30:51 -08:00
Joachim f0dc146005 Merge branch 'main' into disable-remote-users-preview-images 2022-12-19 22:32:30 +01:00
Christof Dorner 8bb5c867eb Add compile_themes to bw-dev 2022-12-19 18:43:16 +01:00
Joachim 09c095cfec Add remove_remote_user_preview_images command 2022-12-17 17:34:27 +01:00
Jascha Urbach ea316627be
Manual email confirm (#2492)
* manual approve email via bw-dev/manage.py

./bw-dev confirm_email USER
(venv) python manage.py confirm_email USER

* add "confirm_email" and "remove_2fa" to autocompletion

* OK, sometimes I feel fooled by this.

The lione was not LONG ENOUGH.

* Change deactivate reason to None

* Whyever this works now

Python in my system is a wondermachine.
2022-12-11 12:35:20 -08:00
Christof Dorner 08d4b2e063 Add eslint subcommand to bw-dev 2022-12-11 20:33:38 +01:00
Jascha Urbach cd57537854
Remove TFA from user
added bookwyrm/management/remove_2fa.py

changed bw-dev
2022-11-15 23:20:21 +01:00
Mouse Reeve e1f6110dc8
Merge branch 'main' into bw-dev-npm-fix 2022-11-14 09:11:16 -08:00
Hugh Rundle bc297d663d fix resetdb
Instead of just whining I thought maybe I should fix the problem.

This replaces a manual reset of the database with deletion of the bookwyrm volumes using docker.

fixes #2276
2022-08-27 19:53:57 +10:00
Mouse Reeve a5c7ca1cfd Removes compilescss command
This does not work and doesn't reflect how the stylesheets are compiled
any longer.
2022-08-07 11:27:52 -07:00
Mouse Reeve f9b772e234 Adds polish locale 2022-08-02 10:59:40 -07:00
Mouse Reeve 5faaa6b750
Merge pull request #2196 from bookwyrm-social/bw-dev-alerts
Block some bw-dev commands from being run in prod
2022-07-26 15:34:40 -07:00
Mouse Reeve d3f35fb691 Adds Catalan 2022-07-15 12:28:31 -07:00
Mouse Reeve 19e0db566c Block some bw-dev commands from being run in prod
Right now, commands that should not be run in production are removed
from the bw-dev file in the `production` branch. Since eventually I'd
like to get rid of that branch, this change would use the `DEBUG`
environment variable to determine if a command should be disabled,
rather than depending on the file available in the branch.
2022-07-07 12:51:09 -07:00
Mouse Reeve afd3b27d78 Adds coverage command to bw-dev 2022-07-06 09:47:33 -07:00
Mouse Reeve 51f445bc72
Merge branch 'main' into bw-dev-npm-fix 2022-06-11 20:39:18 -07:00
Joel Bradshaw b3603c04c5 Add pylint to bw-dev
Because pylint requires the app to be fully parseable with all its
dependencies, we run it in the web container, and add pylint as a dev
dependency.
2022-06-05 14:49:21 -07:00
Mouse Reeve ae86829a7e
Adds Finnish locale (#2069)
* Adds Finnish locale
2022-03-31 08:20:52 -07:00
Mouse Reeve a6ae55608a Adds Romanian locale 2022-03-26 10:03:50 -07:00
Mouse Reeve 184a463097 Comments out build script step in update command 2022-03-17 10:25:03 -07:00
Vivianne Langdon 51bb4c6f5d make bw-dev consistent 2022-03-17 00:50:04 -07:00
Vivianne Langdon dbd5a02617 specify npm prefix and stylelint configs and adjust ignores 2022-03-17 00:50:04 -07:00
Mouse Reeve 78b03efe45 Updates bw-dev command and ticks version number 2022-03-16 12:53:05 -07:00
Mouse Reeve 81b7dca4b9 Merge branch 'main' into celerybeat 2022-03-14 15:13:09 -07:00
Mouse Reeve 0c87ee1d4b Fixes instructions on admin themes view 2022-03-13 11:36:31 -07:00
Vivianne Langdon 822868bf87 fish autocompletions 2022-03-12 04:34:03 -08:00
Mouse Reeve b0c0af9617 Adds custom compile management command 2022-03-04 12:40:06 -08:00
Mouse Reeve 95e9119817 Adds django celery beat 2022-02-26 08:44:19 -08:00
Mouse Reeve c77e5a1a90
Split css (#1959)
Divides the css into sub-files and normalizes how colors are defined.

Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 16:34:17 -08:00
Mouse Reeve 6daaffeaa7
Compiles css framework from sass (#1956)
* Compiles css framework from sass

* Adds watch commands

* Copies existing css to sass file

* Moves sass out of static path

* Removes global linter

I wasn't sure how to customize this, and it's not providing a lot of
additional value on top of the domain-specific linters

* Reverts invalid change to dockerfile

* Changes stylelint path

* Remove unused bulma files

* Properly minifies generated css

* Fixes regression in thread display

* rgba function only works with percents for whatever reason

* Hush stylelint

* Removes trailing zeros

* Compile sass in Django

Co-authored-by: Joachim <joachim.robert@protonmail.com>

* Python formatting

* Updates linter

* Updates commands

* Adds css-config file

Co-authored-by: Joachim <joachim.robert@protonmail.com>

* Stylelint fix

* Removes unused compiled bulma files

Co-authored-by: Joachim <joachim.robert@protonmail.com>
2022-02-19 15:29:47 -08:00
Mouse Reeve 7d68c23ce5 Updates dev tools 2022-02-18 08:48:44 -08:00
Mouse Reeve 92f3357977 Anchor link to dev chat 2022-02-17 15:53:58 -08:00
Mouse Reeve 31d362d715 Adds setup views tests 2022-02-17 14:55:48 -08:00