Anki/ts/editor
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
..
editor-toolbar Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
image-overlay Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
mathjax-overlay Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
plain-text-input Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
rich-text-input Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
base.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
BrowserEditor.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
change-timer.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ClozeButtons.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
code-mirror.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
CodeMirror.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
CollapseBadge.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
CollapseLabel.svelte Simplify NoteEditor by replacing Pane components with Collapsible (#2395) 2023-02-27 16:23:19 +10:00
decorated-elements.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
destroyable.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
DuplicateLink.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
EditingArea.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
editor-base.scss Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
EditorField.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
FieldDescription.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
Fields.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
FieldState.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
HandleBackground.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
HandleControl.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
HandleLabel.svelte Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
helpers.ts Refactor plain/rich text input toggling code; fix focus loss (#2479) 2023-04-22 16:08:25 +10:00
icons.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
index.ts Merge the separate editor index files 2023-07-03 17:24:27 +10:00
LabelContainer.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
LabelName.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
legacy.scss Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
NoteCreator.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
NoteEditor.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
Notification.svelte Introduce new color palette using Sass maps (#2016) 2022-09-16 14:11:18 +10:00
old-editor-adapter.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
PlainTextBadge.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
PreviewButton.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
ReviewerEditor.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
RichTextBadge.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
StickyBadge.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
surround.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
types.ts Propagate editor UI state transitions to add-ons (#2711) 2023-10-13 08:47:50 +10:00