Remove debugging logs

This commit is contained in:
yflory 2025-03-21 18:25:38 +01:00
parent 82f2aa2847
commit 71dd9592e6
8 changed files with 1 additions and 36449 deletions

View File

@ -1864,11 +1864,9 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
postMessage(clientId, "PAD_CACHE");
},
onCacheReady: function () {
console.error('PAD CACHE READY');
postMessage(clientId, "PAD_CACHE_READY");
},
onReady: function (pad) {
console.error('PAD READY');
var padData = pad.metadata || {};
channel.data = padData;
if (padData && padData.validateKey && store.messenger) {
@ -2780,7 +2778,6 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
addSharedFolderHandler();
userObject.migrate(waitFor());
}).nThen(function (waitFor) {
console.error('START LOADING SF');
var network = store.network || store.networkPromise;
SF.loadSharedFolders(Store, network, store,
drive.proxy, userObject, waitFor, obj => {
@ -2791,11 +2788,8 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
postMessage(clientId, 'LOADING_DRIVE', data);
}, true);
}).nThen(function (waitFor) {
console.error('SF CACHE READY');
loadUniversal(Team, 'team', waitFor, clientId);
}).nThen(function (waitFor) {
console.error('TEAM CACHE READY');
loadUniversal(Calendar, 'calendar', waitFor);
}).nThen(function () {
cb();
@ -2877,7 +2871,6 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
if (store.modules['team']) { store.modules['team'].onReady(waitFor); }
loadUniversal(Support, 'support', waitFor);
}).nThen(function () {
console.error('SF & TEAM READY');
var requestLogin = function () {
broadcast([], "REQUEST_LOGIN");
};

View File

@ -23,7 +23,6 @@ const init = (config) => {
const drive = store.drive = store.drive || {};
let data = store.proxy?.drive;
console.error(data, store.proxy);
const hash:string = data?.hash || Hash.createRandomHash('drive');
// Update loading screen status

View File

@ -16,11 +16,9 @@ let start = (setConfig) => {
};
globalThis.window = globalThis;
addEventListener('connect', (e) => {
console.error("TEST");
console.debug('New SharedWorker client');
const port = e.ports[0];
const postMsg = (data) => { port.postMessage(data); };
console.error(port);
let connected = false;
let onMsg;
let onClose = () => {};

View File

@ -78,55 +78,18 @@ let start = (cfg: StoreConfig):void => {
dep.setCustomize(cfg);
}
});
/*
const AppConfig = cfg.AppConfig;
const ApiConfig = cfg.ApiConfig;
let test = TestModule.init({
emit: () => {}
}, () => {
console.log('Test initialized');
});
let b64 = test.toBase64('pewpewPEZPEZ');
console.error(b64);
console.error(AppConfig.minimumPasswordLength, AppConfig.degradedLimit);
console.error(Hash.getSecrets);
console.error(Util.mkEvent);
console.error(Messaging.createData);
console.log('UO & UOSetter:');
console.error(UO.getDefaultName({type:'pad'}));
console.error(UO.getDefaultName);
console.error(UOSetter.init);
console.error(ProxyManager.createInner);
console.log('Pinpad');
console.error(Pinpad.create);
console.error(LoginBlock.getBlockUrl);
console.error(Mailbox.init, Cursor.init, Support.init, Integration.init);
console.error(Profile.init, OnlyOffice.init, Team.init, Messenger.init);
console.error(History.init, Calendar.init);
//Util.fetchApi(ApiConfig.httpUnsafeOrigin, 'config', true, console.error);
//Util.fetchApi(ApiConfig.httpUnsafeOrigin, 'config', false, console.error);
console.error(Store);
//let StoreObj = Store.create({});
//console.error(StoreObj);
*/
};
let inWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;
let inSharedWorker = typeof SharedWorkerGlobalScope !== 'undefined' && self instanceof SharedWorkerGlobalScope;
let store = {};
if (inSharedWorker) {
console.error('SHAREDWORKER');
SWConnector.start(start);
} else if (inWorker) {
console.error("WEBWORKER");
WWConnector.start(start);
} else if (typeof module !== 'undefined' && typeof module.exports) {
console.error('NODEJS');
store = AsyncConnector.start(start);
} else {
console.error('BROWSER');
store = AsyncConnector.start(start);
}

View File

@ -2381,7 +2381,6 @@ define([
$displayName.text(newName);
if ((accountName && oldUrl !== url) || !accountName && uid !== oldUid || oldName !== newName) {
$avatar.html('');
if (newName) { console.error("AVATAR IN TOOLBAR", newName); } // XXX
Common.displayAvatar($avatar, url, newName, function ($img) {
oldUrl = url;
oldUid = uid;

View File

@ -2727,7 +2727,6 @@ define([
console.log('Posting CONNECT');
postMessage('CONNECT', cfg, function (data) {
console.error('CC CALLED BACK');
// FIXME data should always exist
// this indicates a false condition in sharedWorker
// got here via a reference error:

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long