-
Install CNTLM in a folder where you have full rights to run it as administrator.
-
Open
cntlm.ini
and fill it :
Username YOUR_USERNAME
Domain YOUR_DOMAIN
Ext.application({ | |
. | |
. | |
. | |
// init method | |
init: function() { | |
// initialize state provider for saving component states | |
Ext.state.Manager.setProvider(Ext.create('Ext.state.LocalStorageProvider')); | |
} |
Ext.define('Empty.common.Poller', { | |
singleton: true, | |
alternateClassName: ['Poller'], | |
/** | |
* Utility to poll an endpoint provided with the required parameters | |
* Mandatory parameters are : params.pollInterval, params.pollTimeout, params.success | |
* @params {Object} params | |
* |
Ext.define('Example.util.Remote',{ | |
singleton: true, | |
requires: [ | |
'Ext.ux.ajax.JsonSimlet', | |
'Ext.ux.ajax.SimManager' | |
], | |
constructor: function () { | |
Ext.ux.ajax.SimManager.init({ |
(function() { | |
// No mouse version | |
Ext.Component.prototype.fireEvent = | |
Ext.Function.createInterceptor(Ext.Component.prototype.fireEvent, function() { | |
if (arguments && arguments[0].indexOf("mouse") === -1 && arguments[0] != "uievent") { | |
console.log(this.$className, arguments, this); | |
} | |
return true; | |
});})(); |
/** | |
* Hides/Disables a component based on the user roles provided and user roles required for a component | |
* Example usage : | |
* 1. Default behavior to prevent rendering of component if required role is not present. Suitable for small components like button, textfields and other form controls | |
* plugins: [ | |
* { | |
* ptype: 'security', | |
* roles: ['ROLE_ADMIN', 'ROLE_SUBADMIN', 'APP_ROLE1'], | |
* } | |
* ] |
Ext.define('App.common.I18n', { | |
singleton: true, | |
alternateClassName: ['I18n'], | |
requires: [ | |
'App.locale.locale-de', | |
'App.locale.locale-en', | |
'App.locale.locale-fr', | |
'App.locale.locale-it' | |
], | |
initLocale: function () { |
Ext.define('App.common.locale.I18n', { | |
extend: 'Ext.Base', | |
singleton: true, | |
alternateClassName: ['I18n'], | |
requires: [ | |
'App.store.locale.Translations', // in memory store to keep translations | |
'App.api.config.Endpoints', // config file with endpoint information | |
], | |
initLocale: function (language) { | |
// STEP 1. find which language to load |
Install CNTLM in a folder where you have full rights to run it as administrator.
Open cntlm.ini
and fill it :
Username YOUR_USERNAME
Domain YOUR_DOMAIN
import { NgModule } from '@angular/core'; | |
import { | |
MatAutocompleteModule, | |
MatButtonModule, | |
MatButtonToggleModule, | |
MatCardModule, | |
MatCheckboxModule, | |
MatDatepickerModule, | |
MatDialogModule, | |
MatExpansionModule, |
package com.app.exception.common; | |
import com.fasterxml.jackson.annotation.JsonFormat; | |
import lombok.AllArgsConstructor; | |
import lombok.Builder; | |
import lombok.Data; | |
import lombok.EqualsAndHashCode; | |
import org.hibernate.validator.internal.engine.path.PathImpl; | |
import org.springframework.validation.FieldError; | |
import org.springframework.validation.ObjectError; |