cleanup console logs (changed actual proper logs to .info())

This commit is contained in:
Henry Jameson 2025-12-19 19:13:24 +02:00
commit c71a36de30
9 changed files with 6 additions and 12 deletions

View file

@ -29,9 +29,9 @@ const copyPlugin = ({ inUrl, inFs }) => {
order: 'post', order: 'post',
sequential: true, sequential: true,
async handler () { async handler () {
console.log(`Copying '${inFs}' to ${copyTarget}...`) console.info(`Copying '${inFs}' to ${copyTarget}...`)
await cp(inFs, copyTarget, { recursive: true }) await cp(inFs, copyTarget, { recursive: true })
console.log('Done.') console.info('Done.')
} }
} }
}] }]

View file

@ -178,7 +178,7 @@ export const buildSwPlugin = ({
order: 'post', order: 'post',
sequential: true, sequential: true,
async handler () { async handler () {
console.log('Building service worker for production') console.info('Building service worker for production')
await build(config) await build(config)
} }
} }

View file

@ -10,7 +10,6 @@ export default {
methods: { methods: {
...Setting.methods, ...Setting.methods,
getValue (e) { getValue (e) {
console.log(e)
return e return e
} }
} }

View file

@ -237,7 +237,6 @@ const AppearanceTab = {
return !window.IntersectionObserver return !window.IntersectionObserver
}, },
instanceWallpaper () { instanceWallpaper () {
console.log(this.$store.state.instance.background)
this.$store.state.instance.background this.$store.state.instance.background
}, },
instanceWallpaperUsed () { instanceWallpaperUsed () {

View file

@ -152,7 +152,6 @@ const ClutterTab = {
}, },
purgeExpiredFilters () { purgeExpiredFilters () {
this.muteFiltersExpired.forEach(([id]) => { this.muteFiltersExpired.forEach(([id]) => {
console.log(id)
delete this.muteFiltersDraftObject[id] delete this.muteFiltersDraftObject[id]
this.unsetPreference({ path: 'simple.muteFilters.' + id , value: null }) this.unsetPreference({ path: 'simple.muteFilters.' + id , value: null })
}) })

View file

@ -123,7 +123,6 @@ const adminSettingsStorage = {
const preserveTuples = path.find(x => x === ':rate_limit') const preserveTuples = path.find(x => x === ':rate_limit')
set(config, path, convert(c.value, false, preserveTuples)) set(config, path, convert(c.value, false, preserveTuples))
}) })
console.log('CONFIG', JSON.parse(JSON.stringify(config)))
// patching http adapter config to be easier to handle // patching http adapter config to be easier to handle
const adapter = config[':pleroma'][':http'][':adapter'] const adapter = config[':pleroma'][':http'][':adapter']
if (Array.isArray(adapter)) { if (Array.isArray(adapter)) {
@ -151,7 +150,6 @@ const adminSettingsStorage = {
const descriptions = {} const descriptions = {}
backendDescriptions.forEach(d => convert(d, '', descriptions)) backendDescriptions.forEach(d => convert(d, '', descriptions))
console.log('DESCRIPTIONS', descriptions)
commit('updateAdminDescriptions', { descriptions }) commit('updateAdminDescriptions', { descriptions })
}, },

View file

@ -527,7 +527,6 @@ export const useInterfaceStore = defineStore('interface', {
async applyTheme ( async applyTheme (
{ recompile = false } = {} { recompile = false } = {}
) { ) {
console.log('Apply')
const { const {
forceThemeRecompilation, forceThemeRecompilation,
themeDebug, themeDebug,

View file

@ -145,7 +145,7 @@ describe('Draft saving', () => {
const saveButton = wrapper.findByText('button', $t('post_status.close_confirm_save_button')) const saveButton = wrapper.findByText('button', $t('post_status.close_confirm_save_button'))
expect(saveButton).to.be.ok expect(saveButton).to.be.ok
await saveButton.trigger('click') await saveButton.trigger('click')
console.log('clicked') console.info('clicked')
expect(wrapper.vm.$store.getters.draftCount).to.equal(1) expect(wrapper.vm.$store.getters.draftCount).to.equal(1)
await flushPromises() await flushPromises()
await waitForEvent(wrapper, 'can-close') await waitForEvent(wrapper, 'can-close')

View file

@ -10,11 +10,11 @@ const getMockStorage = () => {
return { return {
getItem: vi.fn(async key => { getItem: vi.fn(async key => {
console.log('get:', key, state[key]) console.info('get:', key, state[key])
return state[key] return state[key]
}), }),
setItem: vi.fn(async (key, value) => { setItem: vi.fn(async (key, value) => {
console.log('set:', key, value) console.info('set:', key, value)
state[key] = value state[key] = value
}), }),
_clear: () => { _clear: () => {