diff --git a/.eslintrc.js b/.eslintrc.js index a01d8807..e28ab9c2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,13 +1,24 @@ +// Inspired by https://stackoverflow.com/questions/60187885/how-to-configure-vue-cli-4-with-eslint-airbnb-rules-typescript-stylelint-f module.exports = { root: true, env: { node: true, }, - extends: ['plugin:vue/essential', '@vue/airbnb'], + extends: ['plugin:vue/recommended', '@vue/airbnb'], parserOptions: { parser: 'babel-eslint', + ecmaVersion: 2020, }, rules: { + 'class-methods-use-this': 0, + 'max-len': [ + 'error', + { + code: 100, + ignoreComments: true, + ignoreUrls: true, + }, + ], 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'import/no-extraneous-dependencies': ['error', { devDependencies: true }], diff --git a/src/App.vue b/src/App.vue index 9b18b5d6..26ce2276 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,57 +1,93 @@ - + - -
{{ snackbarMsg }}
+ +
+ {{ snackbarMsg }} +
- - + + + :donate-dialog="donateDialog" + :on-close="() => (this.donateDialog = false)" + /> @@ -175,6 +250,14 @@ export default { fscreen.requestFullscreen(document.body); }, }, + watch: { + showRightDrawerButton() { + // TODO: fix this is hacky + if (this.showRightDrawerButton) { + this.SET_RIGHT_SIDEBAR_OPEN(true); + } + }, + }, created() { this.configFetchPromise = this.fetchConfig(); }, @@ -276,14 +359,6 @@ export default { this.loading = false; }, - watch: { - showRightDrawerButton() { - // TODO: fix this is hacky - if (this.showRightDrawerButton) { - this.SET_RIGHT_SIDEBAR_OPEN(true); - } - }, - }, computed: { ...mapGetters([ 'getPlex', diff --git a/src/components/application/joinroom.vue b/src/components/application/joinroom.vue index 28103239..fc90b9f1 100644 --- a/src/components/application/joinroom.vue +++ b/src/components/application/joinroom.vue @@ -1,30 +1,75 @@