chore: cleanup

This commit is contained in:
liyasthomas
2021-08-27 09:37:29 +05:30
parent 46eb7d6786
commit bba4d7fcd9
39 changed files with 104 additions and 110 deletions

View File

@@ -66,11 +66,9 @@ export function unbindAction(action: HoppAction, handler: () => void) {
export function defineActionHandler(action: HoppAction, handler: () => void) {
onMounted(() => {
bindAction(action, handler)
console.log(`Action bound: ${action}`)
})
onBeforeUnmount(() => {
unbindAction(action, handler)
console.log(`Action unbound: ${action}`)
})
}

View File

@@ -94,8 +94,6 @@ async function toggleStar(entry: any, col: HistoryFBCollections) {
if (currentUser$.value == null)
throw new Error("User not logged in to toggle star")
console.log(entry)
try {
await firebase
.firestore()
@@ -207,7 +205,3 @@ export function initHistory() {
}
})
}
restHistoryStore.dispatches$.subscribe((state) => {
console.log(state)
})

View File

@@ -76,7 +76,6 @@ export function startRequestSync(): Subscription {
)
.subscribe(() => {
// NOTE: This subscription should be kept
console.log("synced request")
})
return sub

View File

@@ -158,12 +158,10 @@ export function useKeybindingDisabler() {
// TODO: Move to a lock based system that keeps the bindings disabled until all locks are lifted
const disableKeybindings = () => {
keybindingsEnabled = false
console.log("Keybinds disabled by a component")
}
const enableKeybindings = () => {
keybindingsEnabled = true
console.log("Keybinds enabled by a component")
}
return {

View File

@@ -8,7 +8,6 @@ export const lenses = [jsonLens, imageLens, htmlLens, xmlLens, rawLens]
export function getSuitableLenses(response) {
const contentType = response.headers.find((h) => h.key === "content-type")
console.log(contentType)
if (!contentType) return [rawLens]