Henrik Giesel
f432da5af7
Change filter logic in html-filter/element: predicate true, means it stays in
2021-03-28 19:41:20 +10:00
Henrik Giesel
1aefab95f8
Move html-filter into its own directory
2021-03-28 19:41:20 +10:00
Henrik Giesel
127b46d240
Insert break statements into switch
2021-03-28 19:41:20 +10:00
Henrik Giesel
4baa87348e
Create htmlFilter{Node,Styling} for better separation of concerns
2021-03-28 19:41:20 +10:00
Henrik Giesel
6822c56e53
Put filterElement logic completely into its own file
2021-03-28 19:41:20 +10:00
Henrik Giesel
a9fa7cd0db
Move most of tags allowed to its own file
2021-03-28 19:41:20 +10:00
Henrik Giesel
f4e3a9202f
Refactor htmlFilter to use function declarations
2021-03-28 19:41:20 +10:00
Damien Elmes
08b5f86e3d
fix 'strip formatting' option being inverted
2021-03-28 19:41:15 +10:00
Damien Elmes
0edbd3fc4b
use relative link to sass file
...
links relative to workspace root break when invoked from an external
repo
2021-03-28 12:37:21 +10:00
Damien Elmes
3761693be2
add links to pending PRs
2021-03-28 12:32:40 +10:00
Damien Elmes
0b2c3e1c3b
fix(esbuild): files not being found when building external repo
...
An esbuild rule that ran fine in a local repo (eg bazel build //:my_esbuild_rule)
fails when built externally (eg bazel build @other_workspace//:my_esbuild_rule).
By prepending the workspace root to the bin path, the resulting base
URL works correctly in both local and remote repo invocations, allowing
esbuild output to be consumed by a different repo.
This change fixes remote repos in Bazel 4.0.0. 3.7.0 seems to require a
workspace_root.replace("external/", "") call first in order
to get the correct location. So while this patch should not break anything
that was not already broken, it only fixes/adds support for remote repos
in 4.0+.
2021-03-28 11:30:15 +10:00
Damien Elmes
061c7e60fc
add esbuild/helpers.bzl in from upstream
2021-03-28 11:12:23 +10:00
Damien Elmes
b8b2be3f9f
update $(location ...) in esbuild inject lines
2021-03-28 09:35:46 +10:00
Damien Elmes
7500a2765f
support expanding locations in esbuild arguments
2021-03-28 09:35:27 +10:00
Damien Elmes
93391cdd00
update rules_rust for worker fix
2021-03-27 22:47:43 +10:00
Damien Elmes
d793c30526
switch NoteType to Notetype
...
When used as a variable, we were typically calling it a 'notetype', not
a 'note type'.
2021-03-27 22:03:19 +10:00
Damien Elmes
b251843da6
add Dict suffix to Dict aliases in models.py
2021-03-27 21:46:49 +10:00
Damien Elmes
6b72aaf8c2
ID -> Id in protobuf and Python
...
follow-up to a90d5aa359
2021-03-27 21:38:20 +10:00
Damien Elmes
d52a34d414
update to latest Rust
2021-03-27 20:49:10 +10:00
Damien Elmes
cefa8d0e9d
fix some clippy lints in tests
2021-03-27 20:44:31 +10:00
Damien Elmes
e934bd8e9a
fix more issues uncovered by the latest clippy
2021-03-27 20:25:34 +10:00
Damien Elmes
a90d5aa359
use mixed case for abbreviations in Rust code
...
So, this is fun. Apparently "DeckId" is considered preferable to the
"DeckID" were were using until now, and the latest clippy will start
warning about it. We could of course disable the warning, but probably
better to bite the bullet and switch to the naming that's generally
considered best.
2021-03-27 19:53:33 +10:00
Damien Elmes
2338998304
update to the latest rules_rust + security framework update
2021-03-27 19:28:19 +10:00
Damien Elmes
effb0e2ab8
address some new clippy lints
2021-03-27 19:28:19 +10:00
Damien Elmes
9dfa0301a2
bump version
2021-03-27 16:35:03 +10:00
Damien Elmes
8f91006880
update translations
2021-03-27 15:59:21 +10:00
Damien Elmes
c74b1b0432
add back some strings used in stable release for now
2021-03-27 15:59:09 +10:00
Damien Elmes
e86d78f3e5
update translations
2021-03-27 15:55:30 +10:00
Damien Elmes
e529bc96eb
add note to translators
2021-03-27 15:03:33 +10:00
Damien Elmes
16632c90df
update TS deps
2021-03-27 15:02:02 +10:00
Damien Elmes
268dc8d389
update cargo/README.md
...
closes #1096
2021-03-27 14:56:51 +10:00
Damien Elmes
15f549fdf9
update Python deps
2021-03-27 14:52:21 +10:00
Damien Elmes
0a4bcd3faa
update Rust deps
2021-03-27 14:47:16 +10:00
Damien Elmes
c9eddfabac
add string/number distinction to generated Rust methods
2021-03-27 14:31:23 +10:00
Damien Elmes
66d84336d7
update to latest Fluent
2021-03-27 13:24:11 +10:00
Damien Elmes
9a7f0f9f5d
i18n->tr in rslib/ to match Python/TS code
2021-03-27 12:09:51 +10:00
Damien Elmes
4676d2f3b1
drop the legacy enum from rslib, and pass separate module/message idx
2021-03-27 11:56:31 +10:00
Damien Elmes
cf32bb034a
update remaining TR references in rslib
2021-03-27 11:18:34 +10:00
Damien Elmes
27c35cf2c5
update multi-arg TR references, where some needed reordering
2021-03-27 10:49:40 +10:00
Damien Elmes
d7005803bc
update 1 arg tr strings in rslib
2021-03-27 10:39:53 +10:00
Damien Elmes
0421ae3e6d
preserve variable order when extracting from ftl files
2021-03-27 09:09:13 +10:00
Damien Elmes
51f5df600f
update no-arg TR references in rslib/
2021-03-26 23:16:08 +10:00
Damien Elmes
26d265ce08
write methods into generated.rs
2021-03-26 23:07:18 +10:00
Damien Elmes
5e70b9ff0e
fix warning in latest Rust
2021-03-26 23:06:15 +10:00
Damien Elmes
125dcee811
remove obsolete comment
2021-03-26 21:47:23 +10:00
Damien Elmes
0006a385e1
allow js to request specific i18n modules
...
Brings the payload on the congrats page with a non-English language
down from about 150k to 15k
2021-03-26 21:43:36 +10:00
Damien Elmes
5ef9282f9b
fix handling of variables that don't match ts naming style
2021-03-26 21:34:24 +10:00
Damien Elmes
00eb89c2ec
use singleton + free functions for i18n in ts
...
This allows for tree shaking, and reduces the congrats page from 150k
with the old enum solution to about 80k.
2021-03-26 20:38:44 +10:00
Damien Elmes
b145b04ddf
drop legacy enum from ts/
2021-03-26 19:26:35 +10:00
Damien Elmes
6cde7ff536
update remaining TR references in ts/
2021-03-26 19:24:48 +10:00