-
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.
* refactor(backend): save idea for future getFullData handler * fix(frontend): reactivity * chore(dev): disable s3 by default * chore(chart): bump version
- Loading branch information
Showing
9 changed files
with
163 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ type: application | |
|
||
version: 0.1.0 | ||
|
||
appVersion: "0.2.1" | ||
appVersion: "0.2.2" |
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 |
---|---|---|
@@ -1,29 +1,26 @@ | ||
<script> | ||
import Component from '$lib/Component.svelte'; | ||
/** @type {import('./$types').PageData} */ | ||
import { get } from 'svelte/store'; | ||
import { viewStore } from '$lib/stores.js'; | ||
export let components = []; | ||
export let componentsData = {}; | ||
export let view = 'day'; | ||
$: components; | ||
function getDataForView(c, v) { | ||
return componentsData[c][v]; | ||
} | ||
viewStore.subscribe((value) => (view = value)); | ||
$: view = get(viewStore); | ||
</script> | ||
|
||
<section> | ||
<div class="container"> | ||
{#each components as c} | ||
{#await c} | ||
<Component name={c} dummy="true" /> | ||
{:then c} | ||
<Component | ||
name={componentsData[c][view].name} | ||
observations={componentsData[c][view].observations} | ||
uptime={componentsData[c][view].uptime} | ||
{view} | ||
/> | ||
{:catch error} | ||
<Component name="..." dummy="true" /> | ||
{/await} | ||
<Component {view} {...getDataForView(c, view)} /> | ||
{/each} | ||
</div> | ||
</section> |
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