Commit 624a1183 authored by Gabriel Mainberger's avatar Gabriel Mainberger
Browse files

Initial commit

Style for APPUiO on AWS eu-central-1
Changed URL for version OpenShift v3.9

Resolves: APPU-946
parents
services:
- name: docker:stable-dind
image: docker.io/library/docker:stable
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
build:
stage: build
tags:
- dockerbuild
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
# vim: set sw=2 sts=2 et :
FROM docker.io/centos/httpd-24-centos7:latest
COPY src/ /tmp/src/
RUN /usr/libexec/s2i/assemble
Copyright (c) 2018, VSHN AG, info@vshn.ch
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'use strict';
/*
Override the CLI download locations provided by APPUiO
*/
window.OPENSHIFT_CONSTANTS.CLI = {
"Linux (32 bits)": "https://console-aws-eu-central-1.appuio.ch/console/extensions/clients/linux/oc",
"Linux (64 bits)": "https://console-aws-eu-central-1.appuio.ch/console/extensions/clients/linux/oc",
"Windows": "https://console-aws-eu-central-1.appuio.ch/console/extensions/clients/windows/oc.exe",
"Mac OS X": "https://console-aws-eu-central-1.appuio.ch/console/extensions/clients/macosx/oc"
};
/*
Override the documentation links
*/
window.OPENSHIFT_CONSTANTS.HELP = {
"cli": "https://docs.openshift.com/container-platform/3.9/cli_reference/get_started_cli.html",
"get_started_cli": "https://docs.openshift.com/container-platform/3.9/cli_reference/get_started_cli.html",
"basic_cli_operations": "https://docs.openshift.com/container-platform/3.9/cli_reference/basic_cli_operations.html",
"webhooks": "https://docs.openshift.com/container-platform/3.9/dev_guide/builds/triggering_builds.html#webhook-triggers",
"new_app": "https://docs.openshift.com/container-platform/3.9/dev_guide/application_lifecycle/new_app.html",
"start-build": "https://docs.openshift.com/container-platform/3.9/dev_guide/builds/basic_build_operations.html#starting-a-build",
"deployment-operations": "https://docs.openshift.com/container-platform/3.9/cli_reference/basic_cli_operations.html#build-and-deployment-cli-operations",
"route-types": "https://docs.openshift.com/container-platform/3.9/architecture/networking/routes.html#route-types",
"persistent_volumes": "https://docs.openshift.com/container-platform/3.9/dev_guide/persistent_volumes.html",
"compute_resources": "https://docs.openshift.com/container-platform/3.9/dev_guide/compute_resources.html",
"pod_autoscaling": "https://docs.openshift.com/container-platform/3.9/dev_guide/pod_autoscaling.html",
"application_health": "https://docs.openshift.com/container-platform/3.9/dev_guide/application_health.html",
"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="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');
This source diff could not be displayed because it is too large. You can view the blob instead.
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;
}
.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 CONTAINER PLATFORM
*/
background: rgba(0, 0, 0, 0) url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA1MDUuNyAzNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTA1LjcgMzc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDpub25lO30uc3Qxe2ZpbGw6I0ZGRkZGRjt9LnN0MntmaWxsOiNGRkQ4MDA7fTwvc3R5bGU+PGcgaWQ9IkViZW5lXzEiPjxnIGlkPSJFYmVuZV8xXzFfIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iNTA1LjciIGhlaWdodD0iMzciLz48L2c+PGcgaWQ9IkxPR08iPjxnIGlkPSJBUFBVSU8iPjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik04Mi45LDIxLjFoMy41YzIuOSwwLDUuOC0yLjQsNS44LTUuOGMwLTMuNS0yLjktNS44LTUuOC01LjhoLTYuOHYxNy42aDMuMXYtNi4xSDgyLjl6IE04Mi45LDEyLjVoMy40YzEuMywwLDIuOCwwLjksMi44LDIuOXMtMS41LDIuOS0yLjgsMi45aC0zLjRWMTI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sYXNzPSJzdDEiIGQ9Ik00NjYuNSw5LjdoNS44YzIuOSwwLDUuMywyLjIsNS4zLDUuMmMwLDIuNC0xLjQsNC40LTMuNiw1LjFsNC40LDcuOEg0NzdsLTQuMy03LjZjLTAuMiwwLTAuNSwwLTAuNSwwaC00LjN2Ny42aC0xLjRWOS43eiBNNDcyLjIsMTljMi4zLDAsNC4xLTEuNyw0LjEtNC4xYzAtMi4yLTEuNy00LTQtNGgtNC40djhINDcyLjJ6Ii8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTQ4MS42LDkuM2w4LjQsMTMuMmw4LjQtMTMuMnYxOC41aC0xLjNWMTMuN2wtNy4xLDExLjFMNDgzLDEzLjd2MTQuMWgtMS4zVjkuM3oiLz48L2c+PC9nPjxnIGlkPSJndWlkZXMiPjwvZz48L3N2Zz4=") no-repeat scroll 0 0;
background-position: left center;
margin-right: 20px;
}
#openshift-logo{
padding: 0px 0;
}
<!DOCTYPE html>
<html>
<head>
<title>OpenShift APPUiO Style</title>
</head>
<body>
<h1>OpenShift APPUiO Style</h1>
</body>
</html>
<!-- vim: set sw=2 sts=2 et : -->
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