mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)
* ensure that eslint runs on all frontend code * remove tslint from `design-system` * enable prettier and eslint-prettier for `design-system` * Delete tslint.json * use a single editorconfig for the repo * enable prettier for all code in `design-system` * more linting fixes on design-system * ignore coverage for git and prettier * lintfix on editor-ui
This commit is contained in:
committed by
GitHub
parent
d96d6f11db
commit
13659d036f
@@ -1,5 +1,11 @@
|
||||
<template>
|
||||
<div :class="{'n8n-select': true, [$style.container]: true, [$style.withPrepend]: !!$slots.prepend}">
|
||||
<div
|
||||
:class="{
|
||||
'n8n-select': true,
|
||||
[$style.container]: true,
|
||||
[$style.withPrepend]: !!$slots.prepend,
|
||||
}"
|
||||
>
|
||||
<div v-if="$slots.prepend" :class="$style.prepend">
|
||||
<slot name="prepend" />
|
||||
</div>
|
||||
@@ -41,8 +47,7 @@ export default Vue.extend({
|
||||
ElSelect, // eslint-disable-line @typescript-eslint/no-unsafe-assignment
|
||||
},
|
||||
props: {
|
||||
value: {
|
||||
},
|
||||
value: {},
|
||||
size: {
|
||||
type: String,
|
||||
default: 'large',
|
||||
@@ -112,21 +117,21 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
focus() {
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
const select = this.$refs.innerSelect as (Vue & HTMLElement) | undefined;
|
||||
if (select) {
|
||||
select.focus();
|
||||
}
|
||||
},
|
||||
blur() {
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
const select = this.$refs.innerSelect as (Vue & HTMLElement) | undefined;
|
||||
if (select) {
|
||||
select.blur();
|
||||
}
|
||||
},
|
||||
focusOnInput() {
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
const select = this.$refs.innerSelect as (Vue & HTMLElement) | undefined;
|
||||
if (select) {
|
||||
const input = select.$refs.input as Vue & HTMLElement | undefined;
|
||||
const input = select.$refs.input as (Vue & HTMLElement) | undefined;
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user