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
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
a39cd670ef
Fixes boosted remote statuses coming in as Notes
2021-04-05 18:05:06 -07:00
2e245f84be
Adds test for loading remote boosted statuses
2021-04-05 18:02:24 -07:00
fb72db7507
Fixes federation view tests
2021-04-05 16:50:36 -07:00
a4b892dfad
Fixes domain block tests
2021-04-05 16:47:48 -07:00
34b790a086
Adds tests for blocked server checks
2021-04-05 15:54:33 -07:00
194fcb8055
Adds migration for federated server table statuses
2021-04-05 15:54:20 -07:00
ad543f46c1
Adds block and unblock functionality
2021-04-05 15:38:32 -07:00
e4fe47b538
Default blocks in initdb
2021-04-05 15:26:53 -07:00
1901f7e6cb
Check if incoming domains are blocked
2021-04-05 15:16:41 -07:00
6a3c01a67f
stream_users function has been renamed
2021-04-05 14:17:45 -07:00
56330d448b
Changes remove status redis mock
2021-04-05 14:08:24 -07:00
04b9704187
typo fix
2021-04-05 13:13:56 -07:00
cd56abcb08
Maintain signal names
2021-04-05 12:11:49 -07:00
0bbaf0a562
Python formatting
2021-04-05 11:10:26 -07:00
e61ed73894
Merge pull request #875 from arkhi/locales
...
[l10n] Add and update i18n strings for French
2021-04-05 11:10:01 -07:00
bd8858830a
Created generic redis class for activitstreams
2021-04-05 11:05:37 -07:00
04f459a2df
Fixes creting invites
2021-04-05 10:17:01 -07:00
Fabien Basmaison
964b47ea97
[assets] Fix path for icomoon font.
2021-04-05 16:46:30 +02:00
Fabien Basmaison
cbed5e331b
[assets] Move some frontend assets to _vendor_ directories:
...
This simplifies linting of files we have no grasp on, and clarifies responsibilities.
- Add .eslintignore.
- Restrict linting to bookwyrm/static.
2021-04-05 16:17:11 +02:00
Fabien Basmaison
5aea7343b4
[assets] Rename some files for consistency.
2021-04-05 16:16:48 +02:00
Fabien Basmaison
6971c9b133
[assets] Move toggleAllCheckboxes code to its own file.
2021-04-05 16:16:05 +02:00
Fabien Basmaison
125915f1b3
[l10n] Add missing i18n string to template.
2021-04-05 12:53:20 +02:00
Fabien Basmaison
5d3f00a537
[l10n] Add and update i18n strings for French:
...
- Fix typo in English.
- Add translations for missing strings.
- Update translations for fuzzy strings.
2021-04-05 12:46:34 +02:00
d25c68f887
Restores stream length settings
2021-04-04 21:01:52 -07:00
940e841502
Fixes trimming streams
2021-04-04 20:57:30 -07:00
Pablo Barton
593e435816
772 Use gettext_lazy for form classes
2021-04-04 16:22:36 -04:00
ea837a3879
Merge pull request #864 from mouse-reeve/delete-and-redraft
...
Delete and redraft
2021-04-04 11:00:09 -07:00
abd6a78295
Merge pull request #862 from mouse-reeve/disabled-link
...
Valid html solution to disabling pagination links
2021-04-04 10:59:22 -07:00
b6aa36960c
Separates button grouping from td element
2021-04-04 10:38:40 -07:00
03ba01a790
Expands filtering and sorting on invite requests page
2021-04-04 10:36:28 -07:00
467748e2c8
Adds delete and redraft tests
2021-04-04 09:45:25 -07:00
ff3631cbe3
Python formatting
2021-04-04 09:24:17 -07:00
be8c3b7904
Handles delete and redraft replies
2021-04-04 09:18:52 -07:00
936d68f0ed
Don't allow delete and redraft of ratings
2021-04-04 09:08:44 -07:00
521f917d01
Pass existing rating to stars form element as variable
2021-04-04 09:05:21 -07:00
4c2f1db6a6
Merge branch 'main' into delete-and-redraft
2021-04-04 09:05:12 -07:00
ecf489b0bd
Merge pull request #863 from mouse-reeve/edit-book-field-types
...
Uses date input type for publication date fields
2021-04-04 08:50:46 -07:00
7dcbc14225
Merge pull request #866 from mouse-reeve/goal-page-book-link
...
Fixes goal page book link
2021-04-04 08:50:00 -07:00
b3535d9a90
Hides disabled pagination links for screenreaders
2021-04-04 08:42:01 -07:00
Fabien Basmaison
485b0fa0f3
Simplify rating form:
...
- Create a snippet to regroup similar code.
- Reduce and document tricky logic of CSS.
- Add i18n strings.
2021-04-04 15:08:42 +02:00