forked from Ninjalama/streamyfin_mirror
Compare commits
4 Commits
l10n_devel
...
fix/460
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3975473da9 | ||
|
|
d34b86297a | ||
|
|
c4a83e283f | ||
|
|
dac471f0a6 |
@@ -207,7 +207,7 @@ export default function index() {
|
|||||||
const latestMediaViews = collections.map((c) => {
|
const latestMediaViews = collections.map((c) => {
|
||||||
const includeItemTypes: BaseItemKind[] =
|
const includeItemTypes: BaseItemKind[] =
|
||||||
c.CollectionType === "tvshows" ? ["Series"] : ["Movie"];
|
c.CollectionType === "tvshows" ? ["Series"] : ["Movie"];
|
||||||
const title = t("home.recently_added_in", {libraryName: c.Name});
|
const title = t("home.recently_added_in", { libraryName: c.Name });
|
||||||
const queryKey = [
|
const queryKey = [
|
||||||
"home",
|
"home",
|
||||||
"recentlyAddedIn" + c.CollectionType,
|
"recentlyAddedIn" + c.CollectionType,
|
||||||
@@ -352,7 +352,7 @@ export default function index() {
|
|||||||
<View className="flex flex-col items-center justify-center h-full -mt-6 px-8">
|
<View className="flex flex-col items-center justify-center h-full -mt-6 px-8">
|
||||||
<Text className="text-3xl font-bold mb-2">{t("home.no_internet")}</Text>
|
<Text className="text-3xl font-bold mb-2">{t("home.no_internet")}</Text>
|
||||||
<Text className="text-center opacity-70">
|
<Text className="text-center opacity-70">
|
||||||
{t("home.no_internet_message")}
|
{t("home.no_internet_message")}
|
||||||
</Text>
|
</Text>
|
||||||
<View className="mt-4">
|
<View className="mt-4">
|
||||||
<Button
|
<Button
|
||||||
@@ -393,7 +393,9 @@ export default function index() {
|
|||||||
return (
|
return (
|
||||||
<View className="flex flex-col items-center justify-center h-full -mt-6">
|
<View className="flex flex-col items-center justify-center h-full -mt-6">
|
||||||
<Text className="text-3xl font-bold mb-2">{t("home.oops")}</Text>
|
<Text className="text-3xl font-bold mb-2">{t("home.oops")}</Text>
|
||||||
<Text className="text-center opacity-70">{t("home.error_message")}</Text>
|
<Text className="text-center opacity-70">
|
||||||
|
{t("home.error_message")}
|
||||||
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -429,6 +431,7 @@ export default function index() {
|
|||||||
queryKey={section.queryKey}
|
queryKey={section.queryKey}
|
||||||
queryFn={section.queryFn}
|
queryFn={section.queryFn}
|
||||||
orientation={section.orientation}
|
orientation={section.orientation}
|
||||||
|
hideIfEmpty
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else if (section.type === "MediaListSection") {
|
} else if (section.type === "MediaListSection") {
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ const RequestModal = forwardRef<BottomSheetModalMethods, Props & Omit<ViewProps,
|
|||||||
},
|
},
|
||||||
onRequested
|
onRequested
|
||||||
)
|
)
|
||||||
}, [requestOverrides, defaultProfile, defaultFolder, defaultTags]);
|
}, [modalRequestProps, requestOverrides, defaultProfile, defaultFolder, defaultTags]);
|
||||||
|
|
||||||
const pathTitleExtractor = (item: RootFolder) => `${item.path} (${item.freeSpace.bytesToReadable()})`;
|
const pathTitleExtractor = (item: RootFolder) => `${item.path} (${item.freeSpace.bytesToReadable()})`;
|
||||||
|
|
||||||
|
|||||||
@@ -28,16 +28,26 @@ export const ScreenOrientationEnum: Record<
|
|||||||
ScreenOrientation.OrientationLock,
|
ScreenOrientation.OrientationLock,
|
||||||
string
|
string
|
||||||
> = {
|
> = {
|
||||||
[ScreenOrientation.OrientationLock.DEFAULT]: "home.settings.other.orientations.DEFAULT",
|
[ScreenOrientation.OrientationLock.DEFAULT]:
|
||||||
[ScreenOrientation.OrientationLock.ALL]: "home.settings.other.orientations.ALL",
|
"home.settings.other.orientations.DEFAULT",
|
||||||
[ScreenOrientation.OrientationLock.PORTRAIT]: "home.settings.other.orientations.PORTRAIT",
|
[ScreenOrientation.OrientationLock.ALL]:
|
||||||
[ScreenOrientation.OrientationLock.PORTRAIT_UP]: "home.settings.other.orientations.PORTRAIT_UP",
|
"home.settings.other.orientations.ALL",
|
||||||
[ScreenOrientation.OrientationLock.PORTRAIT_DOWN]: "home.settings.other.orientations.PORTRAIT_DOWN",
|
[ScreenOrientation.OrientationLock.PORTRAIT]:
|
||||||
[ScreenOrientation.OrientationLock.LANDSCAPE]: "home.settings.other.orientations.LANDSCAPE",
|
"home.settings.other.orientations.PORTRAIT",
|
||||||
[ScreenOrientation.OrientationLock.LANDSCAPE_LEFT]: "home.settings.other.orientations.LANDSCAPE_LEFT",
|
[ScreenOrientation.OrientationLock.PORTRAIT_UP]:
|
||||||
[ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT]: "home.settings.other.orientations.LANDSCAPE_RIGHT",
|
"home.settings.other.orientations.PORTRAIT_UP",
|
||||||
[ScreenOrientation.OrientationLock.OTHER]: "home.settings.other.orientations.OTHER",
|
[ScreenOrientation.OrientationLock.PORTRAIT_DOWN]:
|
||||||
[ScreenOrientation.OrientationLock.UNKNOWN]: "home.settings.other.orientations.UNKNOWN",
|
"home.settings.other.orientations.PORTRAIT_DOWN",
|
||||||
|
[ScreenOrientation.OrientationLock.LANDSCAPE]:
|
||||||
|
"home.settings.other.orientations.LANDSCAPE",
|
||||||
|
[ScreenOrientation.OrientationLock.LANDSCAPE_LEFT]:
|
||||||
|
"home.settings.other.orientations.LANDSCAPE_LEFT",
|
||||||
|
[ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT]:
|
||||||
|
"home.settings.other.orientations.LANDSCAPE_RIGHT",
|
||||||
|
[ScreenOrientation.OrientationLock.OTHER]:
|
||||||
|
"home.settings.other.orientations.OTHER",
|
||||||
|
[ScreenOrientation.OrientationLock.UNKNOWN]:
|
||||||
|
"home.settings.other.orientations.UNKNOWN",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DownloadOptions: DownloadOption[] = [
|
export const DownloadOptions: DownloadOption[] = [
|
||||||
@@ -241,12 +251,11 @@ export const useSettings = () => {
|
|||||||
if (!api) return;
|
if (!api) return;
|
||||||
const settings = await api.getStreamyfinPluginConfig().then(
|
const settings = await api.getStreamyfinPluginConfig().then(
|
||||||
({ data }) => {
|
({ data }) => {
|
||||||
writeInfoLog(`Got remote settings`);
|
writeInfoLog(`Got remote settings: ${data?.settings}`);
|
||||||
return data?.settings;
|
return data?.settings;
|
||||||
},
|
},
|
||||||
(err) => undefined
|
(err) => undefined
|
||||||
);
|
);
|
||||||
|
|
||||||
setPluginSettings(settings);
|
setPluginSettings(settings);
|
||||||
return settings;
|
return settings;
|
||||||
}, [api]);
|
}, [api]);
|
||||||
|
|||||||
Reference in New Issue
Block a user