airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject svn commit: r1508249 [1/2] - in /airavata/sandbox/gsoc2013: ./ app/ app/img/ app/scripts/ app/scripts/controllers/ app/scripts/model/ app/scripts/vendor/ app/styles/ app/views/
Date Mon, 29 Jul 2013 23:57:29 GMT
Author: smarru
Date: Mon Jul 29 23:57:28 2013
New Revision: 1508249

URL: http://svn.apache.org/r1508249
Log:
commiting Subho's patch

Added:
    airavata/sandbox/gsoc2013/app/img/
    airavata/sandbox/gsoc2013/app/img/grid.gif   (with props)
    airavata/sandbox/gsoc2013/app/scripts/controllers/WorkflowCreator.js
    airavata/sandbox/gsoc2013/app/scripts/controllers/executionInterfaceCntl.js
    airavata/sandbox/gsoc2013/app/scripts/vendor/
    airavata/sandbox/gsoc2013/app/scripts/vendor/jquery.base64.min.js
    airavata/sandbox/gsoc2013/package.json
Removed:
    airavata/sandbox/gsoc2013/app/scripts/controllers/main.js
    airavata/sandbox/gsoc2013/app/scripts/model/
Modified:
    airavata/sandbox/gsoc2013/.jshintrc
    airavata/sandbox/gsoc2013/app/.htaccess
    airavata/sandbox/gsoc2013/app/index.html
    airavata/sandbox/gsoc2013/app/scripts/app.js
    airavata/sandbox/gsoc2013/app/scripts/controllers/Alert.js
    airavata/sandbox/gsoc2013/app/scripts/controllers/RegistryConnection.js
    airavata/sandbox/gsoc2013/app/styles/main.scss
    airavata/sandbox/gsoc2013/app/views/create.canvas.html
    airavata/sandbox/gsoc2013/app/views/exec.sidenavbar.html
    airavata/sandbox/gsoc2013/app/views/index.canvas.html
    airavata/sandbox/gsoc2013/app/views/index.navbar.html
    airavata/sandbox/gsoc2013/app/views/index.sidenavbar.html
    airavata/sandbox/gsoc2013/bower.json

Modified: airavata/sandbox/gsoc2013/.jshintrc
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/.jshintrc?rev=1508249&r1=1508248&r2=1508249&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/.jshintrc (original)
+++ airavata/sandbox/gsoc2013/.jshintrc Mon Jul 29 23:57:28 2013
@@ -19,6 +19,11 @@
   "trailing": true,
   "smarttabs": true,
   "globals": {
-    "angular": false
+    "angular": false,
+    "$": false,
+    "jQuery": false,
+    "Raphael": false,
+    "Showdown": false,
+    "BandIt": false
   }
 }

Modified: airavata/sandbox/gsoc2013/app/.htaccess
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/.htaccess?rev=1508249&r1=1508248&r2=1508249&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/app/.htaccess (original)
+++ airavata/sandbox/gsoc2013/app/.htaccess Mon Jul 29 23:57:28 2013
@@ -16,9 +16,9 @@
 # http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
 # http://enable-cors.org/
 
-# <IfModule mod_headers.c>
-#    Header set Access-Control-Allow-Origin "*"
-# </IfModule>
+<IfModule mod_headers.c>
+  Header set Access-Control-Allow-Origin "*"
+</IfModule>
 
 # ------------------------------------------------------------------------------
 # | CORS-enabled images                                                        |

Added: airavata/sandbox/gsoc2013/app/img/grid.gif
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/img/grid.gif?rev=1508249&view=auto
==============================================================================
Binary file - no diff available.

Propchange: airavata/sandbox/gsoc2013/app/img/grid.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: airavata/sandbox/gsoc2013/app/index.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/index.html?rev=1508249&r1=1508248&r2=1508249&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/app/index.html (original)
+++ airavata/sandbox/gsoc2013/app/index.html Mon Jul 29 23:57:28 2013
@@ -18,6 +18,7 @@ under the License.
 -->
 
 <!doctype html>
+<html lang="en">
 <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
 <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
 <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
@@ -61,62 +62,67 @@ under the License.
     </div>
 </div>
 
-<!-- The Content -->
-<div class="container-fluid" style="padding-top: 60px">
+  <!-- The Content -->
+  <div class="container-fluid" style="padding-top: 60px;">
     <div class="row-fluid">
-        <div class="span3">
-            <div class="well sidebar-nav" ui-view="sidenavbar"></div>
-        </div>
-        <div class="span9">
-            <!-- Alerts -->
-            <div class="row" ng-controller="Alert">
-                <div ng-repeat="alert in alerts" class="alert alert-block alert-{{alert.type}}
fade in">
-                    <button type="button" class="close" data-dismiss="alert" ng-click="closeAlert($index)">&times;</button>
-                    <h4 class="alert-heading">{{alert.head}}</h4>
-                    <p>{{alert.msg}}</p>
-                </div>
-            </div>
-            <!-- Canvas -->
-            <div class="row" ui-view="canvas"></div>
+      <div class="span3">
+        <div class="well sidebar-nav" ui-view="sidenavbar"></div>
+      </div>
+      <div class="span9">
+        <!-- Alerts -->
+        <div class="row"ng-controller="Alert">
+          <div ng-repeat="alert in alerts" class="alert alert-block alert-{{alert.type}}
fade in">
+            <button type="button" class="close" data-dismiss="alert" ng-click="closeAlert($index)">&times;</button>
+            <h4 class="alert-heading">{{alert.head}}</h4>
+            <p>{{alert.msg}}</p>
+          </div>
         </div>
+        <!-- Canvas -->
+        <div class="row" ui-view="canvas"></div>
+      </div>
     </div>
 
-    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
-    <script>window.angular || document.write('<script src="bower_components/angular/angular.js"><\/script>')</script>
-
-    <!-- build:js({.tmp,app}) scripts/scripts.js -->
-    <script src="scripts/app.js"></script>
-    <script src="scripts/controllers/Alert.js"></script>
-    <script src="scripts/controllers/RegistryConnection.js"></script>
-    <script src="scripts/registryAPI.js"></script>
-    <script src="scripts/controllers/executionInterfaceCntl.js"></script>
-    <script src="scripts/model/workflow_execution_context.json"></script>
-    <!-- endbuild -->
-
-    <!-- build:js scripts/plugins.js -->
-    <script src="bower_components/jquery/jquery.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-affix.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-alert.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-dropdown.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-tooltip.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-modal.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-transition.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-button.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-popover.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-typeahead.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-carousel.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-scrollspy.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-collapse.js"></script>
-    <script src="bower_components/bootstrap-sass/js/bootstrap-tab.js"></script>
-    <!-- endbuild -->
+  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
+  <script>window.angular || document.write('<script src="bower_components/angular/angular.js"><\/script>')</script>
 
-    <!-- build:js scripts/modules.js -->
-    <script src="bower_components/angular-resource/angular-resource.js"></script>
-    <script src="bower_components/angular-cookies/angular-cookies.js"></script>
-    <script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
-    <script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
-    <script src="bower_components/tv4/tv4.js"></script>
-    <!-- endbuild -->
+  <!-- build:js({.tmp,app}) scripts/scripts.js -->
+  <script src="scripts/app.js"></script>
+  <script src="scripts/controllers/Alert.js"></script>
+  <script src="scripts/controllers/RegistryConnection.js"></script>
+  <script src="scripts/controllers/WorkflowCreator.js"></script>
+  <script src="scripts/vendor/bandit.js"></script>
+  <script src="scripts/registryAPI.js"></script>
+  <script src="scripts/controllers/executionInterfaceCntl.js"></script>
+  <script src="scripts/model/workflow_execution_context.json"></script>
+  <!-- endbuild -->
+
+  <!-- build:js scripts/plugins.js -->
+  <script src="bower_components/jquery/jquery.js"></script>
+  <script src="bower_components/jquery-ui/ui/jquery-ui.js"></script>
+  <script src="scripts/vendor/jquery.base64.min.js"></script>
+  <script src="bower_components/raphael/raphael.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-affix.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-alert.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-dropdown.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-tooltip.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-modal.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-transition.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-button.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-popover.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-typeahead.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-carousel.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-scrollspy.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-collapse.js"></script>
+  <script src="bower_components/bootstrap-sass/js/bootstrap-tab.js"></script>
+  <!-- endbuild -->
+
+  <!-- build:js scripts/modules.js -->
+  <script src="bower_components/angular-resource/angular-resource.js"></script>
+  <script src="bower_components/angular-cookies/angular-cookies.js"></script>
+  <script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
+  <script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
+  <script src="bower_components/tv4/tv4.js"></script>
+  <!-- endbuild -->
 
 </body>
 

Modified: airavata/sandbox/gsoc2013/app/scripts/app.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/scripts/app.js?rev=1508249&r1=1508248&r2=1508249&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/app/scripts/app.js (original)
+++ airavata/sandbox/gsoc2013/app/scripts/app.js Mon Jul 29 23:57:28 2013
@@ -1,22 +1,20 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
+/**
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
  */
 
 'use strict';
@@ -31,6 +29,7 @@ app.config(function ($stateProvider, $ro
   //To enable the Cross Origin Resource Sharing in application
   //$httpProvider.defaults.useXDomain = true;
   //delete $httpProvider.defaults.headers.common['X-Requested-With'];
+
   // Views corresponding to the state of the application when just loaded
   $stateProvider.state('index', {
     url: '',
@@ -78,22 +77,21 @@ app.config(function ($stateProvider, $ro
   });
   // Views corresponding to the workflow monitoring interface
   $stateProvider.state('monitor', {
-     url: '/monitor',
-     views: {
-        'navbar': {
-          templateUrl: 'views/monitor.navbar.html'
-        },
-        'sidenavbar': {
-          templateUrl: 'views/monitor.sidenavbar.html'
-        },
-        'canvas': {
-          templateUrl: 'views/monitor.canvas.html'
-        }
-     }
-    });
-
-
+    url: '/monitor',
+    views: {
+      'navbar': {
+        templateUrl: 'views/monitor.navbar.html'
+      },
+      'sidenavbar': {
+        templateUrl: 'views/monitor.sidenavbar.html'
+      },
+      'canvas': {
+        templateUrl: 'views/monitor.canvas.html'
+      }
+    }
+  });
 });
+
 //_______________________________________________________________________________
 // Services
 //_______________________________________________________________________________

Modified: airavata/sandbox/gsoc2013/app/scripts/controllers/Alert.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/scripts/controllers/Alert.js?rev=1508249&r1=1508248&r2=1508249&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/app/scripts/controllers/Alert.js (original)
+++ airavata/sandbox/gsoc2013/app/scripts/controllers/Alert.js Mon Jul 29 23:57:28 2013
@@ -1,30 +1,27 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-'use strict';
+/**
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
 
-/* Controller to show alerts to screen
- * An alert is structured as {"msg": "...", "head": "...", "type": "fromBootstrap"}
- * All alerts are communicated through the MessageQueue service under the topic 'alerts'
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
  */
 
+'use strict';
+
+// Controller to show alerts to screen
+// An alert is structured as {"msg": "...", "head": "...", "type": "fromBootstrap"}
+// All alerts are communicated through the MessageQueue service under the topic 'alerts'
 angular.module('WebUI').controller('Alert', function ($scope, MessageQueue) {
   // Local copy of all alerts
   $scope.alerts = [];

Modified: airavata/sandbox/gsoc2013/app/scripts/controllers/RegistryConnection.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/scripts/controllers/RegistryConnection.js?rev=1508249&r1=1508248&r2=1508249&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/app/scripts/controllers/RegistryConnection.js (original)
+++ airavata/sandbox/gsoc2013/app/scripts/controllers/RegistryConnection.js Mon Jul 29 23:57:28
2013
@@ -5,14 +5,14 @@
  * distributed with this work for additional information
  * regarding copyright ownership.  The ASF licenses this file
  * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
+ * 'License'); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
  *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
@@ -32,7 +32,6 @@ angular.module('WebUI').controller('Regi
     'username': 'admin',
     'password': 'admin'
   };
-
   // Data required to add new user to the registry
   $scope.newUser={
     'username':'',
@@ -43,19 +42,18 @@ angular.module('WebUI').controller('Regi
   // Callback to test connection
   $scope.connectToRegistry = function () {
     // Test connection to registry
-
     //$scope.basicRegistry= new BasicRegistry();
     //$scope.res=$scope.basicRegistry.setAiravataUser($scope.registry.username);
     $http({ // Load the initial data
-      url: "http://localhost:8080/airavata-registry/api/basicregistry/set/serviceURL"+"?connectionurl="+$scope.registry.url,
+      url: 'http://localhost:8080/airavata-registry/api/basicregistry/set/serviceURL'+'?connectionurl='+$scope.registry.url,
       method: 'GET',
-      headers:{"Authorization": "Basic YWRtaW46YWRtaW4=",
-          "Accept": "*/*", "Content-Type": "application/x-www-form-urlencoded"}
+      headers:{'Authorization': 'Basic YWRtaW46YWRtaW4=',
+          'Accept': '*/*', 'Content-Type': 'application/x-www-form-urlencoded'}
     }).success(function (data) {
       $scope.res = data;
     }).error(function(data, status) {
       //alert(data)
-      $scope.res = data || "Request failed";
+      $scope.res = data || 'Request failed';
       $scope.status = status;
     });
 
@@ -81,4 +79,4 @@ angular.module('WebUI').controller('Regi
       'type': 'success'
     }]);
   };
-});
\ No newline at end of file
+});

Added: airavata/sandbox/gsoc2013/app/scripts/controllers/WorkflowCreator.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/scripts/controllers/WorkflowCreator.js?rev=1508249&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/app/scripts/controllers/WorkflowCreator.js (added)
+++ airavata/sandbox/gsoc2013/app/scripts/controllers/WorkflowCreator.js Mon Jul 29 23:57:28
2013
@@ -0,0 +1,116 @@
+/**
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ 'License'); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+'use strict';
+
+// Controller to create and edit workflows
+angular.module('WebUI').controller('WorkflowCreator', function ($scope, MessageQueue) {
+	// The WorkflowUI instance tied to the controller
+	$scope.workflowUI = new BandIt('editor', 1200, 800);
+  $scope.workflowUI.setOptions({
+    'store': 'none'
+  });
+  $scope.workflowUI.setDefaultProperties({
+    'command': '',
+    'store': 'false',
+    'queue': '',
+    'description': ''
+  });
+
+  // Active button states
+  $scope.buttonState = {
+    'link': '',
+    'delete': '',
+    'move': 'active',
+    'group': ''
+  };
+
+  // Add the first node
+  $scope.workflowUI.add('root', { fill: '#6E6E6E' });
+  var updatemode = function (mode) {
+    $scope.workflowUI.setMode(mode);
+    switch(mode) {
+    case 0: // Move
+      $scope.buttonState.move = 'active';
+      $scope.buttonState.link = $scope.buttonState.delete = $scope.buttonState.group = '';
+      break;
+    case 1: // Link
+      $scope.buttonState.link = 'active';
+      $scope.buttonState.move = $scope.buttonState.delete = $scope.buttonState.group = '';
+      break;
+    case 2: // Delete
+      $scope.buttonState.delete = 'active';
+      $scope.buttonState.link = $scope.buttonState.move = $scope.buttonState.group = '';
+      break;
+    case 3: // Group
+      $scope.buttonState.group = 'active';
+      $scope.buttonState.link = $scope.buttonState.delete = $scope.buttonState.move = '';
+      break;
+    }
+  };
+
+  // Functions relating to the creation menubar
+  $scope.addNode = function () {
+    updatemode(0);
+    $scope.workflowUI.add();
+  };
+  $scope.addContainer = function () {
+    updatemode(0);
+    $scope.workflowUI.addContainer();
+  };
+  $scope.move = function () {
+    updatemode(0);
+  };
+  $scope.link = function () {
+    updatemode(1);
+  };
+  $scope.delete = function () {
+    updatemode(2);
+  };
+  $scope.group = function () {
+    updatemode(3);
+  };
+  $scope.undo = function () {
+    $scope.workflowUI.undo();
+  };
+  $scope.redo = function () {
+    $scope.workflowUI.redo();
+  };
+  $scope.clean = function () {
+    $scope.workflowUI.clean();
+  };
+  $scope.zoomIn = function () {
+    $scope.workflowUI.zoomIn();
+  };
+  $scope.zoomOut = function () {
+    $scope.workflowUI.zoomOut();
+  };
+  $scope.panLeft = function () {
+    $scope.workflowUI.moveLeft(10);
+  };
+  $scope.panRight = function () {
+    $scope.workflowUI.moveRight(10);
+  };
+  $scope.panUp = function () {
+    $scope.workflowUI.moveUp(10);
+  };
+  $scope.panDown = function () {
+    $scope.workflowUI.moveDown(10);
+  };
+});

Added: airavata/sandbox/gsoc2013/app/scripts/controllers/executionInterfaceCntl.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/scripts/controllers/executionInterfaceCntl.js?rev=1508249&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/app/scripts/controllers/executionInterfaceCntl.js (added)
+++ airavata/sandbox/gsoc2013/app/scripts/controllers/executionInterfaceCntl.js Mon Jul 29
23:57:28 2013
@@ -0,0 +1,60 @@
+/**
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+/*
+ *
+ * Controllers for the execution interface
+ *
+ */
+
+//Main Controller for execution Interface
+
+angular.module('WebUI')
+    .controller('executionInterfaceCntl', function ($scope) {
+
+        //Variables related to Run Workflow
+
+        $scope.isWorkflowOpen=true;
+        $scope.isWorkflowRunning=false;
+        $scope.workflowInputs=[];
+        $scope.experimentName='';
+        $scope.workflowInterpreterURL='';
+        $scope.gfacURL='';
+        $scope.templateId=$routeParams.templateId;
+
+        //$scope.workflowInputs.push({"id":$scope.experimentName,"name":$scope.experimentName,"datatype":"","value":"Experiment
Name"});
+        //$scope.workflowInputs.push({"id":$scope.workflowInterpreterURL,"name":$scope.workflowInterpreterURL,"datatype":"","value":"Workflow
Interpreter URL"});
+        //$scope.workflowInputs.push({"id":$scope.gfacURL,"name":$scope.gfacURL,"datatype":"","value":"gfacURL"});
+
+        //get the inputs for the open workflow to render run workflow modal
+        $scope.getWorkflowInputs=function($scope){
+            //Airavata Client API call to get number of inputs for given template id
+        };
+
+        //validate the inputs
+        $scope.validateInputs=function($scope){
+
+        };
+
+        //run experiment
+        $scope.runExperiment=function($scope){
+            //Airavata client API call to run experiment with
+        };
+
+    });



Mime
View raw message