Anki/qt/aqt
Damien Elmes 9f55cf26fc
Switch to SvelteKit (#3077)
* Update to latest Node LTS

* Add sveltekit

* Split tslib into separate @generated and @tslib components

SvelteKit's path aliases don't support multiple locations, so our old
approach of using @tslib to refer to both ts/lib and out/ts/lib will no
longer work. Instead, all generated sources and their includes are
placed in a separate out/ts/generated folder, and imported via @generated
instead. This also allows us to generate .ts files, instead of needing
to output separate .d.ts and .js files.

* Switch package.json to module type

* Avoid usage of baseUrl

Incompatible with SvelteKit

* Move sass into ts; use relative links

SvelteKit's default sass support doesn't allow overriding loadPaths

* jest->vitest, graphs example working with yarn dev

* most pages working in dev mode

* Some fixes after rebasing

* Fix/silence some svelte-check errors

* Get image-occlusion working with Fabric types

* Post-rebase lock changes

* Editor is now checked

* SvelteKit build integrated into ninja

* Use the new SvelteKit entrypoint for pages like congrats/deck options/etc

* Run eslint once for ts/**; fix some tests

* Fix a bunch of issues introduced when rebasing over latest main

* Run eslint fix

* Fix remaining eslint+pylint issues; tests now all pass

* Fix some issues with a clean build

* Latest bufbuild no longer requires @__PURE__ hack

* Add a few missed dependencies

* Add yarn.bat to fix Windows build

* Fix pages failing to show when ANKI_API_PORT not defined

* Fix svelte-check and vitest on Windows

* Set node path in ./yarn

* Move svelte-kit output to ts/.svelte-kit

Sadly, I couldn't figure out a way to store it in out/ if out/ is
a symlink, as it breaks module resolution when SvelteKit is run.

* Allow HMR inside Anki

* Skip SvelteKit build when HMR is defined

* Fix some post-rebase issues

I should have done a normal merge instead.
2024-03-31 09:16:31 +01:00
..
browser Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
data Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
forms Adjust HTML editor / add-on config editor font (#3054) 2024-03-05 07:29:05 +00:00
import_export Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
operations Display deck names when deleting (#3058) 2024-03-13 12:29:06 +07:00
qt Automatically disable sandbox on Qt5 PyPi/packaged builds 2023-11-16 10:28:58 +10:00
__init__.py qt/aqt/__init__.py: Skip GL library workaround for FreeBSD (#3071) 2024-03-12 15:50:21 +07:00
_macos_helper.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
about.py Added new translator name (#3060) 2024-03-08 12:55:16 +00:00
addcards.py Make a deep copy in reviewer/create-copy (#3013) 2024-02-18 13:09:53 +07:00
addons.py Adjust HTML editor / add-on config editor font (#3054) 2024-03-05 07:29:05 +00:00
changenotetype.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
clayout.py Use Card %d for Cloze and IO template names (#3049) 2024-03-06 08:03:31 +00:00
colors.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
customstudy.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
dbcheck.py Backup improvements (#1728) 2022-03-21 19:40:42 +10:00
debug_console.py Pass dict for locals and globals to exec() (#2590) 2023-07-25 21:21:06 +10:00
deckbrowser.py Display deck names when deleting (#3058) 2024-03-13 12:29:06 +07:00
deckchooser.py Make dialogs non-blocking (#1650) 2022-02-10 09:53:13 +10:00
deckconf.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
deckdescription.py Update Python deps 2023-03-31 14:04:05 +10:00
deckoptions.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
editcurrent.py Apply same ctrl+numpad enter fix that the add screen has 2023-10-26 11:57:37 +10:00
editor.py Revert "Preserve HTML formatting inside clozes (#3038)" 2024-03-25 16:47:54 +07:00
emptycards.py Rework & unify webview identification and title setting (#2366) 2023-02-10 14:53:11 +10:00
errors.py Catch another invalid-timestamp error 2023-12-11 12:39:20 +10:00
exporting.py Change export notes' parent window in card browser (#2761) 2023-10-22 10:23:58 +10:00
fields.py Skip template checks in Fields screen (#2670) 2023-09-20 16:09:54 +10:00
filtered_deck.py Use seconds instead of minutes for preview delay 2023-12-21 11:02:29 +10:00
flags.py Introduce new color palette using Sass maps (#2016) 2022-09-16 14:11:18 +10:00
gui_hooks.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
importing.py Drop support for checkpoints (#2742) 2023-10-17 12:43:34 +10:00
legacy.py Import submodules directly (#1662) 2022-02-13 13:40:47 +10:00
log.py Add support for python logging (#2969) 2024-02-11 16:41:50 +10:00
main.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
mediacheck.py Add View Files button to Check Media screen (#3006) 2024-02-12 16:17:47 +10:00
mediasrv.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
mediasync.py Prevent media syncing from blocking collection tasks (#2740) 2023-10-17 09:47:50 +10:00
modelchooser.py Add callback and non-blocking option to StudyDeck (#1643) 2022-02-07 22:05:59 +10:00
models.py fix: refresh model list when legacy addon adds notetype (#2825) 2023-11-13 10:36:21 +10:00
mpv.py Fix mpv loadfile syntax change (#3105) 2024-03-31 07:46:59 +01:00
notetypechooser.py Make dialogs non-blocking (#1650) 2022-02-10 09:53:13 +10:00
overview.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
package.py Fix startup failure in macOS bundle 2023-10-14 13:49:33 +10:00
preferences.py Add log-in button to preferences screen (#2994) 2024-02-12 16:29:16 +10:00
profiles.py Add support for python logging (#2969) 2024-02-11 16:41:50 +10:00
progress.py Fix full sync dialog failing to appear 2024-03-12 14:39:46 +07:00
props.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
reviewer.py Add edge-case to type-in-answer filter in reviewer (#3010) 2024-02-14 20:38:10 +10:00
schema_change_tracker.py Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
sound.py Fix mpv loadfile syntax change (#3105) 2024-03-31 07:46:59 +01:00
stats.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
studydeck.py Fix filter area not starting focused on Qt 6.6.1 2023-12-06 14:30:46 +10:00
stylesheets.py Workaround Ubuntu ignoring tooltip palette in dark mode 2023-05-31 15:19:10 +10:00
switch.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
sync.py Fix full sync dialog failing to appear 2024-03-12 14:39:46 +07:00
tagedit.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
taglimit.py Move custom study tag and limit gathering+saving into the backend 2022-03-10 16:23:03 +10:00
taskman.py Fix mpv idle notification not using main thread 2023-12-06 11:40:05 +10:00
theme.py Fix misalignment of IO masks in Qt5 when image is vertically long (#2829) 2023-11-16 10:30:54 +10:00
toolbar.py Possible workaround for toolbar height issue 2024-03-28 15:37:49 +07:00
tts.py Fix TTS not working properly with auto advance (#2874) 2023-12-06 11:45:33 +10:00
undo.py Dependency updates (#3040) 2024-02-28 16:28:04 +07:00
update.py Fix update suppression 2024-01-09 14:12:26 +10:00
utils.py Fix full sync dialog failing to appear 2024-03-12 14:39:46 +07:00
webview.py Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
widgetgallery.py Improve debug console (#2435) 2023-03-15 15:29:05 +10:00
winpaths.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00