commit
3436f1824f
@ -3,7 +3,7 @@ title: Romm
|
|||||||
description: Romm Widget Configuration
|
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.
|
If more than (4) fields are provided, only the first (4) will be used.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -12,5 +12,5 @@ widget:
|
|||||||
url: http://romm.host.or.ip
|
url: http://romm.host.or.ip
|
||||||
username: username # optional
|
username: username # optional
|
||||||
password: password # optional
|
password: password # optional
|
||||||
fields: ["platforms", "roms", "saves", "states"] # optional - default fields shown
|
fields: ["platforms", "totalRoms", "saves", "states"] # optional - default fields shown
|
||||||
```
|
```
|
||||||
|
|||||||
@ -831,7 +831,7 @@
|
|||||||
},
|
},
|
||||||
"romm": {
|
"romm": {
|
||||||
"platforms": "Platforms",
|
"platforms": "Platforms",
|
||||||
"roms": "Games",
|
"totalRoms": "Games",
|
||||||
"saves": "Saves",
|
"saves": "Saves",
|
||||||
"states": "States",
|
"states": "States",
|
||||||
"screenshots": "Screenshots",
|
"screenshots": "Screenshots",
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import Container from "components/services/widget/container";
|
|||||||
import Block from "components/services/widget/block";
|
import Block from "components/services/widget/block";
|
||||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
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 }) {
|
export default function Component({ service }) {
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
@ -28,7 +28,7 @@ export default function Component({ service }) {
|
|||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="romm.platforms" />
|
<Block label="romm.platforms" />
|
||||||
<Block label="romm.roms" />
|
<Block label="romm.totalRoms" />
|
||||||
<Block label="romm.saves" />
|
<Block label="romm.saves" />
|
||||||
<Block label="romm.states" />
|
<Block label="romm.states" />
|
||||||
<Block label="romm.screenshots" />
|
<Block label="romm.screenshots" />
|
||||||
@ -41,7 +41,7 @@ export default function Component({ service }) {
|
|||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="romm.platforms" value={t("common.number", { value: response.PLATFORMS })} />
|
<Block label="romm.platforms" value={t("common.number", { value: response.PLATFORMS })} />
|
||||||
<Block label="romm.roms" value={t("common.number", { value: response.ROMS })} />
|
<Block label="romm.totalRoms" value={t("common.number", { value: response.ROMS })} />
|
||||||
<Block label="romm.saves" value={t("common.number", { value: response.SAVES })} />
|
<Block label="romm.saves" value={t("common.number", { value: response.SAVES })} />
|
||||||
<Block label="romm.states" value={t("common.number", { value: response.STATES })} />
|
<Block label="romm.states" value={t("common.number", { value: response.STATES })} />
|
||||||
<Block label="romm.screenshots" value={t("common.number", { value: response.SCREENSHOTS })} />
|
<Block label="romm.screenshots" value={t("common.number", { value: response.SCREENSHOTS })} />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user