Merge branch 'master' into develop/2.0
This commit is contained in:
		
						commit
						f19b2efb89
					
				@ -18,6 +18,11 @@
 | 
			
		||||
 | 
			
		||||
dpkg -i /thingsboard.deb
 | 
			
		||||
 | 
			
		||||
# Copying env variables into conf files
 | 
			
		||||
printenv | awk -F "=" '{print "export " $1 "='\''" $2 "'\''"}' >> /usr/share/thingsboard/conf/thingsboard.conf
 | 
			
		||||
 | 
			
		||||
cat /usr/share/thingsboard/conf/thingsboard.conf
 | 
			
		||||
 | 
			
		||||
if [ "$DATABASE_TYPE" == "cassandra" ]; then
 | 
			
		||||
    until nmap $CASSANDRA_HOST -p $CASSANDRA_PORT | grep "$CASSANDRA_PORT/tcp open\|filtered"
 | 
			
		||||
    do
 | 
			
		||||
@ -46,12 +51,6 @@ if [ "$ADD_SCHEMA_AND_SYSTEM_DATA" == "true" ]; then
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Copying env variables into conf files
 | 
			
		||||
printenv | awk -F "=" '{print "export " $1 "='\''" $2 "'\''"}' >> /usr/share/thingsboard/conf/thingsboard.conf
 | 
			
		||||
 | 
			
		||||
cat /usr/share/thingsboard/conf/thingsboard.conf
 | 
			
		||||
 | 
			
		||||
echo "Starting 'Thingsboard' service..."
 | 
			
		||||
service thingsboard start
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -119,8 +119,8 @@ public class MqttTransportService {
 | 
			
		||||
        try {
 | 
			
		||||
            serverChannel.close().sync();
 | 
			
		||||
        } finally {
 | 
			
		||||
            bossGroup.shutdownGracefully();
 | 
			
		||||
            workerGroup.shutdownGracefully();
 | 
			
		||||
            bossGroup.shutdownGracefully();
 | 
			
		||||
        }
 | 
			
		||||
        log.info("MQTT transport stopped!");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -280,6 +280,38 @@ export default function addLocaleChinese(locales) {
 | 
			
		||||
            "selected-attributes": "{ count, select, 1 {1 属性} other {# 属性} } 被选中",
 | 
			
		||||
            "selected-telemetry": "{ count, select, 1 {1 遥测} other {# 遥测} } 被选中"
 | 
			
		||||
        },
 | 
			
		||||
        "audit-log": {
 | 
			
		||||
            "audit": "审计",
 | 
			
		||||
            "audit-logs": "审计日志",
 | 
			
		||||
            "timestamp": "时间戳",
 | 
			
		||||
            "entity-type": "实体类型",
 | 
			
		||||
            "entity-name": "实体名称",
 | 
			
		||||
            "user": "用户",
 | 
			
		||||
            "type": "类型",
 | 
			
		||||
            "status": "状态",
 | 
			
		||||
            "details": "详情",
 | 
			
		||||
            "type-added": "添加",
 | 
			
		||||
            "type-deleted": "删除",
 | 
			
		||||
            "type-updated": "更新",
 | 
			
		||||
            "type-attributes-updated": "更新属性",
 | 
			
		||||
            "type-attributes-deleted": "删除属性",
 | 
			
		||||
            "type-rpc-call": "RPC调用",
 | 
			
		||||
            "type-credentials-updated": "更新凭证",
 | 
			
		||||
            "type-assigned-to-customer": "分配给客户",
 | 
			
		||||
            "type-unassigned-from-customer": "未分配给客户",
 | 
			
		||||
            "type-activated": "激活",
 | 
			
		||||
            "type-suspended": "暂停",
 | 
			
		||||
            "type-credentials-read": "读取凭证",
 | 
			
		||||
            "type-attributes-read": "读取属性",
 | 
			
		||||
            "status-success": "成功",
 | 
			
		||||
            "status-failure": "失败",
 | 
			
		||||
            "audit-log-details": "审计日志详情",
 | 
			
		||||
            "no-audit-logs-prompt": "找不到日志",
 | 
			
		||||
            "action-data": "活动数据",
 | 
			
		||||
            "failure-details": "失败详情",
 | 
			
		||||
            "search": "查找审计日志",
 | 
			
		||||
            "clear-search": "清空查找"
 | 
			
		||||
        },
 | 
			
		||||
        "confirm-on-exit": {
 | 
			
		||||
            "message": "您有未保存的更改。确定要离开此页吗?",
 | 
			
		||||
            "html-message": "您有未保存的更改。<br/> 确定要离开此页面吗?",
 | 
			
		||||
 | 
			
		||||
@ -20,6 +20,7 @@ import 'brace/mode/javascript';
 | 
			
		||||
import 'brace/mode/html';
 | 
			
		||||
import 'brace/mode/css';
 | 
			
		||||
import 'brace/mode/json';
 | 
			
		||||
import 'ace-builds/src-min-noconflict/ace';
 | 
			
		||||
import 'ace-builds/src-min-noconflict/snippets/javascript';
 | 
			
		||||
import 'ace-builds/src-min-noconflict/snippets/text';
 | 
			
		||||
import 'ace-builds/src-min-noconflict/snippets/html';
 | 
			
		||||
@ -662,4 +663,4 @@ export default function WidgetEditorController(widgetService, userService, types
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* eslint-enable angular/angularelement */
 | 
			
		||||
/* eslint-enable angular/angularelement */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user