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',
sequential: true,
async handler () {
console.log(`Copying '${inFs}' to ${copyTarget}...`)
console.info(`Copying '${inFs}' to ${copyTarget}...`)
await cp(inFs, copyTarget, { recursive: true })
console.log('Done.')
console.info('Done.')
}
}
}]

View file

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

View file

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

View file

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

View file

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

View file

@ -123,7 +123,6 @@ const adminSettingsStorage = {
const preserveTuples = path.find(x => x === ':rate_limit')
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
const adapter = config[':pleroma'][':http'][':adapter']
if (Array.isArray(adapter)) {
@ -151,7 +150,6 @@ const adminSettingsStorage = {
const descriptions = {}
backendDescriptions.forEach(d => convert(d, '', descriptions))
console.log('DESCRIPTIONS', descriptions)
commit('updateAdminDescriptions', { descriptions })
},

View file

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

View file

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

View file

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