cleanup console logs (changed actual proper logs to .info())
This commit is contained in:
parent
7d88140bb4
commit
c71a36de30
9 changed files with 6 additions and 12 deletions
|
|
@ -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.')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
...Setting.methods,
|
...Setting.methods,
|
||||||
getValue (e) {
|
getValue (e) {
|
||||||
console.log(e)
|
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 () {
|
||||||
|
|
|
||||||
|
|
@ -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 })
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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 })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
|
|
@ -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: () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue