anki/ts
Damien Elmes f6486da233
Various tweaks to I/O code (#2478)
* Allow user to select I/O notetype instead of enforcing a specific name

* Display a clearer error when I/O note is missing an image

Opening the card layout screen from "manage notetypes" was showing an
error about the Anki version being too old.

Replacement error is not currently translatable.

* Preserve existing notetype when adding I/O notetype

* Add a 'from clipboard' string

The intention is to use this in the future to allow an image occlusion
to be created from an image on the clipboard.

* Tweak I/O init

- Use union type instead of multiple nullable values
- Pass the notetype id in to initialization

* Fix image insertion in I/O note

- The regex expected double quotes, and we were using single ones
- Image tags don't need to be closed

* Use more consistent naming in image_occlusion.proto

* Tweaks to default I/O notetype

- Show the header on the front side as well (I presume this is what
users expect; if not am happy to revert)
- Don't show comments on card (again, I presume users expect to use
this field to add notes that aren't displayed during review, as they
can use back extra for that)

* Fix sticky footer missing background

Caused by earlier CSS refactoring
2023-04-19 15:30:18 +10:00
..
card-info Show custom data in stats screen 2023-02-07 12:27:43 +10:00
change-notetype Fix non-Latin text wrapping in deck options dropdown (#2334) 2023-01-19 20:59:27 +10:00
components Remove some dead code and an invalid import from types.ts 2023-04-12 16:36:15 +10:00
congrats Add some left/right margins to congrats page 2022-12-04 13:58:50 +10:00
deck-options Add a fully-random review order 2023-04-11 16:16:45 +10:00
domlib Fix overwrite surround (#2247) 2022-12-09 10:10:58 +10:00
editable Fix and refactor image size constraints (#2318) 2023-01-13 23:18:25 +10:00
editor Fix MathJax editor sometimes not properly sized / getting cut off (#2467) 2023-04-12 09:43:57 +10:00
fields Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
graphs Add emojis for graphs in hourly breakdown tooltip (#2464) 2023-04-17 16:16:10 +10:00
html-filter Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
icons Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
image-occlusion Various tweaks to I/O code (#2478) 2023-04-19 15:30:18 +10:00
import-csv Prevent the sticky from hiding in the stats page (#2457) 2023-03-26 15:23:50 +10:00
lib Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
mathjax Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
patches Protobufjs fixed the relative path issue 2023-02-03 09:31:42 +10:00
reviewer Various tweaks to I/O code (#2478) 2023-04-19 15:30:18 +10:00
sql_format Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
sveltelib Adjust lifecycleHooks.setup to allow async callbacks (#2388) 2023-02-22 11:38:58 +10:00
tag-editor Allow Shift+Tab to move focus from tag area to last field (#2458) 2023-03-28 14:13:21 +10:00
.gitignore Update eslint to 4.22.0 2021-04-22 19:19:39 +02:00
bundle_svelte.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
bundle_ts.mjs Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
esbuild_jest.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
jest.config.js Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
licenses.json Update to the latest TypeScript version 2023-04-12 16:42:28 +10:00
page.html Load page script after body created (#1802) 2022-04-19 17:16:56 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
transform_ts.mjs Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
tsconfig.json Update to the latest TypeScript version 2023-04-12 16:42:28 +10:00
yarn.sh Fix yarn.sh failing with linked out folder 2023-03-31 13:08:59 +10:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias