-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,081 additions
and
1,791 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<template> | ||
<v-col :class="size"> | ||
<v-card | ||
:dark="this.$vuetify.theme.dark" | ||
color="secondary" | ||
> | ||
<v-progress-linear | ||
height="7" | ||
:value="item.Options.status.level || status.level" | ||
:color="item.Options.status.color || status.color" | ||
background-color="secondary darken-1" | ||
/> | ||
|
||
<v-card-title class="text-truncate"> | ||
{{ item.Options.name }} | ||
|
||
<v-spacer /> | ||
<v-btn | ||
small | ||
icon | ||
@click="expandBtn()" | ||
> | ||
<v-icon small> | ||
{{ expandIcon }} | ||
</v-icon> | ||
</v-btn> | ||
|
||
<jsonList | ||
v-if="app.options.debugMode" | ||
:item="item" | ||
/> | ||
</v-card-title> | ||
<v-divider /> | ||
|
||
<div v-if="!item.Options.status.isActive"> | ||
<v-card-text> | ||
<v-row align="center"> | ||
<v-col align="center"> | ||
<div class="headline font-weight-bold"> | ||
{{ item.Options.status.error }} | ||
</div> | ||
</v-col> | ||
</v-row> | ||
</v-card-text> | ||
<v-divider /> | ||
</div> | ||
|
||
<div v-if="item.Options.status.isActive"> | ||
<v-card-text class="pa-0"> | ||
<video src=""> | ||
Your browser does not support the VIDEO tag and/or RTP streams. | ||
</video> | ||
</v-card-text> | ||
</div> | ||
|
||
<v-system-bar color="secondary darken-1"> | ||
<v-icon class="ml-0"> | ||
{{ item.Options.info.left1Icon || camIcon }} | ||
</v-icon><div class="text-truncate"> | ||
{{ item.Options.info.left1Text }} | ||
</div> | ||
<v-icon class="ml-2"> | ||
{{ item.Options.info.left2Icon }} | ||
</v-icon><div class="text-truncate"> | ||
{{ item.Options.info.left2Text }} | ||
</div> | ||
<v-spacer /> | ||
<v-icon> | ||
{{ item.Options.info.mid1Icon }} | ||
</v-icon><div class="text-truncate"> | ||
{{ item.Options.info.mid1Text }} | ||
</div> | ||
<v-icon class="ml-2"> | ||
{{ item.Options.info.mid2Icon }} | ||
</v-icon><div class="text-truncate"> | ||
{{ item.Options.info.mid2Text }} | ||
</div> | ||
<v-spacer /> | ||
<v-icon> | ||
{{ item.Options.info.right1Icon }} | ||
</v-icon><div class="text-truncate"> | ||
{{ item.Options.info.right1Text }} | ||
</div> | ||
<v-icon class="ml-2 mr-0"> | ||
{{ item.Options.info.right2Icon }} | ||
</v-icon><div class="text-truncate"> | ||
{{ item.Options.info.right2Text }} | ||
</div> | ||
</v-system-bar> | ||
</v-card> | ||
</v-col> | ||
</template> | ||
|
||
<script> | ||
import jsonList from '@/components/Jsonlist.vue' | ||
export default { | ||
components: { | ||
jsonList | ||
}, | ||
props: { | ||
item: { | ||
type: Object, | ||
default: () => { return { name: 'cam' } } | ||
} | ||
}, | ||
data: () => ({ | ||
name: 'cam', | ||
size: '', | ||
camIcon: 'mdi-cctv', | ||
expandIcon: 'mdi-arrow-expand', | ||
maxSize: false, | ||
status: { | ||
color: 'success', | ||
level: 0 | ||
}, | ||
app: { | ||
options: { | ||
debugMode: false | ||
} | ||
}, | ||
}), | ||
created() { | ||
this.app.options = this.$fhem.app.options; | ||
this.size = this.$fhem.getEl(this.item, 'Options', 'setup', 'size') || 'col-12 col-sm-12 col-md-6 col-lg-4'; | ||
if(this.$route.params.filter && this.$route.params.filter.match('&size=max')) { | ||
this.maxSize = true; | ||
this.size = 'col-12'; | ||
this.expandIcon = 'mdi-arrow-collapse'; | ||
} | ||
}, | ||
methods: { | ||
expandBtn() { | ||
if(this.maxSize) { | ||
this.maxSize = false; | ||
this.size = this.$fhem.getEl(this.item, 'Options', 'setup', 'size') || 'col-12 col-sm-12 col-md-6 col-lg-4'; | ||
this.expandIcon = 'mdi-arrow-expand'; | ||
} else { | ||
this.maxSize = true; | ||
this.size = 'col-12'; | ||
this.expandIcon = 'mdi-arrow-collapse'; | ||
} | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.