Skip to content

Commit

Permalink
Finish reference paths, all ts files compile fine individually
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Nov 15, 2013
1 parent fa013f7 commit 0cded0e
Show file tree
Hide file tree
Showing 239 changed files with 424 additions and 93 deletions.
29 changes: 17 additions & 12 deletions hawtio-web/compileTS
Expand Up @@ -8,19 +8,11 @@

on_die()
{
# print message
#
echo "Dying..."
keepRunning = 0;

# Need to exit the script explicitly when done.
# Otherwise the script would live on, until system
# realy goes down, and KILL signals are send.
#
exit 0
echo "Dying..."
keepRunning=0
exit 0
}


# Execute function on_die() receiving TERM signal
#
trap 'on_die' TERM
Expand All @@ -33,7 +25,20 @@ for each in $tsFiles
do
echo "Compiling $each"
tsc --sourcemap --target es5 "$each"
if [ $keepRunning -a $? -ne 0 ]
retVal=$?
while [ $retVal -ne 0 -a $keepRunning -ne 0 ]
do
echo "Waiting for changes to $each"
watch --no-title -n 0.5 -g "ls -al $each" > output.txt 2>&1
echo "Compiling $each"
if [ $keepRunning -eq 0 ]
then
exit 0
fi
tsc --sourcemap --target es5 "$each"
retVal=$?
done
if [ $keepRunning -eq 0 ]
then
exit 0
fi
Expand Down
3 changes: 3 additions & 0 deletions hawtio-web/src/main/webapp/app/activemq/js/activemqPlugin.ts
@@ -1,3 +1,6 @@
/// <reference path='../../core/js/corePlugin.ts'/>
/// <reference path='helpers.ts'/>

module ActiveMQ {
var pluginName = 'activemq';
var jmxDomain = 'org.apache.activemq';
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/activemq/js/browse.ts
@@ -1,3 +1,4 @@
/// <reference path='activemqPlugin.ts'/>
module ActiveMQ {
export function BrowseQueueController($scope, workspace:Workspace, jolokia) {

Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/activemq/js/destination.ts
@@ -1,3 +1,4 @@
/// <reference path='activemqPlugin.ts'/>
module ActiveMQ {
export function DestinationController($scope, workspace:Workspace, jolokia) {
$scope.workspace = workspace;
Expand Down Expand Up @@ -120,4 +121,4 @@ module ActiveMQ {
return null;
}
}
}
}
@@ -1,3 +1,5 @@
/// <reference path='activemqPlugin.ts'/>

module ActiveMQ {
export function DurableSubscriberController($scope, workspace:Workspace, jolokia) {

Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/activemq/js/graph.ts
@@ -1,3 +1,4 @@
/// <reference path='activemqPlugin.ts'/>
module ActiveMQ {
export function SubscriberGraphController($scope, $element, $timeout, workspace:Workspace, jolokia) {
$scope.nodes = [];
Expand Down Expand Up @@ -305,4 +306,4 @@ module ActiveMQ {
return id;
}
}
}
}
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/activemq/js/helpers.ts
@@ -1,3 +1,4 @@
/// <reference path='activemqPlugin.ts'/>
module ActiveMQ {

export var log:Logging.Logger = Logger.get("activemq");
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/activemq/js/tree.ts
@@ -1,3 +1,4 @@
/// <reference path='activemqPlugin.ts'/>
module ActiveMQ {

export function TreeController($scope, $location:ng.ILocationService, workspace:Workspace) {
Expand Down Expand Up @@ -68,4 +69,4 @@ module ActiveMQ {
}
}
}
}
}
3 changes: 3 additions & 0 deletions hawtio-web/src/main/webapp/app/api/js/apiPlugin.ts
@@ -1,3 +1,6 @@
/// <reference path='../../core/js/corePlugin.ts'/>
/// <reference path='helpers.ts'/>
/// <reference path='../../ui/js/uiPlugin.ts'/>
module API {
var pluginName = 'api';
angular.module(pluginName, ['bootstrap', 'hawtioCore', 'hawtio-ui']).
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/api/js/helpers.ts
@@ -1,3 +1,4 @@
///<reference path='apiPlugin.ts'/>
module API {

var log:Logging.Logger = Logger.get("API");
Expand Down Expand Up @@ -152,4 +153,4 @@ module API {
return object;
};

}
}
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/api/js/wadl.ts
@@ -1,3 +1,4 @@
///<reference path='apiPlugin.ts'/>
module API {

export function WadlViewController($scope, $location, jolokia) {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/api/js/wsdl.ts
@@ -1,3 +1,4 @@
///<reference path='apiPlugin.ts'/>
module API {

export function WsdlViewController($scope, $location, jolokia) {
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/apollo/js/apollo.ts
@@ -1,3 +1,4 @@
/// <reference path='apolloPlugin.ts'/>
module Apollo {
export function ApolloController($scope, $http, $location, localStorage, workspace:Workspace) {
var jolokia = workspace.jolokia;
Expand Down Expand Up @@ -87,4 +88,4 @@ module Apollo {
// alert("online: "+$scope.online)
});
}
}
}
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/apollo/js/apolloPlugin.ts
@@ -1,3 +1,4 @@
/// <reference path='../../core/js/corePlugin.ts'/>
module Apollo {
var pluginName = 'apollo';
angular.
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/apollo/js/virtual_hosts.ts
@@ -1,3 +1,4 @@
/// <reference path='apolloPlugin.ts'/>
module Apollo {
export function VirtualHostController($scope, $http, $location, localStorage, workspace:Workspace) {
$scope.virtual_host = {}
Expand All @@ -7,4 +8,4 @@ module Apollo {
});
};
}
}
}
@@ -1,4 +1,4 @@
/// <reference path='../../../d.ts/libraries.d.ts'/>
/// <reference path='../../core/js/corePlugin.ts'/>

module Branding {

Expand Down
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

export function AttributesToolBarController($scope, workspace:Workspace, jolokia) {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/browse.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

export function BrowseEndpointController($scope, workspace:Workspace, jolokia) {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/camel.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>

module Camel {
export function CamelController($scope, $element, workspace:Workspace, jolokia) {
Expand Down
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {
// NOTE this file is code generated by the ide-codegen module in Fuse IDE
export var camelHeaderSchema = {
Expand Down
7 changes: 6 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/camelPlugin.ts
@@ -1,4 +1,9 @@
/// <reference path="../../jmx/js/helpers.ts"/>
/// <reference path="../../core/js/corePlugin.ts"/>
/// <reference path='helpers.ts'/>
/// <reference path='endpointChooser.ts'/>
/// <reference path='camelHeaderSchema.ts'/>
/// <reference path='jmsHeaderSchema.ts'/>
/// <reference path="../../jmx/js/jmxPlugin.ts"/>

module Camel {
import jmxModule = Jmx;
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/debug.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {
export function DebugRouteController($scope, $element, workspace:Workspace, jolokia) {
// ignore the cached stuff in camel.ts as it seems to bork the node ids for some reason...
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/endpoint.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {
export function EndpointController($scope, $location, workspace:Workspace, jolokia) {
Camel.initEndpointChooserScope($scope, workspace, jolokia);
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/endpointChooser.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

/**
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/helpers.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

export var log:Logging.Logger = Logger.get("Camel");
Expand Down Expand Up @@ -1067,4 +1068,4 @@ module Camel {
return answer;
}

}
}
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/jmsHeaderSchema.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {
export var jmsHeaderSchema = {
definitions: {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/profile.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

export function ProfileRouteController($scope, $location, workspace:Workspace, jolokia) {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/properties.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

export function PropertiesController($scope, workspace:Workspace) {
Expand Down
2 changes: 2 additions & 0 deletions hawtio-web/src/main/webapp/app/camel/js/send.ts
@@ -1,3 +1,5 @@
/// <reference path='camelPlugin.ts'/>

module Camel {
export function SendMessageController($route, $scope, $element, $timeout, workspace:Workspace, jolokia, localStorage, $location) {
var log:Logging.Logger = Logger.get("Camel");
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/source.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {
export function SourceController($scope, workspace:Workspace) {

Expand Down
2 changes: 2 additions & 0 deletions hawtio-web/src/main/webapp/app/camel/js/trace.ts
@@ -1,3 +1,5 @@
/// <reference path='camelPlugin.ts'/>

module Camel {
export function TraceRouteController($scope, workspace:Workspace, jolokia) {
$scope.tracing = false;
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/tree.ts
@@ -1,3 +1,4 @@
/// <reference path='camelPlugin.ts'/>
module Camel {

export function TreeController($scope, $location:ng.ILocationService, workspace:Workspace) {
Expand Down Expand Up @@ -124,4 +125,4 @@ module Camel {
Jmx.updateTreeSelectionFromURL($location, $("#cameltree"), true);
}
}
}
}
4 changes: 4 additions & 0 deletions hawtio-web/src/main/webapp/app/camin/js/camelInsightPlugin.ts
@@ -1,3 +1,7 @@
/// <reference path='../../core/js/corePlugin.ts'/>
/// <reference path='gantt.ts'/>
/// <reference path='diagram.ts'/>
/// <reference path='sequence.ts'/>
module Camin {
var pluginName = 'camin';
angular.module(pluginName, ['bootstrap', 'ngResource', 'ngGrid', 'hawtioCore']).
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/camin/js/controller.ts
@@ -1,3 +1,4 @@
/// <reference path='camelInsightPlugin.ts'/>
module Camin {

export function Controller($scope, jolokia, localStorage, $routeParams) {
Expand Down Expand Up @@ -534,4 +535,4 @@ module Camin {
}

}
}
}
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camin/js/diagram.ts
@@ -1,3 +1,4 @@
/// <reference path='camelInsightPlugin.ts'/>
module Camin {

export class Diagram {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camin/js/gantt.ts
@@ -1,3 +1,4 @@
/// <reference path='camelInsightPlugin.ts'/>
module Camin {

export class Gantt {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camin/js/sequence.ts
@@ -1,3 +1,4 @@
/// <reference path='camelInsightPlugin.ts'/>
module Camin {

export class Sequence {
Expand Down
5 changes: 4 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/corePlugin.ts
Expand Up @@ -8,8 +8,11 @@
/// <reference path='folder.ts'/>
/// <reference path='helpers.ts'/>
/// <reference path='dialog.ts'/>
/// <reference path='tables.ts'/>
/// <reference path='graphs.ts'/>
/// <reference path='../../jmx/js/jmxPlugin.ts'/>

/// <reference path='../../ui/js/uiPlugin.ts'/>
/// <reference path='../../perspective/js/perspectivePlugin.ts'/>

// Add any other known possible jolokia URLs here
var jolokiaUrls = [
Expand Down
4 changes: 3 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/editor.ts
@@ -1,3 +1,5 @@
/// <reference path='corePlugin.ts'/>

module Core {
// TODO would be nice to use a directive instead; but couldn't get it working :(
export function EditorController($scope, workspace:Workspace) {
Expand All @@ -10,4 +12,4 @@ module Core {
};
$scope.codeMirrorOptions = CodeEditor.createEditorSettings(options);
}
}
}
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/folder.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
// Lets use a NodeSelection interface so we can expose things like the objectName and the MBean's entries
interface NodeSelection {
title: string;
Expand Down Expand Up @@ -160,4 +161,4 @@ class Folder implements NodeSelection {
return answer;
}

}
}
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/graphs.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

export function d3ForceGraph(scope, nodes, links, canvasElement) {
Expand Down
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

export class GridStyle {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/help.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {
export function HelpController($scope, $routeParams, marked, helpRegistry, branding) {

Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/helpRegistry.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

export class HelpRegistry {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/login.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

export function LoginController($scope, jolokia, userDetails, jolokiaUrl, workspace, localStorage, branding) {
Expand Down
2 changes: 2 additions & 0 deletions hawtio-web/src/main/webapp/app/core/js/navbar.ts
@@ -1,3 +1,5 @@
/// <reference path='corePlugin.ts'/>

module Core {

export function NavBarController($scope, $location:ng.ILocationService, workspace:Workspace, $route, jolokia, localStorage) {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/pageTitle.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

export class PageTitle {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/preferences.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

export function PreferencesController($scope, localStorage, userDetails, jolokiaUrl, branding) {
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/tables.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
class TableWidget {
private ignoreColumnHash = {};
private flattenColumnHash = {};
Expand Down
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/core/js/view.ts
@@ -1,3 +1,4 @@
/// <reference path='corePlugin.ts'/>
module Core {

// NOTE - $route is brought in here to ensure the factory for that service
Expand Down

0 comments on commit 0cded0e

Please sign in to comment.