Damien Elmes
21f8a26140
Temporary fix for compilation issue on Linux/Mac
2022-05-17 17:03:52 +10:00
RumovZ
6d93a578f3
Merge remote-tracking branch 'upstream/HEAD' into text-import-export
2022-05-16 11:50:19 +02:00
RumovZ
250a1fc495
Add start of new import csv screen
2022-05-16 11:49:53 +02:00
Damien Elmes
a451fec5a1
Fix new card positions being included in future due graph
...
Introduced in f60de39015
https://forums.ankiweb.net/t/anki-2-1-52-qt6-stats-bug-future-due-backlog/20016
2022-05-16 15:14:15 +10:00
Henrik Giesel
826e135510
Update Svelte to 3.48.0 ( #1867 )
2022-05-16 14:47:38 +10:00
Henrik Giesel
1b18005d6e
Transform <br> in Mathjax to newlines ( #1866 )
...
* Transform <br> in Mathjax to newlines
* Add missing quantifier
2022-05-16 14:42:10 +10:00
Damien Elmes
a070bec03c
Allow alt tags when pasting images
...
https://forums.ankiweb.net/t/do-not-strip-alt-attribute-when-pasting-images-from-the-web/20007
2022-05-16 14:32:24 +10:00
RumovZ
8ad0fdc732
Fallback to current config for csv metadata
2022-05-15 10:54:01 +02:00
RumovZ
95f1734feb
Map columns to fields, not the other way around
2022-05-14 11:01:49 +02:00
Damien Elmes
e025f2f879
Only organize Python imports automatically
...
It's causing changes that aren't reproduced/picked up by prettier:
https://github.com/ankitects/anki/pull/1862#discussion_r870395750
2022-05-13 13:44:48 +10:00
Henrik Giesel
3b8aa97396
Use same config for editor and reviewer Mathjax ( #1865 )
...
* Remove custom config and use tex-chtml-full for editor Mathjax
* Add mathjax package in /ts
* Share mathjax config between tex-svg and tex-chtml
* Use "[+]" in Mathjax config again
* Remove mention of MathJaxReady
* Satisfy eslint
2022-05-13 13:23:35 +10:00
Abdo
f22d8015a6
Add some helper functions to AVPlayer ( #1864 )
2022-05-13 13:08:05 +10:00
Henrik Giesel
b6fb64fde1
Implement cloze buttons in Mathjax editor ( #1860 )
...
* Introduce RichTextClozeButtons
* Implement cloze buttons in Mathjax editor
2022-05-13 13:04:20 +10:00
Henrik Giesel
52438fe4c9
Move focus into HTML editor when shown ( #1861 )
...
* Move focus into input field, when input is shown
* Change trapFocusOut to move focus into available inputs
- This means that e.g. closing the HTML editor with focus in it will
focus the visual editor in turn
* Prevent Control+A unselecting tag editor when no tags exist
2022-05-13 13:02:03 +10:00
Henrik Giesel
de2cc20c59
Change how resizable images work ( #1859 )
...
* Add ResizableImage.svelte in ts/editable
* Set image constrained via attributes instead of managed style sheet
* Implement new constrained size method
* Turn WithImageConstrained.svelte into normal ts file
* Introduce removeStyleProperties
Removes "style" attribute if all style properties were cleared
* Avoid --editor-width and use one variable set on container
* Disable shrinking if already smaller than shrunken size
* Add button to restore image to original size
* Don't allow restoring original size if no custom width set
* Bottom-center HandleLabel
* Satisfy svelte-check
2022-05-13 12:57:07 +10:00
RumovZ
0556696b47
delimter_from_value → delimiter_from_value
2022-05-12 09:15:28 +02:00
RumovZ
93a90db7d4
Merge remote-tracking branch 'upstream/HEAD' into text-import-export
2022-05-11 18:58:48 +02:00
RumovZ
367c77166b
factor → ease_factor
2022-05-11 18:58:01 +02:00
RumovZ
b2beab8f40
Add import_json_file()
2022-05-11 18:58:01 +02:00
RumovZ
322e44fa3e
Show all accepted file types in import file picker
2022-05-11 18:58:01 +02:00
RumovZ
b740be6554
Avoid creating CardGenContexts for every note
...
This requires CardGenContext to be generic, so it works both with an
owned and borrowed notetype.
2022-05-11 18:58:01 +02:00
RumovZ
fe862523e6
Document use of empty strings for defaults
2022-05-11 18:58:01 +02:00
RumovZ
7bb423f72e
Don't trim CSV records
2022-05-11 18:58:01 +02:00
RumovZ
1a115f7287
Map timestamp of ForeignCard to native due time
2022-05-11 18:58:01 +02:00
RumovZ
74ce551155
Only allow fixed set of CSV delimiters
2022-05-11 18:46:53 +02:00
RumovZ
c565f77c23
ForeignCard.ivl → ForeignCard.interval
2022-05-11 18:46:53 +02:00
RumovZ
dbeca4310b
Use decimal number as foreign ease (like '2.5')
2022-05-11 18:46:53 +02:00
RumovZ
8f1bba6c07
Escape HTML entities if CSV is not HTML
...
Also use name 'is_html' consistently.
2022-05-11 18:46:53 +02:00
RumovZ
f7ac4497b4
Don't use doubly buffered reader in csv
2022-05-11 18:46:53 +02:00
BlueGreenMagick
fb5521eeed
remove image.style.height on resize ( #1856 )
2022-05-11 10:06:34 +10:00
Damien Elmes
ab1c23953e
Update translations
2022-05-10 13:18:07 +10:00
Damien Elmes
bf74ec8203
Fix missing dfa file in build
...
Added compile_data_attr, then re-ran cargo/update.py.
2022-05-10 12:19:59 +10:00
RumovZ
6c807c1b2e
Fix review queue if limit is reached ( #1855 )
2022-05-10 12:11:35 +10:00
Henrik Giesel
89530c5f24
Change sequence of Mathjax escaping ( #1854 )
2022-05-10 11:54:06 +10:00
Henrik Giesel
6043d2f5a2
Set editor size to 1.6 on Windows as well ( #1853 )
2022-05-10 11:48:11 +10:00
Henrik Giesel
96d9539b9d
Fix activeName updating wrongly when selecting previous tag from invalid tag ( #1851 )
2022-05-10 11:45:41 +10:00
Abdo
45b12ca104
Store rendered side in TemplateRenderContext ( #1852 )
...
* Store rendered side in TemplateRenderContext
* Move _question_side up with the other simple properties (dae)
2022-05-10 11:44:44 +10:00
BlueGreenMagick
68482d37a1
select all tags with Ctrl+A ( #1847 )
2022-05-10 11:39:54 +10:00
Damien Elmes
1b48d3e3d1
Mention eslint --fix in docs
...
https://github.com/ankitects/anki/pull/1847#issuecomment-1120954217
2022-05-10 11:39:15 +10:00
BlueGreenMagick
9d98c62d50
Fix when tooltip changes before tooltipObject is created ( #1845 )
...
It can happen in TagWithTooltip.svelte
when a tag is normalized beause of leading/trailing delimiter
2022-05-10 11:36:54 +10:00
RumovZ
890b28c1e8
Fix undisruptive formatting issues ( #1848 )
...
* Skip unparsable pylib files with black
This was causing black to return a non-zero code, preventing the
subsequent isort from running.
* Organise imports on save
2022-05-09 20:00:20 +10:00
BlueGreenMagick
fc8b976ca8
fix typo. Shortcut uses on:action not on:click ( #1846 )
2022-05-09 19:55:35 +10:00
RumovZ
3a175c5434
Add csv importing with GUI
2022-05-09 11:48:40 +02:00
RumovZ
2c3a6a43de
Add csv metadata extraction on backend
2022-05-09 11:48:40 +02:00
RumovZ
db5f167de5
Add plaintext importing on frontend
2022-05-09 11:48:40 +02:00
RumovZ
9f0f4e6159
Add csv and json importing on backend
2022-05-09 11:48:40 +02:00
RumovZ
5bacc9554a
Add Menomosyne serializer
2022-05-09 11:48:40 +02:00
RumovZ
29c691eabd
Add start of csv importing on backend
2022-05-09 11:48:40 +02:00
RumovZ
ae940f1faa
Add crate csv
2022-05-09 11:48:40 +02:00
BlueGreenMagick
faa21266db
Fix caret jumping to start when unselecting autocomplete suggestion ( #1844 )
2022-05-09 11:15:56 +10:00