From 77541a537a108efd8f6bdbc96e903b442ccf815c Mon Sep 17 00:00:00 2001 From: InsertDisc <31751462+InsertDisc@users.noreply.github.com> Date: Fri, 23 Aug 2024 22:05:29 -0400 Subject: [PATCH 1/3] Update component.jsx Revert 'roms' back to 'totalRoms' to avoid a breaking change. --- src/widgets/romm/component.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/romm/component.jsx b/src/widgets/romm/component.jsx index a9df1423..196d6987 100644 --- a/src/widgets/romm/component.jsx +++ b/src/widgets/romm/component.jsx @@ -4,7 +4,7 @@ import Container from "components/services/widget/container"; import Block from "components/services/widget/block"; import useWidgetAPI from "utils/proxy/use-widget-api"; -export const rommDefaultFields = ["platforms", "roms", "saves", "states"]; +export const rommDefaultFields = ["platforms", "totalRoms", "saves", "states"]; export default function Component({ service }) { const { widget } = service; @@ -28,7 +28,7 @@ export default function Component({ service }) { return ( - + @@ -41,7 +41,7 @@ export default function Component({ service }) { return ( - + From 0616f7edbfbdd08f180541b7883df4df2f82a99a Mon Sep 17 00:00:00 2001 From: InsertDisc <31751462+InsertDisc@users.noreply.github.com> Date: Fri, 23 Aug 2024 22:06:48 -0400 Subject: [PATCH 2/3] Update romm.md Revert 'roms' back to 'totalRoms' to avoid a breaking change. --- docs/widgets/services/romm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/widgets/services/romm.md b/docs/widgets/services/romm.md index cf10d09b..6bde1377 100644 --- a/docs/widgets/services/romm.md +++ b/docs/widgets/services/romm.md @@ -3,7 +3,7 @@ title: Romm description: Romm Widget Configuration --- -Allowed fields: `["platforms", "roms", "saves", "states", "screenshots", "totalfilesize"]`. +Allowed fields: `["platforms", "totalRoms", "saves", "states", "screenshots", "totalfilesize"]`. If more than (4) fields are provided, only the first (4) will be used. ```yaml @@ -12,5 +12,5 @@ widget: url: http://romm.host.or.ip username: username # optional password: password # optional - fields: ["platforms", "roms", "saves", "states"] # optional - default fields shown + fields: ["platforms", "totalRoms", "saves", "states"] # optional - default fields shown ``` From 08830c5f6b6e28a750b15ac15af26ba17db744f1 Mon Sep 17 00:00:00 2001 From: InsertDisc <31751462+InsertDisc@users.noreply.github.com> Date: Fri, 23 Aug 2024 22:08:18 -0400 Subject: [PATCH 3/3] Update common.json Revert 'roms' back to 'totalRoms' to avoid a breaking change. --- public/locales/en/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 195053b8..fabf5d84 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -831,7 +831,7 @@ }, "romm": { "platforms": "Platforms", - "roms": "Games", + "totalRoms": "Games", "saves": "Saves", "states": "States", "screenshots": "Screenshots",