Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #592 from jcantrill/vendor_origin_kibana
Merged by openshift-bot
- Loading branch information
Showing
72 changed files
with
29,679 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
# | ||
# This script updates the vendored libraries | ||
# added to Kibana | ||
|
||
if [[ -n ${DEBUG:-""} ]] ; then | ||
set -x | ||
fi | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
function help(){ | ||
cat << TXT | ||
This script updates the vendored libraries found in kibana/lib | ||
use: $0 <RELEASE> | ||
e.g: $0 v4.5.1-2 | ||
TXT | ||
} | ||
|
||
vendor_lib=origin-kibana | ||
vendor_release=${1:-""} | ||
|
||
if [ -z ${vendor_lib} ] || [ -z ${vendor_release} ] ; then | ||
help | ||
exit 1 | ||
fi | ||
|
||
libdir="$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/../kibana/lib/${vendor_lib}" | ||
|
||
|
||
DOWNLOAD_URL=${DOWNLOAD_URL:-https://github.com/openshift/origin-kibana/releases/download/${vendor_release}/origin-kibana-${vendor_release}.tgz} | ||
|
||
rm -rf $libdir | ||
mkdir $libdir | ||
pushd $libdir | ||
wget -q $DOWNLOAD_URL -O _release_ | ||
file _release_ | ||
tar -xf _release_ | ||
rm _release_ | ||
popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export default function (kibana) { | ||
return new kibana.Plugin({ | ||
uiExports: { | ||
visTypes: [ | ||
'plugins/origin-kibana/styles/main.css', | ||
'plugins/origin-kibana/styles/overrides.css', | ||
'plugins/origin-kibana/directives', | ||
'plugins/origin-kibana/headerController', | ||
'plugins/origin-kibana/userstore', | ||
'plugins/origin-kibana/logger' | ||
], | ||
}, | ||
|
||
config(Joi) { | ||
return Joi.object({ | ||
enabled: Joi.boolean().default(true), | ||
}).default(); | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "origin-kibana", | ||
"version": "4.5.1-2", | ||
"homepage": "https://github.com/openshift/origin-kibana", | ||
"authors": [ | ||
"dev@openshift.redhat.com" | ||
], | ||
"description": "OpenShift Origin plugin for Kibana", | ||
"keywords": [ | ||
"openshift", | ||
"kibana" | ||
], | ||
"license": "Apache-2.0", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"main": "index.js", | ||
"scripts": { | ||
"postinstall": "bower install" | ||
}, | ||
"devDependencies": { | ||
"bower": "^1.4.1", | ||
"grunt": "~0.4.5", | ||
"grunt-cli": "0.1.13", | ||
"grunt-contrib-clean": "~0.7.0", | ||
"grunt-contrib-compress": "1.3.0", | ||
"grunt-contrib-copy": "~0.8.2", | ||
"grunt-contrib-less": "~1.1.0", | ||
"grunt-github-releaser": "~0.1.18", | ||
"grunt-touch": "^1.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/openshift/origin-kibana.git" | ||
}, | ||
"author": "Red Hat Engineering", | ||
"bugs": { | ||
"url": "https://github.com/openshift/origin-kibana/issues" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
define(['require'], function(require){ | ||
const plugin = require('ui/modules').get('kibana'); | ||
plugin.directive('body', ['$compile', function($compile) { | ||
const html = angular.element(require('./templates/header.html')); | ||
const linkFn = $compile(html); | ||
return { | ||
restrict: 'E', | ||
link: function(scope, element, attrs) { | ||
element.prepend(linkFn(scope)); | ||
if (element.hasClass('subnav')) { | ||
return; | ||
} | ||
element.addClass('navbar-pf'); | ||
element.removeClass('navbar'); | ||
element.removeClass('navbar-default'); | ||
element.find('.nav.navbar-nav').addClass('navbar-primary'); | ||
} | ||
} | ||
}]); | ||
plugin.directive('subnav', function() { | ||
return { | ||
restrict: 'C', | ||
link: function (scope, element, attrs) { | ||
element.removeClass('navbar'); | ||
element.removeClass('navbar-default'); | ||
element.find('.container-fluid').removeClass('container-fluid'); | ||
element.find('.nav.navbar-nav').addClass('navbar-persistent'); | ||
} | ||
} | ||
}); | ||
}); |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.