Skip to content

Commit

Permalink
Initial Contiv UI Scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-j committed Mar 11, 2016
1 parent 449ff87 commit 786754c
Show file tree
Hide file tree
Showing 12,217 changed files with 1,829,391 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "app/bower_components"
}
13 changes: 13 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"globalstrict": true,
"globals": {
"angular": false,
"describe": false,
"it": false,
"expect": false,
"beforeEach": false,
"afterEach": false,
"module": false,
"inject": false
}
}
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
node_js:
- "0.10"

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm start > /dev/null &
- npm run update-webdriver
- sleep 1 # give server time to start

script:
- node_modules/.bin/karma start karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=Firefox
- node_modules/.bin/protractor e2e-tests/protractor.conf.js --browser=firefox
28 changes: 28 additions & 0 deletions DEPLOY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Clone contiv-ui

Clone the contiv-ui repository using [git][git]:

```
git clone https://github.com/contiv/contiv-ui.git
Clone the netplugin repository using [git][git]:
```
git clone https://github.com/netplugin/netplugin.git


Set appropriate GOPATH

Modify Vagrantfile to forward guest port 80 to some other port say 9080

cd netplugin
make demo
vagrant ssh netplugin-node1

In netplugin-node1 do
cd $GOPATH/contiv-ui
docker build -t contiv-ui-nginx .
docker run --net=host --name contiv-ui -d contiv-ui-nginx

Access the UI using http://localhost:9080/

3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx
COPY contiv-nginx.conf /etc/nginx/conf.d/default.conf
COPY app /usr/share/nginx/html
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License

Copyright (c) 2010-2014 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

1 change: 1 addition & 0 deletions app/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* app css stylesheet */
20 changes: 20 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';


// Declare app level module which depends on views, and components
angular.module('contivApp', [
'ui.router',
'contiv.networks',
'contiv.networkpolicies'
])
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
//abstract state serves as a PLACEHOLDER or NAMESPACE for application states
.state('contiv', {
url: '',
abstract: true
})
;

$urlRouterProvider.otherwise('/');
});
20 changes: 20 additions & 0 deletions app/bower_components/angular-animate/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "angular-animate",
"version": "1.5.0",
"license": "MIT",
"main": "./angular-animate.js",
"ignore": [],
"dependencies": {
"angular": "1.5.0"
},
"homepage": "https://github.com/angular/bower-angular-animate",
"_release": "1.5.0",
"_resolution": {
"type": "version",
"tag": "v1.5.0",
"commit": "19b035b16ccf4b1db231207b9453f4a8df0d4a09"
},
"_source": "git://github.com/angular/bower-angular-animate.git",
"_target": "^1.4.9",
"_originalSource": "angular-animate"
}
68 changes: 68 additions & 0 deletions app/bower_components/angular-animate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# packaged angular-animate

This repo is for distribution on `npm` and `bower`. The source for this module is in the
[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngAnimate).
Please file issues and pull requests against that repo.

## Install

You can install this package either with `npm` or with `bower`.

### npm

```shell
npm install angular-animate
```

Then add `ngAnimate` as a dependency for your app:

```javascript
angular.module('myApp', [require('angular-animate')]);
```

### bower

```shell
bower install angular-animate
```

Then add a `<script>` to your `index.html`:

```html
<script src="/bower_components/angular-animate/angular-animate.js"></script>
```

Then add `ngAnimate` as a dependency for your app:

```javascript
angular.module('myApp', ['ngAnimate']);
```

## Documentation

Documentation is available on the
[AngularJS docs site](http://docs.angularjs.org/api/ngAnimate).

## License

The MIT License

Copyright (c) 2010-2015 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 786754c

Please sign in to comment.