From 3203f7bcdfa9112370f0d73fe9d4d115afb5af28 Mon Sep 17 00:00:00 2001 From: Henry Sloan Date: Sun, 18 Jul 2021 12:06:57 -0400 Subject: [PATCH] Add JSON-backed options widget --- client/web/src/components/panels/Document.vue | 46 +------ .../widgets/options/ToolOptions.vue | 121 ++++++++++++++++++ 2 files changed, 124 insertions(+), 43 deletions(-) create mode 100644 client/web/src/components/widgets/options/ToolOptions.vue diff --git a/client/web/src/components/panels/Document.vue b/client/web/src/components/panels/Document.vue index 576ec33a9d..c59aa45b29 100644 --- a/client/web/src/components/panels/Document.vue +++ b/client/web/src/components/panels/Document.vue @@ -6,49 +6,7 @@ - - - - - - - - - - - - - -

Align

-

More alignment-related buttons will be here

-
- - - - - - - - - -

Flip

-

More flip-related buttons will be here

-
- - - - - - - - - - - - -

Boolean

-

More boolean-related buttons will be here

-
+
@@ -255,6 +213,7 @@ import RadioInput from "@/components/widgets/inputs/RadioInput.vue"; import NumberInput from "@/components/widgets/inputs/NumberInput.vue"; import DropdownInput from "@/components/widgets/inputs/DropdownInput.vue"; import OptionalInput from "@/components/widgets/inputs/OptionalInput.vue"; +import ToolOptions from "@/components/widgets/options/ToolOptions.vue"; import { SectionsOfMenuListEntries } from "@/components/widgets/floating-menus/MenuList.vue"; const modeMenuEntries: SectionsOfMenuListEntries = [ @@ -401,6 +360,7 @@ export default defineComponent({ NumberInput, DropdownInput, OptionalInput, + ToolOptions, }, }); diff --git a/client/web/src/components/widgets/options/ToolOptions.vue b/client/web/src/components/widgets/options/ToolOptions.vue new file mode 100644 index 0000000000..3be38c2d37 --- /dev/null +++ b/client/web/src/components/widgets/options/ToolOptions.vue @@ -0,0 +1,121 @@ + + + + +