forked from thingsboard/thingsboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
4,250 additions
and
897 deletions.
There are no files selected for viewing
24 changes: 1 addition & 23 deletions
24
application/src/main/data/json/system/widget_types/gateway_configuration.json
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 1 addition & 23 deletions
24
...ication/src/main/data/json/system/widget_types/gateway_configuration__single_device_.json
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
application/src/main/data/json/system/widget_types/gateway_connectors.json
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
application/src/main/data/json/system/widget_types/gateway_custom_statistics.json
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
application/src/main/data/json/system/widget_types/gateway_general_chart_statistics.json
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 3 additions & 27 deletions
30
application/src/main/data/json/system/widget_types/gateway_general_configuration.json
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
application/src/main/data/json/system/widget_types/gateway_logs.json
Large diffs are not rendered by default.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
application/src/main/data/json/system/widget_types/gateway_status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"fqn": "gateway_widgets.gateway_status", | ||
"name": "Gateway status", | ||
"deprecated": false, | ||
"image": "tb-image;/api/images/system/gateway_status_system_widget_image.png", | ||
"description": "Indicator of Gateway connection status.", | ||
"descriptor": { | ||
"type": "latest", | ||
"sizeX": 7.5, | ||
"sizeY": 3, | ||
"resources": [ | ||
{ | ||
"url": "tb-resource;/api/resource/js_module/system/gateway-management-extension.js", | ||
"isModule": true | ||
} | ||
], | ||
"templateHtml": "<tb-gateway-status [deviceId]=\"entityId\" *ngIf=\"entityId\" [ctx]=\"ctx\"></tb-gateway-status>", | ||
"templateCss": "", | ||
"controllerScript": "self.onInit = function() {\n if (self.ctx.datasources && self.ctx.datasources.length) {\n self.ctx.$scope.entityId = self.ctx.datasources[0].entity.id;\n }\n};\n\nself.onDataUpdated = function() {\n self.ctx.$scope.gatewayStatus?.onDataUpdated();\n};", | ||
"settingsSchema": "", | ||
"dataKeySettingsSchema": "", | ||
"settingsDirective": "tb-gateway-status", | ||
"defaultConfig": "{\"datasources\":[{\"type\":\"static\",\"name\":\"function\",\"dataKeys\":[{\"name\":\"f(x)\",\"type\":\"function\",\"label\":\"Random\",\"color\":\"#2196f3\",\"settings\":{},\"_hash\":0.15479322438769105,\"funcBody\":\"var value = prevValue + Math.random() * 100 - 50;\\nvar multiplier = Math.pow(10, 2 || 0);\\nvar value = Math.round(value * multiplier) / multiplier;\\nif (value < -1000) {\\n\\tvalue = -1000;\\n} else if (value > 1000) {\\n\\tvalue = 1000;\\n}\\nreturn value;\"}]}],\"timewindow\":{\"realtime\":{\"timewindowMs\":60000}},\"showTitle\":false,\"backgroundColor\":\"rgb(255, 255, 255)\",\"color\":\"rgba(0, 0, 0, 0.87)\",\"padding\":\"8px\",\"settings\":{\"cardHtml\":\"<div class='card'>HTML code here</div>\",\"cardCss\":\".card {\\n font-weight: bold;\\n font-size: 32px;\\n color: #999;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n}\"},\"title\":\"HTML Card\",\"dropShadow\":true}" | ||
}, | ||
"tags": [ | ||
"router", | ||
"bridge", | ||
"hub", | ||
"access point", | ||
"relay", | ||
"opc ua", | ||
"opc-ua", | ||
"modbus", | ||
"bacnet", | ||
"odbc", | ||
"ftp", | ||
"snmp", | ||
"mqtt", | ||
"xmpp", | ||
"ocpp", | ||
"ble", | ||
"bluetooth" | ||
] | ||
} |
23 changes: 0 additions & 23 deletions
23
application/src/main/data/json/system/widget_types/service_rpc.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.