refactor: ♻️ Fix errori ESLint

This commit is contained in:
Maicol Battistini 2022-03-14 11:41:10 +01:00
parent 813d42e338
commit 125bd6fe64
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
9 changed files with 12 additions and 14 deletions

View File

@ -61,7 +61,7 @@ export default class TableColumn extends Component<Attributes> {
<text-field
outlined
className="mdc-data-table__filter-textfield"
label={__('Filtro') as string}
label={__('Filtro')}
compact
/>
</div>

View File

@ -12,7 +12,7 @@ export interface DrawerAttributes {
open: boolean;
}
export default class Drawer extends Component<DrawerAttributes> {
export class Drawer extends Component<DrawerAttributes> {
view(vnode: Vnode<DrawerAttributes>): Children {
return (
<material-drawer type={isMobile() ? 'modal' : 'dismissible'} open={vnode.attrs.open}>

View File

@ -3,7 +3,7 @@ import {Vnode} from 'mithril';
import {MaterialIcons} from '../../../typings';
import Component from '../../Component';
import Mdi from '../../Mdi';
import {TopAppBarAttributes} from '../TopAppBar';
import {TopAppBarAttributes} from '.';
export interface TopAppBarActionAttributes {
id?: string,
@ -17,8 +17,8 @@ export default class TopAppBarAction extends Component<TopAppBarAttributes> {
<icon-button id={this.attrs.pull('id') ?? crypto.randomUUID()} slot="actionItems"
aria-label={this.attrs.pull('label')} {...this.attrs.except(['icon'])
.all()}>
{this.attrs.has('icon') ?
<Mdi icon={this.attrs.pull('icon') as MaterialIcons}/> : vnode.children}
{this.attrs.has('icon')
? <Mdi icon={this.attrs.pull('icon') as MaterialIcons}/> : vnode.children}
</icon-button>
);
}

View File

@ -1,7 +1,7 @@
import {
type PluralResponse,
Model as BaseModel,
PaginationStrategy,
type PluralResponse
PaginationStrategy
} from 'coloquent';
import {snakeCase} from 'lodash-es';

View File

@ -2,12 +2,11 @@ import '@maicol07/mwc-card';
import '../WebComponents/TextField';
import {Inertia} from '@inertiajs/inertia';
import logoUrl from '@openstamanager/images/logo_completo.png';
import type {Cash} from 'cash-dom';
import type {VnodeDOM} from 'mithril';
import redaxios from 'redaxios';
import logoUrl from '@openstamanager/images/logo_completo.png';
import LoadingButton from '../Components/LoadingButton';
import Mdi from '../Components/Mdi';
import Page from '../Components/Page';

View File

@ -4,6 +4,7 @@ import '@maicol07/mwc-layout-grid';
import '../WebComponents/TextField';
import {Inertia} from '@inertiajs/inertia';
import logoUrl from '@openstamanager/images/logo_completo.png';
import type {Cash} from 'cash-dom';
import type {
Vnode,
@ -11,8 +12,6 @@ import type {
} from 'mithril';
import redaxios from 'redaxios';
import logoUrl from '@openstamanager/images/logo_completo.png';
import LoadingButton from '../Components/LoadingButton';
import Mdi from '../Components/Mdi';
import Page from '../Components/Page';

View File

@ -3,13 +3,13 @@ import './WebComponents/IconButton';
import './WebComponents/MaterialDrawer';
import './WebComponents/TopAppBar';
import {Inertia} from '@inertiajs/inertia';
import {Button} from '@material/mwc-button';
import type {Dialog as MWCDialog} from '@material/mwc-dialog';
import {Menu as MWCMenu} from '@material/mwc-menu';
import $ from 'cash-dom';
import {IconButton} from './WebComponents';
import {Inertia} from '@inertiajs/inertia';
/**
* Handles the click event of the trigger button of a MWC Dialog or Menu.

View File

@ -5,8 +5,8 @@ import {
TextFieldType
} from '@material/mwc-textfield';
import {MaterialIcons} from './icons';
import {Model} from '../Models';
import {MaterialIcons} from './icons';
export interface FieldT {
id?: string

View File

@ -6593,4 +6593,4 @@ export type MaterialIcons =
| 'zodiac-sagittarius'
| 'zodiac-scorpio'
| 'zodiac-taurus'
| 'zodiac-virgo'
| 'zodiac-virgo';