|
29 | 29 | <div class="mb-3">
|
30 | 30 | <label class="form-label" for="displayConfig">Display configuration ("Theme")</label>
|
31 | 31 | <div class="input-group">
|
32 |
| - <select :disabled="displayConfigurationUrlOverride.length > 0" id="displayConfig" v-model="displayConfiguration" class="form-select form-select-sm"> |
| 32 | + <select :disabled="displayConfigurationUrlOverride.length > 0" id="displayConfig" |
| 33 | + v-model="displayConfiguration" class="form-select form-select-sm"> |
33 | 34 | <option v-for="availableConfiguration in manifest['display-configs']" :key="availableConfiguration"
|
34 | 35 | :value="availableConfiguration">
|
35 | 36 | {{ availableConfiguration.title }}
|
|
39 | 40 |
|
40 | 41 | <div class="mt-3">
|
41 | 42 | <label for="formFileSm" class="form-label">Custom display configuration URL</label>
|
42 |
| - <input v-model="displayConfigurationUrlOverride" class="form-control form-control-sm" type="url" placeholder="file://c:/custom.yml"> |
43 |
| - <div class="form-text">Specify path or URL to customized display configuration. Unsupported! <a target="_blank" href="https://raw.githubusercontent.com/cgiesche/streamdeck-homeassistant/master/public/config/default-display-config.yml">Example</a>.</div> |
| 43 | + <input v-model="displayConfigurationUrlOverride" class="form-control form-control-sm" type="url" |
| 44 | + placeholder="file://c:/custom.yml"> |
| 45 | + <div class="form-text">Specify path or URL to customized display configuration. Unsupported! <a |
| 46 | + target="_blank" |
| 47 | + href="https://raw.githubusercontent.com/cgiesche/streamdeck-homeassistant/master/public/config/default-display-config.yml">Example</a>. |
| 48 | + </div> |
44 | 49 | </div>
|
45 | 50 | </div>
|
46 | 51 |
|
|
87 | 92 | </div>
|
88 | 93 |
|
89 | 94 |
|
90 |
| - <div class="form-check form-switch"> |
91 |
| - <input id="chkCustomLabels" v-model="useCustomButtonLabels" class="form-check-input" type="checkbox"> |
92 |
| - <label class="form-check-label" for="chkCustomLabels">Custom labels</label> |
93 |
| - </div> |
| 95 | + <div class="form-check form-switch"> |
| 96 | + <input id="chkCustomLabels" v-model="useCustomButtonLabels" class="form-check-input" type="checkbox"> |
| 97 | + <label class="form-check-label" for="chkCustomLabels">Custom labels</label> |
| 98 | + </div> |
94 | 99 |
|
95 |
| - <div v-if="useCustomButtonLabels"> |
96 |
| - <div class="mb-3"> |
| 100 | + <div v-if="useCustomButtonLabels"> |
| 101 | + <div class="mb-3"> |
97 | 102 | <textarea id="buttonLabels" v-model="buttonLabels" class="form-control font-monospace"
|
98 | 103 | placeholder="Line 1 (may overlap with icon)"
|
99 | 104 | rows="4"></textarea>
|
100 |
| - <details> |
101 |
| - <summary>Available variables</summary> |
102 |
| - <div v-for="attr in entityAttributes" v-bind:key="attr" class="form-text font-monospace">{{ attr }}</div> |
103 |
| - </details> |
104 |
| - </div> |
| 105 | + <details> |
| 106 | + <summary>Available variables</summary> |
| 107 | + <div v-for="attr in entityAttributes" v-bind:key="attr" class="form-text font-monospace">{{ attr }}</div> |
| 108 | + </details> |
105 | 109 | </div>
|
| 110 | + </div> |
106 | 111 |
|
107 |
| - <template v-if="!controllerType === 'Encoder'"> |
108 |
| - <div class="form-check form-switch mb-3"> |
109 |
| - <input id="chkEnableServiceIndicator" v-model="enableServiceIndicator" class="form-check-input" type="checkbox"> |
| 112 | + <template v-if="controllerType !== 'Encoder'"> |
| 113 | + <div class="form-check form-switch"> |
| 114 | + <input id="chkEnableServiceIndicator" v-model="enableServiceIndicator" class="form-check-input" |
| 115 | + type="checkbox"> |
110 | 116 | <label class="form-check-label" for="chkEnableServiceIndicator">Show visual service indicators</label>
|
111 | 117 | </div>
|
| 118 | + </template> |
112 | 119 |
|
113 |
| - <div class="mb-3"> |
114 |
| - <div class="form-check"> |
115 |
| - <input class="form-check-input" type="radio" id="radioPlugin" value="PREFER_PLUGIN" v-model="iconSettings"> |
116 |
| - <label class="form-check-label" for="radioPlugin"> |
117 |
| - Prefer icon from plugin (recommended) |
118 |
| - </label> |
119 |
| - </div> |
120 |
| - <div class="form-check"> |
121 |
| - <input class="form-check-input" type="radio" id="radioHomeAssistant" value="PREFER_HA" |
122 |
| - v-model="iconSettings"> |
123 |
| - <label class="form-check-label" for="radioHomeAssistant"> |
124 |
| - Prefer icon from HA |
125 |
| - </label> |
126 |
| - </div> |
127 |
| - <div class="form-check"> |
128 |
| - <input class="form-check-input" type="radio" id="radioHide" value="HIDE" v-model="iconSettings"> |
129 |
| - <label class="form-check-label" for="radioHide"> |
130 |
| - Hide icon |
131 |
| - </label> |
132 |
| - </div> |
| 120 | + <div class="mt-3 mb-3"> |
| 121 | + <div class="form-check"> |
| 122 | + <input class="form-check-input" type="radio" id="radioPlugin" value="PREFER_PLUGIN" v-model="iconSettings"> |
| 123 | + <label class="form-check-label" for="radioPlugin"> |
| 124 | + Prefer icon from plugin (recommended) |
| 125 | + </label> |
133 | 126 | </div>
|
134 |
| - </template> |
| 127 | + <div class="form-check"> |
| 128 | + <input class="form-check-input" type="radio" id="radioHomeAssistant" value="PREFER_HA" |
| 129 | + v-model="iconSettings"> |
| 130 | + <label class="form-check-label" for="radioHomeAssistant"> |
| 131 | + Prefer icon from HA |
| 132 | + </label> |
| 133 | + </div> |
| 134 | + <div class="form-check"> |
| 135 | + <input class="form-check-input" type="radio" id="radioHide" value="HIDE" v-model="iconSettings"> |
| 136 | + <label class="form-check-label" for="radioHide"> |
| 137 | + Hide icon |
| 138 | + </label> |
| 139 | + </div> |
| 140 | + </div> |
| 141 | + |
135 | 142 |
|
136 | 143 | <h1>{{ controllerType }} actions</h1>
|
137 | 144 |
|
@@ -317,7 +324,7 @@ onMounted(() => {
|
317 | 324 | })
|
318 | 325 |
|
319 | 326 | function updateManifest() {
|
320 |
| - console.log("Updating manifest.") |
| 327 | + console.log('Updating manifest.') |
321 | 328 | axios.get('https://cdn.jsdelivr.net/gh/cgiesche/streamdeck-homeassistant@master/public/config/manifest.yml')
|
322 | 329 | .then(response => this.manifest = yaml.load(response.data))
|
323 | 330 | .catch(error => console.log(`Failed to download updated manifest.yml: ${error}`))
|
|
0 commit comments