diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json index 088ae2f0..45320509 100644 --- a/public/locales/ar/common.json +++ b/public/locales/ar/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json index 5a6ecc71..ca88b46a 100644 --- a/public/locales/bg/common.json +++ b/public/locales/bg/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/ca/common.json b/public/locales/ca/common.json index 525e533d..9a436aa2 100644 --- a/public/locales/ca/common.json +++ b/public/locales/ca/common.json @@ -492,6 +492,12 @@ "uptime": "Uptime", "incident": "Incident" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/cs/common.json b/public/locales/cs/common.json index 1d48f636..30778d97 100644 --- a/public/locales/cs/common.json +++ b/public/locales/cs/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Série", + "archives": "Archivy", + "chapters": "Kapitoly", + "categories": "Kategorie" + }, "komga": { "libraries": "Knihovny", "series": "Série", diff --git a/public/locales/da/common.json b/public/locales/da/common.json index 9c6533f0..73393e09 100644 --- a/public/locales/da/common.json +++ b/public/locales/da/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/de/common.json b/public/locales/de/common.json index db017c20..0fb74e1e 100644 --- a/public/locales/de/common.json +++ b/public/locales/de/common.json @@ -492,6 +492,12 @@ "incident": "Vorfall", "m": "m" }, + "atsumeru": { + "series": "Serie", + "archives": "Archiv", + "chapters": "Kapitel", + "categories": "Kategorien" + }, "komga": { "libraries": "Bibliotheken", "series": "Serie", diff --git a/public/locales/el/common.json b/public/locales/el/common.json index ba94bf9e..fc8c78b1 100644 --- a/public/locales/el/common.json +++ b/public/locales/el/common.json @@ -509,6 +509,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 2cf3f1ba..ca560f92 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -579,6 +579,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json index aebc9dc2..32b46ba2 100644 --- a/public/locales/eo/common.json +++ b/public/locales/eo/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/es/common.json b/public/locales/es/common.json index 904aba10..f454b8f1 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -492,6 +492,12 @@ "incident": "Incidencia", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archivos", + "chapters": "Capítulos", + "categories": "Categorías" + }, "komga": { "libraries": "Librerías", "series": "Series", diff --git a/public/locales/eu/common.json b/public/locales/eu/common.json index 4fa20c75..1920212f 100644 --- a/public/locales/eu/common.json +++ b/public/locales/eu/common.json @@ -570,6 +570,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/fi/common.json b/public/locales/fi/common.json index 050db077..ed2643ca 100644 --- a/public/locales/fi/common.json +++ b/public/locales/fi/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index 64512796..eac0f221 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Librairies", "series": "Séries", diff --git a/public/locales/he/common.json b/public/locales/he/common.json index 4690d1bc..d8e763b7 100644 --- a/public/locales/he/common.json +++ b/public/locales/he/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/hi/common.json b/public/locales/hi/common.json index 99295197..f189e493 100644 --- a/public/locales/hi/common.json +++ b/public/locales/hi/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json index 5b0f7e4f..80bcfebe 100644 --- a/public/locales/hr/common.json +++ b/public/locales/hr/common.json @@ -492,6 +492,12 @@ "incident": "Slučaj", "m": "min" }, + "atsumeru": { + "series": "Serije", + "archives": "Archívum", + "chapters": "Fejezetek", + "categories": "Kategóriák" + }, "komga": { "libraries": "Biblioteke", "series": "Serije", diff --git a/public/locales/id/common.json b/public/locales/id/common.json index 26c4e251..41aa54c8 100644 --- a/public/locales/id/common.json +++ b/public/locales/id/common.json @@ -425,6 +425,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/it/common.json b/public/locales/it/common.json index 27a93aaf..04fffbcd 100644 --- a/public/locales/it/common.json +++ b/public/locales/it/common.json @@ -492,6 +492,12 @@ "incident": "Incidente", "m": "m" }, + "atsumeru": { + "series": "Serie", + "archives": "Archivio", + "chapters": "Capitoli", + "categories": "Categorie" + }, "komga": { "libraries": "Librerie", "series": "Serie", diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index e8c607d7..98bd39c9 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "シリーズ", + "archives": "アーカイブス", + "chapters": "各章", + "categories": "カテゴリー" + }, "komga": { "libraries": "ライブラリ", "series": "シリーズ", diff --git a/public/locales/ko/common.json b/public/locales/ko/common.json index 0c2b6420..9a92eae4 100644 --- a/public/locales/ko/common.json +++ b/public/locales/ko/common.json @@ -513,6 +513,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "시리즈", + "archives": "아카이브", + "chapters": "챕터", + "categories": "카테고리" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/lv/common.json b/public/locales/lv/common.json index a968d4fa..814caeac 100644 --- a/public/locales/lv/common.json +++ b/public/locales/lv/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/ms/common.json b/public/locales/ms/common.json index c1616367..940a1f20 100644 --- a/public/locales/ms/common.json +++ b/public/locales/ms/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/nb-NO/common.json b/public/locales/nb-NO/common.json index 6b75aa23..d20d1167 100644 --- a/public/locales/nb-NO/common.json +++ b/public/locales/nb-NO/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json index 9ce33db9..e792b4f6 100644 --- a/public/locales/nl/common.json +++ b/public/locales/nl/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Serie", + "archives": "Archief", + "chapters": "Hoofdstukken", + "categories": "Categorieën" + }, "komga": { "libraries": "Bibliotheken", "series": "Series", diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json index 52d04e0f..b527020a 100644 --- a/public/locales/pl/common.json +++ b/public/locales/pl/common.json @@ -492,6 +492,12 @@ "incident": "Incydent", "m": "min" }, + "atsumeru": { + "series": "Seria", + "archives": "Archiwa", + "chapters": "Rozdziały", + "categories": "Kategorie" + }, "komga": { "libraries": "Biblioteki", "series": "Seriale", diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json index 1e188fda..493f878f 100644 --- a/public/locales/pt-BR/common.json +++ b/public/locales/pt-BR/common.json @@ -492,6 +492,12 @@ "incident": "Incidente", "m": "m" }, + "atsumeru": { + "series": "Série", + "archives": "Arquivos", + "chapters": "Capítulos", + "categories": "Categorias" + }, "komga": { "libraries": "Bibliotecas", "series": "Séries", diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json index ac143fda..a7a33022 100644 --- a/public/locales/pt/common.json +++ b/public/locales/pt/common.json @@ -501,6 +501,12 @@ "incident": "Incidente", "m": "m" }, + "atsumeru": { + "series": "Série", + "archives": "Arquivos", + "chapters": "Capítulos", + "categories": "Categorias" + }, "komga": { "libraries": "Bibliotecas", "series": "Séries", diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json index a52232e8..e3bc301b 100644 --- a/public/locales/ro/common.json +++ b/public/locales/ro/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json index 579f748f..da49f968 100644 --- a/public/locales/ru/common.json +++ b/public/locales/ru/common.json @@ -492,6 +492,12 @@ "incident": "Инцидент", "m": "м" }, + "atsumeru": { + "series": "Серии", + "archives": "Архивы", + "chapters": "Главы", + "categories": "Категории" + }, "komga": { "libraries": "Библиотеки", "series": "Серии", diff --git a/public/locales/sk/common.json b/public/locales/sk/common.json index b46615b5..c8e6fecb 100644 --- a/public/locales/sk/common.json +++ b/public/locales/sk/common.json @@ -524,6 +524,12 @@ "cpu_usage": "CPU", "memory_usage": "Memory" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/sl/common.json b/public/locales/sl/common.json index 258852c1..6a995a52 100644 --- a/public/locales/sl/common.json +++ b/public/locales/sl/common.json @@ -545,6 +545,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Serija", + "archives": "Arhivi", + "chapters": "Poglavja", + "categories": "Kategorije" + }, "komga": { "libraries": "Knjižnice", "series": "Serije", diff --git a/public/locales/sr/common.json b/public/locales/sr/common.json index 32562c75..e721dfbb 100644 --- a/public/locales/sr/common.json +++ b/public/locales/sr/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json index 0a86dca6..3a36dad0 100644 --- a/public/locales/sv/common.json +++ b/public/locales/sv/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/te/common.json b/public/locales/te/common.json index 4212b34d..4efa80c0 100644 --- a/public/locales/te/common.json +++ b/public/locales/te/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/th/common.json b/public/locales/th/common.json index 57a9ae62..1881749d 100644 --- a/public/locales/th/common.json +++ b/public/locales/th/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json index ac88b616..39db037f 100644 --- a/public/locales/tr/common.json +++ b/public/locales/tr/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Seri", + "archives": "Arşivler", + "chapters": "Bölümler", + "categories": "Kategoriler" + }, "komga": { "libraries": "Kütüphane", "series": "Series", diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json index a7804865..3db74daf 100644 --- a/public/locales/uk/common.json +++ b/public/locales/uk/common.json @@ -492,6 +492,12 @@ "incident": "Інцидент", "m": "хв" }, + "atsumeru": { + "series": "Серії", + "archives": "Архіви", + "chapters": "Глави", + "categories": "Категорії" + }, "komga": { "libraries": "Бібліотеки", "series": "Серії", diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json index c3d393d0..03aa7fa3 100644 --- a/public/locales/vi/common.json +++ b/public/locales/vi/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/yue/common.json b/public/locales/yue/common.json index ed609cff..879da7e0 100644 --- a/public/locales/yue/common.json +++ b/public/locales/yue/common.json @@ -492,6 +492,12 @@ "incident": "Incident", "m": "m" }, + "atsumeru": { + "series": "Series", + "archives": "Archives", + "chapters": "Chapters", + "categories": "Categories" + }, "komga": { "libraries": "Libraries", "series": "Series", diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index d820aa96..1f0e3d4b 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -492,6 +492,12 @@ "incident": "严重事件", "m": "m" }, + "atsumeru": { + "series": "系列", + "archives": "档案", + "chapters": "章节", + "categories": "类别" + }, "komga": { "libraries": "书库", "series": "系列", diff --git a/public/locales/zh-Hant/common.json b/public/locales/zh-Hant/common.json index c8ce9caf..e7bb26de 100644 --- a/public/locales/zh-Hant/common.json +++ b/public/locales/zh-Hant/common.json @@ -492,6 +492,12 @@ "incident": "事件", "m": "m" }, + "atsumeru": { + "series": "系列", + "archives": "档案", + "chapters": "章节", + "categories": "类别" + }, "komga": { "libraries": "文庫", "series": "叢刊", diff --git a/src/widgets/atsumeru/component.jsx b/src/widgets/atsumeru/component.jsx new file mode 100644 index 00000000..85e78182 --- /dev/null +++ b/src/widgets/atsumeru/component.jsx @@ -0,0 +1,36 @@ +import { useTranslation } from "next-i18next"; + +import Container from "components/services/widget/container"; +import Block from "components/services/widget/block"; +import useWidgetAPI from "utils/proxy/use-widget-api"; + +export default function Component({ service }) { + const { t } = useTranslation(); + const { widget } = service; + + const { data: infoData, error: infoError } = useWidgetAPI(widget, "info"); + + if (infoError) { + return ; + } + + if (!infoData) { + return ( + + + + + + + ); + } + + return ( + + + + + + + ); +} diff --git a/src/widgets/atsumeru/widget.js b/src/widgets/atsumeru/widget.js new file mode 100644 index 00000000..810bfa61 --- /dev/null +++ b/src/widgets/atsumeru/widget.js @@ -0,0 +1,15 @@ +import genericProxyHandler from "utils/proxy/handlers/generic"; +import { jsonArrayFilter, asJson } from "utils/proxy/api-helpers"; + +const widget = { + api: "{url}/api/server/{endpoint}", + proxyHandler: genericProxyHandler, + + mappings: { + info: { + endpoint: "info" + } + }, +}; + +export default widget; \ No newline at end of file diff --git a/src/widgets/components.js b/src/widgets/components.js index f3242ce4..481c1386 100644 --- a/src/widgets/components.js +++ b/src/widgets/components.js @@ -2,6 +2,7 @@ import dynamic from "next/dynamic"; const components = { adguard: dynamic(() => import("./adguard/component")), + atsumeru: dynamic(() => import("./atsumeru/component")), audiobookshelf: dynamic(() => import("./audiobookshelf/component")), authentik: dynamic(() => import("./authentik/component")), autobrr: dynamic(() => import("./autobrr/component")), diff --git a/src/widgets/widgets.js b/src/widgets/widgets.js index 1b7d9f1b..b44e72dd 100644 --- a/src/widgets/widgets.js +++ b/src/widgets/widgets.js @@ -1,4 +1,5 @@ import adguard from "./adguard/widget"; +import atsumeru from "./atsumeru/widget"; import audiobookshelf from "./audiobookshelf/widget"; import authentik from "./authentik/widget"; import autobrr from "./autobrr/widget"; @@ -95,6 +96,7 @@ import urbackup from "./urbackup/widget"; const widgets = { adguard, + atsumeru, audiobookshelf, authentik, autobrr,