From 6d52b17e9e2dc497e8f3bae0d8fafc591fa081cc Mon Sep 17 00:00:00 2001 From: Michael <3533648+hertg@users.noreply.github.com> Date: Sat, 15 Oct 2022 12:24:38 +0200 Subject: [PATCH 1/2] turn on:click into arrow function, hopefully fixes #8, add alerts to mock power menu --- src/pages/PowerMenu.svelte | 8 ++++---- src/utils/mock.ts | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/PowerMenu.svelte b/src/pages/PowerMenu.svelte index b9db34f..ab0df3b 100644 --- a/src/pages/PowerMenu.svelte +++ b/src/pages/PowerMenu.svelte @@ -6,19 +6,19 @@
{#if window.lightdm.can_hibernate} - + window.lightdm.hibernate()} /> {/if} {#if window.lightdm.can_suspend} - + window.lightdm.suspend()} /> {/if} {#if window.lightdm.can_restart} - + window.lightdm.restart()} /> {/if} {#if window.lightdm.can_shutdown} - + window.lightdm.shutdown()} /> {/if}
diff --git a/src/utils/mock.ts b/src/utils/mock.ts index 9d400da..3acdfdd 100644 --- a/src/utils/mock.ts +++ b/src/utils/mock.ts @@ -242,15 +242,19 @@ export class Greeter implements GreeterClass { } hibernate() { + alert('hibernate'); return true; } restart() { + alert('restart'); return true; } shutdown() { + alert('shutdown') return true; } suspend() { + alert('suspend'); return true; } respond(response: string) { From 7340a58e66afbf23b82646bd9be9b9b576e7b3b0 Mon Sep 17 00:00:00 2001 From: Michael <3533648+hertg@users.noreply.github.com> Date: Sat, 15 Oct 2022 16:05:49 +0200 Subject: [PATCH 2/2] bump version to 0.1.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 15b6438..fd9befc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lightdm-neon", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lightdm-neon", - "version": "0.1.0", + "version": "0.1.1", "devDependencies": { "@rollup/plugin-commonjs": "^22.0.0", "@rollup/plugin-node-resolve": "^13.3.0", diff --git a/package.json b/package.json index e9c4a89..7954fc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lightdm-neon", - "version": "0.1.0", + "version": "0.1.1", "private": true, "scripts": { "build": "rollup -c",