From 77949555a9c9fa4f69e8c04c019b06a2b6f2122f Mon Sep 17 00:00:00 2001 From: Suchita Lad Date: Fri, 31 May 2024 16:56:50 +0530 Subject: Updated ports & links code of xcos2xml --- .../src/components/SchematicEditor/SchematicToolbar.js | 2 +- blocks/xcos2xml/foot.xsl | 2 +- blocks/xcos2xml/head.xsl | 15 +++++++++++++++ blocks/xcos2xml/links/CommandControlLink.xsl | 2 +- blocks/xcos2xml/links/ExplicitLink.xsl | 2 +- blocks/xcos2xml/links/ImplicitLink.xsl | 2 +- blocks/xcos2xml/ports/CommandPort.xsl | 2 +- blocks/xcos2xml/ports/ControlPort.xsl | 2 +- blocks/xcos2xml/ports/ExplicitInputPort.xsl | 2 +- blocks/xcos2xml/ports/ExplicitOutputPort.xsl | 2 +- blocks/xcos2xml/ports/ImplicitInputPort.xsl | 2 +- blocks/xcos2xml/ports/ImplicitOutputPort.xsl | 2 +- 12 files changed, 26 insertions(+), 11 deletions(-) diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js b/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js index f27eee1b..21a9f407 100644 --- a/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js +++ b/blocks/eda-frontend/src/components/SchematicEditor/SchematicToolbar.js @@ -305,7 +305,7 @@ export default function SchematicToolbar ({ mobileClose, gridRef }) { const handleLocalSchOpen = () => { const fileSelector = document.createElement('input') fileSelector.setAttribute('type', 'file') - fileSelector.setAttribute('accept', '.xml, application/xml') + fileSelector.setAttribute('accept', '.xcos, .xml, application/xml') fileSelector.click() fileSelector.addEventListener('change', function (event) { const file = event.target.files[0] diff --git a/blocks/xcos2xml/foot.xsl b/blocks/xcos2xml/foot.xsl index 53c781e1..a9b3a034 100644 --- a/blocks/xcos2xml/foot.xsl +++ b/blocks/xcos2xml/foot.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/head.xsl b/blocks/xcos2xml/head.xsl index 1028a07b..21cbd5cb 100644 --- a/blocks/xcos2xml/head.xsl +++ b/blocks/xcos2xml/head.xsl @@ -90,6 +90,11 @@ + + + + + @@ -98,3 +103,13 @@ + + + + + + + + + + diff --git a/blocks/xcos2xml/links/CommandControlLink.xsl b/blocks/xcos2xml/links/CommandControlLink.xsl index b9365a55..3433c5d9 100644 --- a/blocks/xcos2xml/links/CommandControlLink.xsl +++ b/blocks/xcos2xml/links/CommandControlLink.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/links/ExplicitLink.xsl b/blocks/xcos2xml/links/ExplicitLink.xsl index 9ca9c4fc..6f99ee2c 100644 --- a/blocks/xcos2xml/links/ExplicitLink.xsl +++ b/blocks/xcos2xml/links/ExplicitLink.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/links/ImplicitLink.xsl b/blocks/xcos2xml/links/ImplicitLink.xsl index 1e6a84a8..13c5e046 100644 --- a/blocks/xcos2xml/links/ImplicitLink.xsl +++ b/blocks/xcos2xml/links/ImplicitLink.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/ports/CommandPort.xsl b/blocks/xcos2xml/ports/CommandPort.xsl index eb59a0c3..73dbd17a 100644 --- a/blocks/xcos2xml/ports/CommandPort.xsl +++ b/blocks/xcos2xml/ports/CommandPort.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/ports/ControlPort.xsl b/blocks/xcos2xml/ports/ControlPort.xsl index 540936d3..a7980ebf 100644 --- a/blocks/xcos2xml/ports/ControlPort.xsl +++ b/blocks/xcos2xml/ports/ControlPort.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/ports/ExplicitInputPort.xsl b/blocks/xcos2xml/ports/ExplicitInputPort.xsl index 770431d6..06cb1e0d 100644 --- a/blocks/xcos2xml/ports/ExplicitInputPort.xsl +++ b/blocks/xcos2xml/ports/ExplicitInputPort.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/ports/ExplicitOutputPort.xsl b/blocks/xcos2xml/ports/ExplicitOutputPort.xsl index 65da873a..29ae4746 100644 --- a/blocks/xcos2xml/ports/ExplicitOutputPort.xsl +++ b/blocks/xcos2xml/ports/ExplicitOutputPort.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/ports/ImplicitInputPort.xsl b/blocks/xcos2xml/ports/ImplicitInputPort.xsl index b5d853cb..31e0b5bd 100644 --- a/blocks/xcos2xml/ports/ImplicitInputPort.xsl +++ b/blocks/xcos2xml/ports/ImplicitInputPort.xsl @@ -1,4 +1,4 @@ - + diff --git a/blocks/xcos2xml/ports/ImplicitOutputPort.xsl b/blocks/xcos2xml/ports/ImplicitOutputPort.xsl index ea109e16..3837970b 100644 --- a/blocks/xcos2xml/ports/ImplicitOutputPort.xsl +++ b/blocks/xcos2xml/ports/ImplicitOutputPort.xsl @@ -1,4 +1,4 @@ - + -- cgit