mirror of https://github.com/xwiki-labs/cryptpad
removing `bower`: migrate `codemirror`
Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
parent
f012d692de
commit
fad1025f45
|
@ -19,7 +19,6 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"components-font-awesome": "^4.6.3",
|
||||
"codemirror": "^5.19.0",
|
||||
"requirejs": "2.3.5",
|
||||
"marked": "1.1.0",
|
||||
"rangy": "rangy-release#~1.3.0",
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"ckeditor": "^4.12.1",
|
||||
"codemirror": "^5.19.0",
|
||||
"jquery": "3.6.0",
|
||||
"jshint": "^2.13.4",
|
||||
"less": "3.7.1",
|
||||
|
@ -1014,6 +1015,12 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/codemirror": {
|
||||
"version": "5.65.11",
|
||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.11.tgz",
|
||||
"integrity": "sha512-Gp62g2eKSCHYt10axmGhKq3WoJSvVpvhXmowNq7pZdRVowwtvBR/hi2LSP5srtctKkRT33T6/n8Kv1UGp7JW4A==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/collection-visit": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
|
||||
|
@ -5498,6 +5505,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"codemirror": {
|
||||
"version": "5.65.11",
|
||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.11.tgz",
|
||||
"integrity": "sha512-Gp62g2eKSCHYt10axmGhKq3WoJSvVpvhXmowNq7pZdRVowwtvBR/hi2LSP5srtctKkRT33T6/n8Kv1UGp7JW4A==",
|
||||
"dev": true
|
||||
},
|
||||
"collection-visit": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"ckeditor": "^4.12.1",
|
||||
"codemirror": "^5.19.0",
|
||||
"jquery": "3.6.0",
|
||||
"jshint": "^2.13.4",
|
||||
"less": "3.7.1",
|
||||
|
|
|
@ -9,6 +9,7 @@ Fse.mkdirpSync(componentsPath);
|
|||
"jquery",
|
||||
"tweetnacl",
|
||||
"ckeditor",
|
||||
"codemirror",
|
||||
].forEach(l => {
|
||||
const source = Path.join("node_modules", l);
|
||||
const destination = Path.join(componentsPath, l);
|
||||
|
|
|
@ -14,7 +14,7 @@ define([
|
|||
"mermaid": "/lib/mermaid/mermaid.min",
|
||||
// json.sortify same
|
||||
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
|
||||
cm: '/bower_components/codemirror',
|
||||
cm: '/components/codemirror',
|
||||
'tui-code-snippet': '/lib/calendar/tui-code-snippet.min',
|
||||
'tui-date-picker': '/lib/calendar/date-picker',
|
||||
'netflux-client': '/bower_components/netflux-websocket/netflux-client',
|
||||
|
|
|
@ -38,9 +38,9 @@ define([
|
|||
|
||||
'/bower_components/file-saver/FileSaver.min.js',
|
||||
|
||||
'css!/bower_components/codemirror/lib/codemirror.css',
|
||||
'css!/bower_components/codemirror/addon/dialog/dialog.css',
|
||||
'css!/bower_components/codemirror/addon/fold/foldgutter.css',
|
||||
'css!/components/codemirror/lib/codemirror.css',
|
||||
'css!/components/codemirror/addon/dialog/dialog.css',
|
||||
'css!/components/codemirror/addon/fold/foldgutter.css',
|
||||
'css!/lib/datepicker/flatpickr.min.css',
|
||||
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
|
||||
'less!/form/app-form.less',
|
||||
|
|
|
@ -28,9 +28,9 @@ define([
|
|||
'cm/addon/search/search',
|
||||
'cm/addon/search/match-highlighter',
|
||||
|
||||
'css!/bower_components/codemirror/lib/codemirror.css',
|
||||
'css!/bower_components/codemirror/addon/dialog/dialog.css',
|
||||
'css!/bower_components/codemirror/addon/fold/foldgutter.css',
|
||||
'css!/components/codemirror/lib/codemirror.css',
|
||||
'css!/components/codemirror/addon/dialog/dialog.css',
|
||||
'css!/components/codemirror/addon/fold/foldgutter.css',
|
||||
'less!/kanban/app-kanban.less'
|
||||
], function (
|
||||
$,
|
||||
|
|
|
@ -21,9 +21,9 @@ define([
|
|||
|
||||
'cm/mode/markdown/markdown',
|
||||
|
||||
'css!/bower_components/codemirror/lib/codemirror.css',
|
||||
'css!/bower_components/codemirror/addon/dialog/dialog.css',
|
||||
'css!/bower_components/codemirror/addon/fold/foldgutter.css',
|
||||
'css!/components/codemirror/lib/codemirror.css',
|
||||
'css!/components/codemirror/addon/dialog/dialog.css',
|
||||
'css!/components/codemirror/addon/fold/foldgutter.css',
|
||||
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
|
||||
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
|
||||
'less!/profile/app-profile.less',
|
||||
|
|
|
@ -16,7 +16,7 @@ require.config({
|
|||
"jquery": "/components/jquery/dist/jquery.min",
|
||||
// json.sortify same
|
||||
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
|
||||
cm: '/bower_components/codemirror'
|
||||
cm: '/components/codemirror'
|
||||
},
|
||||
map: {
|
||||
'*': {
|
||||
|
|
Loading…
Reference in New Issue