Damien Elmes
097244b7b3
fix default note column headers
2021-03-29 17:22:39 +10:00
Damien Elmes
7323866a88
rename BrowserCardState
...
Use a more verbose name, and use 'note' rather than 'card', so we
can rely on the default of False
2021-03-29 17:12:45 +10:00
Damien Elmes
d8de053e64
Item -> ItemId
2021-03-29 16:52:41 +10:00
Damien Elmes
3d11e74774
List->Sequence in a bunch of table/browser methods
...
Most code doesn't require a list specifically, and build a list
is an extra step.
2021-03-29 16:48:33 +10:00
Damien Elmes
165c90824b
avoid rebuilding card/note id list when searching
2021-03-29 16:25:55 +10:00
RumovZ
1f79a8766d
squash merge browser refactor
...
Closes #1100
2021-03-29 16:14:54 +10:00
Damien Elmes
5ef618d8fa
add a few more ftl type hints
2021-03-29 15:55:15 +10:00
Damien Elmes
3dee049128
gate qt template inclusion on extra_ftl_root name
...
Bazel was not noticing that the build script needs to be recompiled
when the qt templates flag was changed.
2021-03-29 13:17:38 +10:00
Damien Elmes
d279ca4cac
move back to latest Jest
...
Patch is no longer required after previous change
2021-03-28 21:44:55 +10:00
Damien Elmes
9a75392f54
fix Jest on Windows
2021-03-28 20:59:51 +10:00
Damien Elmes
e2963e54f8
Revert "disable Jest tests on Windows for now"
...
This reverts commit 819f87df42 .
2021-03-28 20:59:31 +10:00
Damien Elmes
819f87df42
disable Jest tests on Windows for now
2021-03-28 20:34:10 +10:00
Damien Elmes
ad47b68255
add Jest for TS unit tests
...
@hgiesel the reason no files were being found is because Jest ignores
symlinks by default. The Bazel example includes a patch we can use
to work around it, and Jest plan to add symlink support in a future
update.
https://github.com/bazelbuild/rules_nodejs/blob/stable/examples/jest/patches/jest-haste-map%2B24.9.0.patch
https://github.com/facebook/jest/pull/9351
2021-03-28 19:41:20 +10:00
Henrik Giesel
ac46f6cb27
Utilize ts/tsconfig.js from ts/{editor,html-filter}
2021-03-28 19:41:20 +10:00
Henrik Giesel
d346ae6feb
No need to explicitly import from index
2021-03-28 19:41:20 +10:00
Henrik Giesel
722adec915
Satisfy formatter
2021-03-28 19:41:20 +10:00
Henrik Giesel
c99d91c283
Avoid using outerHTML + Fix regression
2021-03-28 19:41:20 +10:00
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