Commit graph

2942 commits

Author SHA1 Message Date
Fabien Basmaison
2a0924027b [css] Use more visible comments to split blocks. 2021-04-07 17:33:28 +02:00
Fabien Basmaison
f77088b964 [assets] Remove redundant class already provided by bulma:
Replace all classes `hidden` with `is-hidden` in templates, CSS and JS.
2021-04-07 17:31:00 +02:00
Fabien Basmaison
f2a2b410a1 [assets] Add comment to mention replacing font icons with SVG. 2021-04-07 10:49:52 +02:00
Fabien Basmaison
54805afb51 [assets] Tweak JSDoc. 2021-04-07 10:37:11 +02:00
Fabien Basmaison
fb45df0f99 Merge branch 'main' into frontend 2021-04-07 09:25:40 +02:00
Fabien Basmaison
5d569e8926 [assets] Only update status if the promise is successful:
- Use promises in `ajaxPost` and `interact`.
- Add some animations in CSS.
2021-04-07 09:24:34 +02:00
Fabien Basmaison
1c05107f2b [assets] Tweak comments. 2021-04-07 07:53:30 +02:00
Mouse Reeve
99d09e3a70
Merge pull request #891 from tofuwabohu/main
Replaces user link
2021-04-06 13:56:06 -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
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
6a3c01a67f stream_users function has been renamed 2021-04-05 14:17:45 -07:00
Mouse Reeve
56330d448b Changes remove status redis mock 2021-04-05 14:08:24 -07:00
Mouse Reeve
04b9704187 typo fix 2021-04-05 13:13:56 -07:00
Mouse Reeve
cd56abcb08 Maintain signal names 2021-04-05 12:11:49 -07:00
Mouse Reeve
0bbaf0a562 Python formatting 2021-04-05 11:10:26 -07:00
Mouse Reeve
e61ed73894
Merge pull request #875 from arkhi/locales
[l10n] Add and update i18n strings for French
2021-04-05 11:10:01 -07:00
Mouse Reeve
5ad46f99b5
Merge pull request #878 from mouse-reeve/fixes-invites
Fixes creating invites
2021-04-05 11:08:41 -07:00
Mouse Reeve
bd8858830a Created generic redis class for activitstreams 2021-04-05 11:05:37 -07:00
Mouse Reeve
04f459a2df Fixes creting invites 2021-04-05 10:17:01 -07:00
Mouse Reeve
863515507d
Merge pull request #876 from tofuwabohu/Adds-wyrms-de-to-instances
Adds wyrms de to instances
2021-04-05 10:13:34 -07:00
Your Name
21ba05b4a5 Added wyrms.de 2021-04-05 18:29:01 +02:00
tofuwabohu
33b0ed242f
Merge pull request #4 from mouse-reeve/main
Updating
2021-04-05 18:21:45 +02:00
Fabien Basmaison
964b47ea97 [assets] Fix path for icomoon font. 2021-04-05 16:46:30 +02:00
Fabien Basmaison
27e47b0a35 [lint] Update context for linting frontend files:
- Lint files when pushing on the _frontend_ branch.
- Lint files when eslint or stylelint config files are updated.
- Use _strict_ parsing of JS files by default. This should make the JS linting test to fail.
2021-04-05 16:35:09 +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
Mouse Reeve
d25c68f887 Restores stream length settings 2021-04-04 21:01:52 -07:00
Mouse Reeve
c94af1b240
Merge pull request #874 from mouse-reeve/fixes-stream-trimming
Fixes trimming streams
2021-04-04 20:59:53 -07:00