mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-16 22:50:32 -05:00
fix(ui): eslint no-console warnings
This commit is contained in:
@@ -25,6 +25,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
loadAddon (addon) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[UI] Loading client addon ${addon.id} (${addon.url})...`)
|
||||
const script = document.createElement('script')
|
||||
script.setAttribute('src', addon.url)
|
||||
|
||||
@@ -216,6 +216,7 @@ export default {
|
||||
this.refresh()
|
||||
this.$emit('continue')
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
this.loading--
|
||||
|
||||
@@ -27,6 +27,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
loadLocale (locale) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[UI] Locale ${locale.lang} updated with new strings`)
|
||||
mergeLocale(locale.lang, locale.strings)
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ export default {
|
||||
}
|
||||
})
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
this.updating = false
|
||||
|
||||
@@ -35,6 +35,7 @@ async function autoDetect () {
|
||||
if (lang !== 'en') {
|
||||
await autoInstallLocale(lang)
|
||||
i18n.locale = lang
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[UI] Automatically loaded ${lang} locale`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ export default class ClientAddonApi {
|
||||
this.components.set(id, definition)
|
||||
const componentId = toComponentId(id)
|
||||
Vue.component(componentId, definition)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[ClientAddonApi] Registered ${componentId} component`)
|
||||
// Call listeners
|
||||
const listeners = this.componentListeners.get(id)
|
||||
@@ -48,6 +49,7 @@ export default class ClientAddonApi {
|
||||
children: routes
|
||||
}
|
||||
])
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[ClientAddonApi] Registered new routes under the /addon/${id} route`)
|
||||
}
|
||||
|
||||
@@ -59,6 +61,7 @@ export default class ClientAddonApi {
|
||||
*/
|
||||
addLocalization (lang, strings) {
|
||||
mergeLocale(lang, strings)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`[ClientAddonApi] Registered new strings for locale ${lang}`)
|
||||
}
|
||||
|
||||
|
||||
@@ -517,6 +517,7 @@ export default {
|
||||
this.$router.push({ name: 'project-home' })
|
||||
this.reset()
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,6 +261,7 @@ export default {
|
||||
})
|
||||
this.tabId = 'config'
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
},
|
||||
@@ -282,6 +283,7 @@ export default {
|
||||
})
|
||||
this.cancelInstall()
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
},
|
||||
@@ -296,6 +298,7 @@ export default {
|
||||
})
|
||||
this.tabId = 'diff'
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
},
|
||||
@@ -307,6 +310,7 @@ export default {
|
||||
})
|
||||
this.close()
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user