diff --git a/kdecdesklet@joejoetv/README.md b/kdecdesklet@joejoetv/README.md deleted file mode 100644 index 509b51fad..000000000 --- a/kdecdesklet@joejoetv/README.md +++ /dev/null @@ -1,14 +0,0 @@ -A Cinnamon Desklet for showing information about a Device connected via KDEConnect, like Battery Charge and Notifications. - -## Requirements -KDE Connect needs to be installed. - -## Installation -Download and extract the files in the "files" folder to ~/.local/share/cinnamon/desklets/. - -## Usage -Once you added the Desklet to your Desktop, right click it and select your Device from the "Available Devices" list(Paired, but not rechable devices are greyed out). -After your selected your Device, you can see information about it and manage notifications(dismiss and reply to them). - - -**If you find any bugs, please report them** diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/desklet.js b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/desklet.js deleted file mode 100644 index dda582399..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/desklet.js +++ /dev/null @@ -1,800 +0,0 @@ -const Desklet = imports.ui.desklet; -const PopupMenu = imports.ui.popupMenu; -const Lang = imports.lang; -const St = imports.gi.St; -const Gtk = imports.gi.Gtk; -const Main = imports.ui.main; -const Gio = imports.gi.Gio; -const Settings = imports.ui.settings; -const Extension = imports.ui.extension; -const GLib = imports.gi.GLib; -const Gettext = imports.gettext; - -const UUID = "kdecdesklet@joejoetv"; - -const FreedesktopDBusInterface = '\ - \ - \ - \ - \ - \ - \ -'; -const FreedesktopDBusProxy = Gio.DBusProxy.makeProxyWrapper(FreedesktopDBusInterface); - -const KDEConnectInterface = '\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -'; -const KDEConnectProxy = Gio.DBusProxy.makeProxyWrapper(KDEConnectInterface); - -const KDEConnectDeviceInterface = '\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -'; -const KDEConnectDeviceProxy = Gio.DBusProxy.makeProxyWrapper(KDEConnectDeviceInterface); - -const KDEConnectDeviceBatteryInterface = '\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -'; -const KDEConnectDeviceBatteryProxy = Gio.DBusProxy.makeProxyWrapper(KDEConnectDeviceBatteryInterface); - -const KDEConnectDeviceNotificationsInterface = '\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -'; -const KDEConnectDeviceNotificationsProxy = Gio.DBusProxy.makeProxyWrapper(KDEConnectDeviceNotificationsInterface); - -const KDEConnectDeviceNotificationInterface = '\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -'; -const KDEConnectDeviceNotificationProxy = Gio.DBusProxy.makeProxyWrapper(KDEConnectDeviceNotificationInterface); - -const defaultDevice = { - ID: "", - isReachable: false, - Name: "", - supportsBattery: false, - supportsNotifications: false, - notificationList: [], - batteryCharge: 0, - batteryChargeState: false, - type: "" -} - -function getBatteryIcon(charge, isCharging) { - let iconName = "battery-symbolic"; - - if (isCharging == true) { - switch (true) { - case (charge <= 10): - iconName = "battery-empty-charging-symbolic"; - break; - case (charge > 10 && charge <= 25): - iconName = "battery-caution-charging-symbolic"; - break; - case (charge > 25 && charge <= 50): - iconName = "battery-low-charging-symbolic"; - break; - case (charge > 50 && charge <= 75): - iconName = "battery-medium-charging-symbolic"; - break; - case (charge > 75 && charge <= 99): - iconName = "battery-good-charging-symbolic"; - break; - case (charge > 99 && charge <= 100): - iconName = "battery-full-charging-symbolic"; - break; - } - } - else { - switch (true) { - case (charge <= 10): - iconName = "battery-empty-symbolic"; - break; - case (charge > 10 && charge <= 25): - iconName = "battery-caution-symbolic"; - break; - case (charge > 25 && charge <= 50): - iconName = "battery-low-symbolic"; - break; - case (charge > 50 && charge <= 75): - iconName = "battery-medium-symbolic"; - break; - case (charge > 75 && charge <= 99): - iconName = "battery-good-symbolic"; - break; - case (charge > 99 && charge <= 100): - iconName = "battery-full-symbolic"; - break; - } - } - return iconName -} - -function getDeviceIcon(type) { - let iconName - - switch(type) { - case "desktop": - iconName = "computer-symbolic"; - break; - case "laptop": - iconName = "laptop-symbolic"; - break; - case "smartphone": - iconName = "smartphone-symbolic"; - break; - case "tablet": - iconName = "tablet-symbolic"; - break; - case "tv": - iconName = "tv-symbolic"; - break; - default: - iconName = "dialog-question-symbolic"; - } - - return iconName -} - -// l10n/translation support -Gettext.bindtextdomain(UUID, GLib.get_home_dir() + "/.local/share/locale"); - -function _(str) { - return Gettext.dgettext(UUID, str); -} - -function KDEConnectDesklet(metadata, desklet_id) { - this._init(metadata, desklet_id); -} - -function DeviceNotification(selectedDevice, notificationID, appName, dismissable, hasIcon, iconPath, replyAvailable, replyID, silent, text, title, ticker) { - this._init(selectedDevice, notificationID, appName, dismissable, hasIcon, iconPath, replyAvailable, replyID, silent, text, title, ticker); -} - -DeviceNotification.prototype = { - _init: function(selectedDevice, notificationID, appName, dismissable, hasIcon, iconPath, replyAvailable, replyID, silent, text, title, ticker) { - this.notificationID = notificationID; - this.appName = appName; - this.dismissable = dismissable; - this.hasIcon = hasIcon; - this.iconPath = iconPath; - this.replyAvailable = replyAvailable; - this.replyID = replyID; - this.silent = silent; - this.selectedDevice = selectedDevice; - - let showText = true; - - if (text !== "") { - this.text = text; - this.title = title; - showText = true; - } - else { - if (ticker !== "") { - this.title = ticker - this.text = ""; - showText = false; - } - else { - this.title = title; - this.text = ""; - showText = false; - } - } - - let applicationIcon = new St.Icon({icon_size: 16, style_class: "kdecd-notification-app-icon", icon_name: "", icon_type: St.IconType.FULLCOLOR}); - - if (this.hasIcon == true) { - try { - let icon = Gio.Icon.new_for_string(this.iconPath); - applicationIcon.set_gicon(icon); - } - catch (error) { - global.logError(error); - } - } - - let applicationName = new St.Label({style_class: "kdecd-notification-app-name", text: this.appName, x_expand: true, y_align: 2}); - this._dismissButton = new St.Button({style_class: "kdecd-notification-dismiss-button", label: ""}); - let dismissIcon = new St.Icon({icon_size: 16, style_class: "kdecd-notification-dismiss-button-icon", icon_name: "window-close-symbolic", icon_type: St.IconType.SYMBOLIC}); - this._dismissButton.add_actor(dismissIcon); - this._onDismissButtonClicked = this._dismissButton.connect("clicked", Lang.bind(this, this.onDismissButtonClicked)); - - let notificationTitle = new St.Label({style_class: "kdecd-notification-title", text: this.title}); - let notificationText = new St.Label({style_class: "kdecd-notification-text", text: this.text}); - - this._replyButton = new St.Button({style_class: "kdecd-notification-reply-button", label: _("Reply")}); - this._onReplyButtonClicked = this._replyButton.connect("clicked", Lang.bind(this, this.onReplyButtonClicked)); - - let header = new St.BoxLayout({style_class: "kdecd-notification-header-container", vertical: false}); - let content = new St.BoxLayout({style_class: "kdecd-notification-content-container", vertical: true}); - let buttonContainer = new St.BoxLayout({style_class: "kdecd-notification-button-container", vertical: false, x_expand: true}); - - this.actor = new St.BoxLayout({style_class: "kdecd-notification-container", vertical: true}); - - header.add(applicationIcon); - header.add(applicationName); - - if (this.dismissable == true) { - header.add(this._dismissButton); - } - - content.add(notificationTitle); - if (showText == true) { - content.add(notificationText); - } - - buttonContainer.add(this._replyButton); - - this.actor.add(header); - this.actor.add(content); - - if (replyAvailable == true) { - this.actor.add(buttonContainer); - } - }, - - onReplyButtonClicked: function(button, clicked_button) { - try { - let notificationProxy = KDEConnectDeviceNotificationProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID+"/notifications/"+this.notificationID); - notificationProxy.replySync(); - } - catch (error) { - global.logError(error); - } - }, - - onDismissButtonClicked: function(button, clicked_button) { - try { - let notificationProxy = KDEConnectDeviceNotificationProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID+"/notifications/"+this.notificationID); - notificationProxy.dismissSync(); - } - catch (error) { - global.logError(error); - } - }, - - destroy: function() { - this._dismissButton.disconnect(this._onDismissButtonClicked); - this._replyButton.disconnect(this._onReplyButtonClicked); - this.actor.destroy_all_children(); - } -} - -KDEConnectDesklet.prototype = { - __proto__: Desklet.Desklet.prototype, - - _init: function(metadata, desklet_id) { - Desklet.Desklet.prototype._init.call(this, metadata, desklet_id); - - this.ui = {}; - this.selectedDevice = {}; - this.selectedDevice = Object.assign(this.selectedDevice, defaultDevice); - this.deviceList = []; - this.DeviceMenuItemSignalList = []; - - this.settings = new Settings.DeskletSettings(this, this.metadata["uuid"], desklet_id); - - //Ckeck if KDEConnect is running by checking if it is available on the DBus - let dbusNameList = []; - - try { - let dbproxy = new FreedesktopDBusProxy(Gio.DBus.session, "org.freedesktop.DBus", "/org/freedesktop/DBus"); - dbusNameList = dbproxy.ListNamesSync()[0]; - } - catch (error) { - global.logError(error); - } - - if (dbusNameList.includes("org.kde.kdeconnect")) { - this.devicesMenuItem = new PopupMenu.PopupSubMenuMenuItem(_("Available Devices")); - this._menu.addMenuItem(this.devicesMenuItem); - - this.selectedDevice.ID = this.settings.getValue("selected-device-id"); - global.log("["+this.metadata.uuid+"] Loaded Device ID from settings: "+this.selectedDevice.ID); - - //this.scale = 1; - //TODO: Maybe add scale setting, so the applet size can be configured - - try{ - this.kdecProxy = new KDEConnectProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect"); - this._onDeviceListChanged = this.kdecProxy.connectSignal("deviceListChanged", Lang.bind(this, this.onDeviceListChanged)); - - this.updateDeviceList(); - this.setupUI(); - } - catch (error) { - global.logError(error); - } - } - else { - this._menu.addAction(_("Reload Desklet"), Lang.bind(this, this.reloadDesklet)); - - let deskletContainer = new St.BoxLayout({vertical: false, style_class: "kdecd-desklet-container"}); - let InfoContainer = new St.BoxLayout({vertical: true, style_class: "kdecd-device-info-container"}); - let Icon = new St.Icon({icon_name: "window-close-symbolic", icon_size: 96, icon_type: St.IconType.SYMBOLIC, style_class: "kdecd-device-icon-gray", y_expand: true}); - let Label = new St.Label({text: _("KDEConnect is not running!"), style_class: "kdecd-device-name-gray"}); - - InfoContainer.add(Label); - InfoContainer.add(Icon); - - deskletContainer.add(InfoContainer); - - this.setContent(deskletContainer); - } - }, - - setupUI: function() { - try { - if (this.ui.notifcationListContainer) { - this.ui.notifcationListContainer.destroy_all_children(); - } - for (let key in this.ui) { - this.ui[key].destroy(); - } - } - catch (error) { - global.logError(error); - } - - let deviceName = ""; - let deviceNameStyleClass = ""; - let deviceIcon = ""; - let deviceIconStyleClass = ""; - let showBatteryArea = false; - let showNotificationArea = false; - - if (this.selectedDevice.ID !== "") { - if (this.selectedDevice.isReachable == true) { - deviceName = this.selectedDevice.Name; - deviceNameStyleClass = "kdecd-device-name"; - deviceIcon = getDeviceIcon(this.selectedDevice.type); - deviceIconStyleClass = "kdecd-device-icon"; - showBatteryArea = this.selectedDevice.supportsBattery; - showNotificationArea = this.selectedDevice.supportsNotifications; - } - else { - deviceName = this.selectedDevice.Name; - deviceNameStyleClass = "kdecd-device-name-gray"; - deviceIcon = getDeviceIcon(this.selectedDevice.type); - deviceIconStyleClass = "kdecd-device-icon-gray"; - showBatteryArea = false; - showNotificationArea = false; - } - } - else { - deviceName = _("No Device Selected!"); - deviceNameStyleClass = "kdecd-device-name-gray"; - deviceIcon = "window-close-symbolic"; - deviceIconStyleClass = "kdecd-device-icon-gray"; - showBatteryArea = false; - showNotificationArea = false; - } - - this.ui.deskletContainer = new St.BoxLayout({vertical: false, style_class: "kdecd-desklet-container"}); - this.ui.notificationScrollArea = new St.ScrollView({style_class: "kdecd-notification-area"}); - this.ui.deviceInfoContainer = new St.BoxLayout({vertical: true, style_class: "kdecd-device-info-container"}); - this.ui.deviceBatteryInfoContainer = new St.BoxLayout({vertical: false, style_class: "kdecd-device-battery-container", x_align: St.Align.END}); - this.ui.notifcationListContainer = new St.BoxLayout({vertical: true, style_class: "kdecd-notification-list-container"}) - - this.ui.deviceIcon = new St.Icon({icon_name: deviceIcon, icon_size: 96, icon_type: St.IconType.SYMBOLIC, style_class: deviceIconStyleClass, y_expand: true}); - this.ui.deviceName = new St.Label({text: deviceName, style_class: deviceNameStyleClass}); - this.ui.batteryIcon = new St.Icon({icon_name: getBatteryIcon(this.selectedDevice.batteryCharge, this.selectedDevice.batteryChargeState), icon_size: 24, icon_type: St.IconType.SYMBOLIC, style_class: "kdecd-device-battery-icon"}); - this.ui.batteryCharge = new St.Label({text: this.selectedDevice.batteryCharge+"%", style_class: "kdecd-device-battery-charge"}); - - this.ui.notificationScrollArea.set_policy(Gtk.PolicyType.NEVER,Gtk.PolicyType.AUTOMATIC); - - this.ui.deviceBatteryInfoContainer.add(this.ui.batteryIcon); - this.ui.deviceBatteryInfoContainer.add(this.ui.batteryCharge); - - this.ui.deviceInfoContainer.add(this.ui.deviceName); - this.ui.deviceInfoContainer.add(this.ui.deviceIcon); - - if (showBatteryArea) { - this.ui.deviceInfoContainer.add(this.ui.deviceBatteryInfoContainer); - } - - this.ui.deskletContainer.add(this.ui.deviceInfoContainer); - - if (showNotificationArea) { - if (this.selectedDevice.notificationList.length > 0) { - for (let i = 0; i < this.selectedDevice.notificationList.length; i++) { - this.ui.notifcationListContainer.add(this.selectedDevice.notificationList[i].actor); - } - } - - this.ui.notificationScrollArea.add_actor(this.ui.notifcationListContainer); - - this.ui.deskletContainer.add(this.ui.notificationScrollArea); - } - - //TODO: Fix many St Errors (.xsession-errors) - this.setContent(this.ui.deskletContainer); - }, - - updateDeviceList: function() { - let deviceIDs = []; - let deviceNames = new Object(); - - try { - deviceIDs = this.kdecProxy.devicesSync(false, true)[0]; - deviceNames = this.kdecProxy.deviceNamesSync(false, true)[0]; - } - catch (error) { - global.logError(error); - } - - this.deviceList.length = 0; - - let selectedDeviceFound = false; - - if (deviceIDs.length > 0) { - for (let i = 0; i < deviceIDs.length; i++) { - let isReachable = false; - let loadedPlugins = []; - let type = ""; - - try { - let kdecDevProxy = new KDEConnectDeviceProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+deviceIDs[i]); - isReachable = kdecDevProxy.isReachable; - loadedPlugins = kdecDevProxy.loadedPluginsSync()[0]; - type = kdecDevProxy.type; - } - catch (error) { - global.logError(error); - } - - let device = {}; - - device.supportsBattery = loadedPlugins.includes("kdeconnect_battery"); - device.supportsNotifications = loadedPlugins.includes("kdeconnect_notifications"); - device.type = type; - device.ID = deviceIDs[i]; - device.Name = deviceNames[deviceIDs[i]]; - device.isReachable = isReachable; - - //Debug - //global.log("[UPDATE DEVICE LIST] DEVICE: ID: "+device.ID+" NAME: "+device.Name+" TYPE: "+device.type+" BAT?: "+device.supportsBattery+" NOT?: "+device.supportsNotifications+" REACH?: "+device.isReachable); - - if (this.selectedDevice.ID !== "") { - if (deviceIDs[i] == this.selectedDevice.ID && selectedDeviceFound == false) { - selectedDeviceFound = true; - - this.updateSelectedDevice(device); - - this.getBatteryData(); - this.getNotificationData(); - } - } - this.deviceList.push(device); - } - } - - if (this.selectedDevice.ID !== "") { - if (selectedDeviceFound !== true) { - this.resetSelectedDevice(); - - this.setupUI(); - } - } - - this.updateContextMenu(); - - global.log("["+this.metadata.uuid+"] Updated Device List"); - }, - - updateContextMenu: function() { - for (let i = 0; i < this.DeviceMenuItemSignalList.length; i++) { - this.DeviceMenuItemSignalList[i].menuItem.disconnect(this.DeviceMenuItemSignalList[i].activateSignal); - } - this.DeviceMenuItemSignalList.length = 0; - - this.devicesMenuItem.menu.removeAll(); - - if (this.deviceList.length == 0) { - let noReachableDevicesMenuItem = new PopupMenu.PopupMenuItem(_("No paired devices!"), {reactive: false}); - noReachableDevicesMenuItem.setSensitive(false); - this.devicesMenuItem.menu.addMenuItem(noReachableDevicesMenuItem); - } - else { - for (let i = 0; i < this.deviceList.length; i++) { - let currentDevice = this.deviceList[i]; - - let deviceMenuItem; - - if (currentDevice.isReachable) { - deviceMenuItem = new PopupMenu.PopupMenuItem(currentDevice.Name, {reactive: true}); - - if (currentDevice.ID !== "") { - if (currentDevice.ID == this.selectedDevice.ID) { - deviceMenuItem.setShowDot(true); - } - else { - let deviceMenuItemSignal = {}; - deviceMenuItemSignal.menuItem = deviceMenuItem; - deviceMenuItemSignal.activateSignal = deviceMenuItem.connect("activate", Lang.bind(this, function() { - try { - this.updateSelectedDevice(currentDevice); - - this.updateContextMenu(); - - this.getBatteryData(); - this.getNotificationData(); - - this.setupUI(); - } - catch (error) { - global.logError(error); - } - })); - - this.DeviceMenuItemSignalList.push(deviceMenuItemSignal); - } - } - - } - else { - deviceMenuItem = new PopupMenu.PopupMenuItem(currentDevice.Name, {reactive: false}); - deviceMenuItem.actor.add_style_pseudo_class('insensitive'); - } - - this.devicesMenuItem.menu.addMenuItem(deviceMenuItem); - } - } - }, - - getBatteryData: function() { - if (this.selectedDevice.supportsBattery) { - try { - let kdecDevBatProxy = KDEConnectDeviceBatteryProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID) - this.selectedDevice.batteryCharge = kdecDevBatProxy.chargeSync()[0]; - this.selectedDevice.batteryChargeState = kdecDevBatProxy.isChargingSync()[0]; - } - catch (error) { - global.logError(error); - } - } - }, - - getNotificationData: function() { - if (this.selectedDevice.supportsNotifications) { - for (let i = 0; i < this.selectedDevice.notificationList.length; i++) { - this.selectedDevice.notificationList[i].destroy(); - } - this.selectedDevice.notificationList.length = 0; - - let activeNotifications = []; - try { - let kdecDevNotsProxy = KDEConnectDeviceNotificationsProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID) - activeNotifications = kdecDevNotsProxy.activeNotificationsSync()[0]; - - for (let i = 0; i < activeNotifications.length; i++) { - let kdecDevNotProxy = KDEConnectDeviceNotificationProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID+"/notifications/"+activeNotifications[i]); - - let replyAvailable = (kdecDevNotProxy.replyId !== ""); - let currentNotification = new DeviceNotification(this.selectedDevice, activeNotifications[i], kdecDevNotProxy.appName, kdecDevNotProxy.dismissable, kdecDevNotProxy.hasIcon, kdecDevNotProxy.iconPath, replyAvailable, kdecDevNotProxy.replyId, kdecDevNotProxy.silent, kdecDevNotProxy.text, kdecDevNotProxy.title, kdecDevNotProxy.ticker); - - this.selectedDevice.notificationList.push(currentNotification); - } - } - catch (error) { - global.logError(error); - } - } - }, - - updateSelectedDevice: function(newDevice) { - this.resetSelectedDevice(); - - this.settings.setValue("selected-device-id", newDevice.ID); - global.log("["+this.metadata.uuid+"] Updated Device ID setting: "+newDevice.ID); - - this.selectedDevice = Object.assign(this.selectedDevice, newDevice); - - try { - if (this.selectedDevice.supportsBattery == true) { - this.selectedDevice._batteryProxy = KDEConnectDeviceBatteryProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID) - - this.selectedDevice._onBatteryStateChanged = this.selectedDevice._batteryProxy.connectSignal("stateChanged", Lang.bind(this, this.onBatteryStateChanged)); - } - - if (this.selectedDevice.supportsNotifications == true) { - this.selectedDevice._notificationProxy = KDEConnectDeviceNotificationsProxy(Gio.DBus.session, "org.kde.kdeconnect", "/modules/kdeconnect/devices/"+this.selectedDevice.ID) - - this.selectedDevice._onAllNotificationsRemoved = this.selectedDevice._notificationProxy.connectSignal("allNotificationsRemoved", Lang.bind(this, this.onAllNotificationsRemoved)); - this.selectedDevice._onNotificationPosted = this.selectedDevice._notificationProxy.connectSignal("notificationPosted", Lang.bind(this, this.onNotificationsUpdated)); - this.selectedDevice._onNotificationUpdated = this.selectedDevice._notificationProxy.connectSignal("notificationUpdated", Lang.bind(this, this.onNotificationsUpdated)); - this.selectedDevice._onNotificationRemoved = this.selectedDevice._notificationProxy.connectSignal("notificationRemoved", Lang.bind(this, this.onNotificationsUpdated)); - } - } - catch (error) { - global.logError(error); - } - }, - - resetSelectedDevice: function() { - if (this.selectedDevice.supportsNotifications == true) { - for (let i = 0; i < this.selectedDevice.notificationList.length; i++) { - this.selectedDevice.notificationList[i].destroy(); - } - this.selectedDevice.notificationList.length = 0; - } - - if (typeof this.selectedDevice._onAllNotificationsRemoved !== "undefined") { - this.selectedDevice._notificationProxy.disconnectSignal(this.selectedDevice._onAllNotificationsRemoved); - delete this.selectedDevice._onAllNotificationsRemoved; - } - if (typeof this.selectedDevice._onNotificationPosted !== "undefined") { - this.selectedDevice._notificationProxy.disconnectSignal(this.selectedDevice._onNotificationPosted); - delete this.selectedDevice._onNotificationPosted; - } - if (typeof this.selectedDevice._onNotificationUpdated !== "undefined") { - this.selectedDevice._notificationProxy.disconnectSignal(this.selectedDevice._onNotificationUpdated); - delete this.selectedDevice._onNotificationUpdated; - } - if (typeof this.selectedDevice._onNotificationRemoved !== "undefined") { - this.selectedDevice._notificationProxy.disconnectSignal(this.selectedDevice._onNotificationRemoved); - delete this.selectedDevice._onNotificationRemoved; - } - if (typeof this.selectedDevice._onBatteryStateChanged !== "undefined") { - this.selectedDevice._batteryProxy.disconnectSignal(this.selectedDevice._onBatteryStateChanged); - delete this.selectedDevice._onBatteryStateChanged; - } - this.selectedDevice = Object.assign(this.selectedDevice, defaultDevice); - }, - - onDeviceListChanged: function() { - this.updateDeviceList(); - this.setupUI(); - }, - - onBatteryStateChanged: function(proxy, sender, [charging]) { - this.getBatteryData(); - - if (this.selectedDevice.supportsBattery == true) { - try { - this.ui.batteryCharge.set_text(this.selectedDevice.batteryCharge+"%"); - this.ui.batteryIcon.set_icon_name(getBatteryIcon(this.selectedDevice.batteryCharge, this.selectedDevice.batteryChargeState)); - - } - catch (error) { - global.logError(error); - } - } - }, - - onAllNotificationsRemoved: function(proxy, sender) { - this.getNotificationData(); - }, - - onNotificationsUpdated: function(proxy, sender, [publicId]) { - this.getNotificationData(); - - try { - if (this.selectedDevice.supportsNotifications == true) { - this.ui.notifcationListContainer.destroy_all_children(); - if (this.selectedDevice.notificationList.length > 0) { - for (let i = 0; i < this.selectedDevice.notificationList.length; i++) { - this.ui.notifcationListContainer.add(this.selectedDevice.notificationList[i].actor); - } - } - } - - } - catch (error) { - global.logError(error); - } - }, - - on_desklet_removed: function() { - this.resetSelectedDevice(); - - if (typeof this._onDeviceListChanged !== "undefined") { - this.kdecProxy.disconnectSignal(this._onDeviceListChanged); - delete this._onDeviceListChanged; - } - - try { - for (let i = 0; i < this.DeviceMenuItemSignalList.length; i++) { - this.DeviceMenuItemSignalList[i].menuItem.disconnect(this.DeviceMenuItemSignalList[i].activateSignal); - } - this.DeviceMenuItemSignalList.length = 0; - } - catch (error) { - global.logError(error); - } - }, - - reloadDesklet: function() { - Extension.reloadExtension(this.metadata["uuid"], Extension.Type.DESKLET); - } -} - -function main(metadata, desklet_id) { - return new KDEConnectDesklet(metadata, desklet_id); -} diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/icon.png b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/icon.png deleted file mode 100644 index 13da2ff8b..000000000 Binary files a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/icon.png and /dev/null differ diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/metadata.json b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/metadata.json deleted file mode 100644 index b25701ddc..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/metadata.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "uuid": "kdecdesklet@joejoetv", - "name": "KDEConnect Desklet", - "description": "Desklet for displaying information about a Device connected with KDeConnect.", - "comments": "", - "version": "0.1", - "website": "" -} \ No newline at end of file diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ca.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ca.po deleted file mode 100644 index 2ab2b4441..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ca.po +++ /dev/null @@ -1,66 +0,0 @@ -# KDEConnect desklet for Cinnamon -# This file is put in the public domain. -# Daniel , 2024. -# -msgid "" -msgstr "" -"Project-Id-Version: kdecdesklet@joejoetv 0.1\n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-05-15 14:25+0200\n" -"PO-Revision-Date: 2024-05-15 14:36+0200\n" -"Last-Translator: Daniel \n" -"Language-Team: \n" -"Language: ca\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 3.0.1\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Respon" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Dispositius disponibles" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Recarrega la miniaplicació" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect no s'està executant" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "No heu seleccionat cap dispositiu" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "No hi ha dispositius connectats" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "Miniaplicació d'escriptori de KDEConnect" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Miniaplicació d'escriptori per a mostrar informació de dispositius " -"connectats via KDEConnect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Ajusts del dispositiu" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "ID del dispositiu seleccionat" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "ID del dispositiu en KDEConnect" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/da.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/da.po deleted file mode 100644 index 3cb3ca2f2..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/da.po +++ /dev/null @@ -1,65 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2020-12-09 18:20+0100\n" -"Last-Translator: Alan Mortensen \n" -"Language-Team: \n" -"Language: da\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Svar" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Tilgængelige enheder" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Genindlæs skrivebordsprogrammet" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDE Connect kører ikke!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Ingen enhed valgt!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Ingen parrede enheder!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDE Connect" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "Viser information om en enhed forbundet med KDE Connect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Enhedsindstillinger" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "Valgte enheds enheds-ID" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDE Connect enheds-ID" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/de.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/de.po deleted file mode 100644 index c8d5edd8d..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/de.po +++ /dev/null @@ -1,67 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2020-08-13 23:35+0200\n" -"Last-Translator: \n" -"Language-Team: \n" -"Language: de\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.6\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Antworten" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Verfügbare Geräte" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Desklet neuladen" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect läuft nicht!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Kein Gerät ausgewählt!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Keine gekoppelten Geräte!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDEConnect Desklet" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Ein Desklet, um Informationen über ein per KDEConnect verbundenes Gerät " -"anzuzeigen und damit zu interagieren." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Geräteeinstellungen" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "Geräte-ID des ausgewählten Geräts" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDEConnect Geräte-ID" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/es.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/es.po deleted file mode 100644 index 734872136..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/es.po +++ /dev/null @@ -1,66 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2023-07-20 20:40-0400\n" -"Last-Translator: \n" -"Language-Team: \n" -"Language: es\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.3.1\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Responder" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Dispositivos disponibles" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Recargar Desklet" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "¡KDEConnect no funciona!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "¡No se ha seleccionado ningún dispositivo!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "¡No hay dispositivos emparejados!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "Desklet KDEConnect" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Desklet para mostrar información sobre un Dispositivo conectado con " -"KDeConnect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Ajustes del dispositivo" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "ID del dispositivo seleccionado" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "ID del dispositivo KDEConnect" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/fi.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/fi.po deleted file mode 100644 index d6071e4c6..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/fi.po +++ /dev/null @@ -1,64 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# This file is put in the public domain. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: kdecdesklet@joejoetv 0.1\n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-05-15 14:25+0200\n" -"PO-Revision-Date: 2025-04-02 00:15+0300\n" -"Last-Translator: Kimmo Kujansuu \n" -"Language-Team: \n" -"Language: fi\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.2\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Vastaa" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Saatavilla olevat laitteet" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Lataa uudelleen" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect ei ole käynnissä!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Ei laitetta valittuna!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Ei laitepareja!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDEConnect Desklet" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "Sovelma näyttää puhelimet ja tabletit KDeConnect ohjelmalla." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Laiteasetukset" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "Valitun laitteen id-tunnus" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDEConnect laite-id" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/hu.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/hu.po deleted file mode 100644 index fed523f9c..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/hu.po +++ /dev/null @@ -1,66 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2021-04-11 10:47+0200\n" -"Last-Translator: Balazs Bosak \n" -"Language-Team: \n" -"Language: hu\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Válasz" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Elérhető eszközök" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Asztalkalmazás újratöltése" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect nem fut!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Nincs kiválasztott eszköz!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Nincsenek párosított eszközök!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDEConnect asztalkalmazás" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"A KDEConnect-hez csatlakoztatott eszköz információinak megjelenítésére " -"szolgáló asztalkalmazás." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Eszközbeállítások" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "A kiválasztott eszköz azonosítója" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDEConnect eszköz azonosító" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/it.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/it.po deleted file mode 100644 index e79ad4e97..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/it.po +++ /dev/null @@ -1,67 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2022-06-03 12:50+0200\n" -"Last-Translator: Dragone2 \n" -"Language-Team: \n" -"Language: it\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Rispondi" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Dispositivi Disponibili" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Ricarica Desklet" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect non è in esecuzione!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Nessun Dispositivo Selezionato!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Nessun dispositivo accoppiato!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDEConnect Desklet" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Desklet per mostrare informazioni su un Dispositivo connesso tramite " -"KDEConnect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Impostazioni Dispotivo" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "ID del Dispositivo selezionato" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "ID del Dispositivo KDEConnect" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/kdecdesklet@joejoetv.pot b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/kdecdesklet@joejoetv.pot deleted file mode 100644 index 8c19005fe..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/kdecdesklet@joejoetv.pot +++ /dev/null @@ -1,63 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# This file is put in the public domain. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: kdecdesklet@joejoetv 0.1\n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-05-15 14:25+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/nl.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/nl.po deleted file mode 100644 index 95545bfb5..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/nl.po +++ /dev/null @@ -1,65 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2024-04-19 12:45+0200\n" -"Last-Translator: qadzek\n" -"Language-Team: \n" -"Language: nl\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Antwoord" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Beschikbare apparaten" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Desklet herladen" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDE Connect is niet actief!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Geen apparaat geselecteerd!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Geen gekoppelde apparaten!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDE Connect Desklet" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Desklet voor het weergeven van informatie over een apparaat dat is verbonden " -"met KDE Connect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Apparaatinstellingen" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "Apparaat-ID van geselecteerd apparaat" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDE Connect apparaat-ID" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/pt_BR.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/pt_BR.po deleted file mode 100644 index 5908ffcf3..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/pt_BR.po +++ /dev/null @@ -1,67 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Marcelo Aof, 2021. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2021-09-27 22:14-0300\n" -"Last-Translator: Marcelo Aof\n" -"Language-Team: \n" -"Language: pt_BR\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.0\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Responder" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Dispositivos disponíveis" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Recarregar o desklet" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect não está em execução!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Nenhum dispositivo foi selecionado!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Nenhum dispositivo está conectado!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "Desklet de KDE Connect" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Um desklet que exibe informações sobre um dispositivo conectado ao sistema " -"por meio do KDE Connect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Configurações do dispositivo" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "ID do dispositivo selecionado" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "ID do KDE Connect" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ro.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ro.po deleted file mode 100644 index 261fa6dc5..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ro.po +++ /dev/null @@ -1,67 +0,0 @@ -# Romanian translations for PACKAGE package. -# Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Automatically generated, 2023. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2020-08-13 23:34+0200\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" -"Language: ro\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " -"20)) ? 1 : 2;\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Răspuns" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Dispozitive disponibile" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Reîncarcă Desklet" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect nu funcționează!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Nici un dispozitiv selectat!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Nu există dispozitive cuplate!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDEConnect Desklet" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Desklet pentru afișarea informațiilor despre un dispozitiv conectat cu " -"KDeConnect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Setări dispozitiv" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "ID-ul dispozitivului dispozitivului selectat" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "ID-ul dispozitivului KDEConnect" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ru.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ru.po deleted file mode 100644 index 5416cf321..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/ru.po +++ /dev/null @@ -1,62 +0,0 @@ -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: \n" -"Last-Translator: blogdron\n" -"Language-Team: \n" -"Language: ru\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.1\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Ответ" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Доступные Устройства" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Перезапустить Десклет" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect не запущен!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Не Выбрано Устройство!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Нет сопряжённых устройств!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"Десклет, отображающий информацию об устройтсвах подключённых через KDE " -"Connect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Настройки Устройства" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "Идентификатор (ID) выбранного устройства" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDEConnect ID Устройства" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/tr.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/tr.po deleted file mode 100644 index ddfc02a32..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/tr.po +++ /dev/null @@ -1,67 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-04-29 14:50-0400\n" -"PO-Revision-Date: 2021-02-28 23:51+0300\n" -"Last-Translator: Serkan ÖNDER \n" -"Language-Team: \n" -"Language: tr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Cevapla" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Kullanılabilir Cihazlar" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Aracı yeniden yükle" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect çalışmıyor!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Cihaz Seçilmedi!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Eşleştirilmiş cihaz yok!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "KDEConnect Aracı" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "" -"KDeConnect ile bağlantılı bir Cihaz hakkındaki bilgileri görüntülemek için " -"masaüstü uygulaması." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Aygıt Ayarları" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "Seçilen Cihazın Cihaz Kimliği" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "KDEConnect Cihaz Kimliği" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/vi.po b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/vi.po deleted file mode 100644 index 46864373c..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/po/vi.po +++ /dev/null @@ -1,64 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# This file is put in the public domain. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: kdecdesklet@joejoetv 0.1\n" -"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" -"issues\n" -"POT-Creation-Date: 2024-05-15 14:25+0200\n" -"PO-Revision-Date: 2025-10-19 04:51+0700\n" -"Last-Translator: loccun \n" -"Language-Team: \n" -"Language: vi\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.2\n" - -#: desklet.js:291 -msgid "Reply" -msgstr "Trả lời" - -#: desklet.js:375 -msgid "Available Devices" -msgstr "Thiết bị khả dụng" - -#: desklet.js:396 -msgid "Reload Desklet" -msgstr "Tải lại Desklet" - -#: desklet.js:401 -msgid "KDEConnect is not running!" -msgstr "KDEConnect không đang chạy!" - -#: desklet.js:451 -msgid "No Device Selected!" -msgstr "Chưa chọn thiết bị!" - -#: desklet.js:580 -msgid "No paired devices!" -msgstr "Không có thiết bị đã ghép nối!" - -#. metadata.json->name -msgid "KDEConnect Desklet" -msgstr "Desklet KDEConnect" - -#. metadata.json->description -msgid "" -"Desklet for displaying information about a Device connected with KDeConnect." -msgstr "Desklet để hiển thị thông tin về Thiết bị được kết nối với KDeConnect." - -#. settings-schema.json->header->description -msgid "Device Settings" -msgstr "Cài đặt Thiết bị" - -#. settings-schema.json->selected-device-id->description -msgid "Device ID of selected Device" -msgstr "ID Thiết bị của Thiết bị được chọn" - -#. settings-schema.json->selected-device-id->tooltip -msgid "KDEConnect Device ID" -msgstr "ID Thiết bị KDEConnect" diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/settings-schema.json b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/settings-schema.json deleted file mode 100644 index 8756d37f4..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/settings-schema.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "header": { - "type": "header", - "description": "Device Settings" - }, - - "selected-device-id": { - "type": "entry", - "default": "", - "description": "Device ID of selected Device", - "tooltip": "KDEConnect Device ID" - } -} \ No newline at end of file diff --git a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/stylesheet.css b/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/stylesheet.css deleted file mode 100644 index 6d3c0f743..000000000 --- a/kdecdesklet@joejoetv/files/kdecdesklet@joejoetv/stylesheet.css +++ /dev/null @@ -1,153 +0,0 @@ -.kdecd-desklet-container { - background-color: #383838; - border: 1.5px solid #252525; - border-radius: 4px; - padding: 5px; -} - -.kdecd-device-info-container { - padding: 5px; -} - -.kdecd-device-icon { - margin-left: 15px; - margin-right: 15px; - width: 96px; - height: 96px; - max-width: 96px; -} - -.kdecd-device-icon-gray { - margin-left: 15px; - margin-right: 15px; - width: 96px; - height: 96px; - max-width: 96px; - color: gray; -} - -.kdecd-device-name { - font-size: medium; - font-weight: bold; - text-align: center; - padding: 5px; -} - -.kdecd-device-name-gray { - font-size: medium; - font-weight: bold; - text-align: center; - color: gray; - padding: 5px; -} - -.kdecd-device-battery-charge { - font-size: medium; - padding: 5px; -} - -.kdecd-device-battery-icon { -} - -.kdecd-device-battery-container { -} - -.kdecd-notification-area { - background-color: #2f2f2f; - border: 1px solid #202020; - border-radius: 3px; - width: 400px; - height: 200px; - margin-left: 10px; -} - -.kdecd-notification-list-container { -} - -.kdecd-notification-container { - background-color: #2f2f2f; - border: 1px solid #202020; - border-radius: 3px; - padding: 5px; -} - -.kdecd-notification-app-icon { -} - -.kdecd-notification-header-container { - margin: 0px; - padding: 0px; -} - -.kdecd-notification-app-name { - text-align: left; - padding-left: 5px; - padding-right: 0px; - color: #757575; -} - -.kdecd-notification-content-container { - margin-top: 5px; - margin-bottom: 0px; - padding: 0px; -} - -.kdecd-notification-title { - color: #ffffff; - font-weight: bold; -} - -.kdecd-notification-text { - color: #bfbfbf; -} - -.kdecd-notification-button-container { - margin-top: 5px; - margin-bottom: 0px; -} - -.kdecd-notification-reply-button { - background-color: #454545; - border: 1px solid #202020; - color: #f0f0f0; - border-radius: 2px; - text-align: center; - vertical-align: middle; - padding-top: 5px; - padding-bottom: 5px; - padding-left: 10px; - padding-right: 10px; -} - -.kdecd-notification-reply-button:hover { - background-color: #525252; - border: 1px solid #202020; - color: #f0f0f0; -} - -.kdecd-notification-reply-button:active { - background-color: #6cabcd; - border: 1px solid #6cabcd; - color: #ffffff; -} - -.kdecd-notification-dismiss-button { - background-color: #454545; - border: 1px solid #202020; - color: #f0f0f0; - border-radius: 2px; - padding: 1px; - margin-right: 0px; -} - -.kdecd-notification-dismiss-button:hover { - background-color: #525252; - border: 1px solid #202020; - color: #f0f0f0; -} - -.kdecd-notification-dismiss-button:active { - background-color: red; - border: 1px solid red; - color: #ffffff; -} diff --git a/kdecdesklet@joejoetv/info.json b/kdecdesklet@joejoetv/info.json deleted file mode 100644 index d33631e16..000000000 --- a/kdecdesklet@joejoetv/info.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "author": "JoeJoeTV" -} \ No newline at end of file diff --git a/kdecdesklet@joejoetv/screenshot.png b/kdecdesklet@joejoetv/screenshot.png deleted file mode 100644 index b55e999d3..000000000 Binary files a/kdecdesklet@joejoetv/screenshot.png and /dev/null differ