cleanup stray console logs

This commit is contained in:
Henry Jameson 2023-12-14 00:14:06 +02:00
parent 5ad8f2cd5c
commit ff10834f1a
8 changed files with 5 additions and 12 deletions

View File

@ -52,7 +52,6 @@ const QuickViewSettings = {
get () { return this.mergedConfig.mentionLinkShowAvatar }, get () { return this.mergedConfig.mentionLinkShowAvatar },
set () { set () {
const value = !this.showUserAvatars const value = !this.showUserAvatars
console.log(value)
this.$store.dispatch('setOption', { name: 'mentionLinkShowAvatar', value }) this.$store.dispatch('setOption', { name: 'mentionLinkShowAvatar', value })
} }
}, },

View File

@ -16,7 +16,6 @@ const Report = {
}, },
computed: { computed: {
report () { report () {
console.log(this.$store.state.reports.reports[this.reportId] || {})
return this.$store.state.reports.reports[this.reportId] || {} return this.$store.state.reports.reports[this.reportId] || {}
}, },
state: { state: {

View File

@ -755,7 +755,6 @@ export default {
selected () { selected () {
this.selectedTheme = Object.entries(this.availableStyles).find(([k, s]) => { this.selectedTheme = Object.entries(this.availableStyles).find(([k, s]) => {
if (Array.isArray(s)) { if (Array.isArray(s)) {
console.log(s[0] === this.selected, this.selected)
return s[0] === this.selected return s[0] === this.selected
} else { } else {
return s.name === this.selected return s.name === this.selected

View File

@ -38,7 +38,7 @@ export default function createPersistedState ({
}, },
setState = (key, state, storage) => { setState = (key, state, storage) => {
if (!loaded) { if (!loaded) {
console.log('waiting for old state to be loaded...') console.info('waiting for old state to be loaded...')
return Promise.resolve() return Promise.resolve()
} else { } else {
return storage.setItem(key, state) return storage.setItem(key, state)
@ -65,7 +65,7 @@ export default function createPersistedState ({
} }
loaded = true loaded = true
} catch (e) { } catch (e) {
console.log("Couldn't load state") console.error("Couldn't load state")
console.error(e) console.error(e)
loaded = true loaded = true
} }
@ -86,8 +86,8 @@ export default function createPersistedState ({
}) })
} }
} catch (e) { } catch (e) {
console.log("Couldn't persist state:") console.error("Couldn't persist state:")
console.log(e) console.error(e)
} }
}) })
} }

View File

@ -104,7 +104,6 @@ const adminSettingsStorage = {
} }
set(config, path, convert(c.value)) set(config, path, convert(c.value))
}) })
console.log(config[':pleroma'])
commit('updateAdminSettings', { config, modifiedPaths }) commit('updateAdminSettings', { config, modifiedPaths })
commit('resetAdminDraft') commit('resetAdminDraft')
}, },
@ -122,7 +121,6 @@ const adminSettingsStorage = {
const descriptions = {} const descriptions = {}
backendDescriptions.forEach(d => convert(d, '', descriptions)) backendDescriptions.forEach(d => convert(d, '', descriptions))
console.log(descriptions[':pleroma']['Pleroma.Captcha'])
commit('updateAdminDescriptions', { descriptions }) commit('updateAdminDescriptions', { descriptions })
}, },

View File

@ -419,7 +419,6 @@ const serverSideStorage = {
actions: { actions: {
pushServerSideStorage ({ state, rootState, commit }, { force = false } = {}) { pushServerSideStorage ({ state, rootState, commit }, { force = false } = {}) {
const needPush = state.dirty || force const needPush = state.dirty || force
console.log(needPush)
if (!needPush) return if (!needPush) return
commit('updateCache', { username: rootState.users.currentUser.fqn }) commit('updateCache', { username: rootState.users.currentUser.fqn })
const params = { pleroma_settings_store: { 'pleroma-fe': state.cache } } const params = { pleroma_settings_store: { 'pleroma-fe': state.cache } }

View File

@ -667,7 +667,7 @@ const users = {
resolve() resolve()
}) })
.catch((error) => { .catch((error) => {
console.log(error) console.error(error)
commit('endLogin') commit('endLogin')
reject(new Error('Failed to connect to server, try again')) reject(new Error('Failed to connect to server, try again'))
}) })

View File

@ -87,7 +87,6 @@ export async function initServiceWorker (store) {
await getOrCreateServiceWorker() await getOrCreateServiceWorker()
navigator.serviceWorker.addEventListener('message', (event) => { navigator.serviceWorker.addEventListener('message', (event) => {
const { dispatch } = store const { dispatch } = store
console.log('SW MESSAGE', event)
const { type, ...rest } = event.data const { type, ...rest } = event.data
switch (type) { switch (type) {