2 lines
2.1 KiB
JavaScript
Executable File
2 lines
2.1 KiB
JavaScript
Executable File
define("css",{load:function(e,t,n,r){function i(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("link");n.href=e,n.rel="stylesheet",n.type="text/css",t.appendChild(n)}i(requirejs.toUrl(e)),n(!0)},pluginBuilder:"../vendor/require/css-build"}),define("css-embed",function(){function e(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=document.createTextNode(e);n.type="text/css",n.styleSheet?n.styleSheet.cssText=r.nodeValue:n.appendChild(r),t.appendChild(n)}return e}),define("css!panels/query/query.css",["css-embed"],function(e){return e(".short-query{display:inline-block;margin-right:10px}.begin-query{position:absolute;left:13px;top:5px}.end-query{position:absolute;right:15px;top:5px}.panel-query{padding-left:35px!important;height:31px!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-search:hover .has-remove{padding-left:50px!important}.remove-query{opacity:0}.last-query{padding-right:45px!important}.form-search:hover .remove-query{opacity:1}.query-panel .pins{text-decoration:underline}.query-panel .pinned{margin-right:5px}"
|
|
),!0}),define("panels/query/module",["angular","app","underscore","css!./query.css"],function(e,t,n){var r=e.module("kibana.panels.query",[]);t.useModule(r),r.controller("query",["$scope","querySrv","$rootScope",function(e,t,r){e.panelMeta={status:"Stable",description:"Manage all of the queries on the dashboard. You almost certainly need one of these somewhere. This panel allows you to add, remove, label, pin and color queries"};var i={label:"Search",query:"*",pinned:!0,history:[],remember:10};n.defaults(e.panel,i),e.querySrv=t,e.init=function(){},e.refresh=function(){s(n.pluck(e.querySrv.list,"query")),r.$broadcast("refresh")},e.render=function(){r.$broadcast("render")},e.toggle_pin=function(e){t.list[e].pin=t.list[e].pin?!1:!0};var s=function(t){if(e.panel.remember>0){e.panel.history=n.union(t.reverse(),e.panel.history);var r=e.panel.history.length;r>e.panel.remember&&(e.panel.history=e.panel.history.slice(0,e.panel.remember))}};e.init()}])}); |