From c9bf429a60f7b5cc5fa065d54b699c9d84536564 Mon Sep 17 00:00:00 2001 From: kytwb Date: Sun, 19 Dec 2021 05:32:04 +0100 Subject: Iterate on About Ferdi screen --- .../supportFerdi/SupportFerdiDashboard.tsx | 155 +++------------------ .../workspaces/components/WorkspaceDrawer.js | 6 +- src/i18n/locales/en-US.json | 13 +- src/styles/settings.scss | 5 + 4 files changed, 32 insertions(+), 147 deletions(-) diff --git a/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx b/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx index acebc979f..948d0c1d1 100644 --- a/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx +++ b/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx @@ -1,6 +1,4 @@ import { defineMessages, useIntl } from 'react-intl'; -import { mdiOpenInNew } from '@mdi/js'; -import { Icon } from '../../ui/icon'; const messages = defineMessages({ headline: { @@ -9,60 +7,17 @@ const messages = defineMessages({ }, aboutIntro: { id: 'settings.supportFerdi.aboutIntro', - defaultMessage: - '

Ferdi is an open-source and a community-lead application.

Thanks to the people who make this possbile:

', - }, - textListContributors: { - id: 'settings.supportFerdi.textListContributors', - defaultMessage: 'Full list of contributors', - }, - textListContributorsHere: { - id: 'settings.supportFerdi.textListContributorsHere', - defaultMessage: 'here', - }, - textVolunteers: { - id: 'settings.supportFerdi.textVolunteers', - defaultMessage: - 'The development of Ferdi is done by volunteers. People who use Ferdi like you. They maintain, fix, and improve Ferdi in their spare time.', - }, - textSupportWelcome: { - id: 'settings.supportFerdi.textSupportWelcome', - defaultMessage: - 'Support is always welcome. You can find a list of the help we need', - }, - textSupportWelcomeHere: { - id: 'settings.supportFerdi.textSupportWelcomeHere', - defaultMessage: 'here', - }, - textExpenses: { - id: 'settings.supportFerdi.textExpenses', - defaultMessage: - 'While volunteers do most of the work, we still need to pay for servers and certificates. As a community, we are fully transparent on funds we collect and spend - see our', - }, - textOpenCollective: { - id: 'settings.supportFerdi.textOpenCollective', - defaultMessage: 'Open Collective', - }, - textDonation: { - id: 'settings.supportFerdi.textDonation', - defaultMessage: - 'If you feel like supporting Ferdi development with a donation, you can do so on both,', - }, - textDonationAnd: { - id: 'settings.supportFerdi.textDonationAnd', - defaultMessage: 'and', - }, - textGitHubSponsors: { - id: 'settings.supportFerdi.textGitHubSponsors', - defaultMessage: 'GitHub Sponsors', + defaultMessage: 'Special thanks goes to these awesome people:', }, + about: { + id: 'settings.supportFerdi.about', + defaultMessage: 'The development of Ferdi is done by contributors. People who use Ferdi like you. They maintain, fix, and improve Ferdi in their spare time.', + } }); const SupportFerdiDashboard = () => { const intl = useIntl(); - const aboutIntro = intl.formatMessage(messages.aboutIntro); - return (
@@ -73,16 +28,6 @@ const SupportFerdiDashboard = () => {

- - GitHub Stars - { /> Open Collective backers + + Crowdin + Open Collective sponsors - -

- -
-
-

- - GitHub contributors (non-exhaustive)

+

{intl.formatMessage(messages.aboutIntro)}

- {intl.formatMessage(messages.textListContributors)} - {' '} - {intl.formatMessage(messages.textListContributorsHere)} - - -
-
-

-

{intl.formatMessage(messages.textVolunteers)}

-

- {intl.formatMessage(messages.textSupportWelcome)} - - {' '} - {intl.formatMessage(messages.textSupportWelcomeHere)} - - -

-

- {intl.formatMessage(messages.textExpenses)} - - {' '} - {intl.formatMessage(messages.textOpenCollective)} - - -

-

- {intl.formatMessage(messages.textDonation)} - - {' '} - {intl.formatMessage(messages.textOpenCollective)} - - {' '} - {intl.formatMessage(messages.textDonationAnd)} - - {' '} - {intl.formatMessage(messages.textGitHubSponsors)} - + GitHub contributors (non-exhaustive)

+

{intl.formatMessage(messages.about)}

diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js index be546cae0..147d4cf89 100644 --- a/src/features/workspaces/components/WorkspaceDrawer.js +++ b/src/features/workspaces/components/WorkspaceDrawer.js @@ -99,7 +99,11 @@ class WorkspaceDrawer extends Component { componentDidMount() { ReactTooltip.rebuild(); - getUserWorkspacesRequest.execute(); + try { + getUserWorkspacesRequest.execute(); + } catch (error) { + console.log(error); + } } render() { diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index 24603165b..e09dbe0dd 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json @@ -349,18 +349,9 @@ "settings.services.tooltip.isMuted": "All sounds are muted", "settings.services.tooltip.notificationsDisabled": "Notifications are disabled", "settings.services.updatedInfo": "Your changes have been saved", - "settings.supportFerdi.aboutIntro": "

Ferdi is an open-source and a community-lead application.

Thanks to the people who make this possbile:

", + "settings.supportFerdi.about": "The development of Ferdi is done by contributors. People who use Ferdi like you. They maintain, fix, and improve Ferdi in their spare time.", + "settings.supportFerdi.aboutIntro": "Special thanks goes to these awesome people:", "settings.supportFerdi.headline": "About Ferdi", - "settings.supportFerdi.textDonation": "If you feel like supporting Ferdi development with a donation, you can do so on both,", - "settings.supportFerdi.textDonationAnd": "and", - "settings.supportFerdi.textExpenses": "While volunteers do most of the work, we still need to pay for servers and certificates. As a community, we are fully transparent on funds we collect and spend - see our", - "settings.supportFerdi.textGitHubSponsors": "GitHub Sponsors", - "settings.supportFerdi.textListContributors": "Full list of contributors", - "settings.supportFerdi.textListContributorsHere": "here", - "settings.supportFerdi.textOpenCollective": "Open Collective", - "settings.supportFerdi.textSupportWelcome": "Support is always welcome. You can find a list of the help we need", - "settings.supportFerdi.textSupportWelcomeHere": "here", - "settings.supportFerdi.textVolunteers": "The development of Ferdi is done by volunteers. People who use Ferdi like you. They maintain, fix, and improve Ferdi in their spare time.", "settings.team.contentHeadline": "Franz Team Management", "settings.team.copy": "Franz's Team Management allows you to manage Franz Subscriptions for multiple users. Please keep in mind that having a Franz Premium subscription will give you no advantages in using Ferdi: The only reason you still have access to Team Management is so you can manage your legacy Franz Teams and so that you don't loose any functionality in managing your account.", "settings.team.headline": "Team", diff --git a/src/styles/settings.scss b/src/styles/settings.scss index 3bfc3586c..8f59fc57a 100644 --- a/src/styles/settings.scss +++ b/src/styles/settings.scss @@ -264,6 +264,10 @@ .proxyHost { flex-basis: 70%; } + + a { + display: inline-block; + } } .settings__close { @@ -579,5 +583,6 @@ .settings__support-badges { a { margin-right: 10px; + display: inline-block; } } -- cgit v1.2.3-54-g00ecf