Skip to content

Commit 00fd54b

Browse files
authored
Remove outdated information (#758)
1 parent 5249213 commit 00fd54b

File tree

7 files changed

+23
-18
lines changed

7 files changed

+23
-18
lines changed

src-tauri/src/tray.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717
};
1818

1919
const SUBSCRIBE_UPDATES_LINK: &str = "https://defguard.net/newsletter";
20-
const JOIN_COMMUNITY_LINK: &str = "https://matrix.to/#/#defguard:teonite.com";
20+
const JOIN_COMMUNITY_LINK: &str = "https://github.com/DefGuard/defguard/discussions/new/choose";
2121
const FOLLOW_US_LINK: &str = "https://floss.social/@defguard";
2222

2323
const MAIN_WINDOW_ID: &str = "main";
@@ -28,7 +28,7 @@ const TRAY_EVENT_QUIT: &str = "quit";
2828
const TRAY_EVENT_SHOW: &str = "show";
2929
const TRAY_EVENT_HIDE: &str = "hide";
3030
const TRAY_EVENT_UPDATES: &str = "updates";
31-
const TRAY_EVENT_COMMINITY: &str = "community";
31+
const TRAY_EVENT_COMMUNITY: &str = "community";
3232
const TRAY_EVENT_FOLLOW: &str = "follow";
3333

3434
/// Generate contents of system tray menu.
@@ -46,8 +46,8 @@ async fn generate_tray_menu(app: &AppHandle) -> Result<Menu<impl Runtime>, Error
4646
)?;
4747
let join_community = MenuItem::with_id(
4848
app,
49-
TRAY_EVENT_COMMINITY,
50-
"Join our community",
49+
TRAY_EVENT_COMMUNITY,
50+
"Community support",
5151
true,
5252
None::<&str>,
5353
)?;
@@ -208,7 +208,7 @@ pub fn handle_tray_menu_event(app: &AppHandle, event: MenuEvent) {
208208
TRAY_EVENT_UPDATES => {
209209
let _ = webbrowser::open(SUBSCRIBE_UPDATES_LINK);
210210
}
211-
TRAY_EVENT_COMMINITY => {
211+
TRAY_EVENT_COMMUNITY => {
212212
let _ = webbrowser::open(JOIN_COMMUNITY_LINK);
213213
}
214214
TRAY_EVENT_FOLLOW => {

src/i18n/en/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ If you are an admin/devops - all your customers (instances) and all their tunnel
144144
githubLink: `GitHub`,
145145
spreadWordText: `spreading the word about:`,
146146
defguard: `defguard!`,
147-
joinMatrix: `join our Matrix server:`,
147+
githubDiscussions: `Reach out to our community via `,
148148
supportUs: 'Support Us!',
149149
},
150150
},

src/i18n/fr/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Si vous êtes un administrateur/devops - tous vos clients (instances) et tous le
135135
githubLink: `GitHub`,
136136
spreadWordText: `En faisant passer le mot sur :`,
137137
defguard: `defguard !`,
138-
joinMatrix: `En nous rejoignant sur notre serveur Matrix :`,
138+
githubDiscussions: `Contactez notre communauté via `,
139139
supportUs: 'Soutenez-nous !',
140140
},
141141
},

src/i18n/i18n-types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ type RootTranslation = {
343343
*/
344344
defguard: string
345345
/**
346-
* j​o​i​n​ ​o​u​r​ ​M​a​t​r​i​x​ ​s​e​r​v​e​r​:
346+
* R​e​a​c​h​ ​o​u​t​ ​t​o​ ​o​u​r​ ​c​o​m​m​u​n​i​t​y​ ​v​i​a​
347347
*/
348-
joinMatrix: string
348+
githubDiscussions: string
349349
/**
350350
* S​u​p​p​o​r​t​ ​U​s​!
351351
*/
@@ -2047,9 +2047,9 @@ export type TranslationFunctions = {
20472047
*/
20482048
defguard: () => LocalizedString
20492049
/**
2050-
* join our Matrix server:
2050+
* Reach out to our community via
20512051
*/
2052-
joinMatrix: () => LocalizedString
2052+
githubDiscussions: () => LocalizedString
20532053
/**
20542054
* Support Us!
20552055
*/

src/pages/client/pages/CarouselPage/cards/CarouselCards.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useI18nContext } from '../../../../../i18n/i18n-react';
77
import { IconDefguard } from '../../../../../shared/components/icons/IconDefguard/IconDeguard';
88
import SvgDefguardLogoText from '../../../../../shared/components/svg/DefguardLogoText';
99
import { GitHubIcon } from '../../../../../shared/components/svg/GithubIcon';
10-
import { githubUrl, mastodonUrl, matrixUrl } from '../../../../../shared/constants';
10+
import { discussionsUrl, githubUrl, mastodonUrl } from '../../../../../shared/constants';
1111
import { Button } from '../../../../../shared/defguard-ui/components/Layout/Button/Button';
1212
import {
1313
ButtonSize,
@@ -172,8 +172,8 @@ export const SupportSlide = () => {
172172
<b>{localLL.defguard()}</b>
173173
</li>
174174
<li>
175-
<span>{localLL.joinMatrix()} </span>
176-
<a onClick={() => openLink(matrixUrl)}>{matrixUrl}</a>
175+
<span>{localLL.githubDiscussions()} </span>
176+
<a onClick={() => openLink(discussionsUrl)}>{discussionsUrl}</a>
177177
</li>
178178
</ul>
179179
</div>

src/pages/client/pages/ClientSettingsPage/components/InfoCard/InfoCard.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import Markdown from 'react-markdown';
22

33
import { useI18nContext } from '../../../../../../i18n/i18n-react';
44
import { GitHubIcon } from '../../../../../../shared/components/svg/GithubIcon';
5-
import { githubUrl, mastodonUrl, matrixUrl } from '../../../../../../shared/constants';
5+
import {
6+
discussionsUrl,
7+
githubUrl,
8+
mastodonUrl,
9+
} from '../../../../../../shared/constants';
610
import { Button } from '../../../../../../shared/defguard-ui/components/Layout/Button/Button';
711
import {
812
ButtonSize,
@@ -73,8 +77,8 @@ export const InfoCard = () => {
7377
<b>{supportLL.defguard()}</b>
7478
</li>
7579
<li>
76-
<span>{supportLL.joinMatrix()} </span>
77-
<a onClick={() => openLink(matrixUrl)}>{matrixUrl}</a>
80+
<span>{supportLL.githubDiscussions()} </span>
81+
<a onClick={() => openLink(discussionsUrl)}>{discussionsUrl}</a>
7882
</li>
7983
</ul>
8084
</div>

src/shared/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const mastodonUrl =
1111

1212
export const githubUrl = 'https://github.com/Defguard/defguard';
1313

14-
export const matrixUrl = 'https://matrix.to/#/#defguard:teonite.com';
14+
export const discussionsUrl =
15+
'https://github.com/DefGuard/defguard/discussions/new/choose';
1516

1617
export const CLIENT_VERSION_HEADER = 'defguard-client-version';
1718

0 commit comments

Comments
 (0)