Commit Graph

4678 Commits

Author SHA1 Message Date
Glutanimate
b89811bfba Add a couple of hooks to trigger add-on actions before showing stats 2020-07-16 21:48:46 +02:00
Damien Elmes
61017a2e21 i18n some sync errors 2020-07-16 13:55:59 +10:00
Damien Elmes
2824be25f0 formatting 2020-07-16 13:55:53 +10:00
Damien Elmes
658a009ec4 tweak spacing 2020-07-16 13:28:06 +10:00
Damien Elmes
0c1d5ae5a4 add table to reviews tooltip 2020-07-16 13:25:13 +10:00
Damien Elmes
1e48188c14 add table in card count tooltip for readability 2020-07-16 13:25:02 +10:00
Damien Elmes
0ff13828d4 show all counts in tooltip 2020-07-16 12:28:31 +10:00
Damien Elmes
fd0383cbe0 slightly increase x ticks 2020-07-16 11:53:20 +10:00
Damien Elmes
db832ec739 increase number of y ticks 2020-07-16 11:50:04 +10:00
Damien Elmes
1ec869ee5e fix typo
closes #664
2020-07-16 11:15:12 +10:00
Damien Elmes
fa239be124 add platform version back into sync metadata 2020-07-16 10:12:41 +10:00
Damien Elmes
1205db6484 panic fix was merged into hyper 0.13.7 2020-07-16 09:09:13 +10:00
Damien Elmes
320b56ae43 can't rely on stdout to handle unicode 2020-07-15 09:36:29 +10:00
Damien Elmes
6f830a994d
Merge pull request #687 from ankitects/revert-686-master
Revert "Added parameter/return types, fixed possible logic error and typo"
2020-07-13 22:01:57 +10:00
Damien Elmes
eb91ff7421
Revert "Added parameter/return types, fixed possible logic error and typo" 2020-07-13 21:25:44 +10:00
Damien Elmes
5c6ca55e42
Merge pull request #686 from zerrs/master
Added parameter/return types, fixed possible logic error and typo
2020-07-13 21:25:16 +10:00
Damien Elmes
2af1d68b05
Update customstudy.py 2020-07-13 21:24:18 +10:00
Damien Elmes
c3800b6f9a
Merge pull request #684 from flagist0/select-note-type-with-ctrl-plus-digit-key
Allow to choose note type from list by pressing ctrl + row number
2020-07-13 21:23:35 +10:00
Damien Elmes
6807f49818 smaller button labels on a small screen 2020-07-13 20:52:57 +10:00
Alexander Presnyakov
364725a528 Don't call setCurrentRow if row didn't change 2020-07-13 12:33:36 +03:00
zzzz
d6d952d0fd Added some return and parameter types in customstudy.py, also fixed a possible logic error in plus function and a small typo 2020-07-13 01:32:08 -04:00
Damien Elmes
116aeead0a remove update-alternatives references
7f0263b1f5 (commitcomment-40547278)
2020-07-13 13:55:18 +10:00
Damien Elmes
0ddcab4863 ensure sys crates work on older Macs 2020-07-13 13:35:09 +10:00
Damien Elmes
df5487875b vendor coarsetime so we can get the use after free fix 2020-07-13 13:34:37 +10:00
Damien Elmes
360622afdb
Merge pull request #685 from kelciour/synclog-last-line-scroll
Scroll media sync log to the last line
2020-07-13 13:01:48 +10:00
kelciour
ef1d61e35c Scroll media sync log to the last line 2020-07-13 03:06:44 +03:00
Alexander Presnyakov
e092dadc9a Allow to choose note type from list by pressing ctrl + row number 2020-07-12 22:15:58 +03:00
Damien Elmes
17edbd119d roll back pyo3 for now
0.9 will spit out BorrowMut errors when two concurrent backend
commands are received with allow_threads. The collection mutex protects
most methods, but other attributes like the abort handle are not
protected, so this code may need to be reworked in the future. We
could wrap the entire backend in a mutex, but that means the
long-running syncing code will need to be changed to run in the
background instead.
2020-07-12 20:06:04 +10:00
Damien Elmes
75443b5171 update rslib/rspy deps 2020-07-12 11:38:25 +10:00
Damien Elmes
bc5b6dfb63 mediasrv symlink fix
https://forums.ankiweb.net/t/anki-2-1-28-beta/629/39
2020-07-11 10:53:41 +10:00
Damien Elmes
c34a99871b
Merge pull request #682 from glutanimate/add-top-toolbar-did-redraw-hook
Add top_toolbar_did_redraw hook
2020-07-11 10:20:41 +10:00
Damien Elmes
bc5cf14854 one more attempt at fixing the problem by busting the cache 2020-07-11 09:09:49 +10:00
Glutanimate
15fd3a4856 Add top_toolbar_did_redraw hook
Notifies add-ons of the top toolbar being redrawn
2020-07-10 17:38:40 +02:00
Damien Elmes
df319c7c58 is:review should include relearning cards
https://forums.ankiweb.net/t/anki-2-1-28-beta/629/36

This issue appears to have existed since the V2 scheduler was
introduced - the old Python search code was ignoring Relearn as well.
2020-07-09 11:07:50 +10:00
Damien Elmes
c50fa2c787 invalidate cache
in the hopes of fixing
https://github.com/ankitects/anki/runs/848327907
2020-07-08 14:34:23 +10:00
Damien Elmes
da0e0e1854 show daily total as well in reviews graph 2020-07-08 14:07:10 +10:00
Damien Elmes
05302e6c2f fix overlapping ranges in histograms
It's bin.x0 <= x < bin.x1
2020-07-08 14:01:09 +10:00
Damien Elmes
7a08970bf7 another attempt at fixing review graph
This should correctly show today count in the 1 month/3 month graphs.
1+ year will have a very tiny bar, but the today count is not so
important at that range. I experimented with shifting the numbers
by one at the gathering stage (so -1 = today) - that makes today fit
in the previous bin, but means the bars no longer match the ticks.
2020-07-08 13:31:09 +10:00
Damien Elmes
93425be839 formatting 2020-07-07 13:28:30 +10:00
Damien Elmes
ca24dfddb1 make tooltip bg stand out slightly 2020-07-07 12:11:51 +10:00
Damien Elmes
5669101748 de-emphasise axis line, but don't hide completely 2020-07-07 12:06:27 +10:00
Damien Elmes
1162a8feb5 fix card count graph
https://forums.ankiweb.net/t/anki-2-1-28-beta/629/24
2020-07-07 11:39:58 +10:00
Damien Elmes
85cbd263da tidy up logging 2020-07-07 10:50:12 +10:00
Damien Elmes
4ab9d04c95 if webexports does not match, return 403 2020-07-07 10:50:03 +10:00
Damien Elmes
704db541ea
Merge pull request #679 from evandroforks/fix_mediasrv_addon_paths
Fix _addons/ URL prefix not being removed on Windows systems
2020-07-07 10:09:04 +10:00
evandrocoan
b44c971d2c Attempt to fix Python interpreter
Fix _addons/ URL prefix not being removed on Windows systems
https://github.com/ankitects/anki/pull 679
2020-07-06 20:05:31 -03:00
evandrocoan
121725390d Fix _addons/ URL prefix not being removed on Windows systems
Anki 2.1.28 Beta
https://forums.ankiweb.net/t/anki-2-1-28-beta/629/26

> Did the requirements on how to expose resources on the internal server change? Because scripts, css files and the like, registered with setWebExports, do not work anymore with beta2.
> A look at the console shows the following for all resources:
> Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)

**\Anki2\addons21\someaddon\__init__.py**
```py
from aqt import mw
import aqt

# assuming add-on folder is named "test"
# and assuming a 'test.js' is in the same folder
addon_id = "someaddon"
port = mw.mediaServer.getPort()
mw.addonManager.setWebExports(addon_id, ".*\\.js$")

print("Hello")

aqt.editor._html += f"""
<script>
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'http://127.0.0.1:{port}/_addons/{addon_id}/test.js';
    document.body.appendChild(script);
</script>"""
```
2020-07-06 13:51:37 -03:00
Damien Elmes
cfc33815da fix bar of wrong size 2020-07-06 19:16:03 +10:00
Damien Elmes
f072710f67 cards->reviews; total->running total 2020-07-06 19:16:03 +10:00
Damien Elmes
833d352e54 drop 1 month period 2020-07-06 19:16:03 +10:00