removing bower: migrate hyperjson

Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
Pamplemousse 2023-01-07 08:46:02 +01:00
parent c275855cd0
commit e4dea5824b
9 changed files with 20 additions and 6 deletions

View file

@ -18,7 +18,6 @@
"tests"
],
"dependencies": {
"hyperjson": "~1.4.0",
"chainpad-crypto": "^0.2.0",
"chainpad-listmap": "^1.0.0",
"chainpad": "^5.2.0",

13
package-lock.json generated
View file

@ -30,6 +30,7 @@
"ckeditor": "^4.12.1",
"codemirror": "^5.19.0",
"components-font-awesome": "^4.6.3",
"hyper-json": "~1.4.0",
"jquery": "3.6.0",
"jshint": "^2.13.4",
"json.sortify": "~2.1.0",
@ -2142,6 +2143,12 @@
"npm": ">=1.3.7"
}
},
"node_modules/hyper-json": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/hyper-json/-/hyper-json-1.4.0.tgz",
"integrity": "sha512-QQq/hSN8X7m+rirYZmJ3RxCanXEdKyC7iGXEnJcg3jJ6/qorDDywBJoP6tt9+LEfJvNHaXwoE2wjDAZtJVeLew==",
"dev": true
},
"node_modules/iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@ -6445,6 +6452,12 @@
"sshpk": "^1.7.0"
}
},
"hyper-json": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/hyper-json/-/hyper-json-1.4.0.tgz",
"integrity": "sha512-QQq/hSN8X7m+rirYZmJ3RxCanXEdKyC7iGXEnJcg3jJ6/qorDDywBJoP6tt9+LEfJvNHaXwoE2wjDAZtJVeLew==",
"dev": true
},
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",

View file

@ -33,6 +33,7 @@
"ckeditor": "^4.12.1",
"codemirror": "^5.19.0",
"components-font-awesome": "^4.6.3",
"hyper-json": "~1.4.0",
"jquery": "3.6.0",
"jshint": "^2.13.4",
"json.sortify": "~2.1.0",

View file

@ -16,6 +16,7 @@ Fse.mkdirpSync(componentsPath);
"requirejs",
"requirejs-plugins",
"json.sortify",
"hyper-json",
].forEach(l => {
const source = Path.join("node_modules", l);
const destination = Path.join(componentsPath, l);

View file

@ -1,6 +1,6 @@
define([
'jquery',
'/bower_components/hyperjson/hyperjson.js',
'/components/hyper-json/hyperjson.js',
'json.sortify',
'/drive/tests.js',
//'/common/test.js',

View file

@ -1,6 +1,6 @@
define([
'jquery',
'/bower_components/hyperjson/hyperjson.js',
'/components/hyper-json/hyperjson.js',
'/common/toolbar.js',
'json.sortify',
'/bower_components/nthen/index.js',

View file

@ -3,7 +3,7 @@ define([
'/common/common-util.js',
'/common/diffMarked.js',
'/common/hyperscript.js',
'/bower_components/hyperjson/hyperjson.js',
'/components/hyper-json/hyperjson.js',
'/bower_components/nthen/index.js',
'/lib/turndown.browser.umd.js'
], function ($, Util, DiffMd, h, Hyperjson, nThen, Turndown) {

View file

@ -24,7 +24,7 @@ require(['/api/config'], function(ApiConfig) {
});
define([
'jquery',
'/bower_components/hyperjson/hyperjson.js',
'/components/hyper-json/hyperjson.js',
'/common/sframe-app-framework.js',
'/common/cursor.js',
//'/common/TypingTests.js',

View file

@ -1,6 +1,6 @@
define([
'jquery',
'/bower_components/hyperjson/hyperjson.js',
'/components/hyper-json/hyperjson.js',
'/common/text-cursor.js',
'/bower_components/chainpad/chainpad.dist.js',
'/common/common-util.js',