WSO2DAS上的仪表板

时间:2016-02-08 07:02:51

标签: wso2 wso2-das

我在WSO2DAS上创建了一个小工具,可以独立查看其中的图表。但是,当我试图将其插入仪表板时,我无法看到它。 You can see the dashboard in the image but inserted gadget is not visible. Only setting and zoom in icons of it are visible.

1 个答案:

答案 0 :(得分:0)

编辑以下文件:

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

将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;
  };