diff --git a/front/packages/ui/src/browse/types.ts b/front/packages/ui/src/browse/types.ts
index 0ceca512..c3e3b43c 100644
--- a/front/packages/ui/src/browse/types.ts
+++ b/front/packages/ui/src/browse/types.ts
@@ -22,6 +22,7 @@ export enum SortBy {
Name = "name",
StartAir = "startAir",
EndAir = "endAir",
+ AddedDate = "addedDate",
}
export enum SortOrd {
diff --git a/front/packages/ui/src/login/form.tsx b/front/packages/ui/src/login/form.tsx
index d2e0646f..328f39a8 100644
--- a/front/packages/ui/src/login/form.tsx
+++ b/front/packages/ui/src/login/form.tsx
@@ -18,6 +18,7 @@
* along with Kyoo. If not, see .
*/
+import { imageFn } from "@kyoo/models";
import { ts } from "@kyoo/primitives";
import { ReactNode } from "react";
import { ScrollView, ImageBackground, ImageProps, Platform, View } from "react-native";
@@ -42,11 +43,10 @@ const SvgBlob = (props: SvgProps) => {
export const FormPage = ({ children, ...props }: { children: ReactNode } & Stylable) => {
const { css } = useYoshiki();
- // TODO: Replace the hardcoded 1 to a random show/movie thumbnail.
- const src = `${Platform.OS === "web" ? "/api" : process.env.PUBLIC_BACK_URL}/shows/1/thumbnail`;
+ const src = imageFn("/items/random/thumbnail");
const nativeProps = Platform.select>({
web: {
- defaultSource: typeof src === "string" ? { uri: src! } : Array.isArray(src) ? src[0] : src!,
+ defaultSource: { uri: src },
},
default: {},
});
diff --git a/front/translations/en.json b/front/translations/en.json
index 0e43b432..f420c695 100644
--- a/front/translations/en.json
+++ b/front/translations/en.json
@@ -18,7 +18,8 @@
"sortkey": {
"name": "Name",
"startAir": "Start air",
- "endAir": "End air"
+ "endAir": "End air",
+ "addedDate": "Added date"
},
"sortord": {
"asc": "asc",
diff --git a/front/translations/fr.json b/front/translations/fr.json
index 3278316c..dd87d5df 100644
--- a/front/translations/fr.json
+++ b/front/translations/fr.json
@@ -18,7 +18,8 @@
"sortkey": {
"name": "Nom",
"startAir": "Date de sortie",
- "endAir": "Date de fin de sortie"
+ "endAir": "Date de fin de sortie",
+ "addedDate": "Date d'ajout"
},
"sortord": {
"asc": "asc",