WSO2 DAS仪表板 - 删除未使用的页面

时间:2017-09-05 19:37:46

标签: wso2 wso2-das

我无法删除或编辑在WSO2 DAS信息中心中创建的网页。主页与预先配置的小工具一起正常工作,但我创建了2个新页面,我现在无法删除它们。我也无法更改它们的名称,或添加小工具或其他任何内容。

2 个答案:

答案 0 :(得分:0)

当您尝试删除时,您能告诉我们您在浏览器控制台中看到的内容吗?仪表板配置作为json保存在注册表中,您可以编辑它并在需要时删除不需要的页面。您可以从管理控制台浏览注册表。您创建的仪表板将位于以下注册表路径

/ _系统/配置/ UE的/仪表板/ yourDashboardName

您会看到一个页面数组为“pages”:[]。

编辑: 此解决方案可能适合您: 如上所述检索json文件并在第一页中的上面的数组(正常工作)中,您将看到一个json路径为

"content":{  
            "default":{

在里面会有许多小工具json配置,以a,b,c等开头,如下所示

"d":[  
                  {  
                     "id":"OnBoardingRequest-overall-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall",
                        "title":"OnBoardingRequest-overall",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  },
                  {  
                     "id":"OnBoardingRequest-overall-task-breakdown-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall-task-breakdown",
                        "title":"OnBoardingRequest-overall-task-breakdown",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall-task-breakdown/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall-task-breakdown/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall-task-breakdown",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  },
                  {  
                     "id":"OnBoardingRequest-overall-task-breakdown-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall-task-breakdown",
                        "title":"OnBoardingRequest-overall-task-breakdown",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall-task-breakdown/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall-task-breakdown/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall-task-breakdown",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  },
                  {  
                     "id":"OnBoardingRequest-overall-task-breakdown-0",
                     "content":{  
                        "id":"OnBoardingRequest-overall-task-breakdown",
                        "title":"OnBoardingRequest-overall-task-breakdown",
                        "type":"gadget",
                        "thumbnail":"fs://gadget/OnBoardingRequest-overall-task-breakdown/thumbnail.png",
                        "data":{  
                           "url":"fs://gadget/OnBoardingRequest-overall-task-breakdown/gadget.xml"
                        },
                        "styles":{  
                           "title":"OnBoardingRequest-overall-task-breakdown",
                           "borders":true
                        },
                        "options":{  
                           "role":{  
                              "type":"STRING",
                              "title":"Gadet Role",
                              "value":"",
                              "options":[  

                              ],
                              "required":true
                           }
                        },
                        "locale_titles":{  

                        }
                     }
                  }
               ],

在那些检查与您的小工具名称相对应的ID时,看看您是否有一个目前没有的名称。可能你已经删除了它,现在它已经不再使用了。如果它在那里删除整个a,或b或什么相应的部分。请在此之前备份。然后保存它。它应该工作。作为一种变通方法,您可以删除仪表板并创建一个新仪表板并添加小工具。希望这有帮助

答案 1 :(得分:0)

是的,我可以在注册表中删除它们,但我无法在仪表板编辑器中编辑它们。我甚至无法更改名称,或按删除按钮。当我按页面的名称来扩展页面的设置时,它不会显示任何内容,并且控制台中的错误如下:

index.js:179 Uncaught TypeError: Cannot read property 'site' of undefined
at Object.component.destroy (index.js:179)
at Object.destroyComponent [as destroy] (ues-dashboards.js:93)
at destroyComponent (designer.js:449)
at designer.js:471
at async.js:567
at async.js:246
at async.js:122
at _each (async.js:46)
at async.each (async.js:121)
at _asyncMap (async.js:245)