From 252201dce5012ae56de2bcfa9f27b2c52cf1d764 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 17 Apr 2024 10:38:53 +0500 Subject: [PATCH] Update --- .../contents/_toolbox/Cmd.qml | 10 ++++++---- .../contents/_toolbox/Delay.qml | 6 +++--- .../contents/config/config.qml | 3 ++- .../contents/service/Updater.qml | 10 +++++----- .../contents/ui/Compact.qml | 6 +++--- com.github.Melawy.ArchUpdate/contents/ui/Full.qml | 8 ++++---- .../contents/ui/config/configGeneral.qml | 8 ++++---- com.github.Melawy.ArchUpdate/contents/ui/main.qml | 10 +++++----- com.github.Melawy.ArchUpdate/metadata.json | 14 +++++--------- 9 files changed, 37 insertions(+), 38 deletions(-) diff --git a/com.github.Melawy.ArchUpdate/contents/_toolbox/Cmd.qml b/com.github.Melawy.ArchUpdate/contents/_toolbox/Cmd.qml index 6c9f17a..682ab33 100644 --- a/com.github.Melawy.ArchUpdate/contents/_toolbox/Cmd.qml +++ b/com.github.Melawy.ArchUpdate/contents/_toolbox/Cmd.qml @@ -1,8 +1,10 @@ -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import QtQuick.Controls 2.15 +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls -import org.kde.plasma.core 2.1 as PlasmaCore +import org.kde.plasma.core as PlasmaCore +import org.kde.plasma.plasmoid +import org.kde.plasma.plasma5support as Plasma5Support PlasmaCore.DataSource { id: executable diff --git a/com.github.Melawy.ArchUpdate/contents/_toolbox/Delay.qml b/com.github.Melawy.ArchUpdate/contents/_toolbox/Delay.qml index 240ffc5..065cc3b 100644 --- a/com.github.Melawy.ArchUpdate/contents/_toolbox/Delay.qml +++ b/com.github.Melawy.ArchUpdate/contents/_toolbox/Delay.qml @@ -1,6 +1,6 @@ -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import QtQuick.Controls 2.15 +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls Item { diff --git a/com.github.Melawy.ArchUpdate/contents/config/config.qml b/com.github.Melawy.ArchUpdate/contents/config/config.qml index 4a1c173..15b8105 100644 --- a/com.github.Melawy.ArchUpdate/contents/config/config.qml +++ b/com.github.Melawy.ArchUpdate/contents/config/config.qml @@ -1,4 +1,5 @@ -import org.kde.plasma.configuration 2.0 +import QtQuick +import org.kde.plasma.configuration ConfigModel { ConfigCategory { diff --git a/com.github.Melawy.ArchUpdate/contents/service/Updater.qml b/com.github.Melawy.ArchUpdate/contents/service/Updater.qml index 6c4ed93..2016050 100644 --- a/com.github.Melawy.ArchUpdate/contents/service/Updater.qml +++ b/com.github.Melawy.ArchUpdate/contents/service/Updater.qml @@ -1,9 +1,9 @@ -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import QtQuick.Controls 2.15 +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls -import org.kde.plasma.core 2.1 as PlasmaCore -import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.core as PlasmaCore +import org.kde.plasma.plasmoid Item { function checkUpdates() { diff --git a/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml b/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml index 46ea678..7554c80 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/Compact.qml @@ -1,8 +1,8 @@ -import QtQuick 2.15 -import QtQuick.Layouts 1.15 +import QtQuick +import QtQuick.Layouts -import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.plasmoid Item { id: compactRep diff --git a/com.github.Melawy.ArchUpdate/contents/ui/Full.qml b/com.github.Melawy.ArchUpdate/contents/ui/Full.qml index 19f7bfb..36ec2d8 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/Full.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/Full.qml @@ -1,8 +1,8 @@ -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import QtQuick.Controls 2.15 +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls -import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.plasmoid Item { id: fullRep diff --git a/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml b/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml index 3d0cd26..7d877e8 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml @@ -1,7 +1,7 @@ -import QtQml 2.0 -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import QtQuick.Controls 2.15 +import QtQml +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls ColumnLayout { Layout.fillHeight: true diff --git a/com.github.Melawy.ArchUpdate/contents/ui/main.qml b/com.github.Melawy.ArchUpdate/contents/ui/main.qml index ddb3beb..84d2c76 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/main.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/main.qml @@ -1,9 +1,9 @@ -import QtQuick 2.15 -import QtQuick.Layouts 1.15 -import QtQuick.Controls 2.15 +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls -import org.kde.plasma.plasmoid 2.0 -import org.kde.plasma.core 2.1 as PlasmaCore +import org.kde.plasma.plasmoid +import org.kde.plasma.core as PlasmaCore import "../_toolbox" as Tb import "../service" as Sv diff --git a/com.github.Melawy.ArchUpdate/metadata.json b/com.github.Melawy.ArchUpdate/metadata.json index afc1b73..194a834 100644 --- a/com.github.Melawy.ArchUpdate/metadata.json +++ b/com.github.Melawy.ArchUpdate/metadata.json @@ -1,4 +1,5 @@ { + "KPackageStructure": "Plasma/Applet", "KPlugin": { "Authors": [ { @@ -8,7 +9,6 @@ "Name[x-test]": "xxValeria Fadeevaxx" } ], - "Category": "System Information", "Name": "Arch Linux Update", "Name[ru]": "Обновления Arch Linux", @@ -21,17 +21,13 @@ "Icon": "preferences-desktop", "Id": "com.github.Melawy.ArchUpdate", "License": "AGPLv3", - - "ServiceTypes": [ - "Plasma/Applet" - ], - - "Version": "1.0", + "Depends": ["konsole", "pacman-contrib", "paru"], + "Version": "2.0", "Website": "https://github.com/Valeria-Fadeeva" }, - "X-Plasma-API": "declarativeappletscript", "X-Plasma-MainScript": "ui/main.qml", "X-Plasma-NotificationArea": "true", - "X-Plasma-NotificationAreaCategory": "Software" + "X-Plasma-NotificationAreaCategory": "SystemServices", + "X-Plasma-API-Minimum-Version": "6.0" }