This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HAWKULAR-3] - Create and show a "Hello World" hawt.io plugin.
- Loading branch information
Showing
6 changed files
with
77 additions
and
11 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 |
---|---|---|
@@ -1 +1,36 @@ | ||
README.adoc | ||
= Hawkular UI | ||
|
||
[.lead] | ||
Hawkular UI is the home of the UI console for Hawkular. The current console is based on https://github.com/hawtio/hawtio/blob/master/docs/Overview2dotX.md[Hawt.io 2]jjjjjjj, which a javascript based client-side framework. The various directories underneath console directory are hawt.io 2 plugins and the various plugins eventually compose a Hawkular console. This modular approach to creating hawtio console plugins allows us to create individual plugins that comprise a console or can easily be plugged into other hawtio based consoles. This modular, plugin system makes it easy to add/remove functionality (even dynamically). | ||
|
||
|
||
== UI Structure Proposal | ||
|
||
|
||
.... | ||
* ui - directory for various Hawkular UIs | ||
** console - The Hawkular UI console | ||
*** metrics - metrics plugin for Hawkular UI Console | ||
*** alerts - alerts plugin for Hawkular UI Console | ||
*** metrics - alerts plugin for Hawkular UI Console | ||
The general idea here being hawt.io UIs which are composed of plugins (that can swapped around like legos between the various UIs) | ||
.... | ||
|
||
|
||
== Dev Install | ||
|
||
Assuming the node.js is already installed: | ||
|
||
.... | ||
npm install -g bower gulp typescript | ||
cd ui/console/metrics | ||
gulp | ||
Navigate to http://localhost:2772/ | ||
.... | ||
|
||
For further detail the hawt.io plugin structure is described https://github.com/hawtio/hawtio/blob/master/docs/Overview2dotX.md[here]. | ||
|
||
|
||
_Eventually, this will be part of the maven plugin for running frontend npm/bower installs_ |
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
<div class="row"> | ||
<div class="row" ng-controller="HawkularMetrics.MetricsController"> | ||
<div class="col-md-12"> | ||
<h1>Hawkular Metrics Graphs</h1> | ||
<h1>Hawkular Metrics Graphs</h1> | ||
</div> | ||
<div class="col-md-12" ng-controller="HawkularMetrics.MetricsController"> | ||
<p>Hello {{target}}</p> | ||
<div class="col-md-8" ng-controller="HawkularMetrics.MetricsController"> | ||
<form class="form-horizontal" name="chartForm" role="form" novalidate> | ||
|
||
<div class="form-group"> | ||
<label class="col-sm-2 control-label">ID</label> | ||
|
||
<div class="col-sm-5"> | ||
<input type="text" class="form-control" name="searchId" ng-model="searchId" | ||
placeholder="Enter Id..." required ng-minlength="1"> | ||
<span class="error-message" | ||
ng-show="chartForm.searchId.$dirty && chartForm.searchId.$error.required"> * Required.</span> | ||
<span class="help-block">Example: 100, apache3.cpu1 </span> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
/// <reference path="metricsPlugin.ts"/> | ||
module HawkularMetrics { | ||
|
||
|
||
export var MetricsController = _module.controller("HawkularMetrics.MetricsController", ['$scope', ($scope) => { | ||
$scope.target = "World!"; | ||
$scope.searchId = ""; | ||
|
||
|
||
}]); | ||
|
||
} |