-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d270c4
commit 55f5660
Showing
26 changed files
with
642 additions
and
154 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
Binary file removed
BIN
-17.2 KB
...apdatifier/contents/locale/de/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
Binary file removed
BIN
-17.1 KB
...apdatifier/contents/locale/es/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
Binary file removed
BIN
-17.2 KB
...apdatifier/contents/locale/fr/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
Binary file removed
BIN
-12 KB
...apdatifier/contents/locale/ko/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
Binary file removed
BIN
-16.5 KB
...apdatifier/contents/locale/nl/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
Binary file removed
BIN
-20.2 KB
...atifier/contents/locale/pt_BR/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
Binary file removed
BIN
-25 KB
...apdatifier/contents/locale/ru/LC_MESSAGES/plasma_applet_com.github.exequtic.apdatifier.mo
Binary file not shown.
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
48 changes: 48 additions & 0 deletions
48
...e/plasma/plasmoids/com.github.exequtic.apdatifier/contents/ui/components/Notification.qml
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,48 @@ | ||
/* | ||
SPDX-FileCopyrightText: 2024 Evgeny Kazantsev <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
import QtQuick | ||
import org.kde.notification | ||
import "../../tools/tools.js" as JS | ||
|
||
Item { | ||
Component { | ||
id: notifyComponent | ||
Notification { | ||
componentName: "apdatifier" | ||
flags: cfg.notifyPersistent ? Notification.Persistent : Notification.CloseOnTimeout | ||
} | ||
} | ||
|
||
Component { | ||
id: actionComponent | ||
NotificationAction { | ||
label: i18n("Upgrade system") | ||
onActivated: JS.upgradeSystem() | ||
} | ||
} | ||
|
||
function send(event, title, body) { | ||
const params = { | ||
news: { icon: "news-subscribe", urgency: "HighUrgency" }, | ||
error: { icon: "error", urgency: "HighUrgency" }, | ||
updates: { icon: "apdatifier-packages", urgency: "DefaultUrgency" } | ||
} | ||
|
||
const { icon, urgency } = params[event] | ||
|
||
const action = (event === "updates" && cfg.notifyAction) ? actionComponent.createObject(root) : [] | ||
|
||
if (cfg.notifySound) event += "Sound" | ||
|
||
notifyComponent.createObject(root, { | ||
eventId: event, | ||
iconName: icon, | ||
title: title, | ||
text: body, | ||
actions: action | ||
})?.sendEvent() | ||
} | ||
} |
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
44 changes: 22 additions & 22 deletions
44
Configs/Home/.local/share/plasma/plasmoids/com.github.exequtic.apdatifier/metadata.json
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"KPlugin": { | ||
"Authors": [ | ||
{ | ||
"Name": "Evgeny Kazantsev", | ||
"Email": "[email protected]" | ||
} | ||
], | ||
"Category": "System Information", | ||
"Description": "Arch Update Notifier", | ||
"Icon": "apdatifier-plasmoid", | ||
"Id": "com.github.exequtic.apdatifier", | ||
"Name": "Apdatifier", | ||
"EnabledByDefault": true, | ||
"Version": "2.9.0", | ||
"License": "MIT", | ||
"BugReportUrl": "https://github.com/exequtic/apdatifier/issues", | ||
"Website": "https://github.com/exequtic/apdatifier" | ||
}, | ||
"KPackageStructure": "Plasma/Applet", | ||
"X-Plasma-API-Minimum-Version": "6.0", | ||
"X-Plasma-NotificationArea": "true", | ||
"X-Plasma-NotificationAreaCategory": "SystemServices" | ||
"KPlugin": { | ||
"Authors": [ | ||
{ | ||
"Name": "Evgeny Kazantsev", | ||
"Email": "[email protected]" | ||
} | ||
], | ||
"Category": "System Information", | ||
"Description": "Arch Update Notifier", | ||
"Icon": "apdatifier-plasmoid", | ||
"Id": "com.github.exequtic.apdatifier", | ||
"Name": "Apdatifier", | ||
"EnabledByDefault": true, | ||
"Version": "2.9.0", | ||
"License": "MIT", | ||
"BugReportUrl": "https://github.com/exequtic/apdatifier/issues", | ||
"Website": "https://github.com/exequtic/apdatifier" | ||
}, | ||
"KPackageStructure": "Plasma/Applet", | ||
"X-Plasma-API-Minimum-Version": "6.0", | ||
"X-Plasma-NotificationArea": "true", | ||
"X-Plasma-NotificationAreaCategory": "SystemServices" | ||
} |
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.