lib renamings
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{
|
||||
"full-calendar": {
|
||||
"fullcalendar": {
|
||||
"path": "client/modules/crm/lib/fullcalendar.js",
|
||||
"devPath": "client/modules/crm/lib/original/fullcalendar.js",
|
||||
"exportsTo": "$.fn",
|
||||
"exportsAs": "fullCalendar",
|
||||
"amdId": "fullcalendar",
|
||||
"sourceMap": true
|
||||
},
|
||||
"vis": {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"exposeAs": "DOMPurify",
|
||||
"amdId": "dompurify"
|
||||
},
|
||||
"base64": {
|
||||
"js-base64": {
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "Base64",
|
||||
"amdId": "js-base64"
|
||||
@@ -58,16 +58,18 @@
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "EspoFunnel"
|
||||
},
|
||||
"Summernote": {
|
||||
"summernote": {
|
||||
"path": "client/lib/summernote.js",
|
||||
"devPath": "client/lib/original/summernote.js",
|
||||
"exportsTo": "$.fn",
|
||||
"exportsAs": "summernote",
|
||||
"amdId": "summernote",
|
||||
"sourceMap": true
|
||||
},
|
||||
"Textcomplete": {
|
||||
"jquery-textcomplete": {
|
||||
"exportsTo": "$.fn",
|
||||
"exportsAs": "textcomplete"
|
||||
"exportsAs": "textcomplete",
|
||||
"amdId": "jquery-textcomplete"
|
||||
},
|
||||
"autocomplete": {
|
||||
"exportsTo": "$.fn",
|
||||
@@ -81,11 +83,12 @@
|
||||
"exportsTo": "$.fn",
|
||||
"exportsAs": "datepicker"
|
||||
},
|
||||
"Selectize": {
|
||||
"selectize": {
|
||||
"path": "client/lib/selectize.js",
|
||||
"devPath": "client/lib/original/selectize.js",
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "Selectize"
|
||||
"exportsAs": "Selectize",
|
||||
"amdId": "selectize"
|
||||
},
|
||||
"autonumeric": {
|
||||
"amdId": "autonumeric"
|
||||
@@ -96,39 +99,42 @@
|
||||
"sourceMap": true,
|
||||
"amdId": "cronstrue"
|
||||
},
|
||||
"Cropper": {
|
||||
"cropper": {
|
||||
"path": "client/lib/cropper.js",
|
||||
"exportsTo": "$.fn",
|
||||
"exportsAs": "cropper",
|
||||
"amdId": "cropper",
|
||||
"sourceMap": true
|
||||
},
|
||||
"gridstack": {
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "GridStack"
|
||||
},
|
||||
"Colorpicker": {
|
||||
"bootstrap-colorpicker": {
|
||||
"path": "client/lib/bootstrap-colorpicker.js",
|
||||
"exportsTo": "$.fn",
|
||||
"exportsAs": "colorpicker"
|
||||
"exportsAs": "colorpicker",
|
||||
"amdId": "bootstrap-colorpicker"
|
||||
},
|
||||
"exif": {
|
||||
"exif-js": {
|
||||
"path": "client/lib/exif.js",
|
||||
"devPath": "client/lib/original/exif.js",
|
||||
"amdId": "exif-js",
|
||||
"sourceMap": true
|
||||
},
|
||||
"JsBarcode": {
|
||||
"jsbarcode": {
|
||||
"path": "client/lib/JsBarcode.all.js",
|
||||
"devPath": "client/lib/original/JsBarcode.all.js",
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "JsBarcode",
|
||||
"amdId": "jsbarcode",
|
||||
"sourceMap": true
|
||||
},
|
||||
"qrcode": {
|
||||
"qrcodejs": {
|
||||
"path": "client/lib/qrcode.js",
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "QRCode",
|
||||
"exportVariable": "QRCode"
|
||||
"amdId": "qrcodejs"
|
||||
},
|
||||
"ace": {
|
||||
"path": "client/lib/ace.js",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
define('crm:views/calendar/calendar', ['view', 'lib!full-calendar'], function (Dep, FullCalendar) {
|
||||
define('crm:views/calendar/calendar', ['view', 'lib!fullcalendar'], function (Dep, FullCalendar) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
/** @module module:ui/multi-select */
|
||||
|
||||
import Selectize from "lib!Selectize";
|
||||
import Selectize from 'lib!selectize';
|
||||
|
||||
/**
|
||||
* @typedef module:ui/multi-select~Options
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
/** @module module:ui/select */
|
||||
|
||||
import Selectize from "lib!Selectize";
|
||||
import Selectize from 'lib!selectize';
|
||||
|
||||
/**
|
||||
* @typedef module:ui/select~Options
|
||||
|
||||
@@ -68,13 +68,13 @@ class BarcodeFieldView extends VarcharFieldView {
|
||||
this.isSvg = true;
|
||||
|
||||
this.wait(
|
||||
Espo.loader.requirePromise('lib!JsBarcode')
|
||||
Espo.loader.requirePromise('lib!jsbarcode')
|
||||
.then(lib => JsBarcode = lib)
|
||||
);
|
||||
}
|
||||
else {
|
||||
this.wait(
|
||||
Espo.loader.requirePromise('lib!qrcode')
|
||||
Espo.loader.requirePromise('lib!qrcodejs')
|
||||
.then(lib => QRCode = lib)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ class WysiwygFieldView extends TextFieldView {
|
||||
super.setup();
|
||||
|
||||
this.wait(
|
||||
Espo.loader.requirePromise('lib!Summernote')
|
||||
Espo.loader.requirePromise('lib!summernote')
|
||||
.then(() => {
|
||||
if (!$.summernote.options || 'espoImage' in $.summernote.options) {
|
||||
return;
|
||||
|
||||
@@ -56,7 +56,7 @@ define('views/modals/image-crop', ['views/modal'], function (Dep) {
|
||||
},
|
||||
];
|
||||
|
||||
this.wait(Espo.loader.requirePromise('lib!Cropper'));
|
||||
this.wait(Espo.loader.requirePromise('lib!cropper'));
|
||||
|
||||
this.on('remove', () => {
|
||||
if (this.$img.length) {
|
||||
|
||||
@@ -83,7 +83,7 @@ define('views/modals/image-preview', ['views/modal'], function (Dep) {
|
||||
$(window).off('resize.image-review');
|
||||
});
|
||||
|
||||
this.wait(Espo.loader.requirePromise('lib!exif'));
|
||||
this.wait(Espo.loader.requirePromise('lib!exif-js'));
|
||||
},
|
||||
|
||||
getImageUrl: function () {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
define('views/note/fields/post', ['views/fields/text', 'lib!Textcomplete'], function (Dep, Textcomplete) {
|
||||
define('views/note/fields/post', ['views/fields/text', 'lib!jquery-textcomplete'], function (Dep, Textcomplete) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
define('views/stream/panel', ['views/record/panels/relationship', 'lib!Textcomplete'], function (Dep, Textcomplete) {
|
||||
define('views/stream/panel', ['views/record/panels/relationship', 'lib!jquery-textcomplete'],
|
||||
function (Dep, Textcomplete) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ define('views/user-security/modals/totp', ['views/modal', 'model'], function (De
|
||||
],
|
||||
});
|
||||
|
||||
Espo.loader.requirePromise('lib!qrcode').then(lib => {
|
||||
Espo.loader.requirePromise('lib!qrcodejs').then(lib => {
|
||||
QRCode = lib;
|
||||
})
|
||||
},
|
||||
|
||||
@@ -91,10 +91,10 @@
|
||||
"modules/crm/src/**/*.js"
|
||||
],
|
||||
"dependentOn": [
|
||||
"lib!full-calendar"
|
||||
"lib!fullcalendar"
|
||||
],
|
||||
"requires": [
|
||||
"lib!full-calendar"
|
||||
"lib!fullcalendar"
|
||||
],
|
||||
"lookupPatterns": [
|
||||
"modules/crm/src/**/*.js"
|
||||
|
||||
+9
-9
@@ -62,7 +62,7 @@
|
||||
{
|
||||
"src": "node_modules/jquery-textcomplete/dist/jquery.textcomplete.js",
|
||||
"bundle": true,
|
||||
"key": "Textcomplete"
|
||||
"key": "jquery-textcomplete"
|
||||
},
|
||||
{
|
||||
"src": "node_modules/bootstrap/dist/js/bootstrap.js",
|
||||
@@ -108,7 +108,7 @@
|
||||
{
|
||||
"src": "node_modules/selectize/dist/js/standalone/selectize.js",
|
||||
"bundle": true,
|
||||
"key": "Selectize",
|
||||
"key": "selectize",
|
||||
"suppressAmd": true
|
||||
},
|
||||
{
|
||||
@@ -118,7 +118,7 @@
|
||||
},
|
||||
{
|
||||
"src": "node_modules/summernote/dist/summernote.js",
|
||||
"key": "Summernote",
|
||||
"key": "summernote",
|
||||
"minify": true
|
||||
},
|
||||
{
|
||||
@@ -133,11 +133,11 @@
|
||||
},
|
||||
{
|
||||
"src": "node_modules/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js",
|
||||
"key": "Colorpicker"
|
||||
"key": "bootstrap-colorpicker"
|
||||
},
|
||||
{
|
||||
"src": "node_modules/cropper/dist/cropper.js",
|
||||
"key": "Cropper",
|
||||
"key": "cropper",
|
||||
"minify": true
|
||||
},
|
||||
{
|
||||
@@ -148,16 +148,16 @@
|
||||
{
|
||||
"src": "node_modules/exif-js/exif.js",
|
||||
"minify": true,
|
||||
"key": "exif"
|
||||
"key": "exif-js"
|
||||
},
|
||||
{
|
||||
"src": "node_modules/jsbarcode/dist/JsBarcode.all.js",
|
||||
"minify": true,
|
||||
"key": "JsBarcode"
|
||||
"key": "jsbarcode"
|
||||
},
|
||||
{
|
||||
"src": "node_modules/qrcodejs/qrcode.js",
|
||||
"key": "qrcode"
|
||||
"key": "qrcodejs"
|
||||
},
|
||||
{
|
||||
"name": "ace-builds",
|
||||
@@ -185,7 +185,7 @@
|
||||
"src": "node_modules/fullcalendar/dist/fullcalendar.js",
|
||||
"dest": "client/modules/crm/lib/fullcalendar.js",
|
||||
"minify": true,
|
||||
"key": "full-calendar"
|
||||
"key": "fullcalendar"
|
||||
},
|
||||
{
|
||||
"src": "node_modules/vis/dist/vis.js",
|
||||
|
||||
@@ -68,7 +68,7 @@ scriptEl.textContent = JSON.stringify({
|
||||
"exposeAs": "DOMPurify",
|
||||
"amdId": "dompurify"
|
||||
},
|
||||
"base64": {
|
||||
"js-base64": {
|
||||
"exportsTo": "window",
|
||||
"exportsAs": "Base64",
|
||||
"amdId": "js-base64"
|
||||
@@ -81,10 +81,9 @@ scriptEl.textContent = JSON.stringify({
|
||||
},
|
||||
aliasMap: {
|
||||
"jquery": "lib!jquery",
|
||||
"bullbone": "lib!bullbone",
|
||||
"underscore": "lib!underscore",
|
||||
"cronstrue": "lib!cronstrue",
|
||||
"exif-js": "lib!exif",
|
||||
"exif-js": "lib!exif-js",
|
||||
"moment": "lib!moment",
|
||||
"js-base64": "lib!base64",
|
||||
"bullbone": "lib!bullbone",
|
||||
|
||||
Reference in New Issue
Block a user