Lint
This commit is contained in:
parent
5da6bd709b
commit
77408e89ff
|
@ -7,6 +7,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@inertiajs/inertia": "^0.11.0",
|
"@inertiajs/inertia": "^0.11.0",
|
||||||
"@inertiajs/inertia-vue": "^0.8.0",
|
"@inertiajs/inertia-vue": "^0.8.0",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
"merge": "^2.1.1",
|
"merge": "^2.1.1",
|
||||||
"postcss-import": "^14.0.1",
|
"postcss-import": "^14.0.1",
|
||||||
"query-string": "^7.0.0",
|
"query-string": "^7.0.0",
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@inertiajs/inertia": "^0.11.0",
|
"@inertiajs/inertia": "^0.11.0",
|
||||||
"@inertiajs/inertia-vue": "^0.8.0",
|
"@inertiajs/inertia-vue": "^0.8.0",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
"merge": "^2.1.1",
|
"merge": "^2.1.1",
|
||||||
"postcss-import": "^14.0.1",
|
"postcss-import": "^14.0.1",
|
||||||
"query-string": "^7.0.0",
|
"query-string": "^7.0.0",
|
||||||
|
|
|
@ -31,8 +31,8 @@ new Vue({
|
||||||
render: h => h(InertiaApp, {
|
render: h => h(InertiaApp, {
|
||||||
props: {
|
props: {
|
||||||
initialPage: JSON.parse(el.dataset.page),
|
initialPage: JSON.parse(el.dataset.page),
|
||||||
resolveComponent: name => {
|
resolveComponent: async name => {
|
||||||
var page = require(`./views/${name}`).default;
|
var page = (await import(`./views/${name}`)).default;
|
||||||
|
|
||||||
if (page.layout === undefined) {
|
if (page.layout === undefined) {
|
||||||
page.layout = AppLayout;
|
page.layout = AppLayout;
|
||||||
|
|
|
@ -57,10 +57,6 @@ export default {
|
||||||
},
|
},
|
||||||
items: {
|
items: {
|
||||||
default: undefined
|
default: undefined
|
||||||
},
|
|
||||||
size: {
|
|
||||||
default: null,
|
|
||||||
type: String
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import mapValues from 'lodash/mapValues';
|
|
||||||
import keyBy from 'lodash/keyBy';
|
|
||||||
import map from 'lodash/map';
|
import map from 'lodash/map';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -45,10 +45,6 @@ export default {
|
||||||
},
|
},
|
||||||
items: {
|
items: {
|
||||||
default: undefined
|
default: undefined
|
||||||
},
|
|
||||||
size: {
|
|
||||||
default: null,
|
|
||||||
type: String
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="grid gap-2 has-contents">
|
<div class="grid gap-2 has-contents">
|
||||||
<transition-group name="fadeRight" tag="div">
|
<transition-group name="fadeRight" tag="div">
|
||||||
<div v-for="(item, index) in items" :key="'i'+index"
|
<div v-for="item, index in items" :key="'i'+index"
|
||||||
:class="`${colors[item.type].bg} ${colors[item.type].text} h-12 flex flex-col items-start justify-center shadow-2xl rounded-sm px-6`"
|
:class="`${colors[item.type].bg} ${colors[item.type].text} h-12 flex flex-col items-start justify-center shadow-2xl rounded-sm px-6`"
|
||||||
>
|
>
|
||||||
<div class="text-sm" v-for="message in item.messages" v-text="message"></div>
|
<div class="text-sm" v-for="message, mindex in item.messages" :key="mindex" v-text="message"></div>
|
||||||
</div>
|
</div>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue