Commit a80cb7d5 authored by Gabriel Mainberger's avatar Gabriel Mainberger
Browse files

Add js and css for APPUiO Lab

Resolves: APPU-946
parent f5ee95a0
'use strict';
/*
Override the CLI download locations provided by APPUiO
*/
window.OPENSHIFT_CONSTANTS.CLI = {
"Linux (64 bits)": "https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz",
"Windows": "https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-windows.zip",
"Mac OS X": "https://github.com/openshift/origin/releases/download/v3.9.0/openshift-origin-client-tools-v3.9.0-191fece-mac.zip"
};
/*
Override the documentation links
*/
window.OPENSHIFT_CONSTANTS.HELP['default'] = 'http://docs.appuio.ch/';
angular
.module('myNavigatonExtension', ['openshiftConsole'])
.run([
'extensionRegistry',
function(extensionRegistry) {
var system_status_elem = $('<a href="https://status.appuio.ch" target="_blank" class="nav-item-iconic system-status project-action-btn">');
var system_status_elem_mobile = $('<div row flex class="navbar-flex-btn system-status-mobile">');
$.getJSON("https://status.appuio.ch/api/v1/components/9", function (data) {
var status = data.data.status;
if (status != 1) {
var issueStr = 'Open issues';
$('<span title="System Status" class="fa status-icon pficon-warning-triangle-o"></span>').appendTo(system_status_elem);
$('<span class="status-issue">' + issueStr + '</span>').appendTo(system_status_elem);
system_status_elem_mobile.append(system_status_elem.clone());
extensionRegistry.add('nav-system-status', function ($scope) {
return system_status_elem;
});
extensionRegistry.add('nav-system-status-mobile', function ($scope) {
return system_status_elem_mobile;
});
}
});
extensionRegistry
.add('nav-user-dropdown', function() {
return [
{
type: 'dom',
node: '<li><a href="https://control.vshn.net/" target="_blank">Manage Account</a></li>'
}
];
});
extensionRegistry
.add('nav-help-dropdown', function() {
return [
{
type: 'dom',
node: '<li><a href="http://forum.appuio.ch" target="_blank">APPUiO Support Forum</a></li>'
},{
type: 'dom',
node: '<li><a href="https://community.appuio.ch" target="_blank">APPUiO Community Chat</a></li>'
},{
type: 'dom',
node: '<li class="divider"></li>' // If you want a horizontal divider to appear in the menu
}, {
type: 'dom',
node: '<li><a href="https://status.appuio.ch" target="_blank">System Status</a></li>'
}
];
});
}
]);
hawtioPluginLoader.addModule('myNavigatonExtension');
a {
color: #00aec1;
}
.console-os .navbar-pf {
background: #002f47 none repeat scroll 0 0;
}
.navbar-pf .navbar-header {
border-bottom: 0px solid #002f47;
}
.navbar-pf .navbar-nav > li > a {
color: #fff;
}
.navbar-pf .navbar-utility > li > a {
color: #fff !important;
}
.navbar-pf-alt {
border-bottom: 6px solid #a8a7a5;
}
.btn-primary{
background: #ffd301 none repeat scroll 0 0;
border: 4px solid #ffd301;
color: #002f47;
cursor: pointer;
border-radius: 1.5rem;
}
.console-os .wrap .sidebar-left .navbar-sidebar ul.nav-sidenav > li.active > a::after {
background-color: #00aec1;
}
.console-os .wrap .sidebar-left .navbar-sidebar ul.nav-sidenav > li.active > a .fa {
color: #00aec1;
}
.bootstrap-select.btn-group .dropdown-menu > .selected > a {
background-color: #00aec1 !important;
border-color: #00aec1 !important;
color: #fff !important;
}
.navbar-pf .navbar-utility > li > a {
padding: 12px 10px;
}
.navbar-pf .navbar-utility > li > a:hover {
background: #ffd301 none repeat scroll 0 0;
}
.navbar-pf .navbar-utility li.dropdown > .dropdown-toggle .pficon-user {
top: 12px;
}
#header-logo {
/* appuio one line logo:
[] APPUiO SWISS CONTAINER PLATFORM
*/
background: rgba(0, 0, 0, 0) url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA1OTUuNyAzNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTk1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Ljd6Ii8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTU1My4yLDkuMmw3LjgsMTguNmgtMS40bC0yLjEtNC45aC04LjdsLTIuMSw0LjloLTEuNEw1NTMuMiw5LjJ6IE01NTcsMjEuNmwtMy44LTkuMmwtMy44LDkuMkg1NTd6Ii8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTU2My45LDkuN2g1LjRjMi42LDAsNC42LDEuOSw0LjYsNC41YzAsMS44LTAuOSwzLjMtMi41LDMuOGMyLjMsMC4zLDMuOCwyLjMsMy44LDQuN2MwLDIuOS0yLjMsNS4yLTUuMyw1LjJoLTYuMVY5Ljd6IE01NjkuMiwxNy41YzEuOSwwLDMuNC0xLjQsMy40LTMuM2MwLTEuOS0xLjQtMy4zLTMuNC0zLjNoLTR2Ni42SDU2OS4yeiBNNTY5LjksMjYuNmMyLjMsMCw0LTEuNyw0LTMuOWMwLTIuMi0xLjctMy45LTQuMS0zLjloLTQuNnY3LjhINTY5Ljl6Ii8+PC9nPjwvZz48ZyBpZD0iZ3VpZGVzIj48L2c+PC9zdmc+") no-repeat scroll 0 0;
background-position: left center;
margin-right: 20px;
}
#openshift-logo{
padding: 0px 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment