Anki is a smart spaced repetition flashcard program
Find a file
Glutanimate 5e90758f39 Allow add-on authors to set a whitelist of webview-accessible files
Extends the AddonManager API with two new methods, setWebExports and
getWebExports. setWebExports expects an add-on module name and a
valid RegEx pattern to match subpaths in the add-on folder against.

Any matching subpaths will be accessible in Anki's web views by
referencing them with /_addons/{addon_id}/{subpath}.

For instance, to allow access to .css and .png files in your add-on's
user_files directory you would call:

> mw.addonManager.setWebExports(__name__, r"user_files/.+(\.png|\.css)")

You could then reference these files in web views as such:

> <img src="/_addons/{addon_id}/user_files/test.png">

Please note that this bypasses the default security policies used
in Anki webviews. You should take care to construct your RegEx
patterns specific enough so that they do not match any sensitive
files of our add-on.
2019-03-02 18:57:51 +01:00
anki bump version 2019-02-24 16:20:49 +10:00
aqt Allow add-on authors to set a whitelist of webview-accessible files 2019-03-02 18:57:51 +01:00
designer Enable non-contiguous multi-selection in add-on list 2019-02-23 09:39:49 +01:00
tests fix importing unit test 2018-11-18 15:27:37 +10:00
tools use nosetests3 if available 2018-10-04 17:56:50 +10:00
web update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
.gitignore include git hash in version info 2018-12-13 20:59:06 +10:00
.travis.yml no parallel processing in travis run 2018-01-27 19:06:49 +10:00
anki.1 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.desktop update anki.desktop (thanks to julian) 2017-01-24 18:29:31 +10:00
anki.png merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xml update file associations 2018-08-20 14:38:22 +10:00
anki.xpm merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
LICENSE.logo clarify logo license 2017-09-06 17:01:23 +10:00
Makefile add missing license file 2018-03-17 10:37:50 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.contributing Update README.contributing 2018-07-10 09:13:10 -07:00
README.development Update pip command for PyQt packaging changes 2019-02-15 13:51:57 +01:00
README.md readme tweak 2017-08-16 20:02:09 +10:00
requirements.txt require psutil on win32 2019-02-16 13:03:16 +10:00
runanki explicit python3 in runanki, remove /usr/share ref 2016-06-28 15:47:09 +10:00

Anki

This is the development branch of Anki.

For stable builds, please see https://apps.ankiweb.net.

For non-developers who want to try this development code, the easiest way is to use a binary package - please see https://anki.tenderapp.com/discussions/beta-testing

To run from source, please see README.development.

Build Status