rss-notifier Update v1.0.1 (#236)
* Add nilsonlinux/rss-notifier plugin v1.0.0 * fix: correct all validation errors for rss-notifier * Update tags in plugin.toml for rss-notifier * Revise README for RSS Notifier plugin Updated README to reflect plugin name and improved clarity. * Update README.md by removing unnecessary content Removed placeholder text and installation instructions from README. * Update README with plugin details and usage instructions Expanded README to include plugin details, usage instructions, and settings configuration. * Traduz README.md para português e atualiza conteúdo Atualiza o README.md com informações em português sobre o plugin RSS/Atom Notifier, incluindo uso, configurações e notas sobre o funcionamento. * Update tags in plugin.toml Removed 'rss' tag from the plugin configuration. * Revise README for RSS Notifier plugin Updated the README to reflect changes in the plugin description, installation instructions, usage details, settings, and dependencies. * Enhance README with plugin details and usage Updated README.md to include detailed plugin features, settings, and usage instructions. * Update README for RSS Utils plugin * Add files via upload * Add xdg-open as a dependency in plugin.toml * Revise README for RSS/Atom Notifier plugin Updated configuration options and usage instructions in README. * Add Brazilian Portuguese translation file * Revise README for clarity and updated instructions Updated README to improve clarity and consistency, including installation and usage instructions. * Add xdg-open as a dependency in README Updated dependencies section to include xdg-open. * Fix formatting of requirements section in README * Add files via upload * feat: add individual item delete option and scrollbar - Implemented the ability to delete individual feed items using an 'X' button. - Added a fixed height scrollbar to the panel list. - Fixed badge synchronization and command communication for the V5 Beta 6 environment. * fix tags e correções de funcionamento * Add dependencies section to plugin.toml * Add files via upload * Enhance README with plugin details Updated README with plugin ID and entries table. * thumbnail update Thumbnail updated. Following the plugin update. * Bump version from 1.0.0 to 1.0.1 Added outlines to the control buttons. Also fixed a bug where recent feeds wouldn't list upon starting a session. * Change button variant from 'ghost' to 'outline' Added outlines to the control buttons. Also fixed a bug where recent feeds wouldn't list upon starting a session.
This commit is contained in:
+15
-4
@@ -56,7 +56,7 @@ itemRow = function(item)
|
|||||||
}),
|
}),
|
||||||
ui.button({
|
ui.button({
|
||||||
glyph = "close",
|
glyph = "close",
|
||||||
variant = "ghost",
|
variant = "outline",
|
||||||
controlSize = "sm",
|
controlSize = "sm",
|
||||||
tooltip = "Dispensar",
|
tooltip = "Dispensar",
|
||||||
onClick = function() dismissItem(item) end,
|
onClick = function() dismissItem(item) end,
|
||||||
@@ -86,10 +86,10 @@ render = function()
|
|||||||
|
|
||||||
local headerButtons = {}
|
local headerButtons = {}
|
||||||
if #items > 0 then
|
if #items > 0 then
|
||||||
table.insert(headerButtons, ui.button({ glyph = "trash", variant = "ghost", controlSize = "sm", tooltip = "Limpar tudo", onClick = "onClearAllClicked" }))
|
table.insert(headerButtons, ui.button({ glyph = "trash", variant = "outline", controlSize = "sm", tooltip = "Limpar tudo", onClick = "onClearAllClicked" }))
|
||||||
end
|
end
|
||||||
table.insert(headerButtons, ui.button({ glyph = "refresh", variant = "ghost", controlSize = "sm", tooltip = "Atualizar agora", onClick = "onRefreshClicked" }))
|
table.insert(headerButtons, ui.button({ glyph = "refresh", variant = "outline", controlSize = "sm", tooltip = "Atualizar agora", onClick = "onRefreshClicked" }))
|
||||||
table.insert(headerButtons, ui.button({ glyph = "close", variant = "ghost", controlSize = "sm", onClick = "onCloseClicked" }))
|
table.insert(headerButtons, ui.button({ glyph = "close", variant = "outline", controlSize = "sm", onClick = "onCloseClicked" }))
|
||||||
|
|
||||||
panel.render(ui.column({ gap = 10, padding = 12, fill = true }, {
|
panel.render(ui.column({ gap = 10, padding = 12, fill = true }, {
|
||||||
ui.row({ align = "center", justify = "space_between" }, {
|
ui.row({ align = "center", justify = "space_between" }, {
|
||||||
@@ -108,6 +108,17 @@ noctalia.state.watch("items", function(raw)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
function onOpen(_context)
|
function onOpen(_context)
|
||||||
|
-- o painel so e criado na primeira vez que e aberto - se o service ja
|
||||||
|
-- tinha publicado itens antes disso (ex: na checagem de boot), o watch()
|
||||||
|
-- sozinho nao pega esse valor antigo. Busca o estado atual na abertura.
|
||||||
|
local ok, raw = pcall(noctalia.state.get, "items")
|
||||||
|
if ok and raw then
|
||||||
|
local decodeOk, decoded = pcall(noctalia.json.decode, raw)
|
||||||
|
if decodeOk and decoded then
|
||||||
|
items = decoded
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
render()
|
render()
|
||||||
-- abrir o painel conta como "li as novidades": zera o badge no service
|
-- abrir o painel conta como "li as novidades": zera o badge no service
|
||||||
noctalia.runAsync("noctalia msg plugin nilsonlinux/rss-notifier:fetcher all mark-read")
|
noctalia.runAsync("noctalia msg plugin nilsonlinux/rss-notifier:fetcher all mark-read")
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
id = "nilsonlinux/rss-notifier"
|
id = "nilsonlinux/rss-notifier"
|
||||||
name = "RSS/Atom Notifier"
|
name = "RSS/Atom Notifier"
|
||||||
version = "1.0.0"
|
version = "1.0.1"
|
||||||
plugin_api = 14
|
plugin_api = 14
|
||||||
author = "Nilsonlinux"
|
author = "Nilsonlinux"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 73 KiB |
Reference in New Issue
Block a user