diff --git a/components.d.ts b/components.d.ts index 768edee..b12db8e 100644 --- a/components.d.ts +++ b/components.d.ts @@ -34,6 +34,7 @@ declare module 'vue' { LocaleSwitcher: typeof import('./src/components/LocaleSwitcher.vue')['default'] Logo: typeof import('./src/components/Logo.vue')['default'] MigrationDialog: typeof import('./src/components/MigrationDialog.vue')['default'] + ModalDialog: typeof import('./src/components/ModalDialog.vue')['default'] NewStructureModal: typeof import('./src/components/NewStructureModal.vue')['default'] Prompt: typeof import('./src/components/Prompt.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/docs/structure.md b/docs/structure.md index 26bc200..de928f9 100644 --- a/docs/structure.md +++ b/docs/structure.md @@ -447,6 +447,9 @@ triggers: # URL called when the trigger is executed url: https://json.ms/?action=build + + # Location of the trigger button (structure, toolbar, data) + location: editor # HTTP method used for the request method: POST diff --git a/package.json b/package.json index 605cc76..26e499c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@json.ms/www", "private": true, "type": "module", - "version": "1.2.16", + "version": "1.2.18", "scripts": { "dev": "vite --host", "build": "run-p type-check \"build-only {@}\" --", diff --git a/src/assets/example-structure.yaml b/src/assets/example-structure.yaml index 69232af..3a28b6d 100644 --- a/src/assets/example-structure.yaml +++ b/src/assets/example-structure.yaml @@ -22,6 +22,7 @@ triggers: label: Build icon: mdi-play url: [BUILD_URL]/build + location: structure method: POST headers: Content-Type: application/json diff --git a/src/components/ActionBar.vue b/src/components/ActionBar.vue index aa41544..f287ab8 100644 --- a/src/components/ActionBar.vue +++ b/src/components/ActionBar.vue @@ -6,6 +6,14 @@ import {useGlobalStore} from '@/stores/global'; import {computed} from "vue"; import {useTypings} from "@/composables/typings"; import {useModelStore} from "@/stores/model"; +import TriggerMenu from "@/components/TriggerMenu.vue"; +import type {IStructure, IStructureData} from "@/interfaces"; + +const structure = defineModel({ required: true }); +const { structureData, userData } = defineProps<{ + structureData: IStructureData, + userData: any, +}>(); const globalStore = useGlobalStore(); const modelStore = useModelStore(); @@ -56,6 +64,12 @@ const reset = () => { diff --git a/src/components/IntroductionDialog.vue b/src/components/IntroductionDialog.vue index 25113a3..29abfa3 100644 --- a/src/components/IntroductionDialog.vue +++ b/src/components/IntroductionDialog.vue @@ -1,5 +1,6 @@