/** * Chargement des configuration exportées depuis le serveur * Injection avant tous les requiere qui peuvent avoir besoin * de cette configuration */ (function(exportConfiguration) { console.log('coreJs.loadExportConfiguration : called'); // Iteration sur la configuration exportée du serveur for(var configurationKey in exportConfiguration) { // Split de la clé var configurationKeyParts = configurationKey.split("."), lastKey = configurationKeyParts[configurationKeyParts.length - 1], currentObject = window; // Création des namespace intermédiaire si nécessaire for(var i = 0 ; i < configurationKeyParts.length - 1 ; i++) { // On ajoute le sous objet si nécessaire if (!currentObject[configurationKeyParts[i]]) currentObject[configurationKeyParts[i]] = {}; // On avance dans le namespace currentObject = currentObject[configurationKeyParts[i]]; } // Affectation de la valeur currentObject[lastKey] = exportConfiguration[configurationKey]; } }({"common.exportConfiguration.scaffolding":{"size":{"form":{"defaultBodyPadding":10,"toolbar":{"defaultHeight":22,"defaultHeightPadding":4,"defaultWidthPadding":2}},"field":{"defaultWidth":800,"defaultHeight":22,"defaultHeightMargin":5},"textarea":{"defaultHeight":58,"defaultMargin":5},"fieldset":{"defaultMargin":10,"defaultPadding":20,"defaultBorderHeight":2,"toolbar":{"defaultHeight":28,"defaultHeightMargin":5,"defaultHeightPadding":4,"defaultWidthPadding":2,"defaultBorderHeight":2,"defaultBorderWidth":2}},"window":{"defaultMarginHeight":62,"defaultMarginWidth":15}},"action":{"exporterCsv":true,"imprimer":true,"lienCopier":true,"rafraichirUpdateForm":true,"rafraichirGrid":true,"consulterGrid":true}},"common.exportConfiguration.environnement":{"id":"PRODUCTION","class":"common.security.Environnement","instanceLabel":"PRODUCTION"},"common.exportConfiguration.extjs":{"version":"5.1.1","rootPath":"/extjs","enableCacheRevision":true,"theme":"psud-theme","listeTheme":{"ext-theme-classic":{"mainTheme":"classic"},"psud-theme":{"mainTheme":"classic","mainMenu":{"ui":"menutoolbar"},"extendedMenu":{"defaults":{"ui":"accordionpanel"}},"workspace":{"ui":"maintab","plain":false},"referentiel":{"menutree":{"ui":"menutree"}}}},"apidoc":"https://psud.nc/docdev/COMMON/4.11.1-BUILD001/jsduck/","charts":{"enable":false,"theme":null,"mode":"ext-charts"}},"common.exportConfiguration.Application.name":"catweb","geocommon.exportConfiguration.defaultMapConfig":{"renderer":["canvas","webgl"],"dpi":96,"srid":3163,"precisionSrid":{"3163":0.01,"4326":1E-7},"resolutions":[1322.91675,529.16667,264.583335,132.291931,52.9167725,26.4583863,13.2291931,5.2916773,2.6458386,1.3229193,0.5291677,0.2645839,0.1322919,0.0529168,0.0264584],"baseLayerGeocatId":"bd3881f0-ed06-4be8-9ae8-9af19a5da761","subdomainQueries":"","center":[446009.082,214525.023],"extent":[350000,160000,570000,300000],"zoom":1,"maxZoomToExtent":10},"geocommon.exportConfiguration.app.dependencies":{"geocat":{"url":"/geocatweb","version":"1.5.0","enable":true},"cartoprint":{"url":"/cartoprint","version":"1.0.0","enable":true},"ref":{"url":"/ref","version":"1.2.0","enable":true}}}));