removing `bower`: migrate `croppie`

Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
Pamplemousse 2023-01-07 13:20:36 +01:00
parent e406b57ed9
commit 2f8e1faa1b
5 changed files with 17 additions and 3 deletions

View File

@ -18,7 +18,6 @@
"tests"
],
"dependencies": {
"croppie": "^2.5.0",
"sortablejs": "^1.6.0",
"saferphore": "^0.0.1",
"jszip": "3.7.1",

13
package-lock.json generated
View File

@ -36,6 +36,7 @@
"ckeditor": "^4.12.1",
"codemirror": "^5.19.0",
"components-font-awesome": "^4.6.3",
"croppie": "^2.5.0",
"file-saver": "1.3.1",
"html2canvas": "^1.4.0",
"hyper-json": "~1.4.0",
@ -1323,6 +1324,12 @@
"node": ">=4"
}
},
"node_modules/croppie": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/croppie/-/croppie-2.6.5.tgz",
"integrity": "sha512-IlChnVUGG5T3w2gRZIaQgBtlvyuYnlUWs2YZIXXR3H9KrlO1PtBT3j+ykxvy9eZIWhk+V5SpBmhCQz5UXKrEKQ==",
"dev": true
},
"node_modules/css-line-break": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz",
@ -6241,6 +6248,12 @@
"parse-json": "^4.0.0"
}
},
"croppie": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/croppie/-/croppie-2.6.5.tgz",
"integrity": "sha512-IlChnVUGG5T3w2gRZIaQgBtlvyuYnlUWs2YZIXXR3H9KrlO1PtBT3j+ykxvy9eZIWhk+V5SpBmhCQz5UXKrEKQ==",
"dev": true
},
"css-line-break": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz",

View File

@ -39,6 +39,7 @@
"ckeditor": "^4.12.1",
"codemirror": "^5.19.0",
"components-font-awesome": "^4.6.3",
"croppie": "^2.5.0",
"file-saver": "1.3.1",
"hyper-json": "~1.4.0",
"jquery": "3.6.0",

View File

@ -31,6 +31,7 @@ Fse.mkdirpSync(componentsPath);
"bootstrap-tokenfield",
"localforage",
"html2canvas",
"croppie",
].forEach(l => {
const source = Path.join("node_modules", l);
const destination = Path.join(componentsPath, l);

View File

@ -9,9 +9,9 @@ define([
'/customize/application_config.js',
'/components/tweetnacl/nacl-fast.min.js',
'/bower_components/croppie/croppie.min.js',
'/components/croppie/croppie.min.js',
'/components/file-saver/FileSaver.min.js',
'css!/bower_components/croppie/croppie.css',
'css!/components/croppie/croppie.css',
], function ($, Util, Hash, UI, h, MediaTag, Messages, AppConfig) {
var MT = {};