1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00

Test removal babelrc

This commit is contained in:
Limezy 2024-02-14 18:13:22 +07:00
parent c9fcdddaec
commit fe42cf64a3
3 changed files with 6 additions and 50 deletions

View file

@ -107,23 +107,10 @@ index 5d564453d..9e3c5b55b 100644
})}
</ButtonLarge>
diff --git a/app/scenes/Login/index.tsx b/app/scenes/Login/index.tsx
index 9a9650b48..e642869b1 100644
index 9a9650b48..5357d5cf5 100644
--- a/app/scenes/Login/index.tsx
+++ b/app/scenes/Login/index.tsx
@@ -228,12 +228,6 @@ function Login({ children }: Props) {
);
}
- // If there is only one provider and it's OIDC, redirect immediately.
- if (config.providers.length === 1 && config.providers[0].id === "oidc") {
- window.location.href = getRedirectUrl(config.providers[0].authUrl);
- return null;
- }
-
return (
<Background>
<BackButton config={config} />
@@ -264,7 +258,7 @@ function Login({ children }: Props) {
@@ -264,7 +264,7 @@ function Login({ children }: Props) {
) : (
<>
<StyledHeading as="h2" centered>
@ -132,7 +119,7 @@ index 9a9650b48..e642869b1 100644
authProviderName: config.name || env.APP_NAME,
})}
</StyledHeading>
@@ -282,7 +276,7 @@ function Login({ children }: Props) {
@@ -282,7 +282,7 @@ function Login({ children }: Props) {
{hasMultipleProviders && (
<>
<Note>
@ -176,15 +163,6 @@ index 000000000..ae7c40333
+ "name": "visiteur",
+ "description": "Adds an req compatible authentication provider."
+}
diff --git a/plugins/req/server/.babelrc b/plugins/req/server/.babelrc
new file mode 100644
index 000000000..c87001bc4
--- /dev/null
+++ b/plugins/req/server/.babelrc
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../server/.babelrc"
+}
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
new file mode 100644
index 000000000..bc03fc6d3

View file

@ -20,15 +20,6 @@ index 000000000..ae7c40333
+ "name": "visiteur",
+ "description": "Adds an req compatible authentication provider."
+}
diff --git a/plugins/req/server/.babelrc b/plugins/req/server/.babelrc
new file mode 100644
index 000000000..c87001bc4
--- /dev/null
+++ b/plugins/req/server/.babelrc
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../server/.babelrc"
+}
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
new file mode 100644
index 000000000..bc03fc6d3

View file

@ -36,23 +36,10 @@ index 5d564453d..9e3c5b55b 100644
})}
</ButtonLarge>
diff --git a/app/scenes/Login/index.tsx b/app/scenes/Login/index.tsx
index 9a9650b48..e642869b1 100644
index 9a9650b48..5357d5cf5 100644
--- a/app/scenes/Login/index.tsx
+++ b/app/scenes/Login/index.tsx
@@ -228,12 +228,6 @@ function Login({ children }: Props) {
);
}
- // If there is only one provider and it's OIDC, redirect immediately.
- if (config.providers.length === 1 && config.providers[0].id === "oidc") {
- window.location.href = getRedirectUrl(config.providers[0].authUrl);
- return null;
- }
-
return (
<Background>
<BackButton config={config} />
@@ -264,7 +258,7 @@ function Login({ children }: Props) {
@@ -264,7 +264,7 @@ function Login({ children }: Props) {
) : (
<>
<StyledHeading as="h2" centered>
@ -61,7 +48,7 @@ index 9a9650b48..e642869b1 100644
authProviderName: config.name || env.APP_NAME,
})}
</StyledHeading>
@@ -282,7 +276,7 @@ function Login({ children }: Props) {
@@ -282,7 +282,7 @@ function Login({ children }: Props) {
{hasMultipleProviders && (
<>
<Note>