@@ -2,10 +2,8 @@ import {openUploadFileDialog, openUploadSchemaDialog} from '@/components/toolbar
22import { downloadFile } from '@/components/toolbar/downloadFile' ;
33import { clearCurrentFile } from '@/components/toolbar/clearFile' ;
44import { useSessionStore } from '@/store/sessionStore' ;
5- import { ref } from 'vue' ;
6- import type { SchemaOption } from '@/packaged-schemas/schemaOption' ;
75import { openGenerateDataDialog } from '@/components/toolbar/createSampleData' ;
8- import { getDataForMode , useCurrentData , useCurrentSchema } from '@/data/useDataLink' ;
6+ import { getDataForMode , useCurrentData } from '@/data/useDataLink' ;
97import { useDataSource } from '@/data/dataSource' ;
108import { SessionMode } from '@/store/sessionMode' ;
119import { SETTINGS_DATA_DEFAULT } from '@/settings/defaultSettingsData' ;
@@ -14,6 +12,7 @@ import type {MenuItem} from 'primevue/menuitem';
1412import { panelTypeRegistry } from '@/components/panels/panelTypeRegistry' ;
1513import { panelTypeGuiEditor } from '@/components/panels/defaultPanelTypes' ;
1614import { openImportSchemaDialog } from '@/components/toolbar/importFile' ;
15+ import { extractInlinedSchemaDefinitions } from '@/components/toolbar/extractSchemaDefinitions' ;
1716
1817/**
1918 * Helper class that contains the menu items for the top menu bar.
@@ -185,6 +184,18 @@ export class MenuItems {
185184 icon : 'fa-solid fa-download' ,
186185 command : ( ) => downloadFile ( useDataSource ( ) . userSchemaData . value . title ?? 'untitled' , true ) ,
187186 } ,
187+ {
188+ label : 'Utility' ,
189+ icon : 'fa-solid fa-wrench' ,
190+ key : 'utility' ,
191+ items : [
192+ {
193+ label : 'Extract All Inlined Schema Elements' ,
194+ icon : 'fa-solid fa-scissors' ,
195+ command : extractInlinedSchemaDefinitions ,
196+ } ,
197+ ] ,
198+ } ,
188199 {
189200 label : 'Generate Source Code...' ,
190201 icon : 'fa-solid fa-file-code' ,
0 commit comments