removing `bower`: migrate `json.sortify`

Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
Pamplemousse 2023-01-07 08:43:12 +01:00
parent dd25b85554
commit c275855cd0
7 changed files with 22 additions and 5 deletions

View File

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

16
package-lock.json generated
View File

@ -32,6 +32,7 @@
"components-font-awesome": "^4.6.3",
"jquery": "3.6.0",
"jshint": "^2.13.4",
"json.sortify": "~2.1.0",
"less": "3.7.1",
"lesshint": "6.3.7",
"marked": "^1.1.0",
@ -2466,6 +2467,15 @@
"dev": true,
"optional": true
},
"node_modules/json.sortify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/json.sortify/-/json.sortify-2.1.0.tgz",
"integrity": "sha512-otSldRQcu9PaQJJDeB1qGZUIoL7C4nxZunUVHieWPUMJvvVxIUhsMQUhR+r4OUZBwA1McnbS7sqDf5dYHzJsbw==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/jsonfile": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
@ -6696,6 +6706,12 @@
"dev": true,
"optional": true
},
"json.sortify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/json.sortify/-/json.sortify-2.1.0.tgz",
"integrity": "sha512-otSldRQcu9PaQJJDeB1qGZUIoL7C4nxZunUVHieWPUMJvvVxIUhsMQUhR+r4OUZBwA1McnbS7sqDf5dYHzJsbw==",
"dev": true
},
"jsonfile": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",

View File

@ -35,6 +35,7 @@
"components-font-awesome": "^4.6.3",
"jquery": "3.6.0",
"jshint": "^2.13.4",
"json.sortify": "~2.1.0",
"less": "3.7.1",
"lesshint": "6.3.7",
"marked": "^1.1.0",

View File

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

View File

@ -921,13 +921,13 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto, Feedback)
require("../common-util"),
require("../common-hash"),
require("../../bower_components/chainpad-netflux/chainpad-netflux.js"),
require("../../bower_components/json.sortify"),
require("../../components/json.sortify"),
require("nthen"),
require("../../bower_components/chainpad-crypto/crypto"),
null // no feedback here
);
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
require.config({ paths: { 'json.sortify': '/bower_components/json.sortify/dist/JSON.sortify' } });
require.config({ paths: { 'json.sortify': '/components/json.sortify/dist/JSON.sortify' } });
define([
'/common/common-util.js',
'/common/common-hash.js',

View File

@ -13,7 +13,7 @@ define([
"jquery": "/components/jquery/dist/jquery.min",
"mermaid": "/lib/mermaid/mermaid.min",
// json.sortify same
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
"json.sortify": "/components/json.sortify/dist/JSON.sortify",
cm: '/components/codemirror',
'tui-code-snippet': '/lib/calendar/tui-code-snippet.min',
'tui-date-picker': '/lib/calendar/date-picker',

View File

@ -15,7 +15,7 @@ require.config({
// jquery declares itself as literally "jquery" so it cannot be pulled by path :(
"jquery": "/components/jquery/dist/jquery.min",
// json.sortify same
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
"json.sortify": "/components/json.sortify/dist/JSON.sortify",
cm: '/components/codemirror'
},
map: {