This file contains hidden or 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
upstream api { | |
server librecms-api.jit.su:80; | |
} | |
server { | |
listen 0.0.0.0:80 default deferred; | |
server_name librecms; | |
access_log /var/log/nginx/librecms.access.log; | |
error_log /var/log/nginx/librecms.error.log; |
This file contains hidden or 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
upstream api { | |
server 127.0.0.1:3030; | |
} | |
server { | |
listen 0.0.0.0:80 default deferred; | |
server_name librecms; | |
access_log /var/log/nginx/librecms.access.log; | |
error_log /var/log/nginx/librecms.error.log; |
This file contains hidden or 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
'use strict'; | |
angular.module('librecmsApp') | |
.controller('ContentCtrl', function ($state, $scope) { | |
$scope.itemType = $state.current.data.itemType; | |
}); |
This file contains hidden or 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
'use strict'; | |
describe('Controller: ContentCtrl', function () { | |
// load the controller's module | |
beforeEach(module('librecmsApp')); | |
// load controller widgets/views/partials | |
var views = [ | |
'views/course.item.list.html', |
This file contains hidden or 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
module.exports = function(config) { | |
'use strict'; | |
config.set({ | |
basePath: '', | |
frameworks: ['jasmine'], | |
files: [ | |
'app/bower_components/angular/angular.js', | |
'app/bower_components/angular-mocks/angular-mocks.js', | |
'app/scripts/*.js', | |
'app/scripts/**/*.js', |
This file contains hidden or 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
'use strict'; | |
describe('Controller: CourseCtrl', function () { | |
// load the controller's module | |
beforeEach(module('myApp')); | |
// load controller widgets/views/partials | |
var views = [ | |
'views/course.html', |
This file contains hidden or 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
'use strict'; | |
describe('Controller: CourseCtrl', function () { | |
// load the controller's module | |
beforeEach(module('myApp')); | |
var CourseCtrl, | |
scope; |
This file contains hidden or 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
'use strict'; | |
describe('Controller: ContentCtrl', function () { | |
// load the controller's module | |
beforeEach(module('myApp')); | |
var ContentCtrl, scope, state, q; | |
// Initialize the controller and a mock scope |
This file contains hidden or 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
function sayHello() { | |
console.log('hello '); | |
} | |
process.nextTick(sayHello); | |
console.log('world!'); |
This file contains hidden or 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
user.js: | |
'use strict'; | |
angular.module('myApp') | |
.controller('UserCtrl', function ($scope, Restangular) { | |
$scope.users = Restangular.all('user').getList(); | |
}); | |