Skip to content

Commit

Permalink
style: πŸ’„ lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhache committed Jan 6, 2019
1 parent c3b542e commit 98936e3
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
28 changes: 14 additions & 14 deletions src/views/devices.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ export default {
data () {
return {
devices: [
{category: 'cameras & sensors', qty: 4},
{category: 'care', qty: 1},
{category: 'climate', qty: 2},
{category: 'doors & locks', qty: 2},
{category: 'energy', qty: 1},
{category: 'garage doors', qty: 1},
{category: 'home & family', qty: 6},
{category: 'lawn & garden', qty: 0},
{category: 'lights & switches', qty: 13},
{category: 'smoke & co', qty: 3},
{category: 'voice assistant', qty: 1},
{category: 'water', qty: 1},
{category: 'windows & blinds', qty: 3},
{category: 'entertainment', qty: 3}
{ category: 'cameras & sensors', qty: 4 },
{ category: 'care', qty: 1 },
{ category: 'climate', qty: 2 },
{ category: 'doors & locks', qty: 2 },
{ category: 'energy', qty: 1 },
{ category: 'garage doors', qty: 1 },
{ category: 'home & family', qty: 6 },
{ category: 'lawn & garden', qty: 0 },
{ category: 'lights & switches', qty: 13 },
{ category: 'smoke & co', qty: 3 },
{ category: 'voice assistant', qty: 1 },
{ category: 'water', qty: 1 },
{ category: 'windows & blinds', qty: 3 },
{ category: 'entertainment', qty: 3 }
]
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/views/rooms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export default {
data () {
return {
rooms: [
{name: 'Living', devices: 6, image: './living.jpg'},
{name: 'Bedroom', devices: 2, status: 'alert'},
{name: 'Kitchen', devices: 5},
{name: 'Studio', devices: 1},
{name: 'Bath', devices: 1}
{ name: 'Living', devices: 6, image: './living.jpg' },
{ name: 'Bedroom', devices: 2, status: 'alert' },
{ name: 'Kitchen', devices: 5 },
{ name: 'Studio', devices: 1 },
{ name: 'Bath', devices: 1 }
],
openDialog: false
}
Expand Down
8 changes: 4 additions & 4 deletions src/views/scenes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default {
msg: '',
progress: 0,
elements: [
{scene: 'Day', color: 'orange', icon: 'fa-sun', msg: 'Cooling rooms, blinds opened, playing ambient music'},
{scene: 'Night', color: 'blue', icon: 'fa-moon', msg: 'Blinds closed, AC in silence mode, motion sensors active'},
{scene: 'Away', color: 'red', icon: 'fa-shield-alt', msg: 'Alarm armed, cameras activated, blinds closed'},
{scene: 'At home', color: 'green', icon: 'fa-home', msg: 'Lights in ambient mode, playing relax music, coffee is being prepared'}
{ scene: 'Day', color: 'orange', icon: 'fa-sun', msg: 'Cooling rooms, blinds opened, playing ambient music' },
{ scene: 'Night', color: 'blue', icon: 'fa-moon', msg: 'Blinds closed, AC in silence mode, motion sensors active' },
{ scene: 'Away', color: 'red', icon: 'fa-shield-alt', msg: 'Alarm armed, cameras activated, blinds closed' },
{ scene: 'At home', color: 'green', icon: 'fa-home', msg: 'Lights in ambient mode, playing relax music, coffee is being prepared' }
]
}
},
Expand Down
24 changes: 12 additions & 12 deletions src/views/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ export default {
return {
theme: 'Select your theme',
elements: [
{type: 'theme', angle: -50, label: 'blue', labelPos: 'right'},
{type: 'theme', angle: -30, label: 'black', labelPos: 'right'},
{type: 'theme', angle: -10, label: 'green', labelPos: 'right'},
{type: 'theme', angle: 10, label: 'red', labelPos: 'right'},
{type: 'theme', angle: 30, label: 'light-blue', labelPos: 'right'},
{type: 'theme', angle: 50, label: 'gray', labelPos: 'right'},
{type: 'mode', angle: 210, label: 'dark', labelPos: 'left'},
{type: 'mode', angle: 190, label: 'dark-filled', labelPos: 'left'},
{type: 'mode', angle: 170, label: 'light', labelPos: 'left'},
{type: 'mode', angle: 150, label: 'light-filled', labelPos: 'left'}
{ type: 'theme', angle: -50, label: 'blue', labelPos: 'right' },
{ type: 'theme', angle: -30, label: 'black', labelPos: 'right' },
{ type: 'theme', angle: -10, label: 'green', labelPos: 'right' },
{ type: 'theme', angle: 10, label: 'red', labelPos: 'right' },
{ type: 'theme', angle: 30, label: 'light-blue', labelPos: 'right' },
{ type: 'theme', angle: 50, label: 'gray', labelPos: 'right' },
{ type: 'mode', angle: 210, label: 'dark', labelPos: 'left' },
{ type: 'mode', angle: 190, label: 'dark-filled', labelPos: 'left' },
{ type: 'mode', angle: 170, label: 'light', labelPos: 'left' },
{ type: 'mode', angle: 150, label: 'light-filled', labelPos: 'left' }
]
}
},
methods: {
changeStyle (el) {
el.type === 'theme'
? this.$zircle.config({style: {theme: el.label}})
: this.$zircle.config({style: {mode: el.label}})
? this.$zircle.config({ style: { theme: el.label } })
: this.$zircle.config({ style: { mode: el.label } })
var theme = this.$zircle.getTheme().split('theme-')[1]
var mode = this.$zircle.getThemeMode().split('mode-')[1]
this.theme = `The theme is ${theme} ${mode}`
Expand Down
4 changes: 2 additions & 2 deletions src/views/status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</z-view>
</template>
<script>
import {TimeSeries, SmoothieChart} from 'smoothie'
import { TimeSeries, SmoothieChart } from 'smoothie'
export default {
data () {
return {
Expand Down Expand Up @@ -42,7 +42,7 @@ export default {
borderVisible: false
},
tooltip: true,
labels: {disabled: true}
labels: { disabled: true }
})
smoothie.addTimeSeries(line1, {
strokeStyle: 'rgb(0, 255, 0)',
Expand Down

0 comments on commit 98936e3

Please sign in to comment.