generated from Austionian/axum_tailwind_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change template name to realtime, update root for clearer context loc…
…k, add forecast error state
- Loading branch information
1 parent
706f19d
commit ff5aa78
Showing
8 changed files
with
60 additions
and
31 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
import { removeElement, appendElements } from "./utilities"; | ||
|
||
/** | ||
* @param {Error} e | ||
*/ | ||
export function forecastFailed(e) { | ||
removeElement("forecast-container"); | ||
|
||
appendElements( | ||
"forecast-error", | ||
` | ||
<div class="p-12 flex flex-col items-center align-middle justify-center text-center"> | ||
<h2 class="text-xl font-mono"> | ||
Error loading forecast data - please refresh the page or try again later. | ||
</h2> | ||
<p>${e}</p> | ||
</div> | ||
`, | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
<script type="application/json" id="realtime-data">{{ realtime_json | safe }}</script> |