Skip to content

Commit

Permalink
Switched to angular-cloudinary dependency due to upstream issue with …
Browse files Browse the repository at this point in the history
…official clouinary''s dependency on jquery ui

Applied fixes from StyleCI
  • Loading branch information
zakhenry committed Dec 6, 2015
1 parent ca2957a commit 75cf8b5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
5 changes: 2 additions & 3 deletions api/tests/integration/EntityTest.php
Expand Up @@ -212,7 +212,7 @@ public function testGetAllPaginatedComplexSearch()

$this->assertResponseStatus(404);
}

public function testGetAllPaginatedComplexSearchMatchAll()
{
$results = $this->getFactory(TestEntity::class)->count(5)->make();
Expand All @@ -227,8 +227,7 @@ public function testGetAllPaginatedComplexSearchMatchAll()
->andReturn(5)
->shouldReceive('getIterator')
->once()
->andReturn($results->getIterator())
;
->andReturn($results->getIterator());

$mockModel = Mockery::mock(TestEntity::class);
$mockModel
Expand Down
12 changes: 4 additions & 8 deletions app/bower.json
Expand Up @@ -30,7 +30,6 @@
"angular-ui-router": "~0.2.15",
"angular-ui-utils": "~0.2.3",
"angular-ui-validate": "~1.1.1",
"cloudinary_ng": "~0.1.4",
"font-awesome": "~4.5.0",
"highlightjs": "~8.5.0",
"jquery": "~2.1.3",
Expand All @@ -45,7 +44,8 @@
"chance": "~0.7.6",
"angular-material-data-table": "~0.8.14",
"to-markdown": "~1.3.0",
"simplemde": "~1.8.1"
"simplemde": "~1.8.1",
"angular-cloudinary": "~1.2.2"
},
"devDependencies": {
"angular-mocks": "~1.4",
Expand All @@ -54,14 +54,10 @@
},
"resolutions": {
"lodash": "~3.10",
"angular": "1.4.7"
"angular": "1.4.7",
"ng-file-upload": "~7.0.15"
},
"overrides": {
"cloudinary_js": {
"dependencies": {
"jquery": ">=1.6"
}
},
"simplemde": {
"main": [
"dist/simplemde.min.css",
Expand Down
4 changes: 0 additions & 4 deletions app/src/app/admin/navigation/navigation.less
@@ -1,9 +1,5 @@
@import (reference) "../../../styles/theme/reference/admin-variables";

footer {
display: none; //@todo decide whether a footer is wanted
}

md-sidenav#admin-sidenav {


Expand Down
14 changes: 10 additions & 4 deletions app/src/config/vendorModules.ts
Expand Up @@ -4,10 +4,15 @@ namespace config.vendorModules {

class CloudinaryConfig {

constructor() {

//for some dumb reason cloudinary angular is dependent on jquery. Hopefully they support native angular at some point
(<any>$).cloudinary.config().cloud_name = 'spira';
static $inject = ['cloudinaryProvider'];

constructor(cloudinaryProvider:any) {

cloudinaryProvider.config({
upload_endpoint: 'https://api.cloudinary.com/v1_1/', // default
cloud_name: 'spira', // required
});
}
}

Expand Down Expand Up @@ -100,7 +105,8 @@ namespace config.vendorModules {
'infinite-scroll', //infinite scrolling - https://github.com/sroze/ngInfiniteScroll
'ui.validate', // Field validator - https://github.com/angular-ui/ui-validate
'ngFileUpload', // File uploader - https://github.com/danialfarid/ng-file-upload
'cloudinary', //directives for displaying cloudinary images (official) - https://github.com/cloudinary/cloudinary_angular
//'cloudinary', //directives for displaying cloudinary images (official) - https://github.com/cloudinary/cloudinary_angular
'angular-cloudinary', //https://github.com/thenikso/angular-cloudinary
'hc.marked', //markdown parser - https://github.com/Hypercubed/angular-marked
'angular-carousel', //content carousel - https://github.com/revolunet/angular-carousel
'md.data.table', //https://github.com/daniel-nagy/md-data-table
Expand Down
4 changes: 4 additions & 0 deletions app/src/styles/theme/admin-theme.less
Expand Up @@ -21,4 +21,8 @@
width: 400px;
}

footer {
display: none; //@todo decide whether a footer is wanted
}

}

0 comments on commit 75cf8b5

Please sign in to comment.