Henrik Giesel
0db8a14497
Deal with div insertion on deleting list item
2021-01-15 18:46:37 +01:00
Henrik Giesel
4e1139021b
Consider list edge case for line breaks
...
* Enter makes a new bullet point
* Shift+Enter makes a line break in current bullet point
2021-01-15 18:46:37 +01:00
Henrik Giesel
5c6694950d
Prefer <br> over <div></div>
2021-01-15 18:46:37 +01:00
Henrik Giesel
fe118197a3
Improve styling of new preview button on light and nightMode
2021-01-09 23:55:39 +01:00
Henrik Giesel
ece753991e
Make button show its toggle state
2021-01-09 23:16:01 +01:00
Damien Elmes
5ec5a47708
merge separate vendor rules into single rule
...
Rather than creating a separate rule for each package, we can just
create a generic one and reuse it. Also switch to keyword arguments
in the resulting macros, as it's easier to read.
2021-01-02 11:14:00 +10:00
Henrik Giesel
450ff60815
Fix input type for _drawFlag
2021-01-01 14:14:50 +01:00
Henrik Giesel
f31b2312df
Remove browsersel
2020-12-31 16:48:04 +01:00
Henrik Giesel
ebb8171021
Add css-browser-selector to BAZEL build file in data/web/js/vendor
2020-12-31 16:41:31 +01:00
Henrik Giesel
4da27afba8
Remove hardcoded protobufjs
2020-12-31 16:17:46 +01:00
Henrik Giesel
2ba944640d
Add build recipe to aqt/data/web/js
2020-12-31 16:15:25 +01:00
Damien Elmes
3d7b167947
Merge pull request #878 from hgiesel/updateQueue
...
Replace `_updatingQA` with promise-based `_updatingQueue`
2020-12-31 12:42:58 +10:00
Henrik Giesel
a7f17732b0
Replace () => void | Promise<void>
with Callback typedef
2020-12-30 16:04:59 +01:00
Henrik Giesel
c6c52e06b4
Add types to reviewer.ts
2020-12-30 15:06:22 +01:00
Henrik Giesel
aaa30a5d49
Replace _updatingQa synchronization with promise-based _updatingQueue
2020-12-30 14:45:27 +01:00
Henrik Giesel
30b537c6e9
Put loads first in BUILD.bazel
2020-12-30 12:16:59 +01:00
Henrik Giesel
5f149a75a9
Remove jquery-ui from vendor folder
2020-12-30 12:12:49 +01:00
Henrik Giesel
a22d303e2f
Add jquery-ui to vendor/BUILD.bazel
2020-12-30 12:06:06 +01:00
Damien Elmes
9e1eaacc06
Revert "Merge pull request #873 from hgiesel/otherjsdeps"
...
This reverts commit 62600051ae
, reversing
changes made to 88553acb0d
.
- Standard graphs render incorrectly on latest version - the wrong number
of days are shown, and the grid lines look wrong. Any version after 0.8.3
seems to suffer from this problem.
- Pie graphs and stack graphs don't render - they are provided in separate
files, and plot.js in previous Anki versions has them included in the one
file. To maintain compatibility with add-ons, we'd need to create a single
file as before, instead of importing multiple files.
If the above issues are fixed I'd be happy to merge this in again, but
as the old graphs are on the way out, it's probably not worth the effort.
2020-12-30 14:13:52 +10:00
Damien Elmes
1ee08c049e
Merge pull request #874 from hgiesel/jqueryreview
...
Update _updateQa
2020-12-30 13:51:54 +10:00
Henrik Giesel
ff4780e005
Satisfy prettier
2020-12-29 14:45:20 +01:00
Henrik Giesel
7ef41ce573
Hook functions may also return void
2020-12-29 14:01:09 +01:00
Henrik Giesel
8f39c746d9
Replace ts-ignore with declare var
2020-12-29 13:43:47 +01:00
Henrik Giesel
53f77346d8
Fix typing of reviewer hooks
2020-12-29 13:42:30 +01:00
Henrik Giesel
ecdb06cbd6
Use async/await syntax in _updateQa
2020-12-29 13:34:39 +01:00
Henrik Giesel
f90b6b3430
Remove plot.js
2020-12-29 12:16:50 +01:00
Henrik Giesel
ef9b52f861
Copy flot file to vendor directory
2020-12-29 12:11:28 +01:00
Henrik Giesel
98407c3fea
Avoid building jquery to its own directory
2020-12-28 14:18:07 +01:00
Henrik Giesel
0c95cb3514
Remove jquery from Anki repo and replace with Bazel BUILD
2020-12-28 13:16:12 +01:00
Damien Elmes
7397b9c0c4
Merge pull request #858 from hgiesel/editorwhitespace
...
Remove placeholder `<br>`s in empty fields in editor
2020-12-28 16:50:23 +10:00
Henrik Giesel
d6a090e1a8
Hide "Edit" and "More" buttons in reviewer bottom bar, if window width is too small
2020-12-26 15:50:32 +01:00
Damien Elmes
32093bb428
further decrease default q/a fade time
2020-12-22 13:02:07 +10:00
Damien Elmes
c18ea8ef78
Merge pull request #859 from hgiesel/tabindex2
...
Consider removing special handling of Shift+Tab in Editor on macOS
2020-12-21 18:38:35 +10:00
Damien Elmes
256db85577
work around --text-fg ending up in fields
...
https://forums.ankiweb.net/t/strange-behaviour-in-the-html-editor/5796/4
2020-12-21 17:56:20 +10:00
Damien Elmes
64173b5c02
.prettierrc needs to be in web/, as it's needed for sass as well
2020-12-21 17:05:31 +10:00
Henrik Giesel
2ae4d14bc5
Focus special handling of Shift+Tab on macOS
2020-12-21 08:00:47 +01:00
Damien Elmes
4e1d57e2d2
check formatting of .js files in aqt/data
...
mathjax.js did not match //ts:format output
2020-12-21 16:10:59 +10:00
Damien Elmes
65a35fef55
link .prettierrc into qt/aqt/data/web/js
...
So automatic formatting in VS Code matches CI format
2020-12-21 16:09:06 +10:00
Henrik Giesel
502049025a
Remove special treatment of empty fields in editor ts
2020-12-21 03:13:31 +01:00
Henrik Giesel
9b2de395e1
Wrap field name in editor in span
2020-12-20 23:40:51 +01:00
Damien Elmes
6d596c8fc9
avoid distributing BUILD.bazel in js/vendor
2020-12-12 10:35:01 +10:00
Henrik Giesel
0ad3c062bb
Switch back to fadeTo rather than fadeIn/fadeOut
2020-12-09 14:19:45 +01:00
Damien Elmes
2c38ccad98
export mathjax.js
2020-11-30 15:15:37 +10:00
Damien Elmes
c1d15a8e1f
quieten MathJax
2020-11-18 21:34:44 +10:00
Damien Elmes
1c5f94d46f
strip out unused gettext refs
2020-11-18 13:22:51 +10:00
Henrik Giesel
07c183d2c2
Switch from jQuery pre 3.0.0 pseudo promises to ES6 promises
2020-11-16 01:09:59 +01:00
Henrik Giesel
435ecc3ae8
Satisfy formatter
2020-11-15 21:40:59 +01:00
Henrik Giesel
a7b5a7efe1
Improve ts hooks to allow for asynchronous actions
...
* reviewer ts hooks may now return a promise, which are then waited upon with Promise.all
* this does not break old ts hooks, as Promise.all allows for non-Promises in its array
2020-11-15 21:16:06 +01:00
Henrik Giesel
4229f21084
Include default MathJax packages
...
* by default load all the default tex-chtml packages, which additionally include:
* require: using \require{package-name} to load a package
* autoload: using a command from a different package automatically loads it
* configmacros: allows for definition of predefined macros
2020-11-15 20:56:50 +01:00
Henrik Giesel
80232f4d33
Load require package in Mathjax
2020-11-15 13:58:51 +01:00
Damien Elmes
8a80ffe53a
add rule to copy mathjax from node_modules
2020-11-15 20:22:28 +10:00
Henrik Giesel
6104ea26fb
Remove @types/mathjax as it is for MathJax 2
2020-11-14 14:14:25 +01:00
Henrik Giesel
aa44d64513
Add moving MathJax3 into mathjax directory to build process
2020-11-14 14:14:25 +01:00
Henrik Giesel
6d4ff1212d
Rip out MathJax 2 and setup MathJax 3 environment
2020-11-14 14:14:25 +01:00
Henrik Giesel
c5cfbfa1ab
Update MathJax2 config to MathJax3 config
...
Used: https://mathjax.github.io/MathJax-demos-web/convert-configuration/convert-configuration.html
2020-11-14 14:14:25 +01:00
Damien Elmes
5bb3d7c114
format_fix -> format; rename svelte-check for consistency
2020-11-12 20:19:32 +10:00
Damien Elmes
8d4df820cc
update i18n scripts
...
- export updated .po files for consumption
- add a script to pull and push translations
2020-11-11 21:08:06 +10:00
k12ish
b592e20a3c
Improve compatibility with graphics pad/touchscreen
...
When using anki with a graphics pad, text is often selected on accident. This snippet of CSS will fix that issue
2020-11-08 18:14:37 +00:00
Damien Elmes
29ae7480f2
cleanups
2020-11-05 11:21:13 +10:00
Damien Elmes
0d354da93a
move aqt_data into source folder; implement wheel building
2020-11-04 12:14:03 +10:00