Skip to content

Commit

Permalink
fix(scrubber): Add all current HA nodes to scrubber
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Sep 24, 2023
1 parent 6fbe53d commit 4b12a49
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions docs/.vuepress/components/Scrubber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@
</label>
<span v-if="replaceServerId">
with
<input type="text" v-model="serverId" placeholder="xxxxxxxx.xxxxx" />
<input
type="text"
v-model="serverId"
placeholder="xxxxxxxx.xxxxx"
/>
</span>
</p>

<textarea v-model="before" placeholder="paste exported Node-RED flow here"></textarea>
<textarea
v-model="before"
placeholder="paste exported Node-RED flow here"
></textarea>

<button v-on:click="scrub">Scrub</button>
<transition name="fade">
Expand All @@ -29,23 +36,39 @@

<script>
const haNodes = [
'server',
'server-events',
'server-state-changed',
'trigger-state',
'poll-state',
'ha-time',
'ha-webhook',
'ha-zone',
'ha-api',
'api-call-service',
'api-current-state',
'ha-device',
'ha-entity',
'server-events',
'server-state-changed',
'ha-fire-event',
'api-current-state',
'ha-get-entities',
'api-get-history',
'poll-state',
'api-render-template',
'ha-select',
'ha-sentence',
'trigger-state',
'ha-tag',
'ha-time',
'ha-wait-until',
'ha-api',
'ha-webhook',
'ha-zone',
'server',
'ha-device-config',
'ha-entity-config',
'ha-binary-sensor',
'ha-button',
'ha-number',
'ha-sensor',
'ha-switch',
'ha-text',
'ha-time-entity',
'ha-update-config',
];
export default {
Expand Down Expand Up @@ -125,8 +148,8 @@ textarea {
}
button {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-size: 16px !important;
border-radius: 4px;
Expand Down

0 comments on commit 4b12a49

Please sign in to comment.