Code Monkey home page Code Monkey logo

jetlinks-ui-antd's Introduction

Jet Links 物联网基础平台

Maven Central Maven metadata URL

----jetlinks
-------|--------jetlinks-core        #核心模块,统一API
-------|--------jetlinks-supports    #默认功能实现
-------|--------rule-engine          #规则引擎

请先在github中添加SSH Key

$ git clone --recursive [email protected]:jetlinks/jetlinks.git

查看演示

本项目为核心模块整合,无法直接运行. 要看演示效果请看这里.

jetlinks-ui-antd's People

Contributors

13982720426 avatar afc163 avatar anderson-liu avatar bestfeng1020 avatar chenshuai2144 avatar crush394 avatar ddcat1115 avatar dependabot-preview[bot] avatar depfu[bot] avatar flutterbest avatar hzsrc avatar imhele avatar jaredleechn avatar kaoding avatar kennylbj avatar kevinadhiguna avatar lind-pro avatar m4jing avatar nikogu avatar rayronvictor avatar sorrycc avatar sun-chaochao avatar valleykid avatar whatakitty avatar wzyyy98 avatar xiaohuoni avatar xieyonghong avatar yoyo837 avatar yutingzhao1991 avatar zombiej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jetlinks-ui-antd's Issues

🧐[问题]npm install失败

🧐 问题描述

下载代码后,执行 npm install

Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack     at C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack     at C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack     at C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack     at C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at C:\Users\40282\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\40282\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\40282\project\jetlinks-ui-antd\node_modules\node-pty
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

💻 示例代码

🚑 其他信息

环境信息
  • Window 10
  • node 12.13.1
  • npm 6.13.2

👑 [需求] 数据可视化组件.

🥰 需求描述

  1. 可针对设备型号或者设备进行数据可视化配置
  2. 可拖拽布局

支持组件:

  • 设备数据图表,折线图,柱状图.

🐛[BUG]权限管理搜索BUG

🐛 bug 描述

优化权限管理搜索功能,采用统一搜索组件

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

🐛[BUG]通用查询过滤掉空数组、空对象

🐛 bug 描述

通用查询如果没有值后台会报错

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

👑 [需求] 增加通知记录查看

  1. 增加 通知记录
    image
  2. 弹出通知记录表格
    接口: /notify/history
    查询条件: 使用通用查询条件. notifierId 为通知配置ID
    展示列: 通知时间(notifyTime), 状态 (state), 参数(context)
    支持按时间范围查询,支持按状态查询。支持按时间排序,默认通知时间倒序排序。

🐛[BUG]【设备型号】物模型功能模块

🐛 bug 描述

物模型功能模块输入参数编辑后再新增参数,抽屉内还有之前编辑的参数的数据

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

image

🐛[BUG] 用户管理搜索问题

🐛 bug 描述

点删除操作后,搜索条件会重置

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

🐛[BUG] 型号功能或属性编辑复显bug

🐛 bug 描述

在功能定义/属性定义新增参数的时候会先显示前一参数的详情,并且无法设置参数ID
image

📷 复现步骤

编译一个已经有的参数,然后保存/关闭,然后点击新增参数,会看到把前一个参数的信息带了新增页面
1:
image
2:
image

🏞 期望结果

新增参数应该出现一个空的新增页面
image

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

【系统配置】增加系统配置功能

  1. 增加系统配置功能 权限: system-config

  2. 可配置前端配置: 接口 POST /system/config/front 提交一个map。 key value由前端根据情况自行定义,如 logoUrl等

  3. 在进入首页(登录页面)时获取配置: GET /system/config/front 返回一个map,如果没有配置则返回一个空map: {},为空时使用默认的配置,默认配置由前端写死.

🐛[BUG]NPM install失败

🐛 bug 描述

在centos7上获取完ui代码后,npm install成功了,然后npm start,访问登录地址报前端错误
npm -v 6.13.4
node -v v12.16.1

📷 复现步骤

服务器端错误:

Could not open global.tsx in the editor.

To set up the editor integration, add something like REACT_EDITOR=atom to the .env.local file in your project folder and restart the development server. Learn more: https://goo.gl/MMTaZt

浏览器错误

Unhandled Rejection (SecurityError): Failed to execute 'keys' on 'CacheStorage': Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
./src/global.tsx
src/global.tsx:86
  83 | }); // remove all caches
  84 | 
  85 | if (window.caches && window.caches.keys) {
> 86 |   caches.keys().then(keys => {
     | ^  87 |     keys.forEach(key => {
  88 |       caches.delete(key);
  89 |     });
View compiled
__webpack_require__
webpack/bootstrap:774
  771 | };
  772 | 
  773 | // Execute the module function
> 774 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  775 | 
  776 | // Flag the module as loaded
  777 | module.l = true;
View compiled
fn
webpack/bootstrap:129
  126 | 		);
  127 | 		hotCurrentParents = [];
  128 | 	}
> 129 | 	return __webpack_require__(request);
      | ^  130 | };
  131 | var ObjectFactory = function ObjectFactory(name) {
  132 | 	return {
View compiled
./src/pages/.umi/umi.js
src/pages/.umi/umi.js:3
  1 | import './polyfills';
  2 | import history from './history';
> 3 | import '../../global.tsx';
  4 | import React from 'react';
  5 | import ReactDOM from 'react-dom';
  6 | import findRoute, {
View compiled
__webpack_require__
webpack/bootstrap:774
  771 | };
  772 | 
  773 | // Execute the module function
> 774 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  775 | 
  776 | // Flag the module as loaded
  777 | module.l = true;
View compiled
fn
webpack/bootstrap:129
  126 | 		);
  127 | 		hotCurrentParents = [];
  128 | 	}
> 129 | 	return __webpack_require__(request);
      | ^  130 | };
  131 | var ObjectFactory = function ObjectFactory(name) {
  132 | 	return {
View compiled
0
http://k8client1.bgbigdata.com:8000/umi.js:240550:18
__webpack_require__
webpack/bootstrap:774
  771 | };
  772 | 
  773 | // Execute the module function
> 774 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  775 | 
  776 | // Flag the module as loaded
  777 | module.l = true;
View compiled
./config/defaultSettings.ts.Object.defineProperty.value
webpack/bootstrap:953
  950 | 
  951 | 
  952 | // Load entry module and return exports
> 953 | return hotCreateRequire(0)(__webpack_require__.s = 0);
      | ^  954 | 
View compiled
(anonymous function)
http://k8client1.bgbigdata.com:8000/umi.js:957:10

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

👑 [需求] 网络组件调试功能优化

注意: 在点击调试时,先取消订阅再重新订阅.

  1. MQTT Server调试
    调试接口替换为统一websocket接口:
{
	"type": "sub",
	"topic": "/network/mqtt/server/{networkId}/_subscribe/{payloadType}",
	"id": "ID"
}

将返回的payload 转为json字符串(JSON.stringify(payload,null,2))展示到控制台即可。

  1. MQTT Client调试

订阅:

{
	"type": "sub",
	"topic": "/network/mqtt/client/{networkId}/_subscribe/{消息类型}",
	"id": "ID",
        "parameter":{"topics":"topic,多个用换行符."}
}

将返回的payload 转为json字符串(JSON.stringify(payload,null,2))展示到控制台即可。

发布

{
	"type": "sub",
	"topic": "/network/mqtt/client/{networkId}/_publish/{消息类型}",
	"id": "ID",
        "parameter":{"topic":"topic","data":"输入的数据"}
}
  1. HTTP服务
{
	"type": "sub",
	"topic": "/network/http/server/{networkId}/_subscribe",
	"id": "ID",
        "parameter":{
          "response":"输入框输入"
       }
}

输入框默认值,点击调试的时候,存储到localstore.如果没有则显示:

HTTP/1.1 200 OK
Content-Type: application/json

{"success":true}

将返回的payload直接展示到控制台即可。

  1. HTTP客户端
{
	"type": "sub",
	"topic": "/network/http/client/{networkId}/_send",
	"id": "ID",
       "parameter":{
          "request":"输入框输入"
       }
}

输入框默认值,点击调试的时候,存储到localstore.如果没有则显示:

POST http://host:port/api
Content-Type: application/json

{ }

将返回的payload直接展示到控制台即可。

通知功能增加网络通知功能

  1. 增加网络组件相关通知配置功能
    image

服务商选择HTTP时,输入下拉框列出类型为HTTP_CLIENT的网络组件。
服务商选择MQTT时,输入下拉框列出类型为MQTT_CLIENT的网络组件。

对应提交数据: configuration.networkId

  1. 增加网络组件相关模版配置功能
    image

输入框直接为多行文本即可。字段为: template

选择HTTP时.如果内容为空则默认显示:

POST http://[host]:[port]/api
Content-Type: application/json

${T(com.alibaba.fastjson.JSON).toJSONString(#this)}

HTTP提交

选择MQTT时,如果内容为空则默认显示:

qos1 /device/${#deviceId}

${T(com.alibaba.fastjson.JSON).toJSONString(#this)}

🐛[BUG] 机构保存BUG

复现步骤:

  1. 创建顶级机构
  2. 添加子机构
  3. 修改顶级机构
  4. 保存后数据无法获取

原因:

保存顶级机构时,把子机构的parentId携带进去了。

修复建议:

  1. 编辑时,如果没有parentId,则不提交parentId字段.
  2. 编辑时,ID设置为只读.

🐛[BUG]【websocket】服务暂停就报错

🐛 bug 描述

服务暂停后界面报错

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

image

👑 [需求]物模型-功能定义-字段定义为枚举

🥰 需求描述

目前是把增加枚举项放在第一个枚举后面,下面的枚举项都为删除符,容易导致误操作,而且非常的不方便

🧐 解决方案

把➕号增加在枚举项的下面,每增加一个枚举项则➕号依次下移

🚑 其他信息

image

设备协议调试优化

脚本增加语法高亮
为空时的脚本内容:

//解码,收到设备上行消息时
codec.decoder(function (context) {
    var message = context.getMessage();
    return {
         messageType:"REPORT_PROPERTY"//消息类型
         
    };

});
//编码读取设备属性消息
codec.encoder("READ_PROPERTY",function(context){
  var message = context.getMessage();
  var properties = message.properties;
  

})

设备实例详情中,配置信息支持恢复默认

image

后台设备详情会返回aloneConfiguration属性,如果为true则表示设备单独配置了信息.
为true时显示恢复默认按钮,点击恢复后,调用接口:

PUT /device/instance/{deviceId}/configuration/_reset

接口返回重置后的配置信息.

🐛[BUG] 系统默认配置错误

🐛 bug 描述

image

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

🐛[BUG]去除国际化后,系统设置默认中文

🐛 bug 描述

去除国际化UI会采用英文模式,需要默认设置成中文

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • Jetlinks-ui-antd 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.