Commit f19b2efb8900c4127d5de454925aad2cdd87a128

Authored by Igor Kulikov
2 parents d94ae25b 07e30141

Merge branch 'master' into develop/2.0

@@ -18,6 +18,11 @@ @@ -18,6 +18,11 @@
18 18
19 dpkg -i /thingsboard.deb 19 dpkg -i /thingsboard.deb
20 20
  21 +# Copying env variables into conf files
  22 +printenv | awk -F "=" '{print "export " $1 "='\''" $2 "'\''"}' >> /usr/share/thingsboard/conf/thingsboard.conf
  23 +
  24 +cat /usr/share/thingsboard/conf/thingsboard.conf
  25 +
21 if [ "$DATABASE_TYPE" == "cassandra" ]; then 26 if [ "$DATABASE_TYPE" == "cassandra" ]; then
22 until nmap $CASSANDRA_HOST -p $CASSANDRA_PORT | grep "$CASSANDRA_PORT/tcp open\|filtered" 27 until nmap $CASSANDRA_HOST -p $CASSANDRA_PORT | grep "$CASSANDRA_PORT/tcp open\|filtered"
23 do 28 do
@@ -46,12 +51,6 @@ if [ "$ADD_SCHEMA_AND_SYSTEM_DATA" == "true" ]; then @@ -46,12 +51,6 @@ if [ "$ADD_SCHEMA_AND_SYSTEM_DATA" == "true" ]; then
46 fi 51 fi
47 fi 52 fi
48 53
49 -  
50 -# Copying env variables into conf files  
51 -printenv | awk -F "=" '{print "export " $1 "='\''" $2 "'\''"}' >> /usr/share/thingsboard/conf/thingsboard.conf  
52 -  
53 -cat /usr/share/thingsboard/conf/thingsboard.conf  
54 -  
55 echo "Starting 'Thingsboard' service..." 54 echo "Starting 'Thingsboard' service..."
56 service thingsboard start 55 service thingsboard start
57 56
@@ -119,8 +119,8 @@ public class MqttTransportService { @@ -119,8 +119,8 @@ public class MqttTransportService {
119 try { 119 try {
120 serverChannel.close().sync(); 120 serverChannel.close().sync();
121 } finally { 121 } finally {
122 - bossGroup.shutdownGracefully();  
123 workerGroup.shutdownGracefully(); 122 workerGroup.shutdownGracefully();
  123 + bossGroup.shutdownGracefully();
124 } 124 }
125 log.info("MQTT transport stopped!"); 125 log.info("MQTT transport stopped!");
126 } 126 }
@@ -280,6 +280,38 @@ export default function addLocaleChinese(locales) { @@ -280,6 +280,38 @@ export default function addLocaleChinese(locales) {
280 "selected-attributes": "{ count, select, 1 {1 属性} other {# 属性} } 被选中", 280 "selected-attributes": "{ count, select, 1 {1 属性} other {# 属性} } 被选中",
281 "selected-telemetry": "{ count, select, 1 {1 遥测} other {# 遥测} } 被选中" 281 "selected-telemetry": "{ count, select, 1 {1 遥测} other {# 遥测} } 被选中"
282 }, 282 },
  283 + "audit-log": {
  284 + "audit": "审计",
  285 + "audit-logs": "审计日志",
  286 + "timestamp": "时间戳",
  287 + "entity-type": "实体类型",
  288 + "entity-name": "实体名称",
  289 + "user": "用户",
  290 + "type": "类型",
  291 + "status": "状态",
  292 + "details": "详情",
  293 + "type-added": "添加",
  294 + "type-deleted": "删除",
  295 + "type-updated": "更新",
  296 + "type-attributes-updated": "更新属性",
  297 + "type-attributes-deleted": "删除属性",
  298 + "type-rpc-call": "RPC调用",
  299 + "type-credentials-updated": "更新凭证",
  300 + "type-assigned-to-customer": "分配给客户",
  301 + "type-unassigned-from-customer": "未分配给客户",
  302 + "type-activated": "激活",
  303 + "type-suspended": "暂停",
  304 + "type-credentials-read": "读取凭证",
  305 + "type-attributes-read": "读取属性",
  306 + "status-success": "成功",
  307 + "status-failure": "失败",
  308 + "audit-log-details": "审计日志详情",
  309 + "no-audit-logs-prompt": "找不到日志",
  310 + "action-data": "活动数据",
  311 + "failure-details": "失败详情",
  312 + "search": "查找审计日志",
  313 + "clear-search": "清空查找"
  314 + },
283 "confirm-on-exit": { 315 "confirm-on-exit": {
284 "message": "您有未保存的更改。确定要离开此页吗?", 316 "message": "您有未保存的更改。确定要离开此页吗?",
285 "html-message": "您有未保存的更改。<br/> 确定要离开此页面吗?", 317 "html-message": "您有未保存的更改。<br/> 确定要离开此页面吗?",
@@ -20,6 +20,7 @@ import 'brace/mode/javascript'; @@ -20,6 +20,7 @@ import 'brace/mode/javascript';
20 import 'brace/mode/html'; 20 import 'brace/mode/html';
21 import 'brace/mode/css'; 21 import 'brace/mode/css';
22 import 'brace/mode/json'; 22 import 'brace/mode/json';
  23 +import 'ace-builds/src-min-noconflict/ace';
23 import 'ace-builds/src-min-noconflict/snippets/javascript'; 24 import 'ace-builds/src-min-noconflict/snippets/javascript';
24 import 'ace-builds/src-min-noconflict/snippets/text'; 25 import 'ace-builds/src-min-noconflict/snippets/text';
25 import 'ace-builds/src-min-noconflict/snippets/html'; 26 import 'ace-builds/src-min-noconflict/snippets/html';
@@ -662,4 +663,4 @@ export default function WidgetEditorController(widgetService, userService, types @@ -662,4 +663,4 @@ export default function WidgetEditorController(widgetService, userService, types
662 663
663 } 664 }
664 665
665 -/* eslint-enable angular/angularelement */  
  666 +/* eslint-enable angular/angularelement */