简体   繁体   English

WSO2DAS上的仪表板

[英]Dashboard on WSO2DAS

I've created a gadget on WSO2DAS, a graph of which can be seen independently. 我在WSO2DAS上创建了一个小工具,可以独立查看其图形。 But When I'm trying to insert it into the dashboard I'm unable to see it. 但是,当我尝试将其插入仪表板时,看不到它。 You can see the dashboard in the image but inserted gadget is not visible. 您可以在图像中看到仪表板,但看不到插入的小工具。 Only setting and zoom in icons of it are visible. 仅显示和放大图标。

Edit the following file: 编辑以下文件:

(DAS_FOLDER)/repository/deployment/server/jaggeryapps/portal/extensions/components/gadget/index.js

Replace the resolveGadgetURL function with the code below: 用下面的代码替换resolveGadgetURL函数:

  var resolveGadgetURL = function (uri) {
  uri = resolveURI(uri);
  if (uri.match(/^https?:\/\//i))
  { return uri; }
  uri = uri.replace(/^(..\/)*/i, '');
  if (window.location.protocol === 'https:')
  { return 'https://localhost:' + server.httpsPort + context + '/' + uri; }
  return 'http://localhost:' + server.httpPort + context + '/' + uri;
  };

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM