问题描述
我试图一个欢迎/介绍页面添加到Kibana 4和需要修改导航菜单。我已经找到了导航源html文件在/src/kibana/plugins/kibana/kibana.html但不能揣摩出标签名正在从注入。
I am attempting to add a welcome/intro page to Kibana 4 and need to modify the navigation menu. I have found the navigation source html document at /src/kibana/plugins/kibana/kibana.html but cannot figure out where the tab names are being injected from.
下面就是呼叫正在上榜code座:
Here is the list code block where the call is being made:
<li ng-repeat="app in apps.inOrder | filter:{show: true}" ng-class="{active: activeApp === app}">
<a ng-href="#{{app.lastPath}}" bo-text="app.name"></a>
</li>
这关联到的话发现,可视化,仪表盘和设置,如下所示:
Which correlates to the words "Discover", "Visualize", "Dashboard", and "Settings" as shown here:
的
我希望那里是一个配置文件,但我似乎无法找到它......
I would expect there to be a configuration file, but I can't seem to find it...
推荐答案
我Kibana 4.1.1这样增加了一个网页:
I added a page in Kibana 4.1.1 like this:
- 复制
的src / kibana /插件/设置
到的src / kibana /插件/帮助
- 删除
-
的src / kibana /插件/帮助/风格
-
的src / kibana /插件/帮助/ saved_object_registry.js
-
的src / kibana /插件/帮助/节/高级
-
的src / kibana /插件/帮助/节/指数
-
的src / kibana /插件/帮助/节/对象
- copy
src/kibana/plugins/settings
tosrc/kibana/plugins/help
- remove
src/kibana/plugins/help/styles
src/kibana/plugins/help/saved_object_registry.js
src/kibana/plugins/help/sections/advanced
src/kibana/plugins/help/sections/indices
src/kibana/plugins/help/sections/objects
然后我重构所有code
的src / kibana /插件/帮助里面
(更换设置
与帮助
)。Then I refactored all code inside
src/kibana/plugins/help
(replacesettings
withhelp
).当然不是做事的最简单的方法,并认可。我希望做的事情不会太遥远的支持方式。
Surely not the easiest way of doing things, and very much not endorsed by elastic.co. I hope a supported way of doing things will not be too far away.
这篇关于在Kibana 4添加一个页面导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
-