Skip to content

Commit a5121ea

Browse files
author
Abhishek Gupta
authored
Merge pull request #1 from damemi/master
Adding assets from Online repo
2 parents 3744d1e + bf1888c commit a5121ea

File tree

9 files changed

+386
-0
lines changed

9 files changed

+386
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# online-console-extensions
22
OpenShift Online extensions to the Origin Web Console
3+
4+
This repository contains various CSS, JavaScript, and HTML files used by OpenShift Online to extend the OpenShift Web Console.
5+
6+
These files are built and deployed in an Apache HTTP Server container. This can be tested in an OpenShift cluster with the following command:
7+
8+
`$ oc new-app centos/httpd-24-centos7~https://github.com/openshift/online-console-extensions`
9+
10+
If you run `oc expose svc/online-console-extensions` you will be able to see the files in a web browser under `<route>/ui`
11+
12+

dedicated/ui/assets/extensions/dedicated-extensions.css

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
This file contains extensions being used by the OpenShift Online Dedicated Cluster
3+
They can be used as reference examples.
4+
*/
5+
6+
/*
7+
Override the CLI download locations
8+
*/
9+
window.OPENSHIFT_CONSTANTS.CLI = {
10+
"Linux (64 bits)": window.OPENSHIFT_EXTENSION_PROPERTIES.CLI_linux64,
11+
"Windows": window.OPENSHIFT_EXTENSION_PROPERTIES.CLI_windows,
12+
"Mac OS X": window.OPENSHIFT_EXTENSION_PROPERTIES.CLI_mac
13+
};
14+
15+
/*
16+
Override the documentation links
17+
*/
18+
window.OPENSHIFT_CONSTANTS.HELP_BASE_URL = window.OPENSHIFT_EXTENSION_PROPERTIES.doc_url;
19+
20+
angular.module('openshiftDedicatedConsoleExtensions', ['openshiftConsole'])
21+
.run(function(HawtioExtension) {
22+
23+
/*
24+
Add additional items to the help dropdown in the top navigation bar
25+
*/
26+
HawtioExtension.add('nav-help-dropdown', function ($scope) {
27+
var li = $('<li>');
28+
$('<a href="'+window.OPENSHIFT_EXTENSION_PROPERTIES.support_link+'" target="_blank">Support</a>')
29+
.appendTo(li);
30+
return li;
31+
});
32+
33+
HawtioExtension.add('nav-help-dropdown', function ($scope) {
34+
return $('<li class="divider">');
35+
});
36+
37+
});
38+
39+
/*
40+
Register the custom angular module
41+
*/
42+
hawtioPluginLoader.addModule('openshiftDedicatedConsoleExtensions');

0 commit comments

Comments
 (0)