You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2013/07/25 00:44:34 UTC

svn commit: r1506767 [3/3] - in /airavata/sandbox/gsoc2013: ./ app/ app/scripts/ app/scripts/controllers/ app/scripts/model/ app/styles/ app/views/ css/ js/ test/spec/ test/spec/controllers/

Added: airavata/sandbox/gsoc2013/app/views/newApplicationDeployement.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/views/newApplicationDeployement.html?rev=1506767&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/app/views/newApplicationDeployement.html (added)
+++ airavata/sandbox/gsoc2013/app/views/newApplicationDeployement.html Wed Jul 24 22:44:33 2013
@@ -0,0 +1,50 @@
+<!--
+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.
+-->
+<div class="modal hide fade" id="newApplicationDeploy" aria-labelledby="addHostModal" tabindex="-1" role="dialog" aria-hidden="true">
+    <div class="modal-header">
+        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
+        <h3>New Application Deployment</h3>
+    </div>
+    <div class="modal-body">
+        <form class="form-horizontal">
+            <div class="control-group">
+                <label class="control-label" for="applicationHost">Application Host: </label>
+                <div class="controls">
+                    <select id="applicationHost"  ng-model="applicationHost" ng-options="host.name for host in hostList"> </select><a href="#addHost" role="button" data-toggle="modal"><i class="icon-plus-sign"></i> Add New Host</a>
+                </div>
+            </div>
+            <div class="control-group">
+                <label class="control-label" for="executablePath">Executable Path</label>
+                <div class="controls">
+                    <input type="url" id="executablePath" placeholder="Executable Path" ng-model="executablePath"> <i class=" icon-folder-open icon-white"></i>
+                </div>
+            </div>
+            <div class="control-group">
+                <label class="control-label" for="scratchWorkingDirectory">Scratch Working Directory</label>
+                <div class="controls">
+                    <input type="url" id="scratchWorkingDirectory" placeholder="Scratch Working Directory" ng-model="scratchWorkingDirectory"> <i class=" icon-folder-open icon-white"></i>
+                </div>
+            </div>
+        </form>
+    </div>
+    <div class="modal-footer">
+        <a href="#" class="btn btn-primary">Save</a>
+        <a href="#" class="btn " data-dismiss="modal" aria-hidden="true">Cancel</a>
+    </div>
+</div>
\ No newline at end of file

Added: airavata/sandbox/gsoc2013/bower.json
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/bower.json?rev=1506767&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/bower.json (added)
+++ airavata/sandbox/gsoc2013/bower.json Wed Jul 24 22:44:33 2013
@@ -0,0 +1,21 @@
+{
+  "name": "Apache Airavata WebUI",
+  "version": "0.0.0",
+  "dependencies": {
+    "angular": "~1.0.7",
+    "json3": "~3.2.4",
+    "jquery": "~1.9.1",
+    "bootstrap-sass": "~2.3.1",
+    "es5-shim": "~2.0.8",
+    "angular-resource": "~1.0.7",
+    "angular-cookies": "~1.0.7",
+    "angular-sanitize": "~1.0.7",
+    "font-awesome": "~3.2.1",
+    "tv4": "*",
+    "angular-ui-router": "~0.0.1"
+  },
+  "devDependencies": {
+    "angular-mocks": "~1.0.7",
+    "angular-scenario": "~1.0.7"
+  }
+}

Added: airavata/sandbox/gsoc2013/karma-e2e.conf.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/karma-e2e.conf.js?rev=1506767&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/karma-e2e.conf.js (added)
+++ airavata/sandbox/gsoc2013/karma-e2e.conf.js Wed Jul 24 22:44:33 2013
@@ -0,0 +1,77 @@
+/*
+  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.
+*/
+
+// Karma E2E configuration
+
+// base path, that will be used to resolve files and exclude
+basePath = '';
+
+// list of files / patterns to load in the browser
+files = [
+  ANGULAR_SCENARIO,
+  ANGULAR_SCENARIO_ADAPTER,
+  'test/e2e/**/*.js'
+];
+
+// list of files to exclude
+exclude = [];
+
+// test results reporter to use
+// possible values: dots || progress || growl
+reporters = ['progress'];
+
+// web server port
+port = 8080;
+
+// cli runner port
+runnerPort = 9100;
+
+// enable / disable colors in the output (reporters and logs)
+colors = true;
+
+// level of logging
+// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
+logLevel = LOG_INFO;
+
+// enable / disable watching file and executing tests whenever any file changes
+autoWatch = false;
+
+// Start these browsers, currently available:
+// - Chrome
+// - ChromeCanary
+// - Firefox
+// - Opera
+// - Safari (only Mac)
+// - PhantomJS
+// - IE (only Windows)
+browsers = ['Chrome'];
+
+// If browser does not capture in given timeout [ms], kill it
+captureTimeout = 5000;
+
+// Continuous Integration mode
+// if true, it capture browsers, run tests and exit
+singleRun = false;
+
+// Uncomment the following lines if you are using grunt's server to run the tests
+// proxies = {
+//   '/': 'http://localhost:9000/'
+// };
+// URL root prevent conflicts with the site root
+// urlRoot = '_karma_';

Added: airavata/sandbox/gsoc2013/karma.conf.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/karma.conf.js?rev=1506767&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/karma.conf.js (added)
+++ airavata/sandbox/gsoc2013/karma.conf.js Wed Jul 24 22:44:33 2013
@@ -0,0 +1,75 @@
+/*
+  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.
+*/
+
+// Karma configuration
+
+// base path, that will be used to resolve files and exclude
+basePath = '';
+
+// list of files / patterns to load in the browser
+files = [
+  JASMINE,
+  JASMINE_ADAPTER,
+  'app/bower_components/angular/angular.js',
+  'app/bower_components/angular-mocks/angular-mocks.js',
+  'app/scripts/*.js',
+  'app/scripts/**/*.js',
+  'test/mock/**/*.js',
+  'test/spec/**/*.js'
+];
+
+// list of files to exclude
+exclude = [];
+
+// test results reporter to use
+// possible values: dots || progress || growl
+reporters = ['progress'];
+
+// web server port
+port = 8080;
+
+// cli runner port
+runnerPort = 9100;
+
+// enable / disable colors in the output (reporters and logs)
+colors = true;
+
+// level of logging
+// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
+logLevel = LOG_INFO;
+
+// enable / disable watching file and executing tests whenever any file changes
+autoWatch = false;
+
+// Start these browsers, currently available:
+// - Chrome
+// - ChromeCanary
+// - Firefox
+// - Opera
+// - Safari (only Mac)
+// - PhantomJS
+// - IE (only Windows)
+browsers = ['Chrome'];
+
+// If browser does not capture in given timeout [ms], kill it
+captureTimeout = 5000;
+
+// Continuous Integration mode
+// if true, it capture browsers, run tests and exit
+singleRun = false;

Added: airavata/sandbox/gsoc2013/package.json
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/package.json?rev=1506767&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/package.json (added)
+++ airavata/sandbox/gsoc2013/package.json Wed Jul 24 22:44:33 2013
@@ -0,0 +1,41 @@
+{
+  "name": "Apache Airavata WebUI",
+  "version": "0.0.0",
+  "private": true,
+  "keywords": [	"Apache Software Foundation", "Airavata", "Workflow" ],
+  "contributors": [
+    { "name": "Danushka Menikkumbura", "email": "danushka.menikkumbura@gmail.com" },
+    { "name": "Sanchit Aggarwal", "email": "sanchitagarwal108@gmail.com" },
+    { "name": "Shameera Rathnayaka", "email": "shameerainfo@gmail.com" },
+    { "name": "Subho Banerjee", "email": "subs.zero@gmail.com" },
+    { "name": "Vijayendra R Grampurohit", "email": "vijayendra.sdm@gmail.com"}
+  ],
+  "devDependencies": {
+    "grunt": "~0.4.1",
+    "grunt-contrib-copy": "~0.4.1",
+    "grunt-contrib-concat": "~0.3.0",
+    "grunt-contrib-coffee": "~0.7.0",
+    "grunt-contrib-uglify": "~0.2.0",
+    "grunt-contrib-compass": "~0.3.0",
+    "grunt-contrib-jshint": "~0.6.0",
+    "grunt-contrib-cssmin": "~0.6.0",
+    "grunt-contrib-connect": "~0.3.0",
+    "grunt-contrib-clean": "~0.4.1",
+    "grunt-contrib-htmlmin": "~0.1.3",
+    "grunt-contrib-imagemin": "~0.1.4",
+    "grunt-contrib-watch": "~0.4.0",
+    "grunt-usemin": "~0.1.11",
+    "grunt-rev": "~0.1.0",
+    "grunt-karma": "~0.4.3",
+    "grunt-open": "~0.2.0",
+    "grunt-concurrent": "~0.3.0",
+    "matchdep": "~0.1.2",
+    "connect-livereload": "~0.2.0",
+    "grunt-google-cdn": "~0.2.0",
+    "grunt-ngmin": "~0.0.2",
+    "yo": "*"
+  },
+  "engines": {
+    "node": ">=0.8.0"
+  }
+}

Added: airavata/sandbox/gsoc2013/test/spec/controllers/main.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/test/spec/controllers/main.js?rev=1506767&view=auto
==============================================================================
--- airavata/sandbox/gsoc2013/test/spec/controllers/main.js (added)
+++ airavata/sandbox/gsoc2013/test/spec/controllers/main.js Wed Jul 24 22:44:33 2013
@@ -0,0 +1,22 @@
+'use strict';
+
+describe('Controller: MainCtrl', function () {
+
+  // load the controller's module
+  beforeEach(module('testApp'));
+
+  var MainCtrl,
+    scope;
+
+  // Initialize the controller and a mock scope
+  beforeEach(inject(function ($controller, $rootScope) {
+    scope = $rootScope.$new();
+    MainCtrl = $controller('MainCtrl', {
+      $scope: scope
+    });
+  }));
+
+  it('should attach a list of awesomeThings to the scope', function () {
+    expect(scope.awesomeThings.length).toBe(3);
+  });
+});