-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
41 changed files
with
1,262 additions
and
21 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
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
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,41 @@ | ||
import gulp from "gulp"; | ||
import "./clean.js"; | ||
import "./compress.js"; | ||
import "./entry-html.js"; | ||
import "./gather-static.js"; | ||
import "./gen-icons-json.js"; | ||
import "./translations.js"; | ||
import "./webpack.js"; | ||
|
||
gulp.task( | ||
"develop-landing-page", | ||
gulp.series( | ||
async function setEnv() { | ||
process.env.NODE_ENV = "development"; | ||
}, | ||
"clean-landing-page", | ||
"translations-enable-merge-backend", | ||
"build-landing-page-translations", | ||
"copy-translations-landing-page", | ||
"build-locale-data", | ||
"copy-static-landing-page", | ||
"gen-pages-landing-page-dev", | ||
"webpack-watch-landing-page" | ||
) | ||
); | ||
|
||
gulp.task( | ||
"build-landing-page", | ||
gulp.series( | ||
async function setEnv() { | ||
process.env.NODE_ENV = "production"; | ||
}, | ||
"clean-landing-page", | ||
"build-landing-page-translations", | ||
"copy-translations-landing-page", | ||
"build-locale-data", | ||
"copy-static-landing-page", | ||
"webpack-prod-landing-page", | ||
"gen-pages-landing-page-prod" | ||
) | ||
); |
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
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,44 @@ | ||
# Home Assistant OS Landingpage | ||
|
||
On initial startup of Home Assistant, HAOS needs to download Home Assistant core before the setup can start. | ||
In this time the [home-assistant/landingpage](https://github.com/home-assistant/landingpage) is serving a "Preparing Home Assistant" page. | ||
|
||
## Functionality | ||
|
||
- Progress bar to show download | ||
- Show / hide supervisor logs | ||
- Links | ||
- Read our Vision | ||
- Join our community | ||
- Download our app | ||
- DNS issue handler | ||
- if the supervisor is not able to connect to the internet | ||
- Show actions to set dns to google or cloudflare to resolve the issue | ||
- Error handler | ||
- if something with the installation goes wrong, we show the logs | ||
|
||
## Develop | ||
|
||
It is similar to the core frontend dev. | ||
|
||
- frontend repo is building stuff | ||
- landingpage repo can set the frontend repo path and serve the dev frontend | ||
|
||
### landingpage dev server | ||
|
||
- clone [home-assistant/landingpage](https://github.com/home-assistant/landingpage) | ||
- Add frontend repo as mount to your devcontainer config | ||
- please do not commit this changes, you can remove it after initial dev container build, because the build will keep the options as long as you don't rebuild it. | ||
- `"mounts": ["source=/path/to/hass/frontend,target=/workspaces/frontend,type=bind,consistency=cached"]` | ||
- use the dev container | ||
- start the dev server with following optional env vars: | ||
- `SUPERVISOR_HOST` to have real supervisor data, you can [setup a supervisor remote API access](https://developers.home-assistant.io/docs/supervisor/development/#supervisor-api-access) and set the host of your supervisor. e.g.: `SUPERVISOR_HOST=192.168.0.20:8888` | ||
- `SUPERVISOR_TOKEN` the supervisor api token you get from the Remote API proxy Addon Logs | ||
- `FRONTEND_PATH` the path inside your container should be `/workspaces/frontend` | ||
- example: `SUPERVISOR_TOKEN=abc123 SUPERVISOR_HOST=192.168.0.20:8888 FRONTEND_PATH=/workspaces/frontend go run main.go http.go mdns.go` | ||
- You can also add this into your devcontainer settings, but then it's not so flexible to change if you want to test something else. | ||
|
||
### frontend dev server | ||
|
||
- install all dependencies | ||
- run `landing-page/script/develop` |
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,8 @@ | ||
import rootConfig from "../eslint.config.mjs"; | ||
|
||
export default [ | ||
...rootConfig, | ||
{ | ||
rules: {}, | ||
}, | ||
]; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.