From 51d0f8f96d9ab2d4581d34cf466272d7c0357370 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 15 Feb 2020 16:15:28 +0100 Subject: [PATCH] :hammer: Re-branding --- .github/settings.yml | 4 +-- README.md | 26 +++++++++----------- vscode/.README.j2 | 8 +++--- vscode/Dockerfile | 2 +- vscode/config.json | 2 +- vscode/rootfs/etc/cont-init.d/code-server.sh | 2 +- vscode/rootfs/etc/cont-init.d/nginx.sh | 2 +- vscode/rootfs/etc/cont-init.d/user.sh | 2 +- vscode/rootfs/etc/nginx/lua/ha-auth.lua | 6 ++--- vscode/rootfs/etc/nginx/nginx.conf | 2 +- vscode/rootfs/etc/services.d/code/finish | 2 +- vscode/rootfs/etc/services.d/code/run | 2 +- vscode/rootfs/etc/services.d/nginx/finish | 2 +- vscode/rootfs/etc/services.d/nginx/run | 2 +- 14 files changed, 31 insertions(+), 33 deletions(-) diff --git a/.github/settings.yml b/.github/settings.yml index 76946d0..4834f2f 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -1,8 +1,8 @@ --- repository: - description: "Visual Studio Code - Community Hass.io Add-on for Home Assistant" + description: "Visual Studio Code - Home Assistant Community Add-ons" homepage: https://addons.community - topics: vscode, ide, code-server, hassio-addons, hassio, hass, home-assistant, homeassistant + topics: vscode, ide, code-server, addon, addons, home-assistant, homeassistant private: false has_issues: true has_projects: false diff --git a/README.md b/README.md index 8235def..f2c33c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code [![GitHub Release][releases-shield]][releases] ![Project Stage][project-stage-shield] @@ -41,9 +41,9 @@ instantly, without the need for configuring anything. ## Installation The installation of this add-on is pretty straightforward and not different in -comparison to installing any other Hass.io add-on. +comparison to installing any other Home Assistant add-on. -1. Search for the "Visual Studio Code" add-on in the Hass.io add-on store +1. Search for the "Visual Studio Code" add-on in the Supervisor add-on store and install it. 1. Start the "Visual Studio Code" add-on. 1. Check the logs of the "Visual Studio Code" add-on to see if everything went @@ -93,19 +93,19 @@ you are troubleshooting. Enables/Disables SSL (HTTPS). Set it `true` to enable it, `false` otherwise. **Note**: _The SSL settings only apply to direct access and has no effect -on the Hass.io Ingress service._ +on the Ingress service._ ### Option: `certfile` The certificate file to use for SSL. -**Note**: _The file MUST be stored in `/ssl/`, which is default for Hass.io_ +**Note**: _The file MUST be stored in `/ssl/`, which is the default_ ### Option: `keyfile` The private key file to use for SSL. -**Note**: _The file MUST be stored in `/ssl/`, which is default for Hass.io_ +**Note**: _The file MUST be stored in `/ssl/`, which is the default_ ### Option: `packages` @@ -156,10 +156,8 @@ an adjustment to your ESPHome add-on in order to function. ESPHome does not support authentication yet. The ESPHome add-on configuration would look like this: - ```json - { - "leave_front_door_open": true - } + ```yaml + leave_front_door_open: true ``` 1. Save the add-on configuration. @@ -219,7 +217,7 @@ Got questions? You have several options to get them answered: -- The [Community Hass.io Add-ons Discord chat server][discord] for add-on +- The [Home Assistant Community Add-ons Discord chat server][discord] for add-on support and feature requests. - The [Home Assistant Discord chat server][discord-ha] for general Home Assistant discussions and questions. @@ -245,11 +243,11 @@ The original setup of this repository is by [Franck Nijhof][frenck]. For a full list of all authors and contributors, check [the contributor's page][contributors]. -## We have got some Hass.io add-ons for you +## We have got some Home Assistant add-ons for you -Want some more functionality to your Hass.io Home Assistant instance? +Want some more functionality to your Home Assistant instance? -We have created multiple add-ons for Hass.io. For a full list, check out +We have created multiple add-ons for Home Assistant. For a full list, check out our [GitHub Repository][repository]. ## License diff --git a/vscode/.README.j2 b/vscode/.README.j2 index 8fd6b8a..71239d8 100644 --- a/vscode/.README.j2 +++ b/vscode/.README.j2 @@ -1,4 +1,4 @@ -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code [![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield] @@ -30,8 +30,8 @@ instantly, without the need for configuring anything. {% if channel == "edge" %} ## WARNING! THIS IS AN EDGE VERSION! -This Hass.io Add-ons repository contains edge builds of add-ons. Edge builds -add-ons are based upon the latest development version. +This Home Assistant Add-ons repository contains edge builds of add-ons. +Edge builds add-ons are based upon the latest development version. - They may not work at all. - They might stop working at any time. @@ -51,7 +51,7 @@ If you are more interested in stable releases of our add-ons: {% if channel == "beta" %} ## WARNING! THIS IS A BETA VERSION! -This Hass.io Add-ons repository contains beta releases of add-ons. +This Home Assistant Add-ons repository contains beta releases of add-ons. - They might stop working at any time. - They could have a negative impact on your system. diff --git a/vscode/Dockerfile b/vscode/Dockerfile index 50d506a..8d434b7 100755 --- a/vscode/Dockerfile +++ b/vscode/Dockerfile @@ -160,4 +160,4 @@ LABEL \ org.label-schema.usage="https://github.com/hassio-addons/addon-vscode/tree/master/README.md" \ org.label-schema.vcs-ref=${BUILD_REF} \ org.label-schema.vcs-url="https://github.com/hassio-addons/addon-vscode" \ - org.label-schema.vendor="Community Hass.io Add-ons" + org.label-schema.vendor="Home Assistant Community Add-ons" diff --git a/vscode/config.json b/vscode/config.json index 4f7b67f..ada616b 100755 --- a/vscode/config.json +++ b/vscode/config.json @@ -23,7 +23,7 @@ "80/tcp": null }, "ports_description": { - "80/tcp": "VSCode (Not required for Hass.io Ingress)" + "80/tcp": "VSCode (Not required for Ingress)" }, "map": [ "config:rw", diff --git a/vscode/rootfs/etc/cont-init.d/code-server.sh b/vscode/rootfs/etc/cont-init.d/code-server.sh index b663c4e..14035f7 100644 --- a/vscode/rootfs/etc/cont-init.d/code-server.sh +++ b/vscode/rootfs/etc/cont-init.d/code-server.sh @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv bashio # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Sets up code-server. # ============================================================================== diff --git a/vscode/rootfs/etc/cont-init.d/nginx.sh b/vscode/rootfs/etc/cont-init.d/nginx.sh index c33ab00..4afccc2 100644 --- a/vscode/rootfs/etc/cont-init.d/nginx.sh +++ b/vscode/rootfs/etc/cont-init.d/nginx.sh @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv bashio # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Configures NGINX for use with code-server # ============================================================================== declare port diff --git a/vscode/rootfs/etc/cont-init.d/user.sh b/vscode/rootfs/etc/cont-init.d/user.sh index 5faf30c..aca6c2e 100644 --- a/vscode/rootfs/etc/cont-init.d/user.sh +++ b/vscode/rootfs/etc/cont-init.d/user.sh @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv bashio # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Persists user settings and installs custom user packages. # ============================================================================== readonly GIT_USER_PATH=/data/git diff --git a/vscode/rootfs/etc/nginx/lua/ha-auth.lua b/vscode/rootfs/etc/nginx/lua/ha-auth.lua index 998b509..7aa9d3e 100644 --- a/vscode/rootfs/etc/nginx/lua/ha-auth.lua +++ b/vscode/rootfs/etc/nginx/lua/ha-auth.lua @@ -29,7 +29,7 @@ function authenticate() return true end - --- HTTP request against Hassio API + --- HTTP request against the Supervisor API local httpc = http.new() local res, err = httpc:request_uri("http://supervisor.local.hass.io/auth", { method = "POST", @@ -44,13 +44,13 @@ function authenticate() --- Error during API request if err then - ngx.log(ngx.WARN, "Error during Hassio user authentication.", err) + ngx.log(ngx.WARN, "Error during Home Assistant user authentication.", err) return false end --- No result? Something went wrong... if not res then - ngx.log(ngx.WARN, "Error during Hassio user authentication.") + ngx.log(ngx.WARN, "Error during Home Assistant user authentication.") return false end diff --git a/vscode/rootfs/etc/nginx/nginx.conf b/vscode/rootfs/etc/nginx/nginx.conf index 0b7a81e..5d5980a 100644 --- a/vscode/rootfs/etc/nginx/nginx.conf +++ b/vscode/rootfs/etc/nginx/nginx.conf @@ -13,7 +13,7 @@ worker_processes 1; # Enables the use of JIT for regular expressions to speed-up their processing. pcre_jit on; -# Write error log to Hass.io add-on log. +# Write error log to the add-on log. error_log /proc/1/fd/1 error; # Load allowed environment vars diff --git a/vscode/rootfs/etc/services.d/code/finish b/vscode/rootfs/etc/services.d/code/finish index 5e98225..655c1fc 100644 --- a/vscode/rootfs/etc/services.d/code/finish +++ b/vscode/rootfs/etc/services.d/code/finish @@ -1,6 +1,6 @@ #!/usr/bin/execlineb -S0 # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Take down the S6 supervision tree when the code server fails # ============================================================================== if { s6-test ${1} -ne 0 } diff --git a/vscode/rootfs/etc/services.d/code/run b/vscode/rootfs/etc/services.d/code/run index 66a7165..e2d649a 100644 --- a/vscode/rootfs/etc/services.d/code/run +++ b/vscode/rootfs/etc/services.d/code/run @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv bashio # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Runs the code server # ============================================================================== declare -a options diff --git a/vscode/rootfs/etc/services.d/nginx/finish b/vscode/rootfs/etc/services.d/nginx/finish index 5378801..8fa1a7f 100644 --- a/vscode/rootfs/etc/services.d/nginx/finish +++ b/vscode/rootfs/etc/services.d/nginx/finish @@ -1,6 +1,6 @@ #!/usr/bin/execlineb -S0 # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Take down the S6 supervision tree when Nginx fails # ============================================================================== if { s6-test ${1} -ne 0 } diff --git a/vscode/rootfs/etc/services.d/nginx/run b/vscode/rootfs/etc/services.d/nginx/run index 2b393a9..388dce5 100644 --- a/vscode/rootfs/etc/services.d/nginx/run +++ b/vscode/rootfs/etc/services.d/nginx/run @@ -1,6 +1,6 @@ #!/usr/bin/with-contenv bashio # ============================================================================== -# Community Hass.io Add-ons: Visual Studio Code +# Home Assistant Community Add-on: Visual Studio Code # Runs the Nginx daemon # ==============================================================================