Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sample application for ANNE stack - Manage drugs and their interactions.
- Loading branch information
Showing
154 changed files
with
149,714 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
|
||
//jshint: { | ||
// all: ['src/**/*.js'], | ||
// options: { | ||
// globals: { | ||
// _: false, | ||
// $: false | ||
// }, | ||
// browser: true, | ||
// devel: true | ||
// } | ||
//} | ||
//, | ||
|
||
//jasmine: { | ||
// pivotal: { | ||
// src: ['node_modules/lodash/lodash.js', | ||
// 'node_modules/jquery/dist/jquery.js', | ||
// 'src/**/*.js' | ||
// ], | ||
// options: { | ||
// specs: 'test/*spec.js', | ||
// helpers: 'test/*Helper.js' | ||
// } | ||
// } | ||
//} | ||
|
||
|
||
|
||
}); | ||
|
||
|
||
//grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
|
||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module.exports = function(config){ | ||
config.set({ | ||
|
||
|
||
basePath : '../', | ||
|
||
files : [ | ||
'test/e2e/**/*.js' | ||
], | ||
|
||
autoWatch : false, | ||
|
||
browsers : ['Chrome'], | ||
|
||
frameworks: ['ng-scenario'], | ||
|
||
singleRun : true, | ||
|
||
proxies : { | ||
'/': 'http://localhost:1337/' | ||
}, | ||
|
||
plugins : [ | ||
'karma-junit-reporter', | ||
'karma-chrome-launcher', | ||
'karma-firefox-launcher', | ||
'karma-jasmine', | ||
'karma-ng-scenario' | ||
], | ||
|
||
junitReporter : { | ||
outputFile: 'test_out/e2e.xml', | ||
suite: 'e2e' | ||
} | ||
|
||
})} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
module.exports = function(config){ | ||
config.set({ | ||
basePath : '../', | ||
|
||
files : [ | ||
'public/vendor/jquery/jquery-2.0.3.js', | ||
'public/vendor/angular/angular.js', | ||
'public/vendor/angular/angular-mocks.js', | ||
'public/vendor/angular/angular-animate.js', | ||
'public/vendor/angular/angular-route.js', | ||
'public/vendor/angular/angular-sanitize.js', | ||
'public/vendor/angular/draganddrop.js', | ||
'public/vendor/angular/angular-wizard.js', | ||
'public/vendor/bootstrap.js', | ||
'public/vendor/toastr.js', | ||
'public/vendor/moment.js', | ||
'public/vendor/ui-bootstrap-tpls-0.10.0.js', | ||
'public/vendor/spin.js', | ||
|
||
|
||
|
||
//<!-- Bootstrapping --> | ||
'public/app/app.js', | ||
'public/app/config.js', | ||
'public/app/config.exceptionHandler.js', | ||
'public/app/config.route.js', | ||
|
||
//<!-- common Modules --> | ||
'public/app/common/common.js', | ||
'public/app/common/logger.js', | ||
'public/app/common/spinner.js', | ||
|
||
//<!-- common.bootstrap Modules --> | ||
'public/app/common/bootstrap/bootstrap.dialog.js', | ||
|
||
//<!-- app --> | ||
'public/app/admin/stages.js', | ||
'public/app/admin/assembly.js', | ||
'public/app/admin/parts.js', | ||
'public/app/admin/query.js', | ||
'public/app/dashboard/dashboard.js', | ||
'public/app/layout/shell.js', | ||
'public/app/layout/sidebar.js', | ||
|
||
//<!-- app Services --> | ||
'public/app/services/datacontext.js', | ||
'public/app/services/directives.js', | ||
|
||
|
||
//'public/app/**/*.js', | ||
'test/unit/**/*.js' | ||
], | ||
|
||
exclude : [ | ||
'public/vendor/angular/angular-loader.js', | ||
'public/vendor/angular/*.min.js', | ||
'public/vendor/angular/angular-scenario.js' | ||
], | ||
|
||
autoWatch : true, | ||
|
||
frameworks: ['jasmine'], | ||
|
||
browsers : ['Chrome'], | ||
|
||
plugins : [ | ||
'karma-junit-reporter', | ||
'karma-chrome-launcher', | ||
'karma-firefox-launcher', | ||
'karma-script-launcher', | ||
'karma-jasmine' | ||
], | ||
|
||
junitReporter : { | ||
outputFile: 'test_out/unit.xml', | ||
suite: 'unit' | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"n":{"id":"0","data":{"description":"this is drug d","tag":"drugs","name":"Drug D"}}},{"n":{"id":"1","data":{"description":"This is Drug B","tag":"drugs","name":"Drug B"}}},{"n":{"id":"14","data":{"description":"this is drug a","tag":"drugs","name":"Drug A"}}},{"n":{"id":"15","data":{"description":"This is drug c","tag":"drugs","name":"Drug C"}}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "ProductConfigurator", | ||
"version": "0.0.0", | ||
"description": "Software to create product configurations - such as a customer building a new car", | ||
"main": "app.js", | ||
"author": { | ||
"name": "OperationRio", | ||
"email": "" | ||
}, | ||
"dependencies": { | ||
"express": "3.4.4", | ||
"neo4j-js": "0.0.7", | ||
"async": "~0.2.10", | ||
"selenium-webdriver": "~2.40.0" | ||
}, | ||
"devDependencies": { | ||
"phantomjs": "~1.9", | ||
"karma": "~0.10.4", | ||
"karma-junit-reporter": "~0.1", | ||
"karma-jasmine": "~0.1.3", | ||
"karma-ng-scenario": "~0.1", | ||
"karma-chrome-launcher": "~0.1.0", | ||
"karma-firefox-launcher": "~0.1.0", | ||
"karma-html2js-preprocessor": "~0.1.0", | ||
"karma-requirejs": "~0.2.0", | ||
"karma-coffee-preprocessor": "~0.1.0", | ||
"karma-phantomjs-launcher": "~0.1.0", | ||
"karma-script-launcher": "~0.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<section class="mainbar" data-ng-controller="create as vm"> | ||
<section class="matter"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="widget wblue"> | ||
<div data-cc-widget-header title="Manage Drugs" | ||
allow-collapse="true"></div> | ||
<div class="widget-content"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<h4>Add a Drug</h4> | ||
<form class="form-horizontal" role="form"> | ||
<div class="form-group"> | ||
<label class="control-label">Name:</label> | ||
<input type="text" class="form-control" placeholder="Enter Drug Name" data-ng-model="vm.newDrugName"> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label">Description:</label> | ||
<textarea class="form-control" rows="3" placeholder="Drug Description" ng-model="vm.newDrugDescription"></textarea> | ||
|
||
</div> | ||
<div class="form-group"> | ||
<button class="btn btn-info" data-ng-click="vm.addDrug()"><i class="fa fa-pencil-square"></i>Add</button> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
|
||
<div class="col-md-6"> | ||
<h4>Delete a Drug</h4> | ||
<form class="form-horizontal" role="form"> | ||
<div class="form-group"> | ||
<label class="control-label">Drugs:</label> | ||
<select ng-model="vm.selectedDrugForDelete" class="form-control" ng-options="drug.n.data.name for drug in vm.drugs"></select> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<button class="btn btn-info" data-ng-click="vm.deleteDrug()"><i class="fa fa-pencil-square"></i>Delete</button> | ||
</div> | ||
</form> | ||
|
||
<!-- {{vm.drugs}} -- {{vm.selectedDrugForDelete}}--> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="widget-foot"> | ||
<div class="clearfix"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</section> | ||
|
||
<!-- Relationship section --> | ||
|
||
<section class="matter"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="widget wgreen"> | ||
<div data-cc-widget-header title="Manage Relationships" | ||
allow-collapse="true"></div> | ||
<div class="widget-content"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<h4>Add a Relationship</h4> | ||
<form class="form-horizontal" role="form"> | ||
<div class="form-group"> | ||
<label class="control-label">From:</label> | ||
<select ng-model="vm.relationshipFrom" class="form-control" ng-options="drug.n.data.name for drug in vm.drugs"></select> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label">Type:</label> | ||
<select ng-model="vm.relation" class="form-control" ng-options="type for type in vm.relationshipTypes"></select> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label">To:</label> | ||
<select ng-model="vm.relationshipTo" class="form-control" ng-options="drug.n.data.name for drug in vm.drugs"></select> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label">Description:</label> | ||
<textarea class="form-control" rows="3" placeholder="Relationship Description" ng-model="vm.relationshipDescription"></textarea> | ||
|
||
</div> | ||
|
||
<div class="form-group"> | ||
<button class="btn btn-info" data-ng-click="vm.addRelationship()"><i class="fa fa-pencil-square"></i>Add Relationship</button> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
|
||
<div class="col-md-6"> | ||
<h4>Delete a Relationship</h4> | ||
<form class="form-horizontal" role="form"> | ||
<div class="form-group"> | ||
<label class="control-label">Relationship:</label> | ||
<select ng-model="vm.selectedRelationshipToDelete" class="form-control" ng-options="relation.n.data.name +'-' + relation.r.type + '->' + relation.m.data.name for relation in vm.relationships"></select> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<button class="btn btn-info" data-ng-click="vm.deleteRelationship()"><i class="fa fa-pencil-square"></i>Delete Relationship</button> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="widget-foot"> | ||
<div class="clearfix"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</section> | ||
</section> |
Oops, something went wrong.