refactor: ♻️ Fix errori ESLint
This commit is contained in:
parent
813d42e338
commit
125bd6fe64
|
@ -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>
|
||||
|
|
|
@ -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}>
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
type PluralResponse,
|
||||
Model as BaseModel,
|
||||
PaginationStrategy,
|
||||
type PluralResponse
|
||||
PaginationStrategy
|
||||
} from 'coloquent';
|
||||
import {snakeCase} from 'lodash-es';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6593,4 +6593,4 @@ export type MaterialIcons =
|
|||
| 'zodiac-sagittarius'
|
||||
| 'zodiac-scorpio'
|
||||
| 'zodiac-taurus'
|
||||
| 'zodiac-virgo'
|
||||
| 'zodiac-virgo';
|
||||
|
|
Loading…
Reference in New Issue