Line data Source code
1 : // @ts-check 2 : 3 : import Vue from "vue"; 4 : import { mapState } from "vuex"; 5 : import SSVGItem from "./components/SSVGItem.vue"; 6 : import SSVGPropList from "./components/SSVGPropList.vue"; 7 : import SSVGPropEdit from "./components/SSVGPropEdit.vue"; 8 : import SSVGControl from "./components/SSVGControl.vue"; 9 : import SSVGSelectorList from "./components/SSVGSelectorList/SSVGSelectorList.vue"; 10 : import CreatePropertyDialog from "./components/SSVGPropList/CreatePropertyDialog.vue"; 11 : import CreateTransitionDialog from "./components/SSVGPropList/CreateTransitionDialog.vue"; 12 : 13 : import contributors from "../../Contributors.yml"; 14 : import libs from "../../Components.yml"; 15 : 16 1 : const options = { contributors, libs }; 17 : 18 1 : const component = /** @type {V.Constructor<typeof options, any>} */(Vue).extend({ 19 : name: "App", 20 : ...options, 21 : components: { SSVGItem, SSVGPropList, SSVGPropEdit, SSVGControl, SSVGSelectorList, CreatePropertyDialog, CreateTransitionDialog }, 22 : // @ts-ignore 23 3 : data() { return { VERSION, TITLE }; }, 24 : /** @type {{ fragment(): Element| null }} */ 25 : computed: { 26 : ...mapState("engine", [ "stateElements", "fragment" ]) 27 : } 28 : }); 29 : 30 : export default component;