mirror of
1
Fork 0

clean up debug logging calls

This commit is contained in:
f0x 2022-09-20 17:09:47 +02:00
parent 60a8dcf98c
commit b6f8d2b207
4 changed files with 0 additions and 18 deletions

View File

@ -35,7 +35,6 @@ module.exports = function Login({error}) {
// check if current domain runs an instance // check if current domain runs an instance
let currentDomain = window.location.origin; let currentDomain = window.location.origin;
Promise.try(() => { Promise.try(() => {
console.log("trying", currentDomain);
return dispatch(api.instance.fetchWithoutStore(currentDomain)); return dispatch(api.instance.fetchWithoutStore(currentDomain));
}).then(() => { }).then(() => {
if (instanceFieldRef.current.length == 0) { // user hasn't started typing yet if (instanceFieldRef.current.length == 0) { // user hasn't started typing yet

View File

@ -120,7 +120,6 @@ module.exports = function ({ apiCall, getChanges }) {
if (domains.length == 0) { if (domains.length == 0) {
return; return;
} }
console.log(domains);
const update = { const update = {
domains: new Blob([JSON.stringify(domains)], {type: "application/json"}) domains: new Blob([JSON.stringify(domains)], {type: "application/json"})

View File

@ -82,7 +82,6 @@ module.exports = function oauthAPI({ apiCall, getCurrentUrl }) {
code: code code: code
})); }));
}).then((json) => { }).then((json) => {
console.log(json);
window.history.replaceState({}, document.title, window.location.pathname); window.history.replaceState({}, document.title, window.location.pathname);
return dispatch(oauth.login(json)); return dispatch(oauth.login(json));
}); });
@ -110,8 +109,6 @@ module.exports = function oauthAPI({ apiCall, getCurrentUrl }) {
]); ]);
}).catch(AuthenticationError, () => { }).catch(AuthenticationError, () => {
return dispatch(oauth.setAdmin(false)); return dispatch(oauth.setAdmin(false));
}).catch((e) => {
console.log("caught", e, e instanceof AuthenticationError);
}); });
}; };
}, },

View File

@ -51,12 +51,9 @@ module.exports = function getViews(struct) {
delete entries.adminOnly; delete entries.adminOnly;
} }
console.log(name, entries);
let base = `/settings/${urlSafe(name)}`; let base = `/settings/${urlSafe(name)}`;
let links = []; let links = [];
let routes = [];
let firstRoute; let firstRoute;
@ -87,16 +84,6 @@ module.exports = function getViews(struct) {
</Route> </Route>
); );
// let childrenPath = `${base}/:section`;
// panelRouterEl.push(...routes);
console.log(panelRouterEl);
// <Route key={childrenPath} path={childrenPath}>
// <Switch id="childrenPath-switch">
// {routes}
// </Switch>
// </Route>
// );
sidebarEl.push( sidebarEl.push(
<React.Fragment key={name}> <React.Fragment key={name}>
<Link href={firstRoute}> <Link href={firstRoute}>