Initial commit

This commit is contained in:
Senad Uka
2018-06-11 11:09:35 +02:00
commit ed7df7b11f
1954 changed files with 483354 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
var global = {
dashModule: angular.module('dashApp', ['pascalprecht.translate', 'ui-notification', 'ngDragDrop', 'ngFileUpload', 'ui.sortable', 'ui.tinymce', 'ngclipboard']),
PATH_JS_COMPONENTS: 'client/js/components/',
getParameterByName: function (name) {
const url = window.location.href;
const parsedName = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + parsedName + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) {
return null;
}
if (!results[2]) {
return '';
}
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
};
global.dashModule.factory('$', [
'$window',
($window) => {
return $window.jQuery;
}
]);
global.dashModule.config(function ($httpProvider) {
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
$httpProvider.defaults.paramSerializer = '$httpParamSerializerJQLike';
});