Skip to content

Commit 6dbcac1

Browse files
committed
update @ProtonMail web clients
1 parent 08e5aad commit 6dbcac1

File tree

7 files changed

+202
-166
lines changed

7 files changed

+202
-166
lines changed

patches/protonmail/common-1.patch

Lines changed: 0 additions & 140 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ index 9aaa78a28..f3d24b47c 100644
100100
};
101101

102102
diff --git a/packages/components/components/link/SettingsLink.tsx b/packages/components/components/link/SettingsLink.tsx
103-
index ebce00d20..96498d8c8 100644
103+
index 5081c4003..cde37c0cb 100644
104104
--- a/packages/components/components/link/SettingsLink.tsx
105105
+++ b/packages/components/components/link/SettingsLink.tsx
106-
@@ -37,7 +37,7 @@ const SettingsLink = ({ path, app, children, ...rest }: Props, ref: Ref<HTMLAnch
106+
@@ -48,7 +48,7 @@ const SettingsLink = ({ path, app, children, ...rest }: Props, ref: Ref<HTMLAnch
107107
ref={ref}
108108
toApp={APPS.PROTONACCOUNT}
109109
// If going to settings for the same app
110-
- target={isGoingToSameSettings ? '_self' : '_blank'}
111-
+ target={isGoingToSameSettings || app === APPS.PROTONVPN_SETTINGS ? '_self' : '_blank'}
110+
- target={canOpenInSameTab(APP_NAME, settingsApp, toSettingsForApp) ? '_self' : '_blank'}
111+
+ target={canOpenInSameTab(APP_NAME, settingsApp, toSettingsForApp) || app === APPS.PROTONVPN_SETTINGS ? '_self' : '_blank'}
112112
{...rest}
113113
>
114114
{children}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/packages/shared/lib/constants.ts b/packages/shared/lib/constants.ts
2+
index d035e6c88..96af3775b 100644
3+
--- a/packages/shared/lib/constants.ts
4+
+++ b/packages/shared/lib/constants.ts
5+
@@ -69,7 +69,7 @@ interface AppConfiguration {
6+
7+
export const APPS_CONFIGURATION: { [key in APP_NAMES]: AppConfiguration } = {
8+
[APPS.PROTONACCOUNT]: {
9+
- publicPath: '',
10+
+ publicPath: '/account',
11+
subdomain: 'account',
12+
name: 'Proton Account',
13+
bareName: 'Account',
14+
@@ -141,8 +141,8 @@ export const APPS_CONFIGURATION: { [key in APP_NAMES]: AppConfiguration } = {
15+
settingsSlug: '',
16+
},
17+
[APPS.PROTONVPN_SETTINGS]: {
18+
- publicPath: '',
19+
- subdomain: '',
20+
+ publicPath: 'account/vpn',
21+
+ subdomain: 'account',
22+
name: VPN_APP_NAME,
23+
bareName: VPN_SHORT_APP_NAME,
24+
clientID: 'web-vpn-settings',
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/packages/shared/lib/constants.ts b/packages/shared/lib/constants.ts
2-
index a5c634a9f..c1cbd799a 100644
2+
index 632e91b83..fd463a184 100644
33
--- a/packages/shared/lib/constants.ts
44
+++ b/packages/shared/lib/constants.ts
5-
@@ -57,7 +57,7 @@ export const APPS = {
5+
@@ -61,7 +61,7 @@ export const APPS = {
66

77
export const APPS_CONFIGURATION = {
88
[APPS.PROTONACCOUNT]: {
@@ -11,7 +11,7 @@ index a5c634a9f..c1cbd799a 100644
1111
subdomain: 'account',
1212
name: 'Proton Account',
1313
bareName: 'Account',
14-
@@ -129,8 +129,8 @@ export const APPS_CONFIGURATION = {
14+
@@ -133,8 +133,8 @@ export const APPS_CONFIGURATION = {
1515
settingsSlug: '',
1616
},
1717
[APPS.PROTONVPN_SETTINGS]: {

patches/protonmail/meta.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"proton-mail": [
3-
"common-1.patch",
3+
"common-3.patch",
44
"url-3.patch",
5-
"constants-7.patch",
6-
"sentry-9.patch",
5+
"constants-8.patch",
6+
"sentry-10.patch",
77
"pack-api-arg-4.patch",
88
"pack-webpack-6.patch",
99
"session-storage-5.patch",
@@ -12,10 +12,10 @@
1212
"proton-mail.patch"
1313
],
1414
"proton-account": [
15-
"common-2.patch",
15+
"common-3.patch",
1616
"url-3.patch",
17-
"constants-7.patch",
18-
"sentry-9.patch",
17+
"constants-8.patch",
18+
"sentry-10.patch",
1919
"pack-api-arg-4.patch",
2020
"pack-webpack-6.patch",
2121
"session-storage-5.patch",
@@ -24,20 +24,20 @@
2424
"proton-account.patch"
2525
],
2626
"proton-calendar": [
27-
"common-1.patch",
27+
"common-3.patch",
2828
"url-3.patch",
29-
"constants-7.patch",
30-
"sentry-9.patch",
29+
"constants-8.patch",
30+
"sentry-10.patch",
3131
"pack-api-arg-4.patch",
3232
"pack-webpack-6.patch",
3333
"session-storage-5.patch",
3434
"link-handler-7.patch",
3535
"embedded-verification-3.patch"
3636
],
3737
"proton-drive": [
38-
"common-1.patch",
38+
"common-3.patch",
3939
"url-3.patch",
40-
"constants-7.patch",
40+
"constants-9.patch",
4141
"sentry-9.patch",
4242
"pack-api-arg-4.patch",
4343
"pack-webpack-6.patch",
@@ -47,10 +47,10 @@
4747
"proton-drive.patch"
4848
],
4949
"proton-vpn-settings": [
50-
"common-1.patch",
50+
"common-3.patch",
5151
"url-3.patch",
52-
"constants-7.patch",
53-
"sentry-9.patch",
52+
"constants-8.patch",
53+
"sentry-10.patch",
5454
"pack-api-arg-4.patch",
5555
"pack-webpack-6.patch",
5656
"session-storage-5.patch",

0 commit comments

Comments
 (0)