feat: add media requests widget (#774)

Co-authored-by: SeDemal <Tagaishi@hotmail.ch>
Co-authored-by: SeDemal <demal.sebastien@bluewin.ch>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
Manuel
2024-08-24 15:23:16 +02:00
committed by GitHub
parent 7ec4adcb24
commit acbb834889
30 changed files with 1106 additions and 29 deletions

View File

@@ -531,6 +531,10 @@ export default {
colon: ": ",
},
error: "Error",
errors: {
noData: "No data to show",
noIntegration: "No integration selected",
},
action: {
add: "Add",
apply: "Apply",
@@ -1115,6 +1119,50 @@ export default {
description: "Show the current streams on your media servers",
option: {},
},
"mediaRequests-requestList": {
name: "Media Requests List",
description: "See a list of all media requests from your Overseerr or Jellyseerr instance",
option: {
linksTargetNewTab: {
label: "Open links in new tab",
},
},
pending: {
approve: "Approve request",
approving: "Approving request...",
decline: "Decline request",
},
availability: {
unknown: "Unknown",
pending: "Pending",
processing: "Processing",
partiallyAvailable: "Partial",
available: "Available",
},
toBeDetermined: "TBD",
},
"mediaRequests-requestStats": {
name: "Media Requests Stats",
description: "Statistics about your media requests",
option: {},
titles: {
stats: {
main: "Media Stats",
approved: "Already approved",
pending: "Pending approvals",
processing: "Being processed",
declined: "Already declined",
available: "Already Available",
tv: "TV requests",
movie: "Movie requests",
total: "Total",
},
users: {
main: "Top Users",
requests: "Requests",
},
},
},
rssFeed: {
name: "RSS feeds",
description: "Monitor and display one or more generic RSS, ATOM or JSON feeds",
@@ -1602,6 +1650,9 @@ export default {
mediaOrganizer: {
label: "Media Organizers",
},
mediaRequests: {
label: "Media Requests",
},
rssFeeds: {
label: "RSS feeds",
},

View File

@@ -1,6 +1,9 @@
import type { useI18n } from "./client";
import type { useI18n, useScopedI18n } from "./client";
import type enTranslation from "./lang/en";
export type TranslationFunction = ReturnType<typeof useI18n>;
export type ScopedTranslationFunction<T extends Parameters<typeof useScopedI18n>[0]> = ReturnType<
typeof useScopedI18n<T>
>;
export type TranslationObject = typeof enTranslation;
export type stringOrTranslation = string | ((t: TranslationFunction) => string);