Adds underscore and underscore-angular in order to use the sample() utility function.
It will allow us to randomly select a sub-array from an array and emulate on the client-side something like "random starred songs".
This commit is contained in:
parent
c5cbad003f
commit
1261c74e64
5 changed files with 24 additions and 8 deletions
|
@ -17,7 +17,8 @@
|
||||||
"trailing": true,
|
"trailing": true,
|
||||||
"smarttabs": true,
|
"smarttabs": true,
|
||||||
"globals": {
|
"globals": {
|
||||||
"angular": false
|
"angular": false,
|
||||||
|
"_": false
|
||||||
},
|
},
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true,
|
"node": true,
|
||||||
|
|
15
bower.json
15
bower.json
|
@ -9,7 +9,11 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"homepage": "http://jamstash.com",
|
"homepage": "http://jamstash.com",
|
||||||
"keywords": ["subsonic", "archive.org", "music"],
|
"keywords": [
|
||||||
|
"subsonic",
|
||||||
|
"archive.org",
|
||||||
|
"music"
|
||||||
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/tsquillario/Jamstash.git"
|
"url": "https://github.com/tsquillario/Jamstash.git"
|
||||||
|
@ -26,11 +30,16 @@
|
||||||
"jplayer": "~2.6.3",
|
"jplayer": "~2.6.3",
|
||||||
"fancybox": "~2.1.4",
|
"fancybox": "~2.1.4",
|
||||||
"notify.js": "<=1.2.2",
|
"notify.js": "<=1.2.2",
|
||||||
"jquery.scrollTo": "~1.4.5"
|
"jquery.scrollTo": "~1.4.5",
|
||||||
|
"underscore": "~1.7.0",
|
||||||
|
"angular-underscore": "~0.5.0"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"fancybox": {
|
"fancybox": {
|
||||||
"main": ["source/jquery.fancybox.js", "source/jquery.fancybox.css"]
|
"main": [
|
||||||
|
"source/jquery.fancybox.js",
|
||||||
|
"source/jquery.fancybox.css"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -146,6 +146,8 @@
|
||||||
<script src="bower_components/fancybox/source/jquery.fancybox.js"></script>
|
<script src="bower_components/fancybox/source/jquery.fancybox.js"></script>
|
||||||
<script src="bower_components/notify.js/notify.js"></script>
|
<script src="bower_components/notify.js/notify.js"></script>
|
||||||
<script src="bower_components/jquery.scrollTo/jquery.scrollTo.js"></script>
|
<script src="bower_components/jquery.scrollTo/jquery.scrollTo.js"></script>
|
||||||
|
<script src="bower_components/underscore/underscore.js"></script>
|
||||||
|
<script src="bower_components/angular-underscore/angular-underscore.js"></script>
|
||||||
<!-- endbower -->
|
<!-- endbower -->
|
||||||
<!--<script src="js/plugins/jquery-split-pane.js"></script>-->
|
<!--<script src="js/plugins/jquery-split-pane.js"></script>-->
|
||||||
<script src="js/plugins/jquery.base64.js" type="text/javascript"></script>
|
<script src="js/plugins/jquery.base64.js" type="text/javascript"></script>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* Declare app level module */
|
/* Declare app level module */
|
||||||
var jamstash = angular.module('JamStash', ['ngCookies', 'ngRoute', 'ngSanitize']);
|
var jamstash = angular.module('JamStash', ['ngCookies', 'ngRoute', 'ngSanitize', 'angular-underscore/utils']);
|
||||||
|
|
||||||
jamstash.config(function ($routeProvider) {
|
jamstash.config(function ($routeProvider) {
|
||||||
$routeProvider
|
$routeProvider
|
||||||
|
|
|
@ -21,13 +21,17 @@ module.exports = function(config) {
|
||||||
'bower_components/jquery/jquery.js',
|
'bower_components/jquery/jquery.js',
|
||||||
'bower_components/angular/angular.js',
|
'bower_components/angular/angular.js',
|
||||||
'bower_components/angular-mocks/angular-mocks.js',
|
'bower_components/angular-mocks/angular-mocks.js',
|
||||||
'bower_components/angular-cookies/angular-cookies.js',
|
|
||||||
'bower_components/angular-resource/angular-resource.js',
|
|
||||||
'bower_components/angular-route/angular-route.js',
|
'bower_components/angular-route/angular-route.js',
|
||||||
'bower_components/angular-sanitize/angular-sanitize.js',
|
'bower_components/angular-sanitize/angular-sanitize.js',
|
||||||
'bower_components/fancybox/source/jquery.fancybox.js',
|
'bower_components/angular-cookies/angular-cookies.js',
|
||||||
|
'bower_components/angular-resource/angular-resource.js',
|
||||||
|
'bower_components/jquery-ui/ui/jquery-ui.js',
|
||||||
'bower_components/jplayer/jquery.jplayer/jquery.jplayer.js',
|
'bower_components/jplayer/jquery.jplayer/jquery.jplayer.js',
|
||||||
|
'bower_components/fancybox/source/jquery.fancybox.js',
|
||||||
'bower_components/notify.js/notify.js',
|
'bower_components/notify.js/notify.js',
|
||||||
|
'bower_components/jquery.scrollTo/jquery.scrollTo.js',
|
||||||
|
'bower_components/underscore/underscore.js',
|
||||||
|
'bower_components/angular-underscore/angular-underscore.js',
|
||||||
'js/**/*.js',
|
'js/**/*.js',
|
||||||
'test/**/*_test.js'
|
'test/**/*_test.js'
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue