-
-
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.
* Refined Layout and colors or move/temp and state page * Fixed commands * Enabled fullscreen start option * Minor layout fix * Extract Status Line to nested component * Extract Bottom Navigation to nested component * Decreased y size * Add quad gantry level module support * Adapt JsonRpcResponse to IJsonRpcResponse changes * Improve layouts and logic - babysteps and extrusion screen - add global step preselection - displaystatus message can be null --------- Signed-off-by: Frank Roth <developer@freakydu.de>
- Loading branch information
1 parent
6a07126
commit 28aba23
Showing
20 changed files
with
390 additions
and
447 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
import { commands, moonraker, values } from './base.svelte'; | ||
let printStatsState = moonraker.printStats.State; | ||
let clockFormatter = values.clockFormatter; | ||
let clock = values.clock; | ||
</script> | ||
|
||
<div class="flex h-11 w-full flex-row gap-x-1 bg-neutral-700 px-1 pb-1"> | ||
<a | ||
href="/printstate" | ||
class="flex w-16 items-center justify-center rounded-b-lg | ||
{$page.url.pathname === '/printstate' ? 'bg-neutral-500' : 'bg-neutral-600'} | ||
px-3 py-2 font-semibold text-neutral-50 drop-shadow-md active:bg-red-500 disabled:opacity-50"> | ||
State | ||
</a> | ||
{#if $printStatsState !== 'printing'} | ||
<a | ||
class="flex w-16 items-center justify-center rounded-b-lg | ||
{$page.url.pathname === '/move' ? 'bg-neutral-500' : 'bg-neutral-600'} | ||
px-3 py-2 font-semibold text-neutral-50 drop-shadow-md active:bg-red-500 disabled:opacity-50" | ||
href="/move"> | ||
Move | ||
</a> | ||
{/if} | ||
<a | ||
href="/temperature" | ||
class="flex w-16 items-center justify-center rounded-b-lg | ||
{$page.url.pathname === '/temperature' ? 'bg-neutral-500' : 'bg-neutral-600'} | ||
px-3 py-2 font-semibold text-neutral-50 drop-shadow-md active:bg-red-500 disabled:opacity-50"> | ||
Temp | ||
</a> | ||
<a | ||
href="/babysteps" | ||
class="flex w-16 items-center justify-center rounded-b-lg | ||
{$page.url.pathname === '/babysteps' ? 'bg-neutral-500' : 'bg-neutral-600'} | ||
px-3 py-2 font-semibold text-neutral-50 drop-shadow-md active:bg-red-500 disabled:opacity-50"> | ||
Baby | ||
</a> | ||
{#if $printStatsState !== 'printing'} | ||
<a | ||
href="/extrusion" | ||
class="flex w-16 items-center justify-center rounded-b-lg | ||
{$page.url.pathname === '/extrusion' ? 'bg-neutral-500' : 'bg-neutral-600'} | ||
px-3 py-2 font-semibold text-neutral-50 drop-shadow-md active:bg-red-500 disabled:opacity-50"> | ||
Extr | ||
</a> | ||
{/if} | ||
<div class="flex flex-grow items-end justify-end"> | ||
<p class="pb-1 pr-1 text-sm text-neutral-50">{clockFormatter.format($clock)}</p> | ||
</div> | ||
<button | ||
class="flex w-16 items-center justify-center rounded-b-lg bg-neutral-600 px-3 py-2 font-semibold text-red-700 drop-shadow-md active:bg-red-500 disabled:opacity-50" | ||
on:click|preventDefault="{() => commands.emergencyStop()}"> | ||
Kill | ||
</button> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script lang="ts"> | ||
import { moonraker } from './base.svelte'; | ||
let displayStatusMessage = moonraker.displayStatus.Message; | ||
</script> | ||
|
||
<div class="flex h-6 w-full flex-row items-start justify-center"> | ||
<p class="overflow-clip text-sm text-neutral-50">{$displayStatusMessage}</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 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,5 @@ | ||
import { writable } from 'svelte/store'; | ||
|
||
export class QuadGantryLevel { | ||
public Applied = writable(false); | ||
} |
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,3 @@ | ||
export interface IQuadGantryLevel { | ||
applied: boolean; | ||
} |
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
Oops, something went wrong.