mirror of https://github.com/xwiki-labs/cryptpad
removing `bower`: migrate `file-saver`
Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
parent
871110ec12
commit
a847a5300a
|
@ -18,7 +18,6 @@
|
|||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"file-saver": "1.3.1",
|
||||
"alertifyjs": "1.0.11",
|
||||
"scrypt-async": "1.2.0",
|
||||
"require-css": "0.1.10",
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
"ckeditor": "^4.12.1",
|
||||
"codemirror": "^5.19.0",
|
||||
"components-font-awesome": "^4.6.3",
|
||||
"file-saver": "1.3.1",
|
||||
"hyper-json": "~1.4.0",
|
||||
"jquery": "3.6.0",
|
||||
"jshint": "^2.13.4",
|
||||
|
@ -1858,6 +1859,12 @@
|
|||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"node_modules/file-saver": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/file-saver/-/file-saver-1.3.1.tgz",
|
||||
"integrity": "sha512-RRTE4zhfibKpfVS233QDawwPhQIaEyxm6Zp6AcLoAy/qIx8MlEgNyQuGoTryZb+toizwSMeB/GhIzw/eWXTePw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/fill-range": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz",
|
||||
|
@ -6519,6 +6526,12 @@
|
|||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"file-saver": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/file-saver/-/file-saver-1.3.1.tgz",
|
||||
"integrity": "sha512-RRTE4zhfibKpfVS233QDawwPhQIaEyxm6Zp6AcLoAy/qIx8MlEgNyQuGoTryZb+toizwSMeB/GhIzw/eWXTePw==",
|
||||
"dev": true
|
||||
},
|
||||
"fill-range": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz",
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"ckeditor": "^4.12.1",
|
||||
"codemirror": "^5.19.0",
|
||||
"components-font-awesome": "^4.6.3",
|
||||
"file-saver": "1.3.1",
|
||||
"hyper-json": "~1.4.0",
|
||||
"jquery": "3.6.0",
|
||||
"jshint": "^2.13.4",
|
||||
|
|
|
@ -21,6 +21,7 @@ Fse.mkdirpSync(componentsPath);
|
|||
"chainpad-crypto",
|
||||
"chainpad-listmap",
|
||||
"chainpad-netflux",
|
||||
"file-saver",
|
||||
].forEach(l => {
|
||||
const source = Path.join("node_modules", l);
|
||||
const destination = Path.join(componentsPath, l);
|
||||
|
|
|
@ -25,7 +25,7 @@ define([
|
|||
'/common/inner/properties.js',
|
||||
|
||||
'/common/jscolor.js',
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'css!/lib/calendar/tui-calendar.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
|
|
|
@ -10,7 +10,7 @@ define([
|
|||
|
||||
'/components/tweetnacl/nacl-fast.min.js',
|
||||
'/bower_components/croppie/croppie.min.js',
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'css!/bower_components/croppie/croppie.css',
|
||||
], function ($, Util, Hash, UI, h, MediaTag, Messages, AppConfig) {
|
||||
var MT = {};
|
||||
|
|
|
@ -22,7 +22,7 @@ define([
|
|||
'/common/outer/worker-channel.js',
|
||||
'/common/outer/x2t.js',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'less!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
|
|
|
@ -18,7 +18,7 @@ define([
|
|||
'/components/chainpad/chainpad.dist.js',
|
||||
'/common/test.js',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
], function (
|
||||
|
|
|
@ -14,7 +14,7 @@ define([
|
|||
'/bower_components/nthen/index.js',
|
||||
'/common/media-tag.js',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'/components/tweetnacl/nacl-fast.min.js',
|
||||
], function ($, ApiConfig, FileCrypto, MakeBackup, Thumb, UI, UIElements, Util, Hash, h, Messages, Pages, nThen, MT) {
|
||||
var Nacl = window.nacl;
|
||||
|
|
|
@ -11,7 +11,7 @@ define([
|
|||
'/common/common-util.js',
|
||||
'/common/outer/worker-channel.js',
|
||||
'/common/outer/x2t.js',
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
'less!/convert/app-convert.less',
|
||||
|
|
|
@ -9,7 +9,7 @@ define([
|
|||
|
||||
'/common/media-tag.js',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
|
|
|
@ -36,7 +36,7 @@ define([
|
|||
'cm/mode/gfm/gfm',
|
||||
'css!cm/lib/codemirror.css',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
|
||||
'css!/components/codemirror/lib/codemirror.css',
|
||||
'css!/components/codemirror/addon/dialog/dialog.css',
|
||||
|
|
|
@ -46,7 +46,7 @@ define([
|
|||
//'/common/test.js',
|
||||
|
||||
'/lib/diff-dom/diffDOM.js',
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
|
||||
'css!/customize/src/print.css',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
|
|
|
@ -25,7 +25,7 @@ define([
|
|||
'cm/mode/markdown/markdown',
|
||||
'css!cm/lib/codemirror.css',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
|
|
|
@ -17,7 +17,7 @@ define([
|
|||
'/common/common-constants.js',
|
||||
|
||||
'/common/jscolor.js',
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
'less!/settings/app-settings.less',
|
||||
|
|
|
@ -21,7 +21,7 @@ define([
|
|||
'/common/make-backup.js',
|
||||
'/customize/messages.js',
|
||||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
'/components/file-saver/FileSaver.min.js',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
'less!/teams/app-team.less',
|
||||
|
|
Loading…
Reference in New Issue