diff --git a/documentation/Templates/Projects/python-webservice.xprjson b/documentation/Templates/Projects/python-webservice.xprjson new file mode 100644 index 00000000..f323e411 --- /dev/null +++ b/documentation/Templates/Projects/python-webservice.xprjson @@ -0,0 +1,67 @@ +{ + "meta": { + "version": "4.000.9103", + "fileFormatVersion": "0.4", + "date": "2024-12-02T22:02:01.039Z", + "name": "python-webservice", + "description": "Using Flask via REST API dataNode-type to call Python code", + "tags": [ + { + "text": "DataNodes" + }, + { + "text": "Python" + }, + { + "text": "Flask" + }, + { + "text": "REST-API" + } + ], + "schedulerLogOff": true + }, + "data": { + "datanodes": [ + { + "name": "vectorFunctions", + "type": "REST_web-service_from_datasource", + "settings": { + "name": "vectorFunctions", + "url": "http://127.0.0.1:5000/basicVect", + "use_xproxy": false, + "resp_data_type": "JSON", + "autoStart": false, + "explicitTrig": false, + "method": "POST", + "body": "{\n\"A\": [0, 1, 2, 3],\n\"B\": [10, 11, 12, 13] \n}", + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + } + ], + "sampleTime": 0, + "req_data_type": "none" + } + } + ] + }, + "libraries": { + "pyodideStandard": [], + "pyodideMicropip": [] + }, + "dashboard": {}, + "connections": {}, + "display": { + "theme": "default", + "backgroundColor": "var(--widget-color-0)", + "inheritThemeBackgroundColor": true, + "marginX": 10, + "marginY": 10, + "width": 1045, + "height": 605, + "enforceHeightLimit": false + }, + "navBarNotification": false +} \ No newline at end of file diff --git a/documentation/docs/ds/img/ds-graph-cycle.png b/documentation/docs/ds/img/ds-graph-cycle.png new file mode 100644 index 00000000..7acd5331 Binary files /dev/null and b/documentation/docs/ds/img/ds-graph-cycle.png differ diff --git a/documentation/docs/xdashapi.md b/documentation/docs/xdashapi.md deleted file mode 100644 index ed7462d0..00000000 --- a/documentation/docs/xdashapi.md +++ /dev/null @@ -1,43 +0,0 @@ -# xDashApi - -xDashApi provides features for building multi-dashboard applications. - -Its main feature is to allow navigation between Chalk'it pages with parameter transfer. When landing at the target page, specified dataNodes of type *Variable* can have their initial values modified, as described below. - -xDashApi currently runs with JavaScript-type dataNodes. - -## goToPage - -In [constrained dashboard mode](../export/export#scaling-methods-for-the-constrained-dashboard), the method: - -```JavaScript -xDashApi.goToPage(pageNumber) -``` - -allows to show only the targed page. It is the main method for building multi-page app with custom navigation control. - -## viewPage - -```JavaScript -xDashApi.viewPage(pageUrl, inputVals, bNewTab) -``` - -Navigates to *pageUrl*, setting the values of the specified dataNodes in inputVals. - -- pageUrl : target page URL -- inputVals : an array of structures of type - ```JSON - {"dsName": "dataNodeName", "dsVal" : "dataNodeValue"} - ``` - dsName should be of type string. dsVal can be of any JavaScript primitive type (number, string, boolean), array or JSON. -- bNewTab : open in new tab when true. - -## viewProject - -Similar to view page, but applies for projects. - -```JavaScript -xDashApi.viewProject(projectUrl, inputVals, bNewTab) -``` - - diff --git a/front-end/source/assets/icon/datanodes/dark-mode/memory.png b/front-end/source/assets/icon/datanodes/dark-mode/memory.png new file mode 100644 index 00000000..1ddb999d Binary files /dev/null and b/front-end/source/assets/icon/datanodes/dark-mode/memory.png differ diff --git a/front-end/source/assets/icon/datanodes/light-mode/memory.png b/front-end/source/assets/icon/datanodes/light-mode/memory.png new file mode 100644 index 00000000..724a5306 Binary files /dev/null and b/front-end/source/assets/icon/datanodes/light-mode/memory.png differ diff --git a/front-end/source/assets/style/components/_plugin-editor.scss b/front-end/source/assets/style/components/_plugin-editor.scss index cafd7e3b..3329c08e 100644 --- a/front-end/source/assets/style/components/_plugin-editor.scss +++ b/front-end/source/assets/style/components/_plugin-editor.scss @@ -250,6 +250,9 @@ ul.datasource-input-suffix { @include media-breakpoint-up('md') { width: 80%; } + &.disabled { + font-style: italic; + } } // Errors in JSEditor diff --git a/front-end/source/assets/style/icons/_datanodes-icons.scss b/front-end/source/assets/style/icons/_datanodes-icons.scss index de6bd308..79c71bfc 100644 --- a/front-end/source/assets/style/icons/_datanodes-icons.scss +++ b/front-end/source/assets/style/icons/_datanodes-icons.scss @@ -30,6 +30,9 @@ &.icn-delay { @include icon-background('delay.svg', 'datanode'); } + &.icn-memory { + @include icon-background('memory.png', 'datanode'); + } &.icn-file-reader { @include icon-background('file-reader.svg', 'datanode');