mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #399] [MERGED] Power monitor #1158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/399
Author: @gustavo-lara-molina
Created: 5/12/2020
Status: ✅ Merged
Merged: 5/13/2020
Merged by: @GregorBiswanger
Base:
master← Head:powerMonitor📝 Commits (5)
df02855Added the API Powerc12c26bMerge branch 'master' of https://github.com/ElectronNET/Electron.NET13fcedcUpdating Labesl96a5189Merge - from masterc8e51efUpdating Comments📊 Changes
7 files changed (+165 additions, -1 deletions)
View changed files
📝
ElectronNET.API/Electron.cs(+5 -0)➕
ElectronNET.API/PowerMonitor.cs(+107 -0)➕
ElectronNET.Host/api/powerMonitor.js(+17 -0)➕
ElectronNET.Host/api/powerMonitor.js.map(+1 -0)➕
ElectronNET.Host/api/powerMonitor.ts(+16 -0)📝
ElectronNET.Host/main.js(+3 -0)📝
ElectronNET.WebApp/Controllers/HomeController.cs(+16 -1)📄 Description
powerMonitor
Monitor power state changes.
Event: 'lock-screen' macOS Windows
Emitted when the system is about to lock the screen.
Event: 'unlock-screen' macOS Windows
Emitted as soon as the systems screen is unlocked.
https://www.electronjs.org/docs/api/power-monitor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.