UI: mobile app qrcode widgets update
This commit is contained in:
		
							parent
							
								
									0bc04222ba
								
							
						
					
					
						commit
						14ebfe7975
					
				@ -14,6 +14,6 @@
 | 
				
			|||||||
    "home_page_widgets.documentation_links",
 | 
					    "home_page_widgets.documentation_links",
 | 
				
			||||||
    "home_page_widgets.dashboards",
 | 
					    "home_page_widgets.dashboards",
 | 
				
			||||||
    "home_page_widgets.usage_info",
 | 
					    "home_page_widgets.usage_info",
 | 
				
			||||||
    "home_page_widgets.home_mobile_app_qr_code"
 | 
					    "home_page_widgets.home_page_mobile_app_qr_code"
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -1,9 +1,9 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "fqn": "home_page_widgets.home_mobile_app_qr_code",
 | 
					  "fqn": "home_page_widgets.home_page_mobile_app_qr_code",
 | 
				
			||||||
  "name": "Mobile app QR code",
 | 
					  "name": "Home page mobile app QR code",
 | 
				
			||||||
  "deprecated": false,
 | 
					  "deprecated": false,
 | 
				
			||||||
  "image": null,
 | 
					  "image": null,
 | 
				
			||||||
  "description": null,
 | 
					  "description": "Enables users to open the ThingsBoard mobile app by scanning a QR code from Home page.",
 | 
				
			||||||
  "descriptor": {
 | 
					  "descriptor": {
 | 
				
			||||||
    "type": "static",
 | 
					    "type": "static",
 | 
				
			||||||
    "sizeX": 6,
 | 
					    "sizeX": 6,
 | 
				
			||||||
@ -15,7 +15,13 @@
 | 
				
			|||||||
    "settingsSchema": "",
 | 
					    "settingsSchema": "",
 | 
				
			||||||
    "dataKeySettingsSchema": "",
 | 
					    "dataKeySettingsSchema": "",
 | 
				
			||||||
    "settingsDirective": "",
 | 
					    "settingsDirective": "",
 | 
				
			||||||
    "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\":\"Mobile app QR code\",\"dropShadow\":true}"
 | 
					    "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\":\"Home page mobile app QR code\",\"dropShadow\":false,\"enableFullscreen\":false,\"widgetStyle\":{},\"widgetCss\":\"\",\"pageSize\":1024,\"noDataDisplayMessage\":\"\",\"showTitleIcon\":false,\"titleTooltip\":\"\",\"titleStyle\":{\"fontSize\":\"16px\",\"fontWeight\":400}}"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "tags": null
 | 
					  "tags": [
 | 
				
			||||||
 | 
					    "ios",
 | 
				
			||||||
 | 
					    "android",
 | 
				
			||||||
 | 
					    "qr code",
 | 
				
			||||||
 | 
					    "mobile application",
 | 
				
			||||||
 | 
					    "home page"
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
  "name": "Mobile app QR code",
 | 
					  "name": "Mobile app QR code",
 | 
				
			||||||
  "deprecated": false,
 | 
					  "deprecated": false,
 | 
				
			||||||
  "image": null,
 | 
					  "image": null,
 | 
				
			||||||
  "description": null,
 | 
					  "description": "Enables users to open the ThingsBoard mobile app by scanning the QR code from dashboard.",
 | 
				
			||||||
  "descriptor": {
 | 
					  "descriptor": {
 | 
				
			||||||
    "type": "static",
 | 
					    "type": "static",
 | 
				
			||||||
    "sizeX": 7.5,
 | 
					    "sizeX": 7.5,
 | 
				
			||||||
@ -17,5 +17,10 @@
 | 
				
			|||||||
    "settingsDirective": "tb-mobile-app-qr-code-widget-settings",
 | 
					    "settingsDirective": "tb-mobile-app-qr-code-widget-settings",
 | 
				
			||||||
    "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\":true,\"backgroundColor\":\"rgb(255, 255, 255)\",\"color\":\"rgba(0, 0, 0, 0.87)\",\"padding\":\"8px\",\"settings\":{\"useDefaultApp\":true,\"androidConfig\":{\"enabled\":true,\"appPackage\":\"\",\"sha256CertFingerprints\":\"\"},\"iosConfig\":{\"enabled\":true,\"appId\":\"\"},\"qrCodeConfig\":{\"badgeEnabled\":true,\"badgeStyle\":\"ORIGINAL\",\"badgePosition\":\"RIGHT\",\"qrCodeLabelEnabled\":true,\"qrCodeLabel\":\"Scan to connect or download mobile app\"}},\"title\":\"Mobile app QR code\",\"dropShadow\":true,\"enableFullscreen\":false,\"widgetStyle\":{},\"widgetCss\":\"\",\"pageSize\":1024,\"noDataDisplayMessage\":\"\",\"showTitleIcon\":false,\"titleTooltip\":\"\",\"titleStyle\":{\"fontSize\":\"16px\",\"fontWeight\":400}}"
 | 
					    "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\":true,\"backgroundColor\":\"rgb(255, 255, 255)\",\"color\":\"rgba(0, 0, 0, 0.87)\",\"padding\":\"8px\",\"settings\":{\"useDefaultApp\":true,\"androidConfig\":{\"enabled\":true,\"appPackage\":\"\",\"sha256CertFingerprints\":\"\"},\"iosConfig\":{\"enabled\":true,\"appId\":\"\"},\"qrCodeConfig\":{\"badgeEnabled\":true,\"badgeStyle\":\"ORIGINAL\",\"badgePosition\":\"RIGHT\",\"qrCodeLabelEnabled\":true,\"qrCodeLabel\":\"Scan to connect or download mobile app\"}},\"title\":\"Mobile app QR code\",\"dropShadow\":true,\"enableFullscreen\":false,\"widgetStyle\":{},\"widgetCss\":\"\",\"pageSize\":1024,\"noDataDisplayMessage\":\"\",\"showTitleIcon\":false,\"titleTooltip\":\"\",\"titleStyle\":{\"fontSize\":\"16px\",\"fontWeight\":400}}"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "tags": null
 | 
					  "tags": [
 | 
				
			||||||
 | 
					    "ios",
 | 
				
			||||||
 | 
					    "android",
 | 
				
			||||||
 | 
					    "qr code",
 | 
				
			||||||
 | 
					    "mobile application"
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user