Commit graph

411 commits

Author SHA1 Message Date
Mouse Reeve
d49e9b4dcd Updates packages 2022-02-12 09:41:18 -08:00
Joachim
b27b6a5980 Certain ARIA roles must contain particular children
https://dequeuniversity.com/rules/axe/4.3/aria-required-children

In order to make this work, I had to translate Bulma's style so it doesn't use `ul` and `li` anymore.

The JS code had to be adapted, I also changed `button` to `tab` (seemed like a more relevant name) and added a `scrollIntoView()` on load the active tab is always visible.
2022-02-12 16:14:35 +01:00
Mouse Reeve
ee23aba994 Use details and summary for announcement panel 2022-02-11 13:50:55 -05: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
59b5369654 Updates tests 2022-01-27 18:23:31 -08:00
Joel Bradshaw
284eb620dd Add Source Han font for preview generation to Docker image
Include the license and a README explaining things in the repo itself.

Depending on an external source for this is intended to be temporary,
the goal is to have a Bookywrm-managed source for these, but this should
be stable enough for now.

We build it into the Dockerfile to make it available without adding it
to the git repo itself, because git history is forever and we don't want
to bake large files into the history.

Theoretically it would make sense to gate this download on the
ENABLE_PREVIEW_IMAGES environment variable, but ENV variables aren't
available at Docker image build time (for sensible reasons), so we just
unconditonally download it.

This does mean users will ultimately download it anyway, but the benefit
to doing this over adding it to the git history is that if we switch
fonts, or update this one, or change strategies altogether, this version
of the font will no longer have to be downloaded.

Additionally, the font won't be downloaded until the application is
actually built, which involves a bunch of other downloading (of Docker
images and the like), so it's a reasonable time to do it.
2022-01-24 23:16:14 -08:00
Mouse Reeve
3fc690e763 Calculate and translate unread status counts in view 2022-01-22 17:03:48 -08:00
Mouse Reeve
8a0ea674ea
Merge pull request #1834 from bookwyrm-social/links-display
Improve link filetype and add availability field
2022-01-17 11:08:40 -08:00
Mouse Reeve
4c356cbeb4 Case insensitive suggestions 2022-01-17 10:52:16 -08:00
Mouse Reeve
7b1693a435 Larger file type field 2022-01-17 09:03:53 -08:00
Mouse Reeve
da6e43a7eb Avoid two character wide urls on mobile 2022-01-17 08:22:55 -08:00
Mouse Reeve
2fbbdbc06a Runs prettier 2022-01-12 17:19:34 -08:00
Mouse Reeve
fc06f0cdd1 Avoid console error 2022-01-12 17:08:10 -08:00
Mouse Reeve
34635b0c3f Select trie based on data attr 2022-01-12 17:02:30 -08:00
Mouse Reeve
99ec87c67c Merge branch 'book-file-links' into autocomplete 2022-01-12 16:51:59 -08:00
Mouse Reeve
e6d9895854
Merge branch 'main' into book-file-links 2022-01-12 06:39:22 -08:00
Mouse Reeve
0d7801f6f4 Show unread notifications color 2022-01-11 11:04:56 -08:00
Mouse Reeve
60761b19ba Run prettier 2022-01-10 16:55:30 -08:00
Mouse Reeve
4202498442 Fixes one option trie case 2022-01-10 16:53:30 -08:00
Mouse Reeve
f6d6285009 Updates trie function 2022-01-10 16:44:43 -08:00
Mouse Reeve
2746318152 Uses datalist for autocomplete suggestions 2022-01-10 15:47:40 -08:00
Mouse Reeve
380087da90 Merge branch 'book-file-links' into autocomplete 2022-01-10 15:32:20 -08:00
Mouse Reeve
78dd5caf9f Allow users to report spam links 2022-01-10 14:55:10 -08:00
Mouse Reeve
8ba3a4ab00 Adds link confirmation modal 2022-01-10 11:48:07 -08:00
Mouse Reeve
02feb0d594 Stylelint updates 2022-01-07 14:08:36 -08:00
Mouse Reeve
e5c5dd8f98
Merge pull request #1736 from bookwyrm-social/new-modals-bright-futures
Switch old modals to new modals
2022-01-04 13:31:56 -08:00
Mouse Reeve
cccd28cb74
Merge pull request #1726 from joachimesque/options-panels
Front-end: New look and behavior for Filters and Result panels
2022-01-03 09:23:12 -08:00
Mouse Reeve
49ecd86afe Runs prettier 2022-01-02 07:01:11 -08:00
Joachim
b7eb285f7b Handle modal when it is active on page load 2022-01-01 18:18:23 +01:00
Joachim
cc05e30605 Remove duplicate code 2022-01-01 18:17:11 +01:00
Mouse Reeve
8d72169bbd Don't do fancy javascript clicks on the notification page 2021-12-30 19:48:47 -08:00
Mouse Reeve
ed93eda18d Adds preventDefault to modal js 2021-12-30 19:09:03 -08:00
Mouse Reeve
f993195752
Merge pull request #1725 from joachimesque/book-page-cover-show-modal
Front-end: On book page, click on cover to show/add image
2021-12-30 09:29:43 -08:00
Joachim
dabd1e919d Fix: Display a denser summary book grid and limit big books
Closes #1731
2021-12-30 12:01:28 +01:00
Joachim
cd89271724 Apply review suggestions 2021-12-30 10:43:23 +01:00
Joachim
ce679cec75 Update bookwyrm.css 2021-12-29 21:45:36 +01:00
Joachim
c53b5c306f Lint fix 2021-12-29 20:03:07 +01:00
Joachim
4cb520f242 Front-end: New look and behavior for Filters and Result panels 2021-12-29 19:50:32 +01:00
Joachim
faa52503a3 Update bookwyrm.css 2021-12-29 18:57:45 +01:00
Joachim
3b0096caf0 Add button overlay 2021-12-29 18:55:02 +01:00
Joachim
e5bca3873c Remove useless additoins 2021-12-29 16:41:14 +01:00
Joachim
f12ba8609f Front-end: On book page, click on cover to show/add image
Closes #1009
2021-12-29 16:40:19 +01:00
Mouse Reeve
49e0f9437e Merge branch 'main' into prettier 2021-12-28 16:30:06 -08:00
Mouse Reeve
4b3d2e87a6
Merge pull request #1633 from joachimesque/tidy-header
Front-end: New modal component + header alignment
2021-12-28 16:24:27 -08:00
Joachim
b26d41cefc Update bookwyrm.css 2021-12-28 17:59:01 +01:00
Joachim
b6e90ce2b2 Fix grid on mobile 2021-12-28 17:58:10 +01:00
Joachim
8fd0d5baf0 Fix images stretch 2021-12-28 10:18:40 +01:00
Mouse Reeve
1be164425a Merge branch 'main' into prettier 2021-12-27 13:39:34 -08:00
Mouse Reeve
85486dcfad
Update bookwyrm.css 2021-12-27 13:29:47 -08:00
Mouse Reeve
5afd59f4d4
Merge branch 'main' into summary-review-sharing 2021-12-27 13:19:15 -08:00
Mouse Reeve
c85f881f97
Merge pull request #1691 from joachimesque/2021-in-the-books
Feature: Create annual summary page
2021-12-27 13:15:54 -08:00
Mouse Reeve
935cca2dd7
Merge pull request #1689 from joachimesque/details-fixes
Front-end: Fix Safari details display and enhance dropdown on mobile
2021-12-27 13:00:29 -08:00
Mouse Reeve
3d07618b5f Styling for autocomplete box 2021-12-27 12:42:11 -08:00
Mouse Reeve
e2d1c987b5 Adds autocomplete scrip 2021-12-27 12:41:42 -08:00
Joachim
d4b8aa51f6 lint styles 2021-12-22 16:55:02 +01:00
Joachim
8de2bca2c5 Add + adjust text copy component 2021-12-22 15:13:42 +01:00
Joachim
d9bd7be1ec same 2021-12-21 12:06:57 +01:00
Joachim
7c9995a5e5 Fix EditorConfig linting 2021-12-21 12:02:57 +01:00
Joachim
1fd44aeb5c Style fixes 2021-12-21 11:43:45 +01:00
Joachim
b2f3f03197 Lint style 2021-12-20 23:40:53 +01:00
Joachim
8d64b2d55e Add serif styles 2021-12-20 23:38:18 +01:00
Joachim
c1459dbcf9 Feature: Create annual summary page 2021-12-20 23:37:45 +01:00
Joachim
89713ce685 same but for js 2021-12-17 20:53:06 +01:00
Joachim
b15e0e37fc same 2021-12-17 20:51:41 +01:00
Joachim
9a2a31028b fix linting issues 2021-12-17 20:50:04 +01:00
Joachim
355405daa3 Front-end: Fix Safari details display and enhance dropdown on mobile 2021-12-17 20:40:58 +01:00
Joachim
df8427921b Add alignment rule for button reset 2021-12-17 17:34:22 +01:00
Joachim
f88b511bbf Update bookwyrm.css 2021-12-17 17:32:44 +01:00
Joachim
f300104c4d Add reset button style 2021-12-17 17:29:46 +01:00
Joachim
2544ea12c7 Revert changes on layout 2021-12-17 17:00:10 +01:00
Mouse Reeve
8bda0bc0dc Removes check_all javascript that is no longer used 2021-12-16 11:06:53 -08:00
Mouse Reeve
2b6c9d9d31 Runs prettier 2021-12-16 10:53:38 -08:00
Mouse Reeve
c3a32b3a54
Merge branch 'main' into tidy-header 2021-12-15 10:02:36 -08:00
Joachim
5b8c1bde89 Merge branch 'main' into list-embed 2021-12-08 16:40:15 +01:00
Mouse Reeve
142616b996
Merge pull request #1660 from bookwyrm-social/update-from-remote
Button to manually load remote data for editions and authors
2021-12-07 14:11:06 -08:00
Mouse Reeve
4973e0a010 Adds confirm modal for loading data 2021-12-07 12:32:17 -08:00
Mouse Reeve
857bc6adae
Merge pull request #1635 from hughrun/remote-follow
Remote follow
2021-12-06 14:36:21 -08:00
Mouse Reeve
ba34e11fb0 Fixes auto-closing menu 2021-12-04 12:11:29 -08:00
Mouse Reeve
7050013144 Close menus when the rest of the page is clicked
Ce-authored-by: Joachim <joachim.robert@protonmail.com>
2021-12-04 11:51:57 -08:00
Mouse Reeve
f98fe0348a Fixes merge error 2021-12-04 11:45:02 -08:00
Mouse Reeve
403382e4b4
Merge branch 'main' into detail-menus 2021-12-04 11:30:49 -08:00
Mouse Reeve
56609bbc2b Css linting 2021-12-04 11:18:41 -08:00
Mouse Reeve
c813ce1144 Creates consistent styling for details element 2021-12-04 10:41:42 -08:00
Mouse Reeve
b6106691ef Force dropdown menus to always visible 2021-12-04 09:57:45 -08:00
Mouse Reeve
5b27952b34 Use html details instead of javascript menus 2021-12-04 09:48:55 -08:00
Joachim
57502c1f3c Fix js following review 2021-12-04 16:31:38 +01:00
Joachim
5ffe465a7a Better style for embedded cards 2021-12-04 16:18:11 +01:00
Joachim
b2a274ba41 Add JS code for copy text component 2021-12-04 16:17:33 +01:00
Mouse Reeve
4b55ffe99e
Merge branch 'main' into remote-follow 2021-12-02 12:16:56 -08:00
Mouse Reeve
7eb3de6247
Merge branch 'main' into tidy-header 2021-12-02 12:16:05 -08:00
Mouse Reeve
ed28d5f945
Merge branch 'main' into add-feed-filters 2021-12-02 12:14:54 -08:00
Mouse Reeve
baca5e50e7
Merge pull request #1608 from hughrun/move-shelves
refactor shelf activity on book page
2021-12-02 12:06:07 -08:00
Chad Nelson
66e414be3c Standardize JS, use button, & filter empty authors 2021-11-30 17:22:35 -05:00
Hugh Rundle
9a3ec4362b
code cleanup 2021-11-29 19:45:52 +11:00
Joachim
84b5c2da4e Documentation 2021-11-28 22:10:15 +01:00
Joachim
9ec4ad6b31 Apply review suggestion 2021-11-28 21:46:32 +01:00
Joachim
bf5cb898ef Apply review suggestion 2021-11-28 21:45:35 +01:00
Joachim
3816b0aa57 Better JS 2021-11-28 18:34:54 +01:00
Joachim
a688c73b79 Fix stylelint rule 2021-11-28 18:28:49 +01:00
Joachim
c924f578e5 Fix linting errors 2021-11-28 18:26:01 +01:00