-
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.
Merge pull request #30 from Jalle19/pages
Refactor UI state handling, add navigation, fix systemd unit
- Loading branch information
Showing
12 changed files
with
137 additions
and
88 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -5,7 +5,9 @@ | |
"author": "Sam Stenvall <[email protected]>", | ||
"license": "GPL-3.0-or-later", | ||
"scripts": { | ||
"postinstall": "cd webif/ && npm install", | ||
"build": "rm -rf dist/* && npx tsc", | ||
"build-all": "npm run build && cd webif/ && npm run build", | ||
"prettier": "prettier --write src/ tests/", | ||
"prettier-check": "prettier --check src/ tests/", | ||
"lint": "eslint 'src/**/*.ts'", | ||
|
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,8 @@ | ||
import { writable } from 'svelte/store' | ||
|
||
export const configurationStore = writable({}) | ||
export const characteristicsStore = writable([]) | ||
export const mainSensorDataStore = writable([]) | ||
export const circuitSensorDataStore = writable([]) | ||
export const lastUpdateTimestampStore = writable(undefined) | ||
export const webSocketUrlStore = writable(undefined) |
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
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,18 @@ | ||
<script> | ||
import { configurationStore } from '../../lib/stores' | ||
</script> | ||
|
||
<div class="pure-u-1-1 l-box"> | ||
<h2>Configuration</h2> | ||
<pre id="configuration">{$configurationStore}</pre> | ||
</div> | ||
|
||
<style> | ||
pre { | ||
padding: 0.8em; | ||
box-sizing: border-box; | ||
background-color: var(--component-background); | ||
overflow: hidden; | ||
} | ||
</style> | ||
|