removing bower: migrate nthen

Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
Pamplemousse 2023-01-07 12:49:46 +01:00
parent 17b586e231
commit 9019d92291
79 changed files with 78 additions and 78 deletions

View File

@ -18,7 +18,6 @@
"tests"
],
"dependencies": {
"nthen": "0.1.7",
"open-sans-fontface": "^1.4.2",
"bootstrap-tokenfield": "0.12.1",
"localforage": "^1.5.2",

View File

@ -12,7 +12,7 @@ define([
'/common/common-feedback.js',
'/common/outer/local-store.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/outer/login-block.js',
'/common/common-hash.js',

View File

@ -2,7 +2,7 @@ define([
'jquery',
'/common/hyperscript.js',
'/customize/pages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'css!/components/components-font-awesome/css/font-awesome.min.css',
], function ($, h, Pages, nThen) {

View File

@ -26,6 +26,7 @@ Fse.mkdirpSync(componentsPath);
"scrypt-async",
"require-css",
"bootstrap",
"nthen",
].forEach(l => {
const source = Path.join("node_modules", l);
const destination = Path.join(componentsPath, l);

View File

@ -4,7 +4,7 @@ define([
'/customize/application_config.js',
'/components/chainpad-crypto/crypto.js',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/hyperscript.js',
'/customize/messages.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -3,7 +3,7 @@ define([
'json.sortify',
'/components/chainpad-crypto/crypto.js',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-util.js',
'/common/common-hash.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -5,7 +5,7 @@ define([
'/common/hyperscript.js',
'/customize/messages.js',
'/common/dom-ready.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common-outer.js',
'/customize/login.js',
'/common/common-hash.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/common/diffMarked.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/hyperscript.js',
'/common/sframe-app-framework.js',

View File

@ -5,7 +5,7 @@ const require = define;
*/
define([
'/api/config',
'/bower_components/nthen/index.js'
'/components/nthen/index.js'
], function (Config, nThen) { /*::});module.exports = (function() {
const Config = (undefined:any);
const nThen = (undefined:any);

View File

@ -13,7 +13,7 @@ define([
'/customize/messages.js',
'/customize/application_config.js',
'/customize/pages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/inner/invitation.js',
'/common/visible.js',

View File

@ -8,7 +8,7 @@ define([
'/common/outer/network-config.js',
'/common/outer/cache-store.js',
'/common/pinpad.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/components/chainpad/chainpad.dist.js',
], function (Crypto, CPNetflux, Netflux, Util, Hash, Realtime, NetConfig, Cache, Pinpad, nThen) {
var finish = function (S, err, doc) {

View File

@ -14,7 +14,7 @@ define([
'/common/outer/login-block.js',
'/customize/application_config.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function (Config, Messages, Util, Hash, Cache,
Messaging, Constants, Feedback, Visible, UserObject, LocalStore, Channel, Block,
AppConfig, Nthen) {

View File

@ -14,7 +14,7 @@ define([
'/common/inner/access.js',
'/common/inner/properties.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/hyperscript.js',
'/common/proxy-manager.js',
'/customize/application_config.js',

View File

@ -7,7 +7,7 @@ define([
'/common/inner/common-modal.js',
'/common/hyperscript.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function ($, Util, Hash, UI, UIElements, Modal, h,
Messages, nThen) {
var Access = {};

View File

@ -5,7 +5,7 @@ define([
'/common/common-interface.js',
'/common/common-ui-elements.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function ($, Util, Hash, UI, UIElements, Messages, nThen) {
var Modal = {};

View File

@ -7,7 +7,7 @@ define([
'/common/inner/common-modal.js',
'/common/hyperscript.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function ($, Util, Hash, UI, UIElements, Modal, h,
Messages, nThen) {
var Properties = {};

View File

@ -10,7 +10,7 @@ define([
'/common/hyperscript.js',
'/common/clipboard.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/customize/pages.js',
], function ($, ApiConfig, Util, Hash, UI, UIElements, Feedback, Modal, h, Clipboard,
Messages, nThen, Pages) {

View File

@ -3,7 +3,7 @@ define([
'/common/common-interface.js',
'/common/hyperscript.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/components/chainpad/chainpad.dist.js',
], function ($, UI, h, Messages, nThen, ChainPad /* JsonOT */) {
var Snapshots = {};

View File

@ -8,7 +8,7 @@ define([
'/common/common-feedback.js',
'/common/inner/cache.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/bower_components/saferphore/index.js',
'/bower_components/jszip/dist/jszip.min.js',
], function ($, FileCrypto, Hash, Util, UI, h, Feedback,

View File

@ -8,7 +8,7 @@ define([
'/common/outer/mailbox.js',
'/customize/messages.js',
'/common/common-realtime.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/components/chainpad-crypto/crypto.js',
], function (AppConfig, Feedback, Hash, Util, Messaging, Crypt, Mailbox, Messages, Realtime, nThen, Crypto) {
// Start migration check

View File

@ -2,7 +2,7 @@ define([
'jquery',
'/common/toolbar.js',
'json.sortify',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-hash.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/common-hash.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'jquery',
'/common/requireconfig.js',

View File

@ -29,7 +29,7 @@ define([
'chainpad-netflux',
'chainpad-listmap',
'netflux-client',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/bower_components/saferphore/index.js',
], function (ApiConfig, Sortify, UserObject, ProxyManager, Migrate, Hash, Util, Constants, Feedback,
Realtime, Messaging, Pinpad, Cache,

View File

@ -6,7 +6,7 @@ define([
'/common/outer/cache-store.js',
'/calendar/recurrence.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'chainpad-listmap',
'/components/chainpad-crypto/crypto.js',
'/components/chainpad/chainpad.dist.js',

View File

@ -2,7 +2,7 @@ define([
'/common/common-util.js',
'/common/common-hash.js',
'/common/userObject.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function (Util, Hash, UserObject, nThen) {
var History = {};
var commands = {};

View File

@ -8,7 +8,7 @@ define([
'/customize/messages.js',
'/customize/application_config.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function (Crypto, Hash, Util, Realtime, Messaging, Constants, Messages, AppConfig, nThen) {
'use strict';
var Curve = Crypto.Curve;

View File

@ -933,7 +933,7 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto, Feedback)
'/common/common-hash.js',
'chainpad-netflux',
'json.sortify',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/components/chainpad-crypto/crypto.js',
'/common/common-feedback.js',
//'/components/tweetnacl/nacl-fast.min.js',

View File

@ -4,7 +4,7 @@ define([
'/common/userObject.js',
'/common/outer/cache-store.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/components/chainpad-crypto/crypto.js',
'chainpad-listmap',
'/components/chainpad/chainpad.dist.js',

View File

@ -18,7 +18,7 @@ define([
'/components/chainpad-crypto/crypto.js',
'chainpad-netflux',
'/components/chainpad/chainpad.dist.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/bower_components/saferphore/index.js',
'/components/tweetnacl/nacl-fast.min.js',
], function (Util, Hash, Constants, Realtime,

View File

@ -3,7 +3,7 @@ define([
'/common/common-hash.js',
'/common/common-util.js',
'/common/outer/cache-store.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/components/tweetnacl/nacl-fast.min.js',
], function (FileCrypto, Hash, Util, Cache, nThen) {
var Nacl = window.nacl;

View File

@ -1,6 +1,6 @@
define([
'/api/config',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/common-util.js',
], function (ApiConfig, nThen, Util) {
var X2T = {};

View File

@ -5,7 +5,7 @@ define([
'/common/outer/sharedfolder.js',
'/customize/messages.js',
'/common/common-feedback.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function (UserObject, Util, Hash, SF, Messages, Feedback, nThen) {

View File

@ -3,7 +3,7 @@ define([
'/components/hyper-json/hyperjson.js',
'/common/toolbar.js',
'json.sortify',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/customize/messages.js',
'/common/hyperscript.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js'

View File

@ -11,7 +11,7 @@ define([
'/common/hyperscript.js',
'/customize/messages.js',
'/customize/pages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/media-tag.js',
'/components/file-saver/FileSaver.min.js',

View File

@ -4,7 +4,7 @@ define([
'/common/common-util.js',
'/common/hyperscript.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
//'/components/chainpad-json-validator/json-ot.js',
'/components/chainpad/chainpad.dist.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/requireconfig.js',
'/customize/messages.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/api/config',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/customize/messages.js',
'/common/sframe-chainpad-netflux-inner.js',
'/common/outer/worker-channel.js',

View File

@ -2,7 +2,7 @@ define([
'jquery',
'/components/chainpad-crypto/crypto.js',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/hyperscript.js',
'/common/messenger-ui.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js'

View File

@ -3,7 +3,7 @@ define([
'/api/config',
'/components/chainpad-crypto/crypto.js',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/hyperscript.js',
'/customize/messages.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js'

View File

@ -4,7 +4,7 @@ define([
'/common/toolbar.js',
'json.sortify',
'/common/common-util.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-hash.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'jquery',
'/common/requireconfig.js',

View File

@ -7,7 +7,7 @@ define([
'/common/common-interface.js',
'/common/common-ui-elements.js',
'/common/common-feedback.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/proxy-manager.js',
'/customize/application_config.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-hash.js',
'/common/common-interface.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js'

View File

@ -6,7 +6,7 @@ define([
'/common/sframe-app-framework.js',
'/common/toolbar.js',
'/form/export.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-util.js',
'/common/common-hash.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'json.sortify',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/sframe-app-framework.js',
'/common/sframe-common-codemirror.js',

View File

@ -1,7 +1,7 @@
define([
'/bower_components/localforage/dist/localforage.min.js',
'/common/outer/cache-store.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
], function (localForage, Cache, nThen) {
nThen(function (w) {
localStorage.clear();

View File

@ -3,7 +3,7 @@ define([
'/api/config',
'/components/chainpad-crypto/crypto.js',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/hyperscript.js',
'/customize/messages.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

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

View File

@ -33,7 +33,7 @@ define([
'/pad/comments.js',
'/pad/export.js',
'/pad/cursor.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/media-tag.js',
'/api/config',
'/common/common-hash.js',

View File

@ -3,7 +3,7 @@ define([
'/common/toolbar.js',
'/common/common-util.js',
'/common/common-hash.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-realtime.js',
'/customize/application_config.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -3,7 +3,7 @@ define([
'/components/chainpad-crypto/crypto.js',
'chainpad-listmap',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-util.js',
'/common/common-hash.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -3,7 +3,7 @@ define([
'/api/config',
'/common/hyperscript.js',
'/customize/messages.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/common-hash.js',
'/common/common-util.js',
'/common/cryptget.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/components/chainpad-crypto/crypto.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-ui-elements.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'jquery',
'/common/requireconfig.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-ui-elements.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js'

View File

@ -1,7 +1,7 @@
define([
'jquery',
'json.sortify',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/slide/slide.js',
'/common/sframe-app-framework.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-ui-elements.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -8,7 +8,7 @@ define([
'/common/common-ui-elements.js',
'/common/common-feedback.js',
'/common/common-constants.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/proxy-manager.js',
'/common/userObject.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',

View File

@ -3,7 +3,7 @@ define([
'/components/chainpad-crypto/crypto.js',
'chainpad-listmap',
'/common/toolbar.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-hash.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'/components/chainpad-crypto/crypto.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-ui-elements.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'jquery',
'/common/requireconfig.js',

View File

@ -1,7 +1,7 @@
define([
'jquery',
'json.sortify',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/sframe-app-framework.js',
'/common/common-util.js',

View File

@ -2,7 +2,7 @@ define([
'jquery',
'/common/toolbar.js',
'/common/cryptpad-common.js',
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/customize/messages.js',

View File

@ -1,6 +1,6 @@
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/components/nthen/index.js',
'/api/config',
'/common/dom-ready.js',
'/common/sframe-common-outer.js'