anki/ts/components
Damien Elmes 616db33c0e refactor protobuf handling for split/import
In order to split backend.proto into a more manageable size, the protobuf
handling needed to be updated. This took more time than I would have
liked, as each language handles protobuf differently:

- The Python Protobuf code ignores "package" directives, and relies
solely on how the files are laid out on disk. While it would have been
nice to keep the generated files in a private subpackage, Protobuf gets
confused if the files are located in a location that does not match
their original .proto layout, so the old approach of storing them in
_backend/ will not work. They now clutter up pylib/anki instead. I'm
rather annoyed by that, but alternatives seem to be having to add an extra
level to the Protobuf path, making the other languages suffer, or trying
to hack around the issue by munging sys.modules.
- Protobufjs fails to expose packages if they don't start with a capital
letter, despite the fact that lowercase packages are the norm in most
languages :-( This required a patch to fix.
- Rust was the easiest, as Prost is relatively straightforward compared
to Google's tools.

The Protobuf files are now stored in /proto/anki, with a separate package
for each file. I've split backend.proto into a few files as a test, but
the majority of that work is still to come.

The Python Protobuf building is a bit of a hack at the moment, hard-coding
"proto" as the top level folder, but it seems to get the job done for now.

Also changed the workspace name, as there seems to be a number of Bazel
repos moving away from the more awkward reverse DNS naming style.
2021-07-10 19:17:05 +10:00
..
BUILD.bazel refactor protobuf handling for split/import 2021-07-10 19:17:05 +10:00
ButtonDropdown.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
ButtonGroup.svelte Fix issues with sometimes cause assignment of wrong position value 2021-07-05 17:17:58 +02:00
ButtonGroupItem.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
buttons.ts Generalize ButtonToolbarItem to SectionItem 2021-06-21 17:01:42 +02:00
ButtonToolbar.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
ColorPicker.svelte Implement new ColorPicker 2021-05-30 22:58:40 +02:00
Container.svelte Add Container.svelte 2021-06-21 17:01:45 +02:00
context-keys.ts disabledKey => fieldFocusedKey 2021-07-05 18:15:03 +02:00
Detachable.svelte
dropdown.ts
DropdownDivider.svelte WIP: Use our components in deckoptions sticky bar 2021-05-18 16:32:29 +02:00
DropdownItem.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
DropdownMenu.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
helpers.ts
IconButton.svelte disabledKey => fieldFocusedKey 2021-07-05 18:15:03 +02:00
identifier.ts Add Section and SectionItem for the deckoptions 2021-06-21 17:01:44 +02:00
Item.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
LabelButton.svelte disabledKey => fieldFocusedKey 2021-07-05 18:15:03 +02:00
registration.ts Fix issues with sometimes cause assignment of wrong position value 2021-07-05 17:17:58 +02:00
Section.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
SelectButton.svelte disabledKey => fieldFocusedKey 2021-07-05 18:15:03 +02:00
SelectOption.svelte WIP: Use our components in deckoptions sticky bar 2021-05-18 16:32:29 +02:00
StickyBar.svelte Use Bootstrap containers instead of CSS in base for deckoptions 2021-06-21 17:01:44 +02:00
WithContext.svelte Disable FormatBlock buttons for Codable 2021-06-18 01:17:43 +02:00
WithDropdown.svelte More uniform file naming 2021-07-01 12:24:16 +02:00
WithShortcut.svelte Prefer event.which over event.{key,code} 2021-05-22 17:50:23 +02:00
WithState.svelte Disable Bold button in Codable 2021-06-18 00:27:07 +02:00
WithTheming.svelte update ts deps 2021-05-26 09:37:40 +10:00