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:
parent
c9fcdddaec
commit
fe42cf64a3
3 changed files with 6 additions and 50 deletions
|
@ -107,23 +107,10 @@ index 5d564453d..9e3c5b55b 100644
|
||||||
})}
|
})}
|
||||||
</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 9a9650b48..e642869b1 100644
|
index 9a9650b48..5357d5cf5 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
|
||||||
@@ -228,12 +228,6 @@ function Login({ children }: Props) {
|
@@ -264,7 +264,7 @@ 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) {
|
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<StyledHeading as="h2" centered>
|
<StyledHeading as="h2" centered>
|
||||||
|
@ -132,7 +119,7 @@ index 9a9650b48..e642869b1 100644
|
||||||
authProviderName: config.name || env.APP_NAME,
|
authProviderName: config.name || env.APP_NAME,
|
||||||
})}
|
})}
|
||||||
</StyledHeading>
|
</StyledHeading>
|
||||||
@@ -282,7 +276,7 @@ function Login({ children }: Props) {
|
@@ -282,7 +282,7 @@ function Login({ children }: Props) {
|
||||||
{hasMultipleProviders && (
|
{hasMultipleProviders && (
|
||||||
<>
|
<>
|
||||||
<Note>
|
<Note>
|
||||||
|
@ -176,15 +163,6 @@ index 000000000..ae7c40333
|
||||||
+ "name": "visiteur",
|
+ "name": "visiteur",
|
||||||
+ "description": "Adds an req compatible authentication provider."
|
+ "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
|
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..bc03fc6d3
|
index 000000000..bc03fc6d3
|
||||||
|
|
|
@ -20,15 +20,6 @@ index 000000000..ae7c40333
|
||||||
+ "name": "visiteur",
|
+ "name": "visiteur",
|
||||||
+ "description": "Adds an req compatible authentication provider."
|
+ "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
|
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..bc03fc6d3
|
index 000000000..bc03fc6d3
|
||||||
|
|
|
@ -36,23 +36,10 @@ index 5d564453d..9e3c5b55b 100644
|
||||||
})}
|
})}
|
||||||
</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 9a9650b48..e642869b1 100644
|
index 9a9650b48..5357d5cf5 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
|
||||||
@@ -228,12 +228,6 @@ function Login({ children }: Props) {
|
@@ -264,7 +264,7 @@ 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) {
|
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<StyledHeading as="h2" centered>
|
<StyledHeading as="h2" centered>
|
||||||
|
@ -61,7 +48,7 @@ index 9a9650b48..e642869b1 100644
|
||||||
authProviderName: config.name || env.APP_NAME,
|
authProviderName: config.name || env.APP_NAME,
|
||||||
})}
|
})}
|
||||||
</StyledHeading>
|
</StyledHeading>
|
||||||
@@ -282,7 +276,7 @@ function Login({ children }: Props) {
|
@@ -282,7 +282,7 @@ function Login({ children }: Props) {
|
||||||
{hasMultipleProviders && (
|
{hasMultipleProviders && (
|
||||||
<>
|
<>
|
||||||
<Note>
|
<Note>
|
||||||
|
|
Loading…
Add table
Reference in a new issue