acha-framework
Advanced tools
Comparing version
13
index.js
@@ -14,4 +14,5 @@ global.Ioc = require('ym').create(); | ||
'backend.authentication.errors', | ||
'backend.operationResult' | ||
], function (provide, config, database, errors, OperationResult) { | ||
'backend.operationResult', | ||
'backend.localize' | ||
], function (provide, config, database, errors, OperationResult, localize) { | ||
const jwt = require('jsonwebtoken'); | ||
@@ -130,6 +131,8 @@ const passport = require('passport'); | ||
const token = getToken(req); | ||
const lang = localize.getCulture(req); | ||
const redirectUrl = '/' + lang + config.login; | ||
if (token) { | ||
jwt.verify(token, engine.config.session.secret, function (err, decoded) { | ||
jwt.verify(token, config.secret, function (err, decoded) { | ||
if (err) { | ||
return res.redirect('/fa/account/login'); | ||
return res.redirect(redirectUrl); | ||
} else { | ||
@@ -142,3 +145,3 @@ req.accessToken = decoded; | ||
} | ||
return res.redirect('/fa/account/login'); | ||
return res.redirect(redirectUrl); | ||
}, | ||
@@ -145,0 +148,0 @@ createUserFromOAuth: function (profile, done) { |
@@ -1,1 +0,1 @@ | ||
{"license":"","name":"acha-framework","version":"1.0.10","description":"","main":"index.js","scripts":{"test":"mocha -r should -R spec"},"author":"Navid Kianfar","dependencies":{"async":"^2.1.5","body-parser":"^1.17.1","caminte":"^0.2.19","compression":"^1.6.2","connect-caminte":"0.0.4","cookie-parser":"^1.4.3","csurf":"^1.9.0","ejs":"^2.5.6","ejs-mate":"^2.3.0","express":"^4.15.2","express-error-handler":"^1.1.0","express-session":"^1.15.1","express-useragent":"^0.2.4","feed":"^0.3.1","fs-extra":"^0.30.0","helmet":"^2.3.0","i18n":"^0.8.3","jsonwebtoken":"^7.3.0","lodash":"^4.17.4","morgan":"^1.8.1","mysql":"^2.13.0","passport":"^0.3.2","passport-facebook-token":"^3.3.0","passport-google-oauth2":"^0.1.6","passport-jwt":"^2.2.1","passport-local":"^1.0.0","pem":"^1.9.4","q":"^1.4.1","skipper":"^0.6.5","sqlite3":"^3.1.8","underscore":"^1.8.3","uuid":"^2.0.3","ym":"^0.1.2"},"caminte":{"adapter":"sqlite3"}} | ||
{"license":"","name":"acha-framework","version":"1.0.11","description":"is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...","main":"index.js","scripts":{"test":"mocha -r should -R spec"},"author":"Navid Kianfar","dependencies":{"async":"^2.1.5","body-parser":"^1.17.1","caminte":"^0.2.19","compression":"^1.6.2","connect-caminte":"0.0.4","cookie-parser":"^1.4.3","csurf":"^1.9.0","ejs":"^2.5.6","ejs-mate":"^2.3.0","express":"^4.15.2","express-error-handler":"^1.1.0","express-session":"^1.15.1","express-useragent":"^0.2.4","feed":"^0.3.1","fs-extra":"^0.30.0","helmet":"^2.3.0","i18n":"^0.8.3","jsonwebtoken":"^7.3.0","lodash":"^4.17.4","morgan":"^1.8.1","mysql":"^2.13.0","passport":"^0.3.2","passport-facebook-token":"^3.3.0","passport-google-oauth2":"^0.1.6","passport-jwt":"^2.2.1","passport-local":"^1.0.0","pem":"^1.9.4","q":"^1.4.1","skipper":"^0.6.5","sqlite3":"^3.1.8","underscore":"^1.8.3","uuid":"^2.0.3","ym":"^0.1.2"},"caminte":{"adapter":"sqlite3"},"url":"https://github.com/achasoft/acha-framework","emil":"nvd.kianfar@gmail.com","keywords":["angular","api","atom","authentication","express","jwt","modular","mvc","nodejs","oauth","obfuscation","orm","rss","sitemap","startup","token"]} |
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
var directives = angular.module('frontend.directives'); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('accordion', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/accordion/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('calendar', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
culture: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/calendar/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('captcha', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/captcha/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('checkbox', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/checkbox/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('combobox', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?', | ||
textField: '=?', | ||
valueField: '=?', | ||
items: '=?', | ||
backend: '=?', | ||
backendData: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/combobox/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.items)) { | ||
scope.items = []; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.textField)) { | ||
scope.textField = 'text'; | ||
} | ||
if (angular.isUndefined(scope.valueField)) { | ||
scope.valueField = 'value'; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('datePicker', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
culture: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/date-picker/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('dropdown', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?', | ||
textField: '=?', | ||
valueField: '=?', | ||
items: '=?', | ||
backend: '=?', | ||
backendData: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/dropdown/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.items)) { | ||
scope.items = []; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.textField)) { | ||
scope.textField = 'text'; | ||
} | ||
if (angular.isUndefined(scope.valueField)) { | ||
scope.valueField = 'value'; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('editor', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/editor/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('filePicker', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
culture: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/file-picker/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('formElements', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?', | ||
waiting: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/form-elements/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.waiting)) { | ||
scope.waiting = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
scope.$watch('model', function (val, old) { | ||
}); | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('gridView', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
culture: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/grid-view/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('modal', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/modal/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('multiColumnDropdown', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?', | ||
textField: '=?', | ||
valueField: '=?', | ||
items: '=?', | ||
backend: '=?', | ||
backendData: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/multi-column-dropdown/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.items)) { | ||
scope.items = []; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.textField)) { | ||
scope.textField = 'text'; | ||
} | ||
if (angular.isUndefined(scope.valueField)) { | ||
scope.valueField = 'value'; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('multiSelect', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
culture: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/multi-select/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('numbox', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/numbox/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('password', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
placeHolder: '=?', | ||
model: '=?', | ||
readonly: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/password/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('radio', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
textField: '=?', | ||
valueField: '=?', | ||
items: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/radio/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.items)) { | ||
scope.items = []; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.textField)) { | ||
scope.textField = 'text'; | ||
} | ||
if (angular.isUndefined(scope.valueField)) { | ||
scope.valueField = 'value'; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('ribbon', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/ribbon/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('slider', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/slider/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('switch', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/switch/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('tabs', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/tabs/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('tags', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
culture: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/tags/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('textbox', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
placeHolder: '=?', | ||
model: '=?', | ||
readonly: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/textbox/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('tree', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/tree/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('validation-messages', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/validation-messages/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('waiting', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/waiting/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.directives').directive('wizard', [function () { | ||
return { | ||
restrict: 'E', | ||
replace: true, | ||
scope: { | ||
tag: '<?', | ||
disabled: '=?', | ||
visible: '=?', | ||
cssClass: '=?', | ||
model: '=?' | ||
}, | ||
templateUrl: '/templates/framework/directives/wizard/template.html', | ||
link: function (scope, element, attr) { | ||
scope.vm = {}; | ||
scope.vm.init = function () { | ||
if (angular.isUndefined(scope.disabled)) { | ||
scope.disabled = false; | ||
} | ||
if (angular.isUndefined(scope.visible)) { | ||
scope.visible = true; | ||
} | ||
if (angular.isUndefined(scope.cssClass)) { | ||
scope.cssClass = ''; | ||
} | ||
if (angular.isUndefined(scope.readonly)) { | ||
scope.readonly = false; | ||
} | ||
scope.vm.bind(); | ||
}; | ||
scope.vm.bind = function () { | ||
}; | ||
scope.vm.init(); | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); |
@@ -1,1 +0,1 @@ | ||
!function(e,n,t,u,d,i){"use strict";n.module("frontend.directives")}(jQuery,angular,_,window,document); | ||
!function(e,i,n,s,d,t){"use strict";i.module("frontend.directives")}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("accordion",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/accordion/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("calendar",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",culture:"=?",model:"=?"},templateUrl:"/templates/framework/directives/calendar/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("captcha",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/captcha/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("checkbox",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/checkbox/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("combobox",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?",textField:"=?",valueField:"=?",items:"=?",backend:"=?",backendData:"=?"},templateUrl:"/templates/framework/directives/combobox/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.items)&&(e.items=[]),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.textField)&&(e.textField="text"),i.isUndefined(e.valueField)&&(e.valueField="value"),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("datePicker",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",culture:"=?",model:"=?"},templateUrl:"/templates/framework/directives/date-picker/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("dropdown",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?",textField:"=?",valueField:"=?",items:"=?",backend:"=?",backendData:"=?"},templateUrl:"/templates/framework/directives/dropdown/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.items)&&(e.items=[]),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.textField)&&(e.textField="text"),i.isUndefined(e.valueField)&&(e.valueField="value"),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("editor",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/editor/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("filePicker",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",culture:"=?",model:"=?"},templateUrl:"/templates/framework/directives/file-picker/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("formElements",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?",waiting:"=?"},templateUrl:"/templates/framework/directives/form-elements/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.waiting)&&(e.waiting=!1),e.vm.bind()},e.vm.bind=function(){e.$watch("model",function(e,i){})},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("gridView",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",culture:"=?",model:"=?"},templateUrl:"/templates/framework/directives/grid-view/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("modal",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/modal/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("multiColumnDropdown",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?",textField:"=?",valueField:"=?",items:"=?",backend:"=?",backendData:"=?"},templateUrl:"/templates/framework/directives/multi-column-dropdown/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.items)&&(e.items=[]),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.textField)&&(e.textField="text"),i.isUndefined(e.valueField)&&(e.valueField="value"),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("multiSelect",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",culture:"=?",model:"=?"},templateUrl:"/templates/framework/directives/multi-select/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("numbox",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/numbox/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("password",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",placeHolder:"=?",model:"=?",readonly:"=?"},templateUrl:"/templates/framework/directives/password/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("radio",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",textField:"=?",valueField:"=?",items:"=?",model:"=?"},templateUrl:"/templates/framework/directives/radio/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.items)&&(e.items=[]),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.textField)&&(e.textField="text"),i.isUndefined(e.valueField)&&(e.valueField="value"),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("ribbon",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/ribbon/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("slider",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/slider/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("switch",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/switch/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("tabs",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/tabs/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("tags",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",culture:"=?",model:"=?"},templateUrl:"/templates/framework/directives/tags/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("textbox",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",placeHolder:"=?",model:"=?",readonly:"=?"},templateUrl:"/templates/framework/directives/textbox/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("tree",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/tree/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("validation-messages",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/validation-messages/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("waiting",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/waiting/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document),function(e,i,n,s,d,t){"use strict";i.module("frontend.directives").directive("wizard",[function(){return{restrict:"E",replace:!0,scope:{tag:"<?",disabled:"=?",visible:"=?",cssClass:"=?",model:"=?"},templateUrl:"/templates/framework/directives/wizard/template.html",link:function(e,n,s){e.vm={},e.vm.init=function(){i.isUndefined(e.disabled)&&(e.disabled=!1),i.isUndefined(e.visible)&&(e.visible=!0),i.isUndefined(e.cssClass)&&(e.cssClass=""),i.isUndefined(e.readonly)&&(e.readonly=!1),e.vm.bind()},e.vm.bind=function(){},e.vm.init()}}}])}(jQuery,angular,_,window,document); |
@@ -17,40 +17,2 @@ (function ($, angular, underscore, window, document, undefined) { | ||
]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
var library = angular.module('frontend.library'); | ||
library.factory('frontend.core.operation_result', function () { | ||
var OperationResult = function () { | ||
this.error = null; | ||
this.status = false; | ||
this.data = null; | ||
}; | ||
OperationResult.success = function (data) { | ||
return new OperationResult().success(data); | ||
}; | ||
OperationResult.failed = function (error) { | ||
return new OperationResult().failed(error); | ||
}; | ||
OperationResult.prototype.success = function (data) { | ||
this.data = data; | ||
this.status = true; | ||
this.error = null; | ||
return this; | ||
}; | ||
OperationResult.prototype.failed = function (error) { | ||
this.data = null; | ||
this.status = false; | ||
this.error = error; | ||
return this; | ||
}; | ||
return OperationResult; | ||
}); | ||
library.factory('frontend.core.uuid', function () { | ||
return function () { | ||
function s4() { | ||
return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1); | ||
} | ||
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); | ||
}; | ||
}); | ||
}(jQuery, angular, _, window, document)); |
@@ -1,1 +0,1 @@ | ||
!function(t,n,r,e,o,u){"use strict";e.achasoft=e.achasoft||{},e.achasoft.frontend={enums:{},i18n:{},utils:{}},n.module("frontend.library",[]),n.module("frontend.templates",[]),n.module("frontend.services",["frontend.library"]),n.module("frontend.filters",["frontend.library"]),n.module("frontend.directives",["frontend.services","frontend.filters"])}(jQuery,angular,_,window,document),function(t,n,r,e,o,u){"use strict";var s=n.module("frontend.library");s.factory("frontend.core.operation_result",function(){var t=function(){this.error=null,this.status=!1,this.data=null};return t.success=function(n){return(new t).success(n)},t.failed=function(n){return(new t).failed(n)},t.prototype.success=function(t){return this.data=t,this.status=!0,this.error=null,this},t.prototype.failed=function(t){return this.data=null,this.status=!1,this.error=t,this},t}),s.factory("frontend.core.uuid",function(){return function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}})}(jQuery,angular,_,window,document); | ||
!function(e,n,r,t,o,d){"use strict";t.achasoft=t.achasoft||{},t.achasoft.frontend={enums:{},i18n:{},utils:{}},n.module("frontend.library",[]),n.module("frontend.templates",[]),n.module("frontend.services",["frontend.library"]),n.module("frontend.filters",["frontend.library"]),n.module("frontend.directives",["frontend.services","frontend.filters"])}(jQuery,angular,_,window,document); |
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
var services = angular.module('frontend.services'); | ||
services.factory('frontend.core.culture_service', [function () { | ||
var language = document.getElementsByTagName('html')[0].getAttribute('lang'); | ||
var rtl = document.getElementsByTagName('html')[0].getAttribute('dir') === 'rtl'; | ||
angular.module('frontend.services').factory('apiService', [ | ||
'$http', | ||
'$q', | ||
function ($http, $q) { | ||
return { | ||
lang: language, | ||
rtl: rtl | ||
get: function (path, model) { | ||
return $http({ | ||
method: 'get', | ||
data: model, | ||
path: path | ||
}); | ||
}, | ||
post: function (path, model) { | ||
return $http({ | ||
method: 'get', | ||
data: model, | ||
path: path | ||
}); | ||
} | ||
}; | ||
}]); | ||
services.factory('frontend.core.translate_service', [function () { | ||
return function (key) { | ||
return window.achasoft.frontend.i18n[key] || key; | ||
}; | ||
}]); | ||
services.factory('frontend.core.layout', [ | ||
} | ||
]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.services').run([ | ||
'$rootScope', | ||
'appWaitingService', | ||
function ($rootScope, appWaitingService) { | ||
$rootScope.$on('$routeChangeStart', function () { | ||
appWaitingService.start(); | ||
}); | ||
} | ||
]).factory('appWaitingService', [ | ||
'$rootScope', | ||
function ($rootScope) { | ||
var layout = {}; | ||
Object.defineProperty(layout, 'bodyClass', { | ||
get: function () { | ||
if (!$rootScope.layout) { | ||
$rootScope.layout = {}; | ||
} | ||
return $rootScope.layout.bodyClass; | ||
return { | ||
stop: function () { | ||
$rootScope.appWaiting = false; | ||
}, | ||
set: function (value) { | ||
if (!$rootScope.layout) { | ||
$rootScope.layout = {}; | ||
} | ||
$rootScope.layout.bodyClass = value; | ||
start: function () { | ||
$rootScope.appWaiting = true; | ||
} | ||
}); | ||
return layout; | ||
}; | ||
} | ||
]); | ||
services.factory('frontend.core.common', [ | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.services').factory('commonService', [ | ||
'$compile', | ||
@@ -45,7 +59,7 @@ '$rootScope', | ||
'$q', | ||
'frontend.core.culture_service', | ||
'frontend.core.translate_service', | ||
'frontend.core.operation_result', | ||
'frontend.core.uuid', | ||
'frontend.core.layout', | ||
'cultureService', | ||
'translateService', | ||
'operationResult', | ||
'uuid', | ||
'layoutService', | ||
function ($compile, $rootScope, $timeout, $interval, $location, $q, culture_service, translate_service, operation_result, uuid, layout) { | ||
@@ -70,12 +84,90 @@ return { | ||
'use strict'; | ||
var filters = angular.module('frontend.filters'); | ||
filters.filter('translate', [ | ||
'frontend.core.translate_service', | ||
function (service) { | ||
return function (key) { | ||
return service(key); | ||
angular.module('frontend.services').factory('cultureService', [function () { | ||
var language = document.getElementsByTagName('html')[0].getAttribute('lang'); | ||
var rtl = document.getElementsByTagName('html')[0].getAttribute('dir') === 'rtl'; | ||
return { | ||
lang: language, | ||
rtl: rtl | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.services').factory('formService', [ | ||
'$q', | ||
function ($q) { | ||
return { | ||
validate: function () { | ||
return $q(function (resolve, reject) { | ||
resolve(true); | ||
}); | ||
}, | ||
getModel: function (formElements) { | ||
return $q(function (resolve, reject) { | ||
resolve({}); | ||
}); | ||
}, | ||
setModel: function (formElements, model) { | ||
return $q(function (resolve, reject) { | ||
resolve(); | ||
}); | ||
} | ||
}; | ||
} | ||
]); | ||
filters.filter('range', [function () { | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.services').factory('layoutService', [ | ||
'$rootScope', | ||
function ($rootScope) { | ||
var layout = {}; | ||
Object.defineProperty(layout, 'bodyClass', { | ||
get: function () { | ||
if (!$rootScope.layout) { | ||
$rootScope.layout = {}; | ||
} | ||
return $rootScope.layout.bodyClass; | ||
}, | ||
set: function (value) { | ||
if (!$rootScope.layout) { | ||
$rootScope.layout = {}; | ||
} | ||
$rootScope.layout.bodyClass = value; | ||
} | ||
}); | ||
return layout; | ||
} | ||
]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.services').factory('notificationService', [function () { | ||
return { | ||
error: function (message) { | ||
}, | ||
success: function (message) { | ||
} | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.services').factory('translateService', [function () { | ||
return function (key) { | ||
return window.achasoft.frontend.i18n[key] || key; | ||
}; | ||
}]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.filters').filter('cultured_date', function () { | ||
return function (input) { | ||
return input; | ||
}; | ||
}); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.filters').filter('range', [function () { | ||
return function (array, start, end) { | ||
@@ -92,3 +184,17 @@ if (!end) { | ||
}]); | ||
filters.filter('to_trusted_html', [ | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.filters').filter('translate', [ | ||
'translateService', | ||
function (service) { | ||
return function (key) { | ||
return service(key); | ||
}; | ||
} | ||
]); | ||
}(jQuery, angular, _, window, document)); | ||
(function ($, angular, underscore, window, document, undefined) { | ||
'use strict'; | ||
angular.module('frontend.filters').filter('to_trusted_html', [ | ||
'$sce', | ||
@@ -101,7 +207,2 @@ function ($sce) { | ||
]); | ||
filters.filter('cultured_date', function () { | ||
return function (input) { | ||
return input; | ||
}; | ||
}); | ||
}(jQuery, angular, _, window, document)); |
@@ -1,1 +0,1 @@ | ||
!function(t,e,r,n,o,u){"use strict";var c=e.module("frontend.services");c.factory("frontend.core.culture_service",[function(){return{lang:o.getElementsByTagName("html")[0].getAttribute("lang"),rtl:"rtl"===o.getElementsByTagName("html")[0].getAttribute("dir")}}]),c.factory("frontend.core.translate_service",[function(){return function(t){return n.achasoft.frontend.i18n[t]||t}}]),c.factory("frontend.core.layout",["$rootScope",function(t){var e={};return Object.defineProperty(e,"bodyClass",{get:function(){return t.layout||(t.layout={}),t.layout.bodyClass},set:function(e){t.layout||(t.layout={}),t.layout.bodyClass=e}}),e}]),c.factory("frontend.core.common",["$compile","$rootScope","$timeout","$interval","$location","$q","frontend.core.culture_service","frontend.core.translate_service","frontend.core.operation_result","frontend.core.uuid","frontend.core.layout",function(t,e,r,n,o,u,c,a,i,l,f){return{$compile:t,$rootScope:e,$timeout:r,$interval:n,$location:o,$q:u,culture:c,translate:a,OperationResult:i,uuid:l,layout:f}}])}(jQuery,angular,_,window,document),function(t,e,r,n,o,u){"use strict";var c=e.module("frontend.filters");c.filter("translate",["frontend.core.translate_service",function(t){return function(e){return t(e)}}]),c.filter("range",[function(){return function(t,e,r){r||(r=e,e=0);for(var n=e;n<r;n++)t.push(n);return t}}]),c.filter("to_trusted_html",["$sce",function(t){return function(e){return t.trustAsHtml(e)}}]),c.filter("cultured_date",function(){return function(t){return t}})}(jQuery,angular,_,window,document); | ||
!function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("apiService",["$http","$q",function(t,n){return{get:function(n,e){return t({method:"get",data:e,path:n})},post:function(n,e){return t({method:"get",data:e,path:n})}}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").run(["$rootScope","appWaitingService",function(t,n){t.$on("$routeChangeStart",function(){n.start()})}]).factory("appWaitingService",["$rootScope",function(t){return{stop:function(){t.appWaiting=!1},start:function(){t.appWaiting=!0}}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("commonService",["$compile","$rootScope","$timeout","$interval","$location","$q","cultureService","translateService","operationResult","uuid","layoutService",function(t,n,e,r,u,o,i,c,a,f,l){return{$compile:t,$rootScope:n,$timeout:e,$interval:r,$location:u,$q:o,culture:i,translate:c,OperationResult:a,uuid:f,layout:l}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("cultureService",[function(){return{lang:u.getElementsByTagName("html")[0].getAttribute("lang"),rtl:"rtl"===u.getElementsByTagName("html")[0].getAttribute("dir")}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("formService",["$q",function(t){return{validate:function(){return t(function(t,n){t(!0)})},getModel:function(n){return t(function(t,n){t({})})},setModel:function(n,e){return t(function(t,n){t()})}}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("layoutService",["$rootScope",function(t){var n={};return Object.defineProperty(n,"bodyClass",{get:function(){return t.layout||(t.layout={}),t.layout.bodyClass},set:function(n){t.layout||(t.layout={}),t.layout.bodyClass=n}}),n}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("notificationService",[function(){return{error:function(t){},success:function(t){}}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.services").factory("translateService",[function(){return function(t){return r.achasoft.frontend.i18n[t]||t}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.filters").filter("cultured_date",function(){return function(t){return t}})}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.filters").filter("range",[function(){return function(t,n,e){e||(e=n,n=0);for(var r=n;r<e;r++)t.push(r);return t}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.filters").filter("translate",["translateService",function(t){return function(n){return t(n)}}])}(jQuery,angular,_,window,document),function(t,n,e,r,u,o){"use strict";n.module("frontend.filters").filter("to_trusted_html",["$sce",function(t){return function(n){return t.trustAsHtml(n)}}])}(jQuery,angular,_,window,document); |
@@ -131,4 +131,2 @@ /*! | ||
if (module) { | ||
this.register('/application/scripts/frameworks.debug.js'); | ||
this.register('/application/scripts/plugins.debug.js'); | ||
if (typeof module === 'string') { | ||
@@ -139,2 +137,4 @@ module = [module]; | ||
module.forEach(function (mod) { | ||
self.register('/application/scripts/' + mod + '-frameworks.debug.js'); | ||
self.register('/application/scripts/' + mod + '-plugins.debug.js'); | ||
self.register('/application/scripts/' + mod + '-frontend.pack.js'); | ||
@@ -141,0 +141,0 @@ self.register('/application/scripts/' + mod + '-services.pack.js'); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):this.$script=t()}(0,function(){function e(e,t){for(var n=0,s=e.length;n<s;++n)if(!t(e[n]))return c;return 1}function t(t,n){e(t,function(e){return n(e),1})}function n(r,o,a){function c(e){return e.call?e():d[e]}function f(){if(!--y){d[v]=1,m&&m();for(var n in g)e(n.split("|"),c)&&!t(g[n],c)&&(g[n]=[])}}r=r[u]?r:[r];var l=o&&o.call,m=l?o:a,v=l?r.join(""):o,y=r.length;return setTimeout(function(){t(r,function e(t,n){return null===t?f():(n||/^https?:\/\//.test(t)||!i||(t=-1===t.indexOf(".js")?i+t+".js":i+t),h[t]?(v&&(p[v]=1),2===h[t]?f():setTimeout(function(){e(t,!0)},0)):(h[t]=1,v&&(p[v]=1),void s(t,f)))})},0),n}function s(e,t){var n,s=o.createElement("script");s.onload=s.onerror=s[l]=function(){s[f]&&!/^c|loade/.test(s[f])||n||(s.onload=s[l]=null,n=1,h[e]=2,t())},s.async=1,s.src=r?e+(-1===e.indexOf("?")?"?":"&")+r:e,a.insertBefore(s,a.lastChild)}var i,r,o=document,a=o.getElementsByTagName("head")[0],c=!1,u="push",f="readyState",l="onreadystatechange",d={},p={},g={},h={};return n.get=s,n.order=function(e,t,s){!function i(r){r=e.shift(),e.length?n(r,i):n(r,t,s)}()},n.path=function(e){i=e},n.urlArgs=function(e){r=e},n.ready=function(s,i,r){s=s[u]?s:[s];var o=[];return!t(s,function(e){d[e]||o[u](e)})&&e(s,function(e){return d[e]})?i():function(e){g[e]=g[e]||[],g[e][u](i),r&&r(o)}(s.join("|")),n},n.done=function(e){n([null],e)},n}),function(e,t,n){e.achasoft=e.achasoft||{};const s=function(e,t){const n=this;this.assets=[],t&&(this.register("/framework/scripts/frameworks.debug.js"),this.register("/framework/scripts/plugins.debug.js"),this.register("/framework/scripts/frontend.debug.js"),this.register("/framework/scripts/services.debug.js"),this.register("/framework/scripts/directives.debug.js"),this.register("/framework/scripts/templates.debug.js")),e&&(this.register("/application/scripts/frameworks.debug.js"),this.register("/application/scripts/plugins.debug.js"),"string"==typeof e&&(e=[e]),Array.isArray(e)&&e.forEach(function(e){n.register("/application/scripts/"+e+"-frontend.pack.js"),n.register("/application/scripts/"+e+"-services.pack.js"),n.register("/application/scripts/"+e+"-directives.pack.js"),n.register("/application/scripts/"+e+"-templates.debug.js")}))};s.prototype.register=function(e){if(e=e.trim()){-1===this.assets.indexOf(e)&&this.assets.push(e)}},s.prototype.clear=function(){this.assets=[]},s.prototype.download=function(e,n,s){if(this.assets.length){var i=this,r=0,o=Math.round(100/this.assets.length),a="false"!==t.getElementsByTagName("body")[0].getAttribute("data-debug"),c=function(e){var t=i.assets[e].replace(".debug",a?"":".min").replace(".pack",a?"":".pack");$script(t,function(){if(r+=o,r>100&&(r=100),n&&n(r),++e<=i.assets.length-1)return void c(e);s&&s()})};e&&e(),c(0)}},s.prototype.lazyLoad=function(){var e,n,s=t.querySelector("#acha-application-loader .text"),i=function(){e=new Date,console.log("demanding...")},r=function(e){s.innerHTML=e+"%",console.log(e+" % downloaded")},o=function(){n=new Date;var i=n.getTime()-e.getTime();s.innerHTML="100%",console.log("download completed in : ",i/1e3," seconds"),console.log("launching..."),e=new Date,$(t).ready(function(){angular.bootstrap(t,["frontend"]),$("#acha-application-loader").remove(),$("body").removeClass("application-loading"),$(".hide-before-launch").removeClass("hide-before-launch"),n=new Date;var s=n.getTime()-e.getTime();console.log("launched in : ",s/1e3," seconds")})};this.download(i,r,o)},e.achasoft.AssetLoader=s}(window,document); | ||
!function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):this.$script=t()}(0,function(){function e(e,t){for(var n=0,s=e.length;n<s;++n)if(!t(e[n]))return c;return 1}function t(t,n){e(t,function(e){return n(e),1})}function n(r,o,a){function c(e){return e.call?e():d[e]}function f(){if(!--y){d[v]=1,m&&m();for(var n in g)e(n.split("|"),c)&&!t(g[n],c)&&(g[n]=[])}}r=r[u]?r:[r];var l=o&&o.call,m=l?o:a,v=l?r.join(""):o,y=r.length;return setTimeout(function(){t(r,function e(t,n){return null===t?f():(n||/^https?:\/\//.test(t)||!i||(t=-1===t.indexOf(".js")?i+t+".js":i+t),h[t]?(v&&(p[v]=1),2===h[t]?f():setTimeout(function(){e(t,!0)},0)):(h[t]=1,v&&(p[v]=1),void s(t,f)))})},0),n}function s(e,t){var n,s=o.createElement("script");s.onload=s.onerror=s[l]=function(){s[f]&&!/^c|loade/.test(s[f])||n||(s.onload=s[l]=null,n=1,h[e]=2,t())},s.async=1,s.src=r?e+(-1===e.indexOf("?")?"?":"&")+r:e,a.insertBefore(s,a.lastChild)}var i,r,o=document,a=o.getElementsByTagName("head")[0],c=!1,u="push",f="readyState",l="onreadystatechange",d={},p={},g={},h={};return n.get=s,n.order=function(e,t,s){!function i(r){r=e.shift(),e.length?n(r,i):n(r,t,s)}()},n.path=function(e){i=e},n.urlArgs=function(e){r=e},n.ready=function(s,i,r){s=s[u]?s:[s];var o=[];return!t(s,function(e){d[e]||o[u](e)})&&e(s,function(e){return d[e]})?i():function(e){g[e]=g[e]||[],g[e][u](i),r&&r(o)}(s.join("|")),n},n.done=function(e){n([null],e)},n}),function(e,t,n){e.achasoft=e.achasoft||{};const s=function(e,t){const n=this;this.assets=[],t&&(this.register("/framework/scripts/frameworks.debug.js"),this.register("/framework/scripts/plugins.debug.js"),this.register("/framework/scripts/frontend.debug.js"),this.register("/framework/scripts/services.debug.js"),this.register("/framework/scripts/directives.debug.js"),this.register("/framework/scripts/templates.debug.js")),e&&("string"==typeof e&&(e=[e]),Array.isArray(e)&&e.forEach(function(e){n.register("/application/scripts/"+e+"-frameworks.debug.js"),n.register("/application/scripts/"+e+"-plugins.debug.js"),n.register("/application/scripts/"+e+"-frontend.pack.js"),n.register("/application/scripts/"+e+"-services.pack.js"),n.register("/application/scripts/"+e+"-directives.pack.js"),n.register("/application/scripts/"+e+"-templates.debug.js")}))};s.prototype.register=function(e){if(e=e.trim()){-1===this.assets.indexOf(e)&&this.assets.push(e)}},s.prototype.clear=function(){this.assets=[]},s.prototype.download=function(e,n,s){if(this.assets.length){var i=this,r=0,o=Math.round(100/this.assets.length),a="false"!==t.getElementsByTagName("body")[0].getAttribute("data-debug"),c=function(e){var t=i.assets[e].replace(".debug",a?"":".min").replace(".pack",a?"":".pack");$script(t,function(){if(r+=o,r>100&&(r=100),n&&n(r),++e<=i.assets.length-1)return void c(e);s&&s()})};e&&e(),c(0)}},s.prototype.lazyLoad=function(){var e,n,s=t.querySelector("#acha-application-loader .text"),i=function(){e=new Date,console.log("demanding...")},r=function(e){s.innerHTML=e+"%",console.log(e+" % downloaded")},o=function(){n=new Date;var i=n.getTime()-e.getTime();s.innerHTML="100%",console.log("download completed in : ",i/1e3," seconds"),console.log("launching..."),e=new Date,$(t).ready(function(){angular.bootstrap(t,["frontend"]),$("#acha-application-loader").remove(),$("body").removeClass("application-loading"),$(".hide-before-launch").removeClass("hide-before-launch"),n=new Date;var s=n.getTime()-e.getTime();console.log("launched in : ",s/1e3," seconds")})};this.download(i,r,o)},e.achasoft.AssetLoader=s}(window,document); |
@@ -9,4 +9,58 @@ ;(function(){ | ||
$templateCache.put('/templates/framework/directives/accordion/template.html', '<div class=af-accordion>accordion</div>'); | ||
$templateCache.put('/templates/framework/directives/calendar/template.html', '<div class=af-calendar>calendar</div>'); | ||
$templateCache.put('/templates/framework/directives/checkbox/template.html', '<div class=af-checkbox>checkbox</div>'); | ||
$templateCache.put('/templates/framework/directives/captcha/template.html', '<div class=af-captcha>captcha</div>'); | ||
$templateCache.put('/templates/framework/directives/combobox/template.html', '<div class=af-combobox>combobox</div>'); | ||
$templateCache.put('/templates/framework/directives/date-picker/template.html', '<div class=af-date-picker>date-picker</div>'); | ||
$templateCache.put('/templates/framework/directives/dropdown/template.html', '<div class=af-dropdown>dropdown</div>'); | ||
$templateCache.put('/templates/framework/directives/editor/template.html', '<div class=af-editor>editor</div>'); | ||
$templateCache.put('/templates/framework/directives/file-picker/template.html', '<div class=af-file-picker>file-picker</div>'); | ||
$templateCache.put('/templates/framework/directives/form-elements/template.html', '<div class=af-form-elements>form-elements</div>'); | ||
$templateCache.put('/templates/framework/directives/grid-view/template.html', '<div class=af-grid-view>grid-view</div>'); | ||
$templateCache.put('/templates/framework/directives/modal/template.html', '<div class=af-modal>modal</div>'); | ||
$templateCache.put('/templates/framework/directives/multi-column-dropdown/template.html', '<div class=af-multi-column-dropdown>multi-column-dropdown</div>'); | ||
$templateCache.put('/templates/framework/directives/multi-select/template.html', '<div class=af-multi-select>multi-select</div>'); | ||
$templateCache.put('/templates/framework/directives/numbox/template.html', '<div class=af-numbox>numbox</div>'); | ||
$templateCache.put('/templates/framework/directives/password/template.html', '<div class=af-password>password</div>'); | ||
$templateCache.put('/templates/framework/directives/radio/template.html', '<div class=af-radio>radio</div>'); | ||
$templateCache.put('/templates/framework/directives/ribbon/template.html', '<div class=af-ribbon>ribbon</div>'); | ||
$templateCache.put('/templates/framework/directives/slider/template.html', '<div class=af-slider>slider</div>'); | ||
$templateCache.put('/templates/framework/directives/switch/template.html', '<div class=af-switch>switch</div>'); | ||
$templateCache.put('/templates/framework/directives/tabs/template.html', '<div class=af-tabs>tabs</div>'); | ||
$templateCache.put('/templates/framework/directives/tags/template.html', '<div class=af-tags>tags</div>'); | ||
$templateCache.put('/templates/framework/directives/textbox/template.html', '<div class=af-textbox>textbox</div>'); | ||
$templateCache.put('/templates/framework/directives/tree/template.html', '<div class=af-tree>tree</div>'); | ||
$templateCache.put('/templates/framework/directives/validation-messages/template.html', '<div class=af-validation-messages>validation-messages</div>'); | ||
$templateCache.put('/templates/framework/directives/waiting/template.html', '<div class=af-waiting>waiting</div>'); | ||
$templateCache.put('/templates/framework/directives/wizard/template.html', '<div class=af-wizard>wizard</div>'); | ||
}]); | ||
})(); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";angular.module("frontend.templates").run(["$templateCache",function(t){t.put("/templates/framework/layout/index.html","")}])}(); | ||
!function(){"use strict";angular.module("frontend.templates").run(["$templateCache",function(e){e.put("/templates/framework/layout/index.html",""),e.put("/templates/framework/directives/accordion/template.html","<div class=af-accordion>accordion</div>"),e.put("/templates/framework/directives/calendar/template.html","<div class=af-calendar>calendar</div>"),e.put("/templates/framework/directives/checkbox/template.html","<div class=af-checkbox>checkbox</div>"),e.put("/templates/framework/directives/captcha/template.html","<div class=af-captcha>captcha</div>"),e.put("/templates/framework/directives/combobox/template.html","<div class=af-combobox>combobox</div>"),e.put("/templates/framework/directives/date-picker/template.html","<div class=af-date-picker>date-picker</div>"),e.put("/templates/framework/directives/dropdown/template.html","<div class=af-dropdown>dropdown</div>"),e.put("/templates/framework/directives/editor/template.html","<div class=af-editor>editor</div>"),e.put("/templates/framework/directives/file-picker/template.html","<div class=af-file-picker>file-picker</div>"),e.put("/templates/framework/directives/form-elements/template.html","<div class=af-form-elements>form-elements</div>"),e.put("/templates/framework/directives/grid-view/template.html","<div class=af-grid-view>grid-view</div>"),e.put("/templates/framework/directives/modal/template.html","<div class=af-modal>modal</div>"),e.put("/templates/framework/directives/multi-column-dropdown/template.html","<div class=af-multi-column-dropdown>multi-column-dropdown</div>"),e.put("/templates/framework/directives/multi-select/template.html","<div class=af-multi-select>multi-select</div>"),e.put("/templates/framework/directives/numbox/template.html","<div class=af-numbox>numbox</div>"),e.put("/templates/framework/directives/password/template.html","<div class=af-password>password</div>"),e.put("/templates/framework/directives/radio/template.html","<div class=af-radio>radio</div>"),e.put("/templates/framework/directives/ribbon/template.html","<div class=af-ribbon>ribbon</div>"),e.put("/templates/framework/directives/slider/template.html","<div class=af-slider>slider</div>"),e.put("/templates/framework/directives/switch/template.html","<div class=af-switch>switch</div>"),e.put("/templates/framework/directives/tabs/template.html","<div class=af-tabs>tabs</div>"),e.put("/templates/framework/directives/tags/template.html","<div class=af-tags>tags</div>"),e.put("/templates/framework/directives/textbox/template.html","<div class=af-textbox>textbox</div>"),e.put("/templates/framework/directives/tree/template.html","<div class=af-tree>tree</div>"),e.put("/templates/framework/directives/validation-messages/template.html","<div class=af-validation-messages>validation-messages</div>"),e.put("/templates/framework/directives/waiting/template.html","<div class=af-waiting>waiting</div>"),e.put("/templates/framework/directives/wizard/template.html","<div class=af-wizard>wizard</div>")}])}(); |
3973122
1.52%49641
2.45%