mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
migrate to angular 1.4
This commit is contained in:
parent
763f0c21a5
commit
ad3105cbc9
@ -14,7 +14,7 @@ Application.Controllers = angular.module('application.controllers', []);
|
|||||||
Application.Filters = angular.module('application.filters', []);
|
Application.Filters = angular.module('application.filters', []);
|
||||||
Application.Directives = angular.module('application.directives', []);
|
Application.Directives = angular.module('application.directives', []);
|
||||||
|
|
||||||
angular.module('application', ['ngCookies', 'ngResource', 'ngSanitize', 'ngCookies', 'ui.router', 'ui.bootstrap',
|
angular.module('application', ['ngCookies', 'ngResource', 'ngSanitize', 'ui.router', 'ui.bootstrap',
|
||||||
'ngUpload', 'duScroll', 'application.filters', 'application.services', 'application.directives',
|
'ngUpload', 'duScroll', 'application.filters', 'application.services', 'application.directives',
|
||||||
'frapontillo.bootstrap-switch', 'application.constants', 'application.controllers', 'application.router',
|
'frapontillo.bootstrap-switch', 'application.constants', 'application.controllers', 'application.router',
|
||||||
'ui.select', 'ui.calendar', 'angularMoment', 'Devise', 'DeviseModal', 'angular-growl', 'xeditable',
|
'ui.select', 'ui.calendar', 'angularMoment', 'Devise', 'DeviseModal', 'angular-growl', 'xeditable',
|
||||||
|
@ -505,7 +505,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
|
|||||||
// List of categories for the events
|
// List of categories for the events
|
||||||
$scope.categories = categoriesPromise;
|
$scope.categories = categoriesPromise;
|
||||||
|
|
||||||
// List of availables price's categories
|
// List of available price's categories
|
||||||
$scope.priceCategories = priceCategoriesPromise;
|
$scope.priceCategories = priceCategoriesPromise;
|
||||||
|
|
||||||
// List of events themes
|
// List of events themes
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
/**
|
/**
|
||||||
* Navigation controller. List the links availables in the left navigation pane and their icon.
|
* Navigation controller. List the links availables in the left navigation pane and their icon.
|
||||||
*/
|
*/
|
||||||
Application.Controllers.controller('MainNavController', ['$scope', '$location', '$cookies', function ($scope, $location, $cookies) {
|
Application.Controllers.controller('MainNavController', ['$scope', function ($scope) {
|
||||||
// Common links (public application)
|
// Common links (public application)
|
||||||
$scope.navLinks = [
|
$scope.navLinks = [
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ Application.Directives.directive('disableAnimation', ['$animate', ($animate) =>
|
|||||||
({
|
({
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
link (scope, elem, attrs) {
|
link (scope, elem, attrs) {
|
||||||
return attrs.$observe('disableAnimation', value => $animate.enabled(!value, elem));
|
return attrs.$observe('disableAnimation', value => $animate.enabled(elem, !value));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
|
@ -12,9 +12,9 @@ Application.Services.service('CSRF', ['$cookies',
|
|||||||
setMetaTags () {
|
setMetaTags () {
|
||||||
if (angular.element('meta[name="csrf-param"]').length === 0) {
|
if (angular.element('meta[name="csrf-param"]').length === 0) {
|
||||||
angular.element('head').append('<meta name="csrf-param" content="authenticity_token">');
|
angular.element('head').append('<meta name="csrf-param" content="authenticity_token">');
|
||||||
angular.element('head').append(`<meta name=\"csrf-token\" content=\"${$cookies['XSRF-TOKEN']}\">`);
|
angular.element('head').append(`<meta name=\"csrf-token\" content=\"${$cookies.get('XSRF-TOKEN')}\">`);
|
||||||
} else {
|
} else {
|
||||||
angular.element('meta[name="csrf-token"]').replaceWith(`<meta name=\"csrf-token\" content=\"${$cookies['XSRF-TOKEN']}\">`);
|
angular.element('meta[name="csrf-token"]').replaceWith(`<meta name=\"csrf-token\" content=\"${$cookies.get('XSRF-TOKEN')}\">`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fab-manager",
|
"name": "fab-manager",
|
||||||
"version": "2.7.0",
|
"version": "2.7.1-dev",
|
||||||
"description": "FabManager is the FabLab management solution. It is web-based, open-source and totally free.",
|
"description": "FabManager is the FabLab management solution. It is web-based, open-source and totally free.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"fablab",
|
"fablab",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uirouter/angularjs": "0.4",
|
"@uirouter/angularjs": "0.4",
|
||||||
"AngularDevise": "https://github.com/cloudspace/angular_devise.git#1.0.2",
|
"AngularDevise": "https://github.com/cloudspace/angular_devise.git#1.0.2",
|
||||||
"angular": "1.3",
|
"angular": "1.4",
|
||||||
"angular-animate": "1.3",
|
"angular-animate": "1.3",
|
||||||
"angular-aside": "1.3",
|
"angular-aside": "1.3",
|
||||||
"angular-base64-upload": "^0.0.9",
|
"angular-base64-upload": "^0.0.9",
|
||||||
|
@ -190,10 +190,10 @@ angular-xeditable@0.1:
|
|||||||
jquery "^1.11.1"
|
jquery "^1.11.1"
|
||||||
moment "^2.5.0"
|
moment "^2.5.0"
|
||||||
|
|
||||||
angular@1.3:
|
angular@1.4:
|
||||||
version "1.3.20"
|
version "1.4.14"
|
||||||
resolved "https://registry.yarnpkg.com/angular/-/angular-1.3.20.tgz#b23a3d7c5e7f99f7d95b9b4d49b9ac355269baee"
|
resolved "https://registry.yarnpkg.com/angular/-/angular-1.4.14.tgz#9d0feaf60ce6e52ce50f49ee328656d1e1875c37"
|
||||||
integrity sha1-sjo9fF5/mffZW5tNSbmsNVJpuu4=
|
integrity sha1-nQ/q9gzm5SzlD0nuMoZW0eGHXDc=
|
||||||
|
|
||||||
angular@^1.0.8, angular@~1.x:
|
angular@^1.0.8, angular@~1.x:
|
||||||
version "1.7.5"
|
version "1.7.5"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user