1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 14:57:46 +01:00

chore(deps): Sostituto lodash con la sua versione "ES Modules"

This commit is contained in:
Maicol Battistini 2021-10-08 13:07:18 +02:00
parent e97e8a7194
commit 6e2e8bf8ab
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
4 changed files with 12 additions and 12 deletions

View File

@ -44,7 +44,7 @@
"jquery": "^3.6.0",
"lit": "^2.0.2",
"locale-code": "^2.0.2",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"mithril": "^2.0.4",
"mithril-node-render": "^3.0.2",
"modern-normalize": "^1.1.0",

View File

@ -8,14 +8,14 @@ export default class Mdi extends Component {
}
/**
Quando MWC supporterà pienamente le icone SVG si potrà fare così:
import * as mdi from '@mdi/js';
import {camelCase} from 'lodash/string';
Quando MWC supporterà pienamente le icone SVG si potrà fare così:
import * as mdi from '@mdi/js';
import {camelCase} from 'lodash-es/string';
return <svg class={`mdi ${vnode.attrs.class ?? ''}`}
{...vnode.attrs} viewBox={vnode.attrs.viewBox ?? '0 0 24 24'}>
<path d={vnode.attrs.icon ? mdi[camelCase(`mdi-${vnode.attrs.icon}`)] : ''} />
</svg>;
return <svg class={`mdi ${vnode.attrs.class ?? ''}`}
{...vnode.attrs} viewBox={vnode.attrs.viewBox ?? '0 0 24 24'}>
<path d={vnode.attrs.icon ? mdi[camelCase(`mdi-${vnode.attrs.icon}`)] : ''} />
</svg>;
@see https://github.com/material-components/material-web/issues/1812
*/
@see https://github.com/material-components/material-web/issues/1812
*/

View File

@ -4,7 +4,7 @@ import '@material/mwc-snackbar';
import type {TextFieldInputMode, TextFieldType} from '@material/mwc-textfield/mwc-textfield-base';
import collect from 'collect.js';
import {snakeCase} from 'lodash/string';
import {snakeCase} from 'lodash-es/string';
import {Children} from 'mithril';
import {Model} from '../../Models';

View File

@ -1,5 +1,5 @@
import {Model as BaseModel, PluralResponse} from 'coloquent';
import {snakeCase} from 'lodash';
import {snakeCase} from 'lodash-es';
export default class Model extends BaseModel {
/**