-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1906 from benderl/wiki-device-component
updated gui samples
- Loading branch information
Showing
6 changed files
with
61 additions
and
76 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,26 +1,19 @@ | ||
<template> | ||
<div class="backup-cloud-sample"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample-Backup Cloud | ||
<span class="small">(Modul: {{ $options.name }})</span> | ||
</openwb-base-heading> | ||
</div> | ||
<div class="backup-cloud-sample"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample-Backup Cloud | ||
</openwb-base-heading> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import BackupCloudConfigMixin from "../BackupCloudConfigMixin.vue"; | ||
export default { | ||
name: "BackupCloudSample", | ||
emits: ["update:configuration"], | ||
props: { | ||
configuration: { type: Object, required: true }, | ||
}, | ||
data() { | ||
return {}; | ||
}, | ||
methods: { | ||
updateConfiguration(event, path = undefined) { | ||
this.$emit("update:configuration", { value: event, object: path }); | ||
}, | ||
}, | ||
name: "BackupCloudSample", | ||
mixins: [BackupCloudConfigMixin], | ||
data() { | ||
return {}; | ||
}, | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<template> | ||
<div class="device-sample-bat"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample Batteriespeicher | ||
</openwb-base-heading> | ||
</div> | ||
<div class="device-sample-bat"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample Batteriespeicher | ||
</openwb-base-heading> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import ComponentConfigMixin from "../../ComponentConfigMixin.vue"; | ||
export default { | ||
name: "DeviceSampleBat", | ||
mixins: [ComponentConfigMixin], | ||
name: "DeviceSampleBat", | ||
mixins: [ComponentConfigMixin], | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<template> | ||
<div class="device-sample-counter"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample Zähler | ||
</openwb-base-heading> | ||
</div> | ||
<div class="device-sample-counter"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample Zähler | ||
</openwb-base-heading> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import ComponentConfigMixin from "../../ComponentConfigMixin.vue"; | ||
export default { | ||
name: "DeviceSampleCounter", | ||
mixins: [ComponentConfigMixin], | ||
name: "DeviceSampleCounter", | ||
mixins: [ComponentConfigMixin], | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<template> | ||
<div class="device-sample"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample | ||
</openwb-base-heading> | ||
<openwb-base-text-input | ||
title="IP oder Hostname" | ||
subtype="host" | ||
required | ||
:model-value="device.configuration.ip_address" | ||
@update:model-value=" | ||
updateConfiguration($event, 'configuration.ip_address') | ||
" | ||
/> | ||
</div> | ||
<div class="device-sample"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample | ||
</openwb-base-heading> | ||
<openwb-base-text-input | ||
title="IP oder Hostname" | ||
subtype="host" | ||
required | ||
:model-value="configuration.ip_address" | ||
@update:model-value=" | ||
updateConfiguration($event, 'configuration.ip_address') | ||
" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import DeviceConfigMixin from "../../DeviceConfigMixin.vue"; | ||
export default { | ||
name: "DeviceSample", | ||
mixins: [DeviceConfigMixin], | ||
name: "DeviceSample", | ||
mixins: [DeviceConfigMixin], | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<template> | ||
<div class="device-sample-inverter"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample Wechselrichter | ||
</openwb-base-heading> | ||
</div> | ||
<div class="device-sample-inverter"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample Wechselrichter | ||
</openwb-base-heading> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import ComponentConfigMixin from "../../ComponentConfigMixin.vue"; | ||
export default { | ||
name: "DeviceSampleInverter", | ||
mixins: [ComponentConfigMixin], | ||
name: "DeviceSampleInverter", | ||
mixins: [ComponentConfigMixin], | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
<template> | ||
<div class="vehicle-soc-sample"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample SoC | ||
<span class="small">(Modul: {{ $options.name }})</span> | ||
</openwb-base-heading> | ||
</div> | ||
<div class="vehicle-soc-sample"> | ||
<openwb-base-heading> | ||
Einstellungen für Sample SoC | ||
</openwb-base-heading> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import VehicleConfigMixin from "../VehicleConfigMixin.vue"; | ||
export default { | ||
name: "VehicleSocSample", | ||
emits: ["update:configuration"], | ||
props: { | ||
configuration: { type: Object, required: true }, | ||
vehicleId: { required: true }, | ||
}, | ||
data() { | ||
return {}; | ||
}, | ||
methods: { | ||
updateConfiguration(event, path = undefined) { | ||
this.$emit("update:configuration", { value: event, object: path }); | ||
}, | ||
}, | ||
name: "VehicleSocSample", | ||
mixins: [VehicleConfigMixin], | ||
data() { | ||
return {}; | ||
}, | ||
}; | ||
</script> |