From b3052d0c950a731d7221bab8825ba5787a9eb379 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Tue, 29 Jan 2013 10:05:02 -0700 Subject: [PATCH] Modularized panels --- common/.DS_Store | Bin 6148 -> 0 bytes common/css/main.css | 4 + common/lib/.DS_Store | Bin 6148 -> 0 bytes common/lib/LAB.min.js | 5 + config.js | 10 +- index.html | 31 +- js/app.js | 46 +- js/directives.js | 3 +- js/panels.js | 714 ------------------ js/panels/histogram/module.js | 150 ++++ js/panels/map/module.js | 114 +++ js/panels/piequery/module.js | 134 ++++ js/panels/pieterms/module.js | 140 ++++ js/panels/stackedquery/module.js | 165 ++++ scripts/date.js | 104 +++ scripts/load.sh | 7 + .../random-weighted-choice/.npmignore | 2 + .../random-weighted-choice/.travis.yml | 3 + .../random-weighted-choice/Makefile | 9 + .../random-weighted-choice/README.md | 75 ++ .../lib/random-weighted-choice.js | 65 ++ .../node_modules/debug/.npmignore | 4 + .../node_modules/debug/History.md | 47 ++ .../node_modules/debug/Makefile | 4 + .../node_modules/debug/Readme.md | 130 ++++ .../node_modules/debug/debug.component.js | 120 +++ .../node_modules/debug/debug.js | 116 +++ .../node_modules/debug/example/app.js | 19 + .../node_modules/debug/example/browser.html | 24 + .../node_modules/debug/example/wildcards.js | 10 + .../node_modules/debug/example/worker.js | 22 + .../node_modules/debug/head.js | 1 + .../node_modules/debug/index.js | 2 + .../node_modules/debug/lib/debug.js | 135 ++++ .../node_modules/debug/package.json | 32 + .../node_modules/debug/tail.js | 4 + .../random-weighted-choice/package.json | 35 + .../random-weighted-choice/test/test.js | 66 ++ scripts/reader.js | 282 +++++++ scripts/shakespeare.json | 1 + scripts/underscore.min.js | 32 + 41 files changed, 2108 insertions(+), 759 deletions(-) delete mode 100644 common/.DS_Store delete mode 100644 common/lib/.DS_Store create mode 100644 common/lib/LAB.min.js create mode 100644 js/panels/histogram/module.js create mode 100644 js/panels/map/module.js create mode 100644 js/panels/piequery/module.js create mode 100644 js/panels/pieterms/module.js create mode 100644 js/panels/stackedquery/module.js create mode 100644 scripts/date.js create mode 100755 scripts/load.sh create mode 100644 scripts/node_modules/random-weighted-choice/.npmignore create mode 100644 scripts/node_modules/random-weighted-choice/.travis.yml create mode 100644 scripts/node_modules/random-weighted-choice/Makefile create mode 100644 scripts/node_modules/random-weighted-choice/README.md create mode 100644 scripts/node_modules/random-weighted-choice/lib/random-weighted-choice.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/.npmignore create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/History.md create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/Makefile create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/Readme.md create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/debug.component.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/debug.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/example/app.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/example/browser.html create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/example/wildcards.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/example/worker.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/head.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/index.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/lib/debug.js create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/package.json create mode 100644 scripts/node_modules/random-weighted-choice/node_modules/debug/tail.js create mode 100644 scripts/node_modules/random-weighted-choice/package.json create mode 100644 scripts/node_modules/random-weighted-choice/test/test.js create mode 100644 scripts/reader.js create mode 100644 scripts/shakespeare.json create mode 100644 scripts/underscore.min.js diff --git a/common/.DS_Store b/common/.DS_Store deleted file mode 100644 index 66267451b564b5de4e5a6cc912942206e4539756..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5Z-O8Ca92$=yCB}q%Bo19zv<$QAnW&E1DRwfsm9YwTBvw2Vcj>@p+ut zoq)ySQN+%`?l+mA-OLBs%?Kf6Zx*(NaD)&R3`B{_3PJNqSB-+}fD+fpCPADA@bn%` z$oJO)-@Ptk5s4s}e|`Tr%JNq0L)Pkzjm<5~wymAfFiOI7-b-gmm|c0}bnZprec(^8 zwVwO=EbIAG?YZ>xF?h5-NYfbf5k(K9FdyGI`-?@l({8G6(Nv4msUTur14W z-mJaDqqB>Fzj!L1Ukr&7IM%XDSivhOR705E#Q|)Gp=5gWrb(P84`8Vls1g~O0cL<1 zU0nnB=Mt6%O}dcOd`Q~4YF?z?9oAPmTu9d-&&&Wbu*?AVz90_X|L5?@ ztZedi2v5uaGw@#-kd40A??H8Rw|=V=?^*@p76uB&m8gJ#zVs6S4|t9oXs7Wj)FI9# XEDho+XxHh0{3D> diff --git a/common/css/main.css b/common/css/main.css index 3d811d3dbe6..4676ad6542e 100644 --- a/common/css/main.css +++ b/common/css/main.css @@ -8,4 +8,8 @@ #upload { display: inline-block; +} + +[ng\:cloak], [ng-cloak], .ng-cloak { + display: none !important; } \ No newline at end of file diff --git a/common/lib/.DS_Store b/common/lib/.DS_Store deleted file mode 100644 index 7b3aa0bae22414c1689d26952875db50feda5d55..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKy-ve05I#ePQczWdgkV6*$WlZZ5MxvU5-Yp_w2h!BB+#D$raT4@#RKp*@ZI@_ z{528_Lg=nKf3EGj^L>f!n26kPIT;Z3h^P%^Y;{o72=}vAWKCN(flhqHbVoBfq9>YG zMq7h1U<~{<26*juv1${#rzPdrZ-RCFNb{>W9gpI4gmJt{d_WJsL{Q_l5vBMoXbzph z)3dJsT6=e0vfrmjqO$dr#?&v(rH{54JrQQOsGE`dEO|Wmp-0}UYUfIq@cf?3wNvuE zil4kqw_>w0o^X@5-2wkEcq$QieFZZELD@q~L1cfH6>HVBP=i@%ewT z`u<-uvVX>aG4QV#aIN#3^C42wv$c{OpS1z>7RtioGLK?{LXTsq@KL-66+vIX6=0~C Sc|;4uJ_LjYD~y3(W#Aj;Cc-fQ diff --git a/common/lib/LAB.min.js b/common/lib/LAB.min.js new file mode 100644 index 00000000000..e710dfea28b --- /dev/null +++ b/common/lib/LAB.min.js @@ -0,0 +1,5 @@ +/*! LAB.js (LABjs :: Loading And Blocking JavaScript) + v2.0.3 (c) Kyle Simpson + MIT License +*/ +(function(o){var K=o.$LAB,y="UseLocalXHR",z="AlwaysPreserveOrder",u="AllowDuplicates",A="CacheBust",B="BasePath",C=/^[^?#]*\//.exec(location.href)[0],D=/^\w+\:\/\/\/?[^\/]+/.exec(C)[0],i=document.head||document.getElementsByTagName("head"),L=(o.opera&&Object.prototype.toString.call(o.opera)=="[object Opera]")||("MozAppearance"in document.documentElement.style),q=document.createElement("script"),E=typeof q.preload=="boolean",r=E||(q.readyState&&q.readyState=="uninitialized"),F=!r&&q.async===true,M=!r&&!F&&!L;function G(a){return Object.prototype.toString.call(a)=="[object Function]"}function H(a){return Object.prototype.toString.call(a)=="[object Array]"}function N(a,c){var b=/^\w+\:\/\//;if(/^\/\/\/?/.test(a)){a=location.protocol+a}else if(!b.test(a)&&a.charAt(0)!="/"){a=(c||"")+a}return b.test(a)?a:((a.charAt(0)=="/"?D:C)+a)}function s(a,c){for(var b in a){if(a.hasOwnProperty(b)){c[b]=a[b]}}return c}function O(a){var c=false;for(var b=0;b0){for(var a=0;a=0;){d=n.shift();a=a[d.type].apply(null,d.args)}return a},noConflict:function(){o.$LAB=K;return m},sandbox:function(){return J()}};return m}o.$LAB=J();(function(a,c,b){if(document.readyState==null&&document[a]){document.readyState="loading";document[a](c,b=function(){document.removeEventListener(c,b,false);document.readyState="complete"},false)}})("addEventListener","DOMContentLoaded")})(this); \ No newline at end of file diff --git a/config.js b/config.js index 13552fc5e01..5461fed7e11 100644 --- a/config.js +++ b/config.js @@ -8,6 +8,9 @@ refresh: Milliseconds between auto refresh. timeformat: Format for time in histograms (might go away) timefield: Field to use for ISO8601 timestamps (might go away) indexpattern: Timestamping pattern for time based indices, +modules: Panel modules to load. In the future these will be inferred + from your initial dashboard, though if you share dashboards you + will probably need to list them all here NOTE: No timezone support yet, everything is in UTC at the moment. @@ -17,8 +20,6 @@ shared.json contains an example sharable dashboard. Note the subtle differences between dashboard.js and shared.json. Once is a javascript object, the other is json. -PLEASE SEE js/ - */ var config = new Settings( { @@ -29,8 +30,7 @@ var config = new Settings( timefield: '@timestamp', //indexpattern: '"logstash-"yyyy.mm.dd', indexpattern: '"shakespeare"', - modules: ['histogram','piequery','pieterms','stackedquery','map'], - + modules: ['histogram','pieterms','piequery','stackedquery','map'], defaultfields: ['line_text'], perpage: 50, @@ -42,4 +42,4 @@ var config = new Settings( indexdefault: 'logstash-*', primaryfield: '_all' } -); \ No newline at end of file +); diff --git a/index.html b/index.html index b3cd6c9c100..59c76b044bb 100644 --- a/index.html +++ b/index.html @@ -17,44 +17,17 @@ - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - +