-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
147a132
commit 5d43193
Showing
1,385 changed files
with
357,213 additions
and
9 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
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,20 @@ | ||
{ | ||
"name": "angular-flot", | ||
"main": "angular-flot.js", | ||
"version": "0.0.1", | ||
"authors": [ | ||
"Lorenzo Villani <[email protected]>" | ||
], | ||
"description": "An Angular directive to wrap Flotcharts.", | ||
"license": "MIT", | ||
"homepage": "http://github.com/develersrl/angular-flot", | ||
"_release": "0.0.1", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v0.0.1", | ||
"commit": "de31ffa9d787c887da8a35cdcbc6dd3189d1a447" | ||
}, | ||
"_source": "https://github.com/develersrl/angular-flot.git", | ||
"_target": "0.0.1", | ||
"_originalSource": "angular-flot" | ||
} |
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 @@ | ||
node_modules/ |
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 @@ | ||
Lorenzo Villani <[email protected]> |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Develer S.r.L. | ||
|
||
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. |
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,45 @@ | ||
angular-flot | ||
============ | ||
|
||
An Angular directive which wraps [Flotcharts](http://www.flotcharts.org/). | ||
|
||
|
||
# Installation | ||
|
||
This library is provided as a Bower component and NPM module: | ||
|
||
- Bower: `bower install angular-flot` | ||
- NPM: `npm install angular-flot` | ||
|
||
|
||
# How to Use | ||
|
||
First, make sure to add Flotchart to your project, as explained in [Flotchart's | ||
ReadMe](https://github.com/flot/flot/blob/master/README.md) since we don't bundle Flotcharts for | ||
you. | ||
|
||
Add `angular-beacon` to the list of dependencies in your Angular.JS application: | ||
|
||
```javascript | ||
angular.module('myapp', [ | ||
'ngRoute', | ||
// ... | ||
'angular-flot' | ||
]); | ||
``` | ||
|
||
In your controller, create two variables to hold the dataset and Flot chart options: | ||
|
||
```javascript | ||
angular.module('myapp').controller('MyController', function ($scope) { | ||
$scope.myData = []; | ||
$scope.myChartOptions = {}; | ||
}); | ||
``` | ||
|
||
In your view or template, add the `flot` directive, making sure to specify both the `dataset` and | ||
`options` attributes, pointing to the scope variables defined above: | ||
|
||
```html | ||
<flot dataset="myData" options="myChartOptions"></flot> | ||
``` |
48 changes: 48 additions & 0 deletions
48
angular/app/bower_components/angular-flot/angular-flot.coffee
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,48 @@ | ||
angular.module 'angular-flot', [] | ||
.directive 'flot', -> | ||
restrict: 'E' | ||
template: '<div></div>' | ||
scope: | ||
dataset: '=' | ||
options: '=' | ||
link: (scope, element, attributes) -> | ||
# | ||
# Options | ||
# | ||
|
||
width = attributes.width || '100%' | ||
height = attributes.height || '100%' | ||
|
||
if not scope.dataset | ||
scope.dataset = [] | ||
|
||
if not scope.options | ||
scope.options = | ||
legend: | ||
show: false | ||
|
||
# | ||
# Setup | ||
# | ||
|
||
plotArea = $(element.children()[0]) | ||
|
||
plotArea.css | ||
width: width | ||
height: height | ||
|
||
init = -> | ||
$.plot plotArea, scope.dataset, scope.options | ||
|
||
# | ||
# Watches | ||
# | ||
|
||
scope.$watch 'dataset', (dataset) -> | ||
if plot | ||
plot.setData dataset | ||
else | ||
plot = do init | ||
|
||
scope.$watch 'options', -> | ||
plot = do init |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
{ | ||
"name": "angular-flot", | ||
"main": "angular-flot.js", | ||
"version": "0.0.1", | ||
"authors": [ | ||
"Lorenzo Villani <[email protected]>" | ||
], | ||
"description": "An Angular directive to wrap Flotcharts.", | ||
"license": "MIT", | ||
"homepage": "http://github.com/develersrl/angular-flot" | ||
} |
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,14 @@ | ||
{ | ||
"name": "angular-flot", | ||
"version": "0.0.1", | ||
"description": "An Angular directive to wrap Flotcharts.", | ||
"main": "angular-flot.js", | ||
"author": "Lorenzo Villani <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "coffee -c -b angular-flot.coffee" | ||
}, | ||
"devDependencies": { | ||
"coffee-script": "~1.7.1" | ||
} | ||
} |
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,20 @@ | ||
{ | ||
"name": "angular-route", | ||
"version": "1.2.32", | ||
"license": "MIT", | ||
"main": "./angular-route.js", | ||
"ignore": [], | ||
"dependencies": { | ||
"angular": "1.2.32" | ||
}, | ||
"homepage": "https://github.com/angular/bower-angular-route", | ||
"_release": "1.2.32", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v1.2.32", | ||
"commit": "1c0180fc45e5f50967cb759d36914cadc17b9437" | ||
}, | ||
"_source": "https://github.com/angular/bower-angular-route.git", | ||
"_target": "~1.2.x", | ||
"_originalSource": "angular-route" | ||
} |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Angular | ||
|
||
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. |
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,68 @@ | ||
# packaged angular-route | ||
|
||
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/ngRoute). | ||
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-route | ||
``` | ||
|
||
Then add `ngRoute` as a dependency for your app: | ||
|
||
```javascript | ||
angular.module('myApp', [require('angular-route')]); | ||
``` | ||
|
||
### bower | ||
|
||
```shell | ||
bower install angular-route | ||
``` | ||
|
||
Add a `<script>` to your `index.html`: | ||
|
||
```html | ||
<script src="/bower_components/angular-route/angular-route.js"></script> | ||
``` | ||
|
||
Then add `ngRoute` as a dependency for your app: | ||
|
||
```javascript | ||
angular.module('myApp', ['ngRoute']); | ||
``` | ||
|
||
## Documentation | ||
|
||
Documentation is available on the | ||
[AngularJS docs site](http://docs.angularjs.org/api/ngRoute). | ||
|
||
## 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. |
Oops, something went wrong.