myriad-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smare...@apache.org
Subject [1/8] incubator-myriad git commit: # This is a combination of 2 commits. # The first commit's message is:
Date Wed, 28 Oct 2015 23:49:20 GMT
Repository: incubator-myriad
Updated Branches:
  refs/heads/master a3ef8c791 -> 2df7da0e1


http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/e532d08d/myriad-scheduler/src/main/resources/webapp/public/js/myriad.js
----------------------------------------------------------------------
diff --git a/myriad-scheduler/src/main/resources/webapp/public/js/myriad.js b/myriad-scheduler/src/main/resources/webapp/public/js/myriad.js
index 0bdb902..67ccab1 100644
--- a/myriad-scheduler/src/main/resources/webapp/public/js/myriad.js
+++ b/myriad-scheduler/src/main/resources/webapp/public/js/myriad.js
@@ -5,6 +5,11 @@ var FlexComponent = require('./components/FlexComponent')
 var TasksComponent = require('./components/TasksComponent')
 var ConfigComponent = require('./components/ConfigComponent')
 var AboutComponent = require('./components/AboutComponent')
+var HelpComponent     = require('./components/HelpComponent')
+var ShutdownRmOnlyComponent = require('./components/ShutdownRmOnlyComponent')
+var ShutdownFrameworkComponent = require('./components/ShutdownFrameworkComponent')
+var ShutdownGracefulComponent = require('./components/ShutdownGracefulComponent')
+
 
 var Router = require('react-router')
   , RouteHandler = Router.RouteHandler
@@ -13,8 +18,12 @@ var Router = require('react-router')
 
 var routes = (
   React.createElement(Route, {name: "myriad", path: "/", handler: Myriad}, 
+    React.createElement(Route, React.__spread({name: "rmDown", 	path: "rmDown"},  this.props, {handler: ShutdownRmOnlyComponent})), 
+    React.createElement(Route, React.__spread({name: "frameworkDown", path: "frameworkDown"},  this.props, {handler: ShutdownFrameworkComponent})), 
+    React.createElement(Route, React.__spread({name: "gracefulDown", 	path: "gracefulDown"},  this.props, {handler: ShutdownGracefulComponent})), 
     React.createElement(Route, {name: "flex", path: "flex", handler: FlexComponent}), 
     React.createElement(Route, {name: "tasks", path: "tasks", handler: TasksComponent}), 
+    React.createElement(Route, {name: "help", 		path: "help", 	handler: HelpComponent}), 
     React.createElement(Route, {name: "config", path: "config", handler: ConfigComponent}), 
     React.createElement(Route, {name: "about", path: "/", handler: AboutComponent}), 
     React.createElement(Redirect, {from: "myriad", to: "about"})
@@ -27,8 +36,14 @@ Router.run(routes, function (Handler) {
 
 
 
+<<<<<<< HEAD
 
+},{"./components/AboutComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js","./components/ConfigComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js","./components/FlexComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js","./components/Myriad":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js","./components/TasksComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js":[functio
 n(require,module,exports){
 },{"./components/AboutComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js","./components/ConfigComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js","./components/FlexComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js","./components/Myriad":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js","./components/TasksComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js","react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-sched
 uler/src/main/resources/webapp/js/components/AboutComponent.js":[function(require,module,exports){
+},{"./components/AboutComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js","./components/ConfigComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js","./components/FlexComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js","./components/Myriad":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js","./components/TasksComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js":[functio
 n(require,module,exports){
+=======
+},{"./components/AboutComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js","./components/ConfigComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js","./components/FlexComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js","./components/HelpComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/HelpComponent.js","./components/Myriad":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js","./components/ShutdownFrameworkComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ShutdownFrameworkComponent.js","./components/ShutdownGracefulComponent":"/home/pdread/wor
 kspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ShutdownGracefulComponent.js","./components/ShutdownRmOnlyComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ShutdownRmOnlyComponent.js","./components/TasksComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js","react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/AboutComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 
 var AboutComponent = React.createClass({
@@ -61,7 +76,13 @@ var AboutComponent = React.createClass({
 module.exports = AboutComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 var ProfileComponent = require('../components/ProfileComponent');
 var RawJSONComponent = require('../components/RawJSONComponent');
@@ -100,7 +121,13 @@ var ConfigComponent = React.createClass({
 module.exports = ConfigComponent;
 
 
+},{"../components/ProfileComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js","../components/RawJSONComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js":[function(require,module,exports){
 },{"../components/ProfileComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js","../components/RawJSONComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js","react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"../components/ProfileComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js","../components/RawJSONComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js":[function(require,module,exports){
+=======
+},{"../components/ProfileComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js","../components/RawJSONComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js","react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 var FlexUpComponent = require('../components/FlexUpComponent');
 var FlexDownComponent = require('../components/FlexDownComponent');
@@ -125,7 +152,13 @@ var FlexComponent = React.createClass({
 module.exports = FlexComponent;
 
 
+},{"../components/FlexDownComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js","../components/FlexUpComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js":[function(require,module,exports){
 },{"../components/FlexDownComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js","../components/FlexUpComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js","react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"../components/FlexDownComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js","../components/FlexUpComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js":[function(require,module,exports){
+=======
+},{"../components/FlexDownComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js","../components/FlexUpComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js","react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexDownComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 var ReactBootstrap = require('react-bootstrap')
   , Input = ReactBootstrap.Input
@@ -264,7 +297,13 @@ var FlexDownComponent = React.createClass({
 module.exports = FlexDownComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 var ReactBootstrap = require('react-bootstrap')
   , Input = ReactBootstrap.Input
@@ -402,7 +441,54 @@ var FlexUpComponent = React.createClass({
 module.exports = FlexUpComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/HelpComponent.js":[function(require,module,exports){
+var React = require('react');
+
+var HelpComponent = React.createClass({
+  displayName: "HelpComponent",
+
+  render: function () {
+    return(
+      React.createElement("div", null, 
+	React.createElement("h4", null, "Myriad dropdown menu"), 
+        React.createElement("ul", null, 
+	   React.createElement("li", null, "Shutdown RM Only"), 
+		React.createElement("p", null, "Stop only the ResourceManager. The excutors and tasks continue to run."), 
+           React.createElement("li", null, "Shutdown Framework, Stopping Driver"), 
+		React.createElement("p", null, " This will stop the driver in failover mode, which will stop the executor and tasks, then stop the ResourceManager." + ' ' +
+       		"This requires the ResourceManager to be either in HA mode or restarted so that it re-registers with Mesos. "), 
+           React.createElement("li", null, "Shutdown Framework, Aborting Driver"), 
+ 		React.createElement("p", null, " This will shutdown all the tasks, then send a FrameworkMessage shutdown to the executor, then exits the ResourceManager." + ' ' +
+		"This allows the ResourceManager to be started backup without requiring it to re-register or be in High Availability (HA) mode, great for testing.")
+	), 
+	React.createElement("h4", null, "Flex tab"), 
+	React.createElement("p", null, "Allows you to stand up or stop task resources"), 
+	React.createElement("h4", null, "Tasks tab"), 
+	React.createElement("p", null, "Allows you to monitor running task states"), 
+	React.createElement("h4", null, "Help menu"), 
+	React.createElement("ul", null, 
+	   React.createElement("li", null, "Menu options"), 
+		React.createElement("p", null, "This text"), 
+	   React.createElement("li", null, "About Myriad"), 
+		React.createElement("p", null, "Description of Myriad and its profiles")
+	), 
+	React.createElement("h4", null, "Config tab"), 
+	React.createElement("p", null, "Shows Myriad configuration information")
+      )
+   )}
+
+});
+
+module.exports = HelpComponent;
+
+
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/Myriad.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 var NavbarComponent = require('../components/NavbarComponent');
 
@@ -509,12 +595,20 @@ var Myriad = React.createClass({
 
 module.exports = Myriad;
 
+},{"../components/NavbarComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js","xml2js":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/xml2js/lib/xml2js.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js":[function(require,module,exports){
 },{"../components/NavbarComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js","react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js","xml2js":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/xml2js/lib/xml2js.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"../components/NavbarComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js","xml2js":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/xml2js/lib/xml2js.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js":[function(require,module,exports){
+=======
+},{"../components/NavbarComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js","react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js","xml2js":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/xml2js/lib/xml2js.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/NavbarComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 
 var ReactBootstrap = require('react-bootstrap')
   , Nav = ReactBootstrap.Nav
   , Navbar = ReactBootstrap.Navbar
+  , DropdownButton = ReactBootstrap.DropdownButton
+  , MenuItem = ReactBootstrap.MenuItem
   , Label = ReactBootstrap.Label;
 
 var ReactRouterBootstrap = require('react-router-bootstrap')
@@ -527,16 +621,34 @@ var NavbarComponent = React.createClass({displayName: "NavbarComponent",
 
   render: function () {
     return(
+<<<<<<< HEAD
     React.createElement(Navbar, {fixedTop: true, inverse: true}, 
       React.createElement(Nav, null, 
       React.createElement("a", {className: "navbar-brand", href: "#"}, 
           React.createElement("img", {src: "/img/navbar_logo.png"})
       )
+=======
+    React.createElement(Navbar, {fixedTop: true}, 
+      React.createElement(Nav, {bsStyle: "tabs"}, 
+	React.createElement(DropdownButton, {title: "Myriad", naveItem: true}, 
+	   React.createElement(NavItemLink, {to: "rmDown"}, "Shutdown RM Only"), 
+	   React.createElement(NavItemLink, {to: "frameworkDown"}, "Shutdown Framework, Stopping Driver"), 
+	   React.createElement(NavItemLink, {to: "gracefulDown"}, "Shutdown Framework, Aborting Driver")
+	)
+>>>>>>> 4721509... Update
       ), 
       React.createElement(Nav, null, 
         React.createElement(NavItemLink, {to: "flex"}, "Flex"), 
         React.createElement(NavItemLink, {to: "tasks"}, "Tasks")
       ), 
+
+      React.createElement(Nav, {bsStyle: "tabs"}, 
+	React.createElement(DropdownButton, {title: "Help", naveItem: true}, 
+	   React.createElement(NavItemLink, {to: "help"}, "Menu Options"), 
+	   React.createElement(NavItemLink, {to: "about"}, "About Myriad")
+	)
+      ), 
+
       React.createElement(Nav, {right: true}, 
         React.createElement(NavItemLink, {to: "config"}, "Config"), 
         React.createElement("span", {className: "navbar-text"}, 
@@ -552,7 +664,13 @@ var NavbarComponent = React.createClass({displayName: "NavbarComponent",
 module.exports = NavbarComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router-bootstrap/lib/index.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router-bootstrap":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router-bootstrap/lib/index.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router-bootstrap":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router-bootstrap/lib/index.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router-bootstrap/lib/index.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ProfileComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 
 var ProfileComponent = React.createClass({
@@ -576,7 +694,13 @@ var ProfileComponent = React.createClass({
 module.exports = ProfileComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 
 
@@ -597,7 +721,274 @@ var RawJSONComponent = React.createClass({
 module.exports = RawJSONComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ShutdownFrameworkComponent.js":[function(require,module,exports){
+var React = require('react');
+var ReactBootstrap = require('react-bootstrap')
+  , Button = ReactBootstrap.Button
+  , Modal = ReactBootstrap.Modal;
+
+var OverlayMixin = ReactBootstrap.OverlayMixin;
+var Navigation = require('react-router').Navigation;
+var request = require('superagent');
+
+var XModal = React.createClass({displayName: "XModal",
+  	mixins: [OverlayMixin],
+
+  	getInitialState() {
+    		return {
+      			isModalOpen: false
+    		};
+  	},
+
+  	handleToggle() {
+		// For whatever reason this toggle does not work as claimed on line....so cheat.
+		if (!this.state.isModalOpen)
+    	    		document.getElementById('shutdownModal').style.visibility = "hidden";
+        	this.setState({
+            		isModalOpen: !this.state.isModalOpen
+        	});
+  	},
+  	render() {
+    		return ( React.createElement(Modal, React.__spread({},  this.props, {bsStyle: "primary", id: "shutdownModal", title: "Shutdown Myriad Framework ?", animation: false, 					onRequestHide: this.handleToggle}), 
+	 			React.createElement("div", {className: "modal-body"}, 
+					React.createElement("p", null, " This will stop the driver in failover mode, which will stop the executor and tasks, then stop the ResourceManager."), 
+       					React.createElement("p", null, " This requires the ResourceManager to be either in HA mode or restarted so that it re-registers with Mesos. ")
+				), 
+       				React.createElement("div", {className: "modal-footer"}, 
+       	    				React.createElement(Button, {bsStyle: "default", onClick: function() {
+						this.handleToggle();
+						this.props.onCancel();
+						}.bind(this)}, "Cancel"), 
+	    				React.createElement(Button, {bsStyle: "success", onClick: function(){
+                				this.handleToggle();
+						this.props.onShutdown();
+              					}.bind(this)}, "Continue")
+	 			)
+     			));
+  	},
+
+ 	renderOverlay() {
+      	   		return React.createElement("span", null);
+  	}
+});
+ 
+var ShutdownFrameworkComponent = React.createClass({
+	mixins: [Navigation],
+
+  	displayName: "ShutdownFrameworkComponent",
+
+  	render() {
+   		return (
+  			React.createElement(XModal, {onShutdown: this.onRequestShutdown, onCancel: this.onCancel})
+    		);
+  	},
+ 	onCancel : function() {
+        	this.transitionTo("tasks");
+	},
+  	onRequestShutdown: function() {
+    		console.log( "shutting down Myriad .... ");
+    		request.get('/api/framework/shutdown/framework')
+    			.set('Content-Type', 'application/json')
+    			.end(function(err, res){
+           			console.log("Result from /api/framework/shutdown/framework");
+           			console.log(res);
+		   		if (!err) {
+		     			console.log("Shutdown Myraid framework successful!");
+		   		} else {
+		     			console.log('Shutdown Myraid framework failed: ' + res.text);
+           		}
+         }.bind(this));
+
+        this.transitionTo("tasks");
+      },
+
+});
+
+module.exports = ShutdownFrameworkComponent;
+
+
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ShutdownGracefulComponent.js":[function(require,module,exports){
+var React = require('react');
+var ReactBootstrap = require('react-bootstrap')
+  , Button = ReactBootstrap.Button
+  , Modal = ReactBootstrap.Modal;
+
+var OverlayMixin = ReactBootstrap.OverlayMixin;
+var Navigation = require('react-router').Navigation;
+var request = require('superagent');
+
+var XModalGrace = React.createClass({displayName: "XModalGrace",
+  	mixins: [OverlayMixin],
+
+  	getInitialState() {
+    		return {
+      			isModalOpen: false
+    		};
+  	},
+
+  	handleToggle() {
+		// For whatever reason this toggle does not work as claimed on line....so cheat.
+		if (!this.state.isModalOpen)
+    	    		document.getElementById('shutdownModalXModalGrace').style.visibility = "hidden";
+        	this.setState({
+            		isModalOpen: !this.state.isModalOpen
+        	});
+  	},
+
+  	render() {
+    		return ( React.createElement(Modal, React.__spread({},  this.props, {bsStyle: "primary", id: "shutdownModalXModalGrace", title: "Shutdown Myriad Gracefully?", animation: false, 					onRequestHide: this.handleToggle}), 
+	 			React.createElement("div", {className: "modal-body"}, 
+					React.createElement("p", null, " This will shutdown all the tasks, then send a FrameworkMessage shutdown to the executor, then exits the ResourceManager. "), 
+					React.createElement("p", null, " This allows the ResourceManager to be started backup without requiring it to re-register or be in HA mode, great for testing.")
+				), 
+       				React.createElement("div", {className: "modal-footer"}, 
+       	    				React.createElement(Button, {bsStyle: "default", onClick: function() {
+						this.handleToggle
+						this.props.onCancel();
+						}.bind(this)}, "Cancel"), 
+	    				React.createElement(Button, {bsStyle: "success", onClick: function(){
+                				this.handleToggle();
+						this.props.onShutdown();
+              					}.bind(this)}, "Continue")
+	 			)
+     			));
+  	},
+
+ 	renderOverlay() {
+      	   		return React.createElement("span", null);
+  	}
+});
+ 
+var ShutdownGracefulComponent = React.createClass({
+	mixins: [Navigation],
+
+  	displayName: "ShutdownGracefulComponent",
+
+  	render() {
+   		return (
+  			React.createElement(XModalGrace, {onShutdown: this.onRequestShutdown, onCancel: this.onCancel})
+    		);
+  	},
+	onCancel : function() {
+		console.log("onCancel");
+        	this.transitionTo("tasks");
+	},
+  	onRequestShutdown: function() {
+    		console.log( "shutting down Myriad .... ");
+    		request.get('/api/framework/shutdown/graceful')
+    			.set('Content-Type', 'application/json')
+    			.end(function(err, res){
+           			console.log("Result from /api/framework/shutdown/graceful");
+           			console.log(res);
+		   		if (!err) {
+		     			console.log("Shutdown myriad graceful successful!");
+		   		} else {
+		     			console.log('Shutdown myriad graceful failed: ' + res.text);
+           		}
+         }.bind(this));
+
+        this.transitionTo("tasks");
+      },
+
+});
+
+module.exports = ShutdownGracefulComponent;
+
+
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/ShutdownRmOnlyComponent.js":[function(require,module,exports){
+var React = require('react');
+var ReactBootstrap = require('react-bootstrap')
+  , Button = ReactBootstrap.Button
+  , Modal = ReactBootstrap.Modal;
+
+var OverlayMixin = ReactBootstrap.OverlayMixin;
+var Navigation = require('react-router').Navigation;
+var request = require('superagent');
+
+var XModalRMOnly = React.createClass({displayName: "XModalRMOnly",
+  	mixins: [OverlayMixin],
+
+  	getInitialState() {
+    		return {
+      			isModalOpen: false
+    		};
+  	},
+
+  	handleToggle() {
+		// For whatever reason this toggle does not work as claimed on line....so cheat.
+		if (!this.state.isModalOpen)
+    	    		document.getElementById('shutdownModalXModalRMOnly').style.visibility = "hidden";
+        	this.setState({
+            		isModalOpen: !this.state.isModalOpen
+        	});
+
+  	},
+  	render() {
+    		return ( React.createElement(Modal, React.__spread({},  this.props, {bsStyle: "primary", id: "shutdownModalXModalRMOnly", title: "Shutdown RM Only ?", animation: false, 					onRequestHide: this.handleToggle}), 
+	 			React.createElement("div", {className: "modal-body"}, 
+					React.createElement("p", null, "This will only stop the ResourceManager, the executor and tasks will continure to run. ")
+				), 
+       				React.createElement("div", {className: "modal-footer"}, 
+       	    				React.createElement(Button, {bsStyle: "default", onClick:  function() {
+						this.handleToggle();
+						this.props.onCancel();
+						}.bind(this)}, "Cancel"), 
+	    				React.createElement(Button, {bsStyle: "success", onClick: function(){
+                				this.handleToggle();
+						this.props.onShutdown();
+              					}.bind(this)}, "Continue")
+	 			)
+     			));
+  	},
+
+ 	renderOverlay() {
+      	   return React.createElement("span", null);
+  	}
+});
+ 
+var ShutdownRmOnlyComponent = React.createClass({
+	mixins: [Navigation],
+
+  	displayName: "ShutdownRmOnlyComponent",
+
+  	render() {
+   		return (
+  			React.createElement(XModalRMOnly, {onShutdown: this.onRequestShutdown, onCancel: this.onCancel})
+    		);
+  	},
+ 
+	onCancel : function() {
+        	this.transitionTo("tasks");
+	},
+  	onRequestShutdown: function() {
+    		console.log( "shutting down Myriad .... ");
+    		request.get('/api/framework/shutdown/managerOnly')
+    			.set('Content-Type', 'application/json')
+    			.end(function(err, res){
+           			console.log("Result from /api/framework/shutdown/managerOnly");
+           			console.log(res);
+		   		if (!err) {
+		     			console.log("Shutdown RM Only successful!");
+		   		} else {
+		     			console.log('Shutdown RM Only failed: ' + res.text);
+           		}
+         }.bind(this));
+
+        this.transitionTo("tasks");
+      },
+
+});
+
+module.exports = ShutdownRmOnlyComponent;
+
+
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js","react-bootstrap":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-bootstrap/lib/main.js","react-router":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react-router/lib/index.js","superagent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/superagent/lib/client.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 
 var TaskListComponent = React.createClass({
@@ -619,7 +1010,13 @@ var TaskListComponent = React.createClass({
 module.exports = TaskListComponent;
 
 
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js":[function(require,module,exports){
 },{"react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js":[function(require,module,exports){
+=======
+},{"react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/TasksComponent.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 var React = require('react');
 var TaskListComponent = require('../components/TaskListComponent');
 var changeCase = require('change-case');
@@ -659,10 +1056,20 @@ var TasksComponent = React.createClass({
 module.exports = TasksComponent;
 
 
+},{"../components/TaskListComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js","change-case":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/change-case/change-case.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/browser-resolve/empty.js":[function(require,module,exports){
 },{"../components/TaskListComponent":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js","change-case":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/change-case/change-case.js","react":"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/browser-resolve/empty.js":[function(require,module,exports){
+<<<<<<< HEAD
+},{"../components/TaskListComponent":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js","change-case":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/change-case/change-case.js","react":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/browser-resolve/empty.js":[function(require,module,exports){
 
+},{}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/index.js":[function(require,module,exports){
 },{}],"/Users/ashankar/MapR/santoshmyriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/index.js":[function(require,module,exports){
 (function (global){
+},{}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/index.js":[function(require,module,exports){
+=======
+},{"../components/TaskListComponent":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/js/components/TaskListComponent.js","change-case":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/change-case/change-case.js","react":"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/react/react.js"}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/browser-resolve/empty.js":[function(require,module,exports){
+
+},{}],"/home/pdread/workspace/myriad-55-destroy-myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/index.js":[function(require,module,exports){
+>>>>>>> 4721509... Update
 /*!
  * The buffer module from node.js, for the browser.
  *
@@ -696,15 +1103,15 @@ var rootParent = {}
  * Note:
  *
  *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
- *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
+ *   See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  *
  *   - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property
  *     on objects.
  *
- *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
+ *  - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  *
- *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
- *     incorrect length in some situations.
+ *  - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
+ *    incorrect length in some situations.
 
  * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  * get the Object implementation, which is slower but behaves correctly.
@@ -802,8 +1209,8 @@ function fromObject (that, object) {
 
   if (typeof ArrayBuffer !== 'undefined') {
     if (object.buffer instanceof ArrayBuffer) {
-      return fromTypedArray(that, object)
-    }
+    return fromTypedArray(that, object)
+  }
     if (object instanceof ArrayBuffer) {
       return fromArrayBuffer(that, object)
     }
@@ -1008,25 +1415,25 @@ function byteLength (string, encoding) {
   var loweredCase = false
   for (;;) {
     switch (encoding) {
-      case 'ascii':
-      case 'binary':
+    case 'ascii':
+    case 'binary':
       // Deprecated
-      case 'raw':
+    case 'raw':
       case 'raws':
         return len
       case 'utf8':
       case 'utf-8':
         return utf8ToBytes(string).length
-      case 'ucs2':
-      case 'ucs-2':
-      case 'utf16le':
-      case 'utf-16le':
+    case 'ucs2':
+    case 'ucs-2':
+    case 'utf16le':
+    case 'utf-16le':
         return len * 2
-      case 'hex':
+    case 'hex':
         return len >>> 1
-      case 'base64':
-        return base64ToBytes(string).length
-      default:
+    case 'base64':
+      return base64ToBytes(string).length
+    default:
         if (loweredCase) return utf8ToBytes(string).length // assume utf8
         encoding = ('' + encoding).toLowerCase()
         loweredCase = true
@@ -1337,7 +1744,7 @@ function utf8Slice (buf, start, end) {
             if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
               codePoint = tempCodePoint
             }
-          }
+    }
           break
         case 4:
           secondByte = buf[i + 1]
@@ -1350,7 +1757,7 @@ function utf8Slice (buf, start, end) {
             }
           }
       }
-    }
+  }
 
     if (codePoint === null) {
       // we did not generate a valid codePoint so insert a
@@ -1362,7 +1769,7 @@ function utf8Slice (buf, start, end) {
       codePoint -= 0x10000
       res.push(codePoint >>> 10 & 0x3FF | 0xD800)
       codePoint = 0xDC00 | codePoint & 0x3FF
-    }
+}
 
     res.push(codePoint)
     i += bytesPerSequence
@@ -2116,11 +2523,11 @@ function utf8ToBytes (string, units) {
           continue
         }
 
-        // valid lead
-        leadSurrogate = codePoint
+          // valid lead
+          leadSurrogate = codePoint
 
-        continue
-      }
+          continue
+        }
 
       // 2 leads in a row
       if (codePoint < 0xDC00) {
@@ -2136,7 +2543,7 @@ function utf8ToBytes (string, units) {
       if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
     }
 
-    leadSurrogate = null
+      leadSurrogate = null
 
     // encode utf8
     if (codePoint < 0x80) {
@@ -2208,9 +2615,31 @@ function blitBuffer (src, dst, offset, length) {
   return i
 }
 
+function decodeUtf8Char (str) {
+  try {
+    return decodeURIComponent(str)
+  } catch (err) {
+    return String.fromCharCode(0xFFFD) // UTF 8 invalid char
+  }
+}
+
+},{"base64-js":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","ieee754":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","is-array":"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js"}],"/Users/klucar/code/myriad/myriad-scheduler/src/main/resources/webapp/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js":[function(require,module,exports){
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
 //# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9idWZmZXIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQ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AgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgY2FzZSAzOlxuICAgICAgICAgIHNlY29uZEJ5dGUgPSBidWZbaSArIDFdXG4gICAgICAgICAgdGhpcmRCeXRlID0gYnVmW2kgKyAyXVxuICAgICAgICAgIGlmICgoc2Vjb25kQnl0ZSAmIDB4QzApID09PSAweDgwICYmICh0aGlyZEJ5dGUgJiAweEMwKSA9PT0gMHg4MCkge1xuICAgICAgICAgICAgdGVtcENvZGVQb2ludCA9IChmaXJzdEJ5dGUgJiAweEYpIDw8IDB4QyB8IChzZWNvbmRCeXRlICYgMHgzRikgPDwgMHg2IHwgKHRoaXJkQnl0ZSAmIDB4M0YpXG4gICAgICAgICAgICBpZiAodGVtcENvZGVQb2ludCA+IDB4N0ZGICYmICh0ZW1wQ29kZVBvaW50IDwgMHhEODAwIHx8IHRlbXBDb2RlUG9pbnQgPiAweERGRkYpKSB7XG4gICAgICAgICAgICAgIGNvZGVQb2ludCA9IHRlbXBDb2RlUG9pbnRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgY2FzZSA0OlxuICAgICAgICAgIHNlY29uZEJ5dGUgPSBidWZbaSArIDFdXG4gICAgICAgICAgdGhpcmRCeXRlID0gYnVmW2kg
 KyAyXVxuICAgICAgICAgIGZvdXJ0aEJ5dGUgPSBidWZbaSArIDNdXG4gICAgICAgICAgaWYgKChzZWNvbmRCeXRlICYgMHhDMCkgPT09IDB4ODAgJiYgKHRoaXJkQnl0ZSAmIDB4QzApID09PSAweDgwICYmIChmb3VydGhCeXRlICYgMHhDMCkgPT09IDB4ODApIHtcbiAgICAgICAgICAgIHRlbXBDb2RlUG9pbnQgPSAoZmlyc3RCeXRlICYgMHhGKSA8PCAweDEyIHwgKHNlY29uZEJ5dGUgJiAweDNGKSA8PCAweEMgfCAodGhpcmRCeXRlICYgMHgzRikgPDwgMHg2IHwgKGZvdXJ0aEJ5dGUgJiAweDNGKVxuICAgICAgICAgICAgaWYgKHRlbXBDb2RlUG9pbnQgPiAweEZGRkYgJiYgdGVtcENvZGVQb2ludCA8IDB4MTEwMDAwKSB7XG4gICAgICAgICAgICAgIGNvZGVQb2ludCA9IHRlbXBDb2RlUG9pbnRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKGNvZGVQb2ludCA9PT0gbnVsbCkge1xuICAgICAgLy8gd2UgZGlkIG5vdCBnZW5lcmF0ZSBhIHZhbGlkIGNvZGVQb2ludCBzbyBpbnNlcnQgYVxuICAgICAgLy8gcmVwbGFjZW1lbnQgY2hhciAoVStGRkZEKSBhbmQgYWR2YW5jZSBvbmx5IDEgYnl0ZVxuICAgICAgY29kZVBvaW50ID0gMHhGRkZEXG4gICAgICBieXRlc1BlclNlcXVlbmNlID0gMVxuICAgIH0gZWxzZSBpZiAoY29kZVBvaW50ID4gMHhGRk

<TRUNCATED>


Mime
View raw message