[PoC] Web app remote control (#203)
* [PoC] Web app remote control * Remote UI cleanup * changelog
This commit is contained in:
1 parent
2a57cc99c7
commit
413e73c1c0
23 files changed
+370
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { ExternalControlProtocol } from "lib/Api/ExternalControlProtocol";
|
||||
|
||||
export let key: string;
|
||||
export let icon;
|
||||
|
||||
function pressKey() {
|
||||
console.log(`Sending key: ${key}`);
|
||||
ExternalControlProtocol.pressKey(key);
|
||||
}
|
||||
</script>
|
||||
|
||||
<button
|
||||
on:click={pressKey}
|
||||
class="w-28 h-11 btn-primary rounded-xl flex items-center justify-center"
|
||||
>
|
||||
<svelte:component this={icon} />
|
||||
</button>
|
||||
Reference in new issue
Block a user