1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00
This commit is contained in:
Limezy 2022-09-16 22:59:46 +07:00
parent 6d89585836
commit 1530b3d408
4 changed files with 19 additions and 11 deletions

View file

@ -55,7 +55,7 @@ OIDC_USERINFO_URI=__DEX_USER_URI__
OIDC_USERNAME_CLAIM=preferred_username OIDC_USERNAME_CLAIM=preferred_username
# Display name for OIDC authentication # Display name for OIDC authentication
OIDC_DISPLAY_NAME=Yunohost OIDC_DISPLAY_NAME=membre (mot de passe)
# Space separated auth scopes. # Space separated auth scopes.
OIDC_SCOPES="openid profile email" OIDC_SCOPES="openid profile email"

View file

@ -1,6 +1,6 @@
diff --git a/server/routes/auth/providers/req.ts b/server/routes/auth/providers/req.ts diff --git a/server/routes/auth/providers/req.ts b/server/routes/auth/providers/req.ts
new file mode 100644 new file mode 100644
index 00000000..04990bb3 index 00000000..1c954d24
--- /dev/null --- /dev/null
+++ b/server/routes/auth/providers/req.ts +++ b/server/routes/auth/providers/req.ts
@@ -0,0 +1,62 @@ @@ -0,0 +1,62 @@
@ -17,7 +17,7 @@ index 00000000..04990bb3
+const providerName = "req"; +const providerName = "req";
+ +
+export const config = { +export const config = {
+ name: "Visitor", + name: "visiteur",
+ enabled: true, + enabled: true,
+}; +};
+ +

View file

@ -112,7 +112,7 @@ index 158a0dfb..f297c343 100644
component = <InfoIcon color="currentColor" />; component = <InfoIcon color="currentColor" />;
} }
diff --git a/shared/styles/theme.ts b/shared/styles/theme.ts diff --git a/shared/styles/theme.ts b/shared/styles/theme.ts
index 3ff5c7cf..e8c00cca 100644 index 3ff5c7cf..fb4804ec 100644
--- a/shared/styles/theme.ts --- a/shared/styles/theme.ts
+++ b/shared/styles/theme.ts +++ b/shared/styles/theme.ts
@@ -87,6 +87,8 @@ export const base = { @@ -87,6 +87,8 @@ export const base = {
@ -123,4 +123,12 @@ index 3ff5c7cf..e8c00cca 100644
+ noticeBibleText: colors.almostBlack, + noticeBibleText: colors.almostBlack,
breakpoints, breakpoints,
}; };
@@ -206,6 +208,7 @@ export const dark = {
noticeInfoText: colors.white,
noticeTipText: colors.white,
noticeWarningText: colors.white,
+ noticeBibleText: colors.white,
progressBarBackground: colors.slate,
scrollbarBackground: colors.black,
scrollbarThumb: colors.lightBlack,

View file

@ -1,5 +1,5 @@
diff --git a/app/scenes/Login/AuthenticationProvider.tsx b/app/scenes/Login/AuthenticationProvider.tsx diff --git a/app/scenes/Login/AuthenticationProvider.tsx b/app/scenes/Login/AuthenticationProvider.tsx
index b5bb854a..18caede4 100644 index b5bb854a..d29e958b 100644
--- a/app/scenes/Login/AuthenticationProvider.tsx --- a/app/scenes/Login/AuthenticationProvider.tsx
+++ b/app/scenes/Login/AuthenticationProvider.tsx +++ b/app/scenes/Login/AuthenticationProvider.tsx
@@ -67,7 +67,7 @@ function AuthenticationProvider(props: Props) { @@ -67,7 +67,7 @@ function AuthenticationProvider(props: Props) {
@ -22,7 +22,7 @@ index b5bb854a..18caede4 100644
) : ( ) : (
<ButtonLarge type="submit" icon={<EmailIcon />} fullwidth> <ButtonLarge type="submit" icon={<EmailIcon />} fullwidth>
- {t("Continue with Email")} - {t("Continue with Email")}
+ {t("Accès membre")} + {t("Accès membre (email)")}
</ButtonLarge> </ButtonLarge>
)} )}
</Form> </Form>
@ -31,12 +31,12 @@ index b5bb854a..18caede4 100644
fullwidth fullwidth
> >
- {t("Continue with {{ authProviderName }}", { - {t("Continue with {{ authProviderName }}", {
+ {t("Bienvenue sur {{ authProviderName }}", { + {t("Accès {{ authProviderName }}", {
authProviderName: name, authProviderName: name,
})} })}
</ButtonLarge> </ButtonLarge>
diff --git a/app/scenes/Login/index.tsx b/app/scenes/Login/index.tsx diff --git a/app/scenes/Login/index.tsx b/app/scenes/Login/index.tsx
index e08e120c..05871715 100644 index e08e120c..f9e03f21 100644
--- a/app/scenes/Login/index.tsx --- a/app/scenes/Login/index.tsx
+++ b/app/scenes/Login/index.tsx +++ b/app/scenes/Login/index.tsx
@@ -180,7 +180,7 @@ function Login({ children }: Props) { @@ -180,7 +180,7 @@ function Login({ children }: Props) {
@ -53,7 +53,7 @@ index e08e120c..05871715 100644
<> <>
<Note> <Note>
- {t("You signed in with {{ authProviderName }} last time.", { - {t("You signed in with {{ authProviderName }} last time.", {
+ {t("Vous vous êtes authentifié comme {{ authProviderName }} la dernière fois.", { + {t("Vous vous êtes authentifié avec l'accès {{ authProviderName }} la dernière fois.", {
authProviderName: defaultProvider.name, authProviderName: defaultProvider.name,
})} })}
</Note> </Note>