Commit graph

94 commits

Author SHA1 Message Date
gnnoh
d60a1a6b37 Fix ValueError when exported files have wrong mtime (#1666)
* Fix ValueError when exported files have wrong mtime

Set the `strict_timestamps` argument to `False`, so the media files which have a wrong mtime can be normally added to the zipfile.

* Update CONTRIBUTORS (ankitects#1666)

* Reformat exporting.py
2022-02-16 11:17:20 +10:00
roxgib
46d5b68e8c Add callback and non-blocking option to StudyDeck (#1643)
* Callback for StudyDeck, use with onModelChange

* Add types to callback function

* Rationalise types

* Update CONTRIBUTORS

* Fix type hints

I'm still getting to grips with the type hints!

* Consistency with callback checks

* | not supported for type hints on 3.9
2022-02-07 22:05:59 +10:00
Araceli Yanez
508b4cf915 Add forget card to review context "more" menu (#1642)
* Add forget card to review context more menu

* Add to contributors
2022-02-07 19:56:31 +10:00
Danish Prakash
24e5c07ac9 qt/aqt/webview: handle opening href with target=_blank (#1623)
* qt/aqt/webview: handle opening href with target=_blank

* CONTRIBUTORS: add username as part of first PR
2022-01-24 12:23:01 +10:00
Spooghetti420
134fcaa560 Update CONTRIBUTORS (#1611) 2022-01-21 21:24:42 +10:00
qxo
c53e49a8c8 fix: try catch excepton in get_windows_dark_mode and global cache the check (#1587)
* fix: try catch excepton on get_windows_dark_mode and global cache that check

* add commitor email to CONTRIBUTORS

* remove is_windows_dark_mode cache

* avoid logging the missing key (dae)

The check happens frequently, so this will fill up the user's console if we print it each time.
2022-01-16 14:07:28 +10:00
Vova Selin
c9cc719c4b Minor changes to graphs (#1566)
* Add thousands comma separator for card counts graph

* Fix Answer Buttons graph's tooltip

Changes to the "times pressed" heading

* Shows the percent of that button out of all the presses

* Comma separates total on thousands

* Update CONTRIBUTERS

* Wider spacing for graph tables

* Switch to locale-based stats numbers

* Update CONTRIBUTORS 

Wrong email?

* Fix counts graph on narrow devices

Graph and table now align in a column when the device's screen is narrow. Columns widths are  bounded to not get too wide

* Rename toLocaleXXX functions

* toLocaleNumber -> localizedNumber
 *  toLocaleString -> localizedDate

Also cleans up sketchy "card counts" table formatting

* Localize more numbers

Uses locale-based rounding for more numbers now

* Localize graph axis ticks

* Fix future-due graph tooltip

* avoid div by zero (dae)

Ignoring NaN in localizedNumber() could potentially mask a mistake
in the future - better to explicitly handle the invalid case at the
source instead.
2021-12-29 15:04:15 +10:00
Hikaru Y
81d44bfaeb Update CONTRIBUTORS (#1527) 2021-12-05 12:33:40 +10:00
zhangsn
1301c3b653 add new hook: add_cards_did_change_deck (#1420)
* add new hook which will be executed after the user selects a new different deck when adding cards.

* Update qt/aqt/deckchooser.py
2021-10-12 17:55:21 +10:00
Gesa Stupperich
a4a0e79dc5 Mac bazelrc build tip (#1418)
* Copy build tip from Linux to Mac instructions

* Update build tip

* Accept BSD 3 clause license
2021-10-12 16:58:42 +10:00
lolilolicon
739d3d3cb5 Update CONTRIBUTORS 2021-09-24 13:46:01 +00:00
Ren Tatsumoto
b6f899dbd1 update CONTRIBUTORS 2021-09-05 13:52:54 +03:00
alexgiorev
7dccfc480b Update CONTRIBUTORS 2021-07-20 12:36:18 +03:00
Thore
9a4e248317 Add hook to onDelete in AddonsDialog (#1232)
* add hook

* add me to CONTRIBUTORS

* adjust hook to comments

* Update CONTRIBUTORS
2021-06-15 10:01:29 +10:00
hikaru-y
10f100101f Update CONTRIBUTORS 2021-06-11 23:36:15 +09:00
cherryblossom
462da55fd5 fix documentation links 2021-06-03 16:51:03 +10:00
qubist-pixel-ux
6080fbcad1 Update CONTRIBUTORS 2021-05-28 16:27:22 +05:30
Matthias M
439b188b9d Add myself to contributors 2021-05-23 01:52:29 +02:00
rgreenblatt
76f7ffebab Added to CONTRIBUTORS 2021-04-22 00:58:59 -04:00
Shaun Ren
04ab176a16 Fix extraneous whitespaces from strip_html_for_tts 2021-03-25 11:44:42 -04:00
Benjamin K
4c8e90d17d Update CONTRIBUTORS 2021-03-07 11:05:41 +01:00
BlueGreenMagick
400da2e389 Update CONTRIBUTORS
Add email so it recognizes the change of email
2021-02-20 23:11:46 +09:00
Maksim Abramchuk
9763d5777d Add myself to list of contributors 2021-01-26 21:38:42 +00:00
Kerrick Staley
e157eb443f Add comment explaining why sfld column has type integer
The `notes.sfld` column in the `collection.anki2` database has type `integer`, even though it contains text. This is [something SQLite allows](https://dba.stackexchange.com/questions/106364/text-string-stored-in-sqlite-integer-column) and was done to allow integer values to sort numerically. Add a comment explaining this.
2021-01-25 18:39:59 +08:00
wallgrenen
21178dbdac Fix typo in username 2021-01-06 17:15:21 +01:00
wallgrenen
1c5f0ad44f replace broken link 2021-01-06 17:03:39 +01:00
Meredith
32f3e45205 add self as contributor 2020-12-29 11:11:05 -05:00
Guillem Palau-Salvà
6422dc1af4 Update CONTRIBUTORS
adding myseld to contributors
2020-12-28 21:51:04 +01:00
Ryan Aird
40c3664bb2 Add rye761 to contributers list 2020-12-19 20:15:12 -06:00
RumovZ
65b6552f88 Remove space for contributors check... again? 2020-11-18 09:25:35 +01:00
ianki
28ad68d490 Add hooks for filtering media. 2020-11-09 02:12:23 -08:00
k12ish
405cb7207a Update CONTRIBUTORS 2020-11-08 18:49:12 +00:00
k12ish
5588069885 Revert "Update CONTRIBUTORS"
This reverts commit 1fee0d0858.
2020-11-08 18:38:02 +00:00
k12ish
1fee0d0858 Update CONTRIBUTORS 2020-11-08 18:34:30 +00:00
cecini
dc896397b6 Update CONTRIBUTORS 2020-10-29 23:55:59 +08:00
cecini
e12c09bd11 align rslib get_subnode impl with anki pythonapi find_deck_in_tree, fix nestdeck due counts issue 2020-10-29 23:53:26 +08:00
RumovZ
6350850f1e Space for author check 2020-10-29 12:30:40 +01:00
RumovZ
c3b6e1143a Add author to CONTRIBUTORS 2020-10-24 11:02:18 +02:00
Andreas Reis
4e35b1780d Add command-line argument to skip addons
Shift doesn't work for me occasionally, for whatever reason. So just add an -s to skip it that way.

(Also, update my github nick)
2020-10-14 01:31:07 +02:00
Damien Elmes
089e48adac Merge branch 'master' into opus-audio 2020-10-12 12:32:43 +10:00
Piotr Kubowicz
1add0e6c6b Add .opus as an audio extension
Wikimedia Commons has pronunciation recordings with .opus extension.
Anki is able to play such files, but until now adding them required
changing the extension to .ogg or some other supported one.

Also sort the audio extensions list.
2020-10-10 16:28:40 +02:00
johan456789
d3e495675c Update CONTRIBUTORS 2020-10-07 20:02:03 +08:00
David Allison
94382867d0 Fix "Sign Up" link location
String states "Sign Up", but currently points to the "Sign In" screen: https://ankiweb.net/account/login

c8a6d81fde/rslib/ftl/sync.ftl (L38-L42)
2020-10-04 18:14:49 +01:00
Damien Elmes
05f8ae116a Merge branch 'master' into fix-ui-scale 2020-10-03 09:44:04 +10:00
Akshara Balachandra
c5da91206b fix: sizing issue with scale UI
Fixes ankitects/help-wanted#18. Height of webview should be the height
of the contents inside it. Previously, scale factors increased fixed
height of the container webview, thus creating empty space (e.g.
at 200% scaling, height of webview was double the height of the inner
HTML page). Now height of webview is always the height of the contained
element.
2020-10-02 18:07:28 -04:00
Colin Hughes
4fecf26047 added *.sh eol=lf to .gitattributes because several files have crlf endings.
I tried to commit those files with lf endings but git doesn't appear to want to commit those changes.
I guess I'd have to make a minor change to the each file and I'm relutant to do that.
2020-10-02 11:55:36 +01:00
abdo
a410a1117a Support extended drag & drop 2020-09-14 17:07:31 +03:00
Jakub Kaczmarzyk
a22f4439a1 Merge branch 'master' into add/dockerfile 2020-09-08 14:59:32 -04:00
Damien Elmes
d649dfb7fd doc updates
thanks to Robert: https://github.com/ankitects/anki/pull/756

closes #756
2020-09-07 16:03:48 +10:00
Aleksa Sarai
21769bfa68 rust: switch to stable compilers
The only dependency which required nightly compilers was pyo3, which
supports stable Rust (1.39.0 and later) since version 0.11.0. Supporting
stable Rust makes it easier to package Anki for distributions. No other
code changes were required.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2020-09-05 19:39:51 +10:00