Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit 9659700

Browse files
committed
fixed: upgrade eslint config adenvt side-effect
1 parent 4f06c25 commit 9659700

31 files changed

+1457
-1457
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ services:
77

88
before_install:
99
- cp .env.travis .env
10-
- npm run lint
1110

1211
install:
1312
- docker-compose up -d --build prod

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LABEL maintainer="Ade Novid <adenvt@gmail.com>"
55
WORKDIR /var/www
66
COPY package.json /var/www
77
COPY package-lock.json /var/www
8+
RUN npm run lint
89
RUN npm ci
910

1011
COPY . /var/www

resources/js/coreui/components/Aside.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<b-tabs>
44
<b-tab>
55
<template slot="title">
6-
<i class='icon-list'/>
6+
<i class="icon-list"/>
77
</template>
88
<Callout class="m-0 py-2 text-muted text-center bg-light text-uppercase">
99
<small><b>Today</b></small>
@@ -144,7 +144,7 @@
144144
</b-tab>
145145
<b-tab>
146146
<template slot="title">
147-
<i class='icon-speech'/>
147+
<i class="icon-speech"/>
148148
</template>
149149
<div class="p-3">
150150
<div class="message">
@@ -250,22 +250,22 @@
250250
</b-tab>
251251
<b-tab>
252252
<template slot="title">
253-
<i class='icon-settings'/>
253+
<i class="icon-settings"/>
254254
</template>
255255
<div class="p-3">
256256
<h6>Settings</h6>
257257
<div class="aside-options">
258258
<div class="clearfix mt-4">
259259
<small><b>Option 1</b></small>
260260
<c-switch
261+
:pill="true"
262+
:checked="true"
261263
type="text"
262264
variant="success"
263265
on="on"
264266
off="off"
265-
:pill="true"
266267
size="sm"
267-
class="float-right"
268-
:checked="true"/>
268+
class="float-right"/>
269269
</div>
270270
<div>
271271
<small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
@@ -275,11 +275,11 @@
275275
<div class="clearfix mt-3">
276276
<small><b>Option 2</b></small>
277277
<c-switch
278+
:pill="true"
278279
type="text"
279280
variant="success"
280281
on="on"
281282
off="off"
282-
:pill="true"
283283
size="sm"
284284
class="float-right"/>
285285
</div>
@@ -291,11 +291,11 @@
291291
<div class="clearfix mt-3">
292292
<small><b>Option 3</b></small>
293293
<c-switch
294+
:pill="true"
294295
type="text"
295296
variant="success"
296297
on="on"
297298
off="off"
298-
:pill="true"
299299
size="sm"
300300
class="float-right"/>
301301
</div>
@@ -304,45 +304,45 @@
304304
<div class="clearfix mt-3">
305305
<small><b>Option 4</b></small>
306306
<c-switch
307+
:pill="true"
308+
:checked="true"
307309
type="text"
308310
variant="success"
309311
on="on"
310312
off="off"
311-
:pill="true"
312313
size="sm"
313-
class="float-right"
314-
:checked="true"/>
314+
class="float-right"/>
315315
</div>
316316
</div>
317317
<hr>
318318
<h6>System Utilization</h6>
319319
<div class="text-uppercase mb-1 mt-4"><small><b>CPU Usage</b></small></div>
320320
<b-progress
321-
height={}
321+
:value="25"
322+
height="{}"
322323
class="progress-xs"
323-
variant="info"
324-
:value="25"/>
324+
variant="info"/>
325325
<small class="text-muted">348 Processes. 1/4 Cores.</small>
326326
<div class="text-uppercase mb-1 mt-2"><small><b>Memory Usage</b></small></div>
327327
<b-progress
328-
height={}
328+
:value="70"
329+
height="{}"
329330
class="progress-xs"
330-
variant="warning"
331-
:value="70"/>
331+
variant="warning"/>
332332
<small class="text-muted">11444GB/16384MB</small>
333333
<div class="text-uppercase mb-1 mt-2"><small><b>SSD 1 Usage</b></small></div>
334334
<b-progress
335-
height={}
335+
:value="95"
336+
height="{}"
336337
class="progress-xs"
337-
variant="danger"
338-
:value="95"/>
338+
variant="danger"/>
339339
<small class="text-muted">243GB/256GB</small>
340340
<div class="text-uppercase mb-1 mt-2"><small><b>SSD 2 Usage</b></small></div>
341341
<b-progress
342-
height={}
342+
:value="10"
343+
height="{}"
343344
class="progress-xs"
344-
variant="success"
345-
:value="10"/>
345+
variant="success"/>
346346
<small class="text-muted">25GB/256GB</small>
347347
</div>
348348
</b-tab>

resources/js/coreui/components/Breadcrumb.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<ol class="breadcrumb">
33
<li
4-
class="breadcrumb-item"
4+
v-for="(item, index) in list"
55
:key="index"
6-
v-for="(item, index) in list">
6+
class="breadcrumb-item">
77
<span
8-
class="active"
9-
v-if="isLast(index)">{{ showName(item) }}</span>
8+
v-if="isLast(index)"
9+
class="active">{{ showName(item) }}</span>
1010
<router-link
11-
:to="item"
12-
v-else>{{ showName(item) }}</router-link>
11+
v-else
12+
:to="item">{{ showName(item) }}</router-link>
1313
</li>
1414
</ol>
1515
</template>

resources/js/coreui/components/Select.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,6 @@ export default {
3939
data () {
4040
return { localValue: this.value }
4141
},
42-
watch: {
43-
value (value) {
44-
$(this.$el)
45-
.val(value)
46-
.trigger('change.select2')
47-
},
48-
options () {
49-
$(this.$el)
50-
.empty()
51-
.select2({
52-
data : this.formOptions,
53-
placeholder: this.placeholder,
54-
})
55-
.val(this.value)
56-
.trigger('change.select2')
57-
},
58-
},
5942
computed: {
6043
formOptions () {
6144
const options = this.options
@@ -103,6 +86,29 @@ export default {
10386
}
10487
},
10588
},
89+
watch: {
90+
value (value) {
91+
$(this.$el)
92+
.val(value)
93+
.trigger('change.select2')
94+
},
95+
options () {
96+
$(this.$el)
97+
.empty()
98+
.select2({
99+
data : this.formOptions,
100+
placeholder: this.placeholder,
101+
})
102+
.val(this.value)
103+
.trigger('change.select2')
104+
},
105+
},
106+
mounted () {
107+
this.createSelect()
108+
},
109+
destroyed () {
110+
$(this.$el).off().select2('destroy')
111+
},
106112
methods: {
107113
createSelect () {
108114
const vm = this
@@ -121,11 +127,5 @@ export default {
121127
})
122128
},
123129
},
124-
mounted () {
125-
this.createSelect()
126-
},
127-
destroyed () {
128-
$(this.$el).off().select2('destroy')
129-
},
130130
}
131131
</script>

resources/js/coreui/components/Sidebar/Sidebar.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
:url="childL1.url"
4646
:icon="childL1.icon">
4747
<li
48-
class="nav-item"
48+
v-for="(childL2, index2) in childL1.children"
4949
:key="index2"
50-
v-for="(childL2, index2) in childL1.children">
50+
class="nav-item">
5151
<SidebarNavLink
5252
:name="childL2.name"
5353
:url="childL2.url"
@@ -107,14 +107,7 @@ import SidebarNavTitle from './SidebarNavTitle'
107107
import SidebarNavItem from './SidebarNavItem'
108108
import SidebarNavLabel from './SidebarNavLabel'
109109
export default {
110-
name : 'Sidebar',
111-
props: {
112-
navItems: {
113-
type : Array,
114-
required: true,
115-
default : () => [],
116-
},
117-
},
110+
name : 'Sidebar',
118111
components: {
119112
SidebarFooter,
120113
SidebarForm,
@@ -127,6 +120,13 @@ export default {
127120
SidebarNavItem,
128121
SidebarNavLabel,
129122
},
123+
props: {
124+
navItems: {
125+
type : Array,
126+
required: true,
127+
default : () => [],
128+
},
129+
},
130130
methods: {
131131
handleClick (e) {
132132
e.preventDefault()

resources/js/coreui/components/Sidebar/SidebarNavDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<router-link
3+
:to="url"
34
tag="li"
45
class="nav-item nav-dropdown"
5-
:to="url"
66
disabled>
77
<div
88
class="nav-link nav-dropdown-toggle"

resources/js/coreui/components/Switch.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<label :class="classList">
33
<input
4-
type="checkbox"
5-
class="switch-input"
64
:value="value"
75
:checked="isChecked"
6+
type="checkbox"
7+
class="switch-input"
88
@change="handleChange">
99
<template v-if="isOn">
1010
<span
11-
class="switch-label"
1211
:data-on="on"
13-
:data-off="off"/>
12+
:data-off="off"
13+
class="switch-label"/>
1414
</template>
1515
<template v-else>
1616
<span class="switch-label"/>

resources/js/coreui/containers/Full.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<div class="app-body">
55
<Sidebar :nav-items="nav"/>
66
<notifications
7-
class="custom-notifications"
8-
:style="{ 'margin-top': offset }" />
7+
:style="{ 'margin-top': offset }"
8+
class="custom-notifications" />
99
<main class="main">
1010
<breadcrumb :list="list"/>
1111
<div class="container-fluid">
@@ -45,6 +45,12 @@ export default {
4545
return this.$route.matched
4646
},
4747
},
48+
mounted () {
49+
$(window).on('scroll', this.setPosNotify)
50+
},
51+
beforeDestroy () {
52+
$(window).off('scroll', this.setPosNotify)
53+
},
4854
methods: {
4955
setPosNotify () {
5056
const top = $(document).scrollTop()
@@ -54,11 +60,5 @@ export default {
5460
this.offset = `${offset}px`
5561
},
5662
},
57-
mounted () {
58-
$(window).on('scroll', this.setPosNotify)
59-
},
60-
beforeDestroy () {
61-
$(window).off('scroll', this.setPosNotify)
62-
},
6363
}
6464
</script>

resources/js/coreui/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ export default new Vue({
4747
el : '#app',
4848
router : router,
4949
store : store,
50-
template : '<App/>',
5150
components: { App },
51+
template : '<App/>',
5252
})

0 commit comments

Comments
 (0)