1
0
Fork 0
Commit graph

226 commits

Author SHA1 Message Date
2d4b11aaee
Adding FictionBook format ("FB2", "FB3") to autocomplete options in "Get a copy" block. 2024-01-25 01:50:10 +03:00
25e8b259f7 Show/Hide password icon 2023-10-18 21:33:37 +05:30
d55e0b6ba3
Final JS update to match 'es5' trailing comma style
This is  follow-up to cd247a668 ("Update .prettierrc").
2023-10-17 17:11:59 -03:00
4d352faae3
Merge branch 'main' into prettier-trailing-comma 2023-10-17 19:31:24 +02:00
0f79aea36f
introduce .prettierrc
With this pullrequest I introduce .prettierrc with one rule:
'trailingComma': 'none'
2023-10-14 17:52:58 +02:00
97adf2f7fd
I changed my own comments to get rid of this warning which I could have better written in the first place. 2023-10-14 17:21:15 +02:00
FoW
d8ba1f4309 Correct EPUB spelling 2023-09-08 22:52:11 +09:00
axiomizer
3ca36fef4d Make copy button screen reader friendly
revert last commit because prettier was run with the wrong version
This reverts commit 5d3883c9a0.
2023-08-01 22:56:05 -04:00
axiomizer
5d3883c9a0 run prettier on bookwyrm.js 2023-08-01 08:09:10 -04:00
axiomizer
9a30a3656a satisfy js linter 2023-07-22 22:34:10 -04:00
axiomizer
1bda8a5d9d Revert part of "Hyphenate ISBN numbers and add copy button" related to hyphenation
This partially reverts commit d2c4785af1.
2023-07-22 14:25:58 -04:00
axiomizer
d2c4785af1 Hyphenate ISBN numbers and add copy button 2023-07-21 21:27:46 -04:00
1841d196ff
Ensure report button triggers modal
Clicking on "report" in any context closed the dropdown menu and required a second click on the dropdown to trigger the modal.
With this change, the modal opens as expected.

Reverses part of #2322
2023-06-26 12:22:14 +10:00
Josh Soref
e5663f97c5 spelling: remove
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
182a722a55 spelling: recurring
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
43ad3d0c15 Improve polling algorithm
The existing polling code had a few problems:

* It started the timer for a new request when the first request was
  sent, rather than when a response was received.
* It increased the delay regardless of whether the response was a
  success or a failure.

This commit changes it to a more standard exponential backoff system,
where it starts with a 5 minute ± 30 second delay, and uses that same
delay until it hits an error, at which point the delay is increased by
10%. Once it receives a successful response again, the delay is reset to
the default.

I suspect this should be nicer on the server, since it avoids the
initial sending of many requests. After about half an hour of leaving
the page open, the request rate for this new code will be higher than
that of the old code, so it's possible that this may cause problems, but
I think that a five-minute request frequency should be pretty reasonable.
2023-03-07 13:15:52 -05:00
105144a026
New approach: Event Delegation
This works as follows:

The div where the input fields for the subjects live got an id. The script now listens to all keypresses in this div, but only does something if it is within an INPUT field. If it is an INPUT field within this div, it looks for keyCode 13. If it is 13, preventDefault() is triggered.  Else nothing happens.
2022-12-20 11:36:14 +01:00
259ceeea21
./bw-dev prettier 2022-12-20 00:06:02 +01:00
e4892701d8
Update forms.js
Now it works in the correct fields.
2022-12-19 23:57:00 +01:00
64968c3081
Update forms.js
fixes #2519
2022-12-18 22:28:05 +01:00
Christof Dorner
13b262bb7b Detect preferred timezone via JavaScript on register 2022-12-11 23:32:07 +01:00
Vivianne Langdon
c2b447cf49 lint 2022-11-26 12:19:37 -08:00
Vivianne Langdon
c4398ff187 make use of templates instead of hidden divs which is more elegant 2022-11-26 12:14:48 -08:00
Olivier Brencklé
cfaec434c0 🚸 Close dropdown when opening modal item 2022-10-28 13:15:53 +02:00
d1180d4216 linting fix for linting fix 2022-07-03 17:24:33 +10:00
b82cf887e2 linting fixes 2022-07-03 17:14:13 +10:00
f8e51b5826 format guided tour js with prettier 2022-07-03 16:24:34 +10:00
d1079a1f7d remove console log from guided_tour.js 2022-07-02 18:44:18 +10:00
57965973dc make guided tour cancel button DRY
Move cancel button function into a separate JS file.
The selector JS for this function cannot be within bookwyrm.js because the guided tour elements load after bookwyrm.js.
2022-06-18 13:27:00 +10:00
2030dc834f clean up tour files 2022-06-13 16:48:49 +10:00
e768cf49a3 add barcode reader to home feed tour 2022-06-12 20:11:21 +10:00
c614aeb28e add shepherd tours
This file creates and triggers tours using shepherd.

Initially this is a tour on the home feed page, triggered by clicking on the help button in the top nav.
2022-06-12 19:43:21 +10:00
b6cd64f82a add Shepherd version 10.0.0 2022-06-11 14:19:03 +10:00
74925a379a Prettier 2022-05-26 12:54:31 -07:00
4905652e22 Handle stopped reading special case in javascript
This should be refactored, but maybe not today
2022-05-26 12:23:13 -07:00
35e6dede09 Script to remove input fields 2022-03-14 12:41:41 -07:00
bfb8fc800a Moves duplicate field script into its own file 2022-03-14 10:59:24 -07:00
Vivianne Langdon
c0fed31fb0 eslint 2022-02-28 21:28:33 -08:00
Vivianne Langdon
62b4133e58 Move quagga to vendor. 2022-02-28 21:22:49 -08:00
Vivianne Langdon
fbe7e860e8 Prettier 2022-02-27 14:01:25 -08:00
Vivianne Langdon
f5c66b5b4a Adjust layout more
Ensure camera select box is never hidden.
2022-02-27 00:33:54 -08:00
Vivianne Langdon
43f62ef5d7 d'oh, fix event leak 2022-02-27 00:18:38 -08:00
Vivianne Langdon
9f67a74340 Show grant access dialog every time we initialize 2022-02-27 00:04:25 -08:00
Vivianne Langdon
e71a5e3bdf Add barcode icon and use other icons
Minor formatting and messaging tweaks
2022-02-27 00:00:22 -08:00
Vivianne Langdon
cdddf73e29 Improve layout for some camera types 2022-02-26 23:22:44 -08:00
Vivianne Langdon
464050deaa Implement switching cameras
Also, use session storage to remember last selected camera deviceId, if any
2022-02-26 21:32:01 -08:00
Vivianne Langdon
8d0e549480 Improve visuals and quality of scanning 2022-02-26 20:19:26 -08:00
Vivianne Langdon
649ffe571a Fix typos with searching 2022-02-26 18:29:38 -08:00
Vivianne Langdon
48c8166e58 Merge branch 'main' into code-scanning 2022-02-26 17:54:33 -08:00
02808f88e6 eslint fixes 2022-02-25 13:00:23 -08:00