Commit graph

3513 commits

Author SHA1 Message Date
Fabien Basmaison
1c05107f2b [assets] Tweak comments. 2021-04-07 07:53:30 +02:00
Mouse Reeve
922428cab7 Fixes error in reverse path 2021-04-06 18:51:43 -07:00
n2no1
31146b00e4 import MultiValueDictKeyError to catch with formcopy 2021-04-06 21:40:15 -04:00
Mouse Reeve
29e7659b76 Expand inventaire book data 2021-04-06 18:34:55 -07:00
Mouse Reeve
fec3d63e46 Python formatting 2021-04-06 18:17:33 -07:00
Mouse Reeve
ac27111f05 Adds inventaire to default connector list 2021-04-06 18:13:33 -07:00
Mouse Reeve
f21aca1211 Load remote keys 2021-04-06 18:10:42 -07:00
n2no1
51e16fba97 run black, add a try/catch around the formcopy fix 2021-04-06 21:01:57 -04:00
Mouse Reeve
4112862924 Fixes search data and new activitypub fields 2021-04-06 18:00:54 -07:00
n2no1
0941c50c69 ensure that the book edit confirmation receives initial date data as a datetime 2021-04-06 20:46:18 -04:00
Mouse Reeve
82c2f2eeb1 Adds more author identifier fields 2021-04-06 17:46:06 -07:00
n2no1
502f29082c check the form for initial date values if the book has none 2021-04-06 19:57:57 -04:00
Mouse Reeve
99d09e3a70
Merge pull request #891 from tofuwabohu/main
Replaces user link
2021-04-06 13:56:06 -07:00
Mouse Reeve
bfdcf611e7 Adds inventaire identifier to book data fields 2021-04-06 13:54:57 -07:00
Mouse Reeve
e594cd0a36 Load simple fields from inventaire 2021-04-06 13:53:58 -07:00
Mouse Reeve
3158701075 Gets editions for works 2021-04-06 13:39:10 -07:00
tofuwabohu
1f99710dcd Links to own user in menu 2021-04-06 22:36:24 +02:00
tofuwabohu
178ff2400f
Merge pull request #5 from mouse-reeve/main
update
2021-04-06 22:34:05 +02:00
Mouse Reeve
5149c7e8c2 Expands mappings for inventaire/wikidata properties 2021-04-06 13:03:22 -07:00
Mouse Reeve
22ebe60c0a Use custom data extractor for inventaire connector 2021-04-06 12:29:06 -07:00
Mouse Reeve
fba44206ac Adds separate view and load links for book search results 2021-04-06 12:17:58 -07:00
Mouse Reeve
d482c66ad4 Adds inventaire connector stub
And changes formatters to accept the key as well as value
2021-04-06 11:58:07 -07:00
Mouse Reeve
295842badd Adds inventaire id to book data model 2021-04-06 10:40:39 -07:00
Mouse Reeve
f30d05acfc Update connector model to add new connector 2021-04-06 10:40:13 -07:00
Fabien Basmaison
44040201f9 [assets] Move interact function. 2021-04-06 17:57:39 +02:00
Fabien Basmaison
9d95f54aa2 [assets] Refactor toggleAction and toggleMenu a bit. 2021-04-06 17:48:56 +02:00
Mouse Reeve
b96a092e71
Merge pull request #879 from mouse-reeve/redis-stores
Created generic redis class for activitystreams
2021-04-06 08:27:21 -07:00
Mouse Reeve
fd66ff1861 Small tweaks to commends and super() calls 2021-04-06 07:53:34 -07:00
Fabien Basmaison
a21f954fb1 Remove redundant class attribute and format template. 2021-04-06 16:29:58 +02:00
Fabien Basmaison
52d2f0e331 [assets] Document functions and variables:
- Use expressive names for variables.
- Add docblocks for each function.
- Add ESLint rules for comments.
2021-04-06 16:17:20 +02:00
Fabien Basmaison
5d3d00f694 [assets] Use dataset + use expressive names for some variables. 2021-04-06 15:36:34 +02:00
Fabien Basmaison
d6ee136c10 [assets] Allow to run ./bw-dev collectstatic every time a change occurs in bookwyrm/static. 2021-04-06 11:54:45 +02:00
Fabien Basmaison
62fe2ef600 [assets] Replace inline events with addEventListener; this breaks sliding menu. 2021-04-06 11:37:23 +02:00
Fabien Basmaison
7e49b3cb26 [assets] Simplify addRemoveClass function. 2021-04-06 11:19:44 +02:00
Fabien Basmaison
70c652d565 [assets] Add rules to ESLint:
- Fix long line.
- Enforce a few stylistic habits:

    - Avoid some potential dangerous constructs.
    - `arrow-spacing`: Use at least one space around arrows.
    - `keyword-spacing`: Use at least one space around keywords (if, else, for…).
    - `no-multiple-empty-lines`: Only use one empty line between code.
	- `no-var`: Use `let` or `const` instead of `var`:
    - `padded-blocks`: Do not pad blocks.
    - `padding-line-between-statements`: Use empty lines between some statements.
    - `space-before-blocks`: Use at least one space before the opening brace of a block.
2021-04-06 10:42:52 +02:00
Fabien Basmaison
991d897ac7 [assets] Listen to events as soon as possible. 2021-04-06 09:57:52 +02:00
Fabien Basmaison
2f2f7db086 [assets] Use classes for JS files:
- Classes strictly parse code implicitly.
- Fix previously updated code.
2021-04-06 09:44:59 +02:00
Fabien Basmaison
f430363be0 [assets] Simplify a function expression. 2021-04-06 09:11:56 +02:00
Fabien Basmaison
f6c3e581b9 [assets] Replace Array.from(document.getElementsByClassName(…)) by querySelectorAll(…). 2021-04-06 09:11:27 +02:00
Fabien Basmaison
6b0a3ce4b1 [assets] Move localStorage chunks of code to their own file:
This should prevent a sync issue with updateDisplay not always being loaded on time.
2021-04-06 09:06:51 +02:00
Mouse Reeve
d85808a0d2
Merge pull request #882 from mouse-reeve/boost-status-bug
Fixes boosted remote statuses coming in as Statuses instead of Review/Comment/etc
2021-04-05 19:05:21 -07:00
Mouse Reeve
a39cd670ef Fixes boosted remote statuses coming in as Notes 2021-04-05 18:05:06 -07:00
Mouse Reeve
2e245f84be Adds test for loading remote boosted statuses 2021-04-05 18:02:24 -07:00
Mouse Reeve
fb72db7507 Fixes federation view tests 2021-04-05 16:50:36 -07:00
Mouse Reeve
a4b892dfad Fixes domain block tests 2021-04-05 16:47:48 -07:00
Mouse Reeve
34b790a086 Adds tests for blocked server checks 2021-04-05 15:54:33 -07:00
Mouse Reeve
194fcb8055 Adds migration for federated server table statuses 2021-04-05 15:54:20 -07:00
Mouse Reeve
ad543f46c1 Adds block and unblock functionality 2021-04-05 15:38:32 -07:00
Mouse Reeve
e4fe47b538 Default blocks in initdb 2021-04-05 15:26:53 -07:00
Mouse Reeve
1901f7e6cb Check if incoming domains are blocked 2021-04-05 15:16:41 -07:00