Commit graph

288 commits

Author SHA1 Message Date
Mouse Reeve d3f35fb691 Adds Catalan 2022-07-15 12:28:31 -07:00
Mouse Reeve 4a82bef9a6 Ticks version number 2022-07-15 12:21:25 -07:00
Mouse Reeve 64bfe5934f Tick version number
This was reported as a security issue, so updating the version number
to indicate where the issue has been fixed.
2022-07-10 09:39:51 -07:00
Mouse Reeve fd5e513ad6 Update password reset copy so as not to reveal whether the email exists
A malicious user could use this to test which email addresses are in the
user database.
2022-07-06 19:34:00 -07:00
Mouse Reeve 62aa4bf869 Tick version number 2022-07-04 13:21:18 -07:00
Mouse Reeve 7320375f0c
Merge branch 'main' into ignore-does-not-exist 2022-06-05 15:41:39 -07:00
Joel Bradshaw 7ae0db7f4a Ignore VariableDoesNotExist errors in debug logging
They're so noisy as to make debug logging useless otherwise
2022-05-30 12:15:50 -07:00
Mouse Reeve 9c03bf782e Make an async request to all search connectors
This is the untest first pass at re-arranging remote search to work in
parallel rather than sequence. It moves a couple functions around
(raise_not_valid_url, for example, needs to be in connector_manager.py
now to avoid circular imports). It adds a function to Connector objects
that generates a search result (either to the isbn endpoint or the free
text endpoint) based on the query, which was previously done as part of
the search.

I also lowered the timeout to 8 seconds by default.
2022-05-30 10:15:22 -07:00
Mouse Reeve 4e0e6ed5a4 Tick javascript cache and version number 2022-05-26 12:49:04 -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 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 c08459cf5d Tick version number 2022-03-13 13:19:40 -07:00
Mouse Reeve 37beb5a8f4 Tick javascript cache buster 2022-03-13 13:19:02 -07:00
Vivianne Langdon 306f177d55 add SASS_PROCESSOR_ENABLED = True 2022-03-12 21:12:25 -07:00
Mouse Reeve b0c0af9617 Adds custom compile management command 2022-03-04 12:40:06 -08:00
Mouse Reeve f7c6c70c5e Ticks version 2022-03-01 12:15:56 -08:00
Mouse Reeve 2a436800c4 Schedules automod task 2022-02-26 10:14:47 -08:00
Mouse Reeve 95e9119817 Adds django celery beat 2022-02-26 08:44:19 -08:00
Mouse Reeve 02808f88e6 eslint fixes 2022-02-25 13:00:23 -08:00
Mouse Reeve 70601612f8
Removes unused dependency (#1965) 2022-02-20 18:42:14 -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 57fd675857 Ticks javscript cache buster 2022-02-19 07:52:05 -08:00
Mouse Reeve 3869f0cc1a Python formatting 2022-02-17 16:28:55 -08:00
Mouse Reeve 9132c054f2 Adds notice to admin about available updates 2022-02-17 16:23:15 -08:00
Mouse Reeve d593a3a503 Sets default USE_HTTPS value based on debug 2022-02-15 13:15:04 -08:00
Mouse Reeve 1761db5444
Merge pull request #1920 from bookwyrm-social/branch-convergence
Moves towards single branch setup
2022-02-12 10:31:55 -08:00
Mouse Reeve 73b611d68d Tick version number 2022-02-04 20:12:26 -08:00
Mouse Reeve 7811a9920e Copy config from prod branch to main 2022-02-04 18:36:12 -08:00
Mouse Reeve a370602903
Merge pull request #1860 from cincodenada/image-generation-add-cjk
Use Source Han Sans for preview images generation (bis)
2022-02-03 11:11:38 -08:00
Mouse Reeve 2c16b8f33b Fix shelf names on books page 2022-02-03 08:44:51 -08:00
Mouse Reeve e9370fe4c9 Fixes name of Swedish locale 2022-02-02 11:43:54 -08:00
Mouse Reeve 40a14a05ad
Merge pull request #1865 from bookwyrm-social/unread-status-translation
Calculate and translate unread status counts in view
2022-01-27 18:47:35 -08:00
Mouse Reeve 047e3a324a
Merge pull request #1855 from bookwyrm-social/instance-default-language
Makes default language configurable
2022-01-27 13:25:12 -08:00
Joel Bradshaw 0c53f4e003 Fix linting and formatting 2022-01-25 01:09:27 -08:00
Joel Bradshaw a1a3aa45f4 Don't log autoload debug
This is just too much
2022-01-25 00:53:15 -08:00
Joel Bradshaw 9e6390662b Download fonts at app startup instead
We can't bake the font into the Docker image as such, because we mount
the volumes which blows away anything we have in the app tree
beforehand.

We could stash it somewhere in the image and then copy it from there on
app startup or something, but at that point we might as well just
download it as part of the app startup.
2022-01-25 00:53:01 -08:00
Mouse Reeve eeee62cd04 Adds Swedish to the app 2022-01-24 09:39:13 -08:00
Mouse Reeve e5c8500547 Updates cache buster 2022-01-22 17:05:31 -08:00
Mouse Reeve e2e5ed9aa3 Makes default language configurable 2022-01-20 16:04:42 -08:00
Mouse Reeve 9e450f2d99
Merge pull request #1802 from cincodenada/configurable-logging
Make log level configurable, override default logging config
2022-01-18 07:39:43 -08:00
Joel Bradshaw 27acf668df Add the required bits for Django's logger
So, you can't define handlers piecewise, and if you redefine a logger,
you have to also include everything it uses, because your "new" logger
doesn't have a reference to the original logging config to get things
like mail_admins and require_debug_false.

require_debug_true isn't strictly necessary here, but it seemed strange
to just copy over one of them.
2022-01-17 15:56:24 -08:00
Mouse Reeve 4c356cbeb4 Case insensitive suggestions 2022-01-17 10:52:16 -08:00
Mouse Reeve 0c2537e27a
Merge pull request #1527 from bookwyrm-social/book-file-links
Book file links
2022-01-13 11:10:05 -08:00
Mouse Reeve 0d12d82c12
Merge pull request #1818 from iamruinous/support-redis-db
add support for different redis db
2022-01-13 08:42:00 -08:00
Jade Meskill 900937ee5f
use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
Jade Meskill 6490c1eded
use correct environment variable for EMAIL_SENDER_DOMAIN 2022-01-12 21:49:57 -07:00
Jade Meskill 3638e18844
add support for different redis db 2022-01-12 19:44:11 -07:00
Mouse Reeve 0d7801f6f4 Show unread notifications color 2022-01-11 11:04:56 -08:00
Mouse Reeve 8ba3a4ab00 Adds link confirmation modal 2022-01-10 11:48:07 -08:00
Mouse Reeve 6b0967df39 Show related books in links preview 2022-01-10 11:03:10 -08:00
Joel Bradshaw 5cf1d8a30a Make it black 2022-01-09 23:53:23 -08:00
Joel Bradshaw 085dd24a62 Simplify and explain our overrides
This should also fix the 500s-in-prod issue, yay
2022-01-09 23:49:14 -08:00
Joel Bradshaw 83851c2933 Add bookwyrm-specific logging 2022-01-09 23:49:14 -08:00
Joel Bradshaw af3c84cd87 Add basic logging config 2022-01-09 23:49:14 -08:00
Mouse Reeve 4931e5cad2 Merge branch 'main' into book-file-links 2022-01-09 13:15:58 -08:00
Mouse Reeve 6492ca2941
Merge pull request #1769 from joachimesque/thumbnail-generation-strategy
Change thumbnail generation strategy
2022-01-09 12:34:42 -08:00
Joachim 734da71037 Remove backend setting 2022-01-09 10:36:06 +01:00
Mouse Reeve 16a58ae079 Merge branch 'main' into book-file-links 2022-01-08 16:58:37 -08:00
Mouse Reeve ac1787ce6b Merge branch 'main' into new-languages 2022-01-08 16:54:31 -08:00
Joachim 656e0b84eb Fix 2022-01-08 17:42:25 +01:00
Joachim a54995eb9d Add new complete strategy 2022-01-08 17:41:44 +01:00
Mouse Reeve 02a963c4ef Adds locales to application 2022-01-08 07:38:14 -08:00
Mouse Reeve 7e1a4bc363 Ticks version number 2022-01-07 10:32:40 -08:00
Mouse Reeve 47c79afd75
Merge pull request #1770 from bookwyrm-social/email-config
Configure email sender from .env file
2022-01-07 10:23:50 -08:00
Mouse Reeve b18c69e186 Make search timeouts configurable 2022-01-07 07:42:05 -08:00
Mouse Reeve cf57891482 Python formatting 2022-01-06 11:50:51 -08:00
Mouse Reeve 4d0fa2db4a Dummy cache for tests 2022-01-06 11:40:27 -08:00
Mouse Reeve 99a5924ea8 Not bool 2022-01-05 17:36:52 -08:00
Mouse Reeve 2fed188862 Configure email sender from .env file 2022-01-05 17:35:42 -08:00
Mouse Reeve d8dbf94c29 Fixes cache syntax 2022-01-05 10:16:49 -08:00
Mouse Reeve 2cad762646 Use in-memory cache for CI tests 2022-01-05 09:51:00 -08:00
Mouse Reeve e6f7828361 Python formatting 2022-01-05 09:30:54 -08:00
Mouse Reeve 629140cad4 Adds redis cache backend 2022-01-05 08:27:31 -08:00
Joachim f141777d52 Change thumbnail generation strategy 2022-01-05 11:54:49 +01:00
Mouse Reeve 557acd40ad Fixes locale names 2022-01-04 14:34:22 -08:00
Mouse Reeve d8c682fb2b Adds Portuguese to the language list 2022-01-04 13:30:08 -08:00
Mouse Reeve 7eb8d027c4
Merge pull request #1722 from cincodenada/no-more-fedireads-main
Remove last traces of fedireads, but in main
2021-12-29 09:32:43 -08:00
Joel Bradshaw 9d1db3f67c Remove last traces of fedireads 2021-12-28 16:49:32 -08:00
Mouse Reeve 86e8d36b25 Adds annual review translations for Galician and Spanish 2021-12-28 07:02:52 -08:00
Mouse Reeve 5d47f33972 Tick version number 2021-12-16 10:29:08 -08:00
Mouse Reeve e19fe3321b Javascript cache buster 2021-12-04 14:47:06 -08:00
Mouse Reeve 9961a08c93 Adds Galician locale 2021-11-17 10:02:39 -08:00
Mouse Reeve 7d66013b52 Adds Lithuanian to the user options 2021-11-15 10:26:00 -08:00
Mouse Reeve b84152d84b tick version number 2021-10-15 09:42:21 -07:00
Mouse Reeve 2f40394c0a Updates edited display 2021-10-15 09:41:29 -07:00
Mouse Reeve c1287f800e
Merge pull request #1529 from scientia-ac-labore/add_sort_books
Add sorting to shelf. Use table-sort-header
2021-10-14 15:46:08 -07:00
Faiazov Dmitrii ce16f36fe8 Add sorting to shelf. Use table-sort-header
existing template.

Signed-off-by: Faiazov Dmitrii <jjsolutions0110@gmail.com>
2021-10-13 21:25:40 +03:00
Mouse Reeve 4384098292 Updates Spanish locale 2021-10-11 12:17:39 -07:00
Mouse Reeve 58ba1ddf87 Typo fix 2021-10-11 10:07:02 -07:00
Mouse Reeve 69110497ae Adds Brazilian Portuguese locale 2021-10-11 09:23:28 -07:00
Mouse Reeve 674aa484fd Use target language in choice list 2021-10-06 16:58:27 -07:00
Mouse Reeve 26de524247 Update language on login and edit preference 2021-10-06 13:01:29 -07:00
Mouse Reeve 4c539bc7eb Fixes image paths in endpoints 2021-10-06 08:49:07 -07:00
Mouse Reeve 29ee99c03e Styles for the thread page 2021-10-01 18:05:48 -07:00
Mouse Reeve cd54770aad Tick javascript cache buster 2021-09-29 11:12:26 -07:00
Mouse Reeve 41d34c6d4b Correctly use custom postgres ports 2021-09-22 08:13:31 -07:00
Mouse Reeve ea303fb285 Updating string format synatx part 3 2021-09-20 16:45:26 -07:00
Mouse Reeve cf3157a3b5 Merge branch 'main' into pylint-update 2021-09-20 16:31:27 -07:00
Mouse Reeve 293962326c Tick javascript hash 2021-09-18 14:32:30 -07:00
Mouse Reeve 08f6a97653 Python formatting 2021-09-18 11:33:43 -07:00
Mouse Reeve be86fbcf4d Merge branch 'main' into pylint-update 2021-09-18 07:46:12 -07:00
Mouse Reeve 377a4e1ef1 Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
Mouse Reeve 16854a52bc Adds ip block middleware 2021-09-17 11:47:46 -07:00
Mouse Reeve 252fff8bfe Create middleware directory 2021-09-17 11:31:19 -07:00
Mouse Reeve a13d3317c6 Bust javascript cache 2021-09-12 11:46:51 -07:00
Mouse Reeve a4e6f610cd Adds javascript cache value to templates 2021-09-10 10:57:16 -07:00
Mouse Reeve 37dcae4558 Simply celery settings 2021-09-07 14:02:03 -07:00
Joachim 6a365eafb4
Merge branch 'main' into images-django-imagekit 2021-08-06 19:16:01 +02:00
Mouse Reeve 9d75bc3982 Display books timeline 2021-08-04 17:53:44 -07:00
Mouse Reeve 5a9dbc50da Adds books stream 2021-08-04 17:25:31 -07:00
Mouse Reeve af34dc6520
Merge branch 'main' into images-django-imagekit 2021-08-02 13:43:59 -06:00
Joachim d70469d2e0 Better .env vars defaults 2021-08-01 11:47:39 +02:00
Joachim 3ea1bcb256
Merge branch 'main' into storage-s3 2021-07-05 13:06:19 +02:00
gra-ch b720740762 Add Tranditional Chinese translation 2021-06-30 13:54:56 +08:00
Joachim e251b687dc Merge remote-tracking branch 'upstream/main' into images-django-imagekit 2021-06-19 19:32:56 +02:00
Joachim dee63d8825 Rename MEDIA_PATH to MEDIA_FULL_URL and handle protocol 2021-06-19 17:09:53 +02:00
Joachim d862be0564 Merge remote-tracking branch 'upstream/main' into storage-s3 2021-06-19 11:53:05 +02:00
Mouse Reeve 973b23856c
Merge branch 'main' into opengraph-image-generation 2021-06-17 15:17:54 -07:00
Joachim 689fefb096 Merge remote-tracking branch 'upstream/main' into storage-s3 2021-06-08 18:20:57 +02:00
Mouse Reeve 948a5dea10 Cleans up .env and settings files
Some outdated stuff doesn't need to be in there
2021-06-07 12:53:57 -07:00
Joachim d105ae9c78 Merge remote-tracking branch 'upstream/main' into images-django-imagekit 2021-06-07 19:53:11 +02:00
Joachim 2731ea9aa9 Add env var to enable/disable thumbnail generation 2021-06-07 19:52:25 +02:00
Joachim f287a19f12 Update settings.py 2021-06-07 18:31:01 +02:00
Joachim 715cb46e1e Lint 2021-06-07 18:15:48 +02:00
Joachim cba34780d8 Use S3 as static and media storage
TODO

- [ ] Write some documentation for non-AWS, S3-compatible services
- [ ] Make a management command to move existing media to the new S3 bucket
- [ ] See if Nginx can reverse-proxy the S3 bucket in order to keep the files accessible through the domain name
2021-06-07 18:12:48 +02:00
Joachim 1f2c296cfd This should now work 2021-06-06 21:12:21 +02:00
Mouse Reeve 4ea672f2a1
Merge pull request #1157 from bcj/bcj/urlencode-redis-password
URL-Encode password in broker_url
2021-06-05 12:51:25 -07:00
Mouse Reeve bbbae9fc9d
Merge branch 'main' into images-django-imagekit 2021-06-05 11:46:57 -07:00
Joachim cd7c0ccaea Enable env on GitHub Actions 2021-05-29 15:51:56 +02:00
Joachim fbb262fe88 Try logging output 2021-05-29 13:44:43 +02:00
Joachim f206f61e9a Use global switch to enable/disable preview images 2021-05-28 17:00:07 +02:00
Joachim f848dcd756 Fix issue with protocol 2021-05-26 18:20:22 +02:00
Joachim e362c82495 Expose static & media paths 2021-05-26 17:54:59 +02:00
Joachim eb56cced8d Lint 2021-05-26 14:46:34 +02:00
Joachim 65de40a95a Add generate_preview_images command 2021-05-26 13:52:10 +02:00
Joachim b47edc5f0d Add dark mode 2021-05-26 13:07:33 +02:00
Joachim dca0888d5d Thank you Black 2021-05-25 23:05:38 +02:00
Joachim fa7334826c Update 2021-05-25 23:04:28 +02:00
Joachim d1737b44bd First functioning commit
TODO

- [ ] Delay task (Celery?)
- [ ] Store the image in a subfolder unique to the edition, to make cleaning up the image easy
- [ ] Clean up the image before replacing it
- [ ] Ensure that the image will be cleaned when the edition is deleted ??
- [ ] Use instance custom colors?
- [ ] Use book cover color base?
2021-05-25 00:41:53 +02:00
Joachim 77e81c4dbb Add django-imagekit to BookWyrm 2021-05-24 16:14:51 +02:00
bcj 31deb36c85 URL-Encode password in broker_url
Needed to prevent connection errors if the password contains non-urlsafe characters.

Dockerfile change because all the services using it are mirroring ./ in /app now anyway.
Flower needs because it needs bookwyrm in order to read the celerywyrm config (because flower only allows overwriting broker_url from the command line and we want to do it in Python so we have access to a urlencode function).
2021-05-23 23:49:12 -05:00
Jason Kelly c9617c4bd3 Added EMAIL_BACKEND to env settings to be able to use console backend in local dev. 2021-05-23 14:09:13 +08:00
bcj 213a9508d8 Don't hardcode postres port in bookwyrm.settings
Have bookwyrm.settings check for an alternative postgres port.
2021-05-18 18:35:32 -05:00
Mouse Reeve b4ae639dab Imports bookwyrm settings into celery settings
It was redundant and super bug-prone!
2021-05-10 14:20:27 -07:00
Mouse Reeve b1c38d291c Set preferred language 2021-04-29 10:40:49 -07:00
Mouse Reeve cd869dde09 Fixes tests of bookwyrm abstract model 2021-04-26 11:28:33 -07:00
Mouse Reeve 141d1a9a17 Adds auto field setting to avoid hella warnings 2021-04-26 11:22:08 -07:00