element-call-Github/src/FullScreenView.tsx

123 lines
3.2 KiB
TypeScript
Raw Normal View History

/*
Copyright 2022-2024 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only
Please see LICENSE in the repository root for full details.
*/
import { FC, ReactNode, useCallback, useEffect } from "react";
2021-12-15 10:23:49 +08:00
import { useLocation } from "react-router-dom";
2021-12-15 08:12:58 +08:00
import classNames from "classnames";
2022-10-10 21:19:10 +08:00
import { Trans, useTranslation } from "react-i18next";
import * as Sentry from "@sentry/react";
import { logger } from "matrix-js-sdk/src/logger";
import { Button } from "@vector-im/compound-web";
import { Header, HeaderLogo, LeftNav, RightNav } from "./Header";
import { LinkButton } from "./button";
import styles from "./FullScreenView.module.css";
import { TranslatedError } from "./TranslatedError";
import { Config } from "./config/Config";
import { RageshakeButton } from "./settings/RageshakeButton";
import { useUrlParams } from "./UrlParams";
2021-12-11 08:42:18 +08:00
interface FullScreenViewProps {
className?: string;
children: ReactNode;
}
export const FullScreenView: FC<FullScreenViewProps> = ({
className,
children,
}) => {
const { hideHeader } = useUrlParams();
2021-12-11 08:42:18 +08:00
return (
2021-12-15 08:12:58 +08:00
<div className={classNames(styles.page, className)}>
2021-12-11 08:42:18 +08:00
<Header>
<LeftNav>{!hideHeader && <HeaderLogo />}</LeftNav>
2021-12-11 08:42:18 +08:00
<RightNav />
</Header>
<div className={styles.container}>
<div className={styles.content}>{children}</div>
</div>
</div>
);
};
2021-12-11 08:42:18 +08:00
interface ErrorViewProps {
error: Error;
}
export const ErrorView: FC<ErrorViewProps> = ({ error }) => {
2021-12-11 08:42:18 +08:00
const location = useLocation();
Knocking support (#2281) * Add joining with knock room creation flow. Also add `WaitForInviteView` after knocking. And appropriate error views when knock failed or gets rejected. Signed-off-by: Timo K <toger5@hotmail.de> * Refactor encryption information. We had lots of enums and booleans to describe the encryption situation. Now we only use the `EncryptionSystem` "enum" which contains the additional information like sharedKey. (and we don't use the isRoomE2EE function that is somewhat confusing since it checks `return widget === null && !room.getCanonicalAlias();` which is only indirectly related to e2ee) Signed-off-by: Timo K <toger5@hotmail.de> * Update recent list. - Don't use deprecated `groupCallEventHander` anymore (it used the old `m.call` state event.) - make the recent list reactive (getting removed from a call removes the item from the list) - support having rooms without shared secret but actual matrix encryption in the recent list - change the share link creation button so that we create a link with pwd for sharedKey rooms and with `perParticipantE2EE=true` for matrix encrypted rooms. Signed-off-by: Timo K <toger5@hotmail.de> * fix types Signed-off-by: Timo K <toger5@hotmail.de> * patch js-sdk for linter Signed-off-by: Timo K <toger5@hotmail.de> * ignore ts expect error Signed-off-by: Timo K <toger5@hotmail.de> * Fix error in widget mode. We cannot call client.getRoomSummary in widget mode. The code path needs to throw before reaching this call. (In general we should never call getRoomSummary if getRoom returns a room) Signed-off-by: Timo K <toger5@hotmail.de> * tempDemo Signed-off-by: Timo K <toger5@hotmail.de> * remove wait for invite view Signed-off-by: Timo K <toger5@hotmail.de> * yarn i18n Signed-off-by: Timo K <toger5@hotmail.de> * reset back mute participant count * add logic to show error view when getting removed * include reason whenever someone gets removed from a call. * fix activeRoom not beeing early enough * fix lints * add comment about encryption situation Signed-off-by: Timo K <toger5@hotmail.de> * Fix lockfile * Use (unmerged!) RoomSummary type from the js-sdk Temporarily change the js-sdk dependency to the PR branch that provides that type * review Signed-off-by: Timo K <toger5@hotmail.de> * review (remove participant count unknown) Signed-off-by: Timo K <toger5@hotmail.de> * remove error for unencrypted calls (allow intentional unencrypted calls) Signed-off-by: Timo K <toger5@hotmail.de> * update js-sdk Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de> Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2024-04-23 21:15:13 +08:00
const { confineToRoom } = useUrlParams();
2022-10-10 21:19:10 +08:00
const { t } = useTranslation();
2021-12-11 08:42:18 +08:00
useEffect(() => {
logger.error(error);
Sentry.captureException(error);
2021-12-11 08:42:18 +08:00
}, [error]);
2021-12-15 10:23:49 +08:00
const onReload = useCallback(() => {
window.location.href = "/";
2021-12-15 10:23:49 +08:00
}, []);
2021-12-11 08:42:18 +08:00
return (
<FullScreenView>
2023-11-23 04:07:15 +08:00
<h1>{t("common.error")}</h1>
2022-10-10 21:19:10 +08:00
<p>
{error instanceof TranslatedError
? error.translatedMessage
: error.message}
</p>
<RageshakeButton description={`***Error View***: ${error.message}`} />
Knocking support (#2281) * Add joining with knock room creation flow. Also add `WaitForInviteView` after knocking. And appropriate error views when knock failed or gets rejected. Signed-off-by: Timo K <toger5@hotmail.de> * Refactor encryption information. We had lots of enums and booleans to describe the encryption situation. Now we only use the `EncryptionSystem` "enum" which contains the additional information like sharedKey. (and we don't use the isRoomE2EE function that is somewhat confusing since it checks `return widget === null && !room.getCanonicalAlias();` which is only indirectly related to e2ee) Signed-off-by: Timo K <toger5@hotmail.de> * Update recent list. - Don't use deprecated `groupCallEventHander` anymore (it used the old `m.call` state event.) - make the recent list reactive (getting removed from a call removes the item from the list) - support having rooms without shared secret but actual matrix encryption in the recent list - change the share link creation button so that we create a link with pwd for sharedKey rooms and with `perParticipantE2EE=true` for matrix encrypted rooms. Signed-off-by: Timo K <toger5@hotmail.de> * fix types Signed-off-by: Timo K <toger5@hotmail.de> * patch js-sdk for linter Signed-off-by: Timo K <toger5@hotmail.de> * ignore ts expect error Signed-off-by: Timo K <toger5@hotmail.de> * Fix error in widget mode. We cannot call client.getRoomSummary in widget mode. The code path needs to throw before reaching this call. (In general we should never call getRoomSummary if getRoom returns a room) Signed-off-by: Timo K <toger5@hotmail.de> * tempDemo Signed-off-by: Timo K <toger5@hotmail.de> * remove wait for invite view Signed-off-by: Timo K <toger5@hotmail.de> * yarn i18n Signed-off-by: Timo K <toger5@hotmail.de> * reset back mute participant count * add logic to show error view when getting removed * include reason whenever someone gets removed from a call. * fix activeRoom not beeing early enough * fix lints * add comment about encryption situation Signed-off-by: Timo K <toger5@hotmail.de> * Fix lockfile * Use (unmerged!) RoomSummary type from the js-sdk Temporarily change the js-sdk dependency to the PR branch that provides that type * review Signed-off-by: Timo K <toger5@hotmail.de> * review (remove participant count unknown) Signed-off-by: Timo K <toger5@hotmail.de> * remove error for unencrypted calls (allow intentional unencrypted calls) Signed-off-by: Timo K <toger5@hotmail.de> * update js-sdk Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de> Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2024-04-23 21:15:13 +08:00
{!confineToRoom &&
(location.pathname === "/" ? (
<Button className={styles.homeLink} onClick={onReload}>
Knocking support (#2281) * Add joining with knock room creation flow. Also add `WaitForInviteView` after knocking. And appropriate error views when knock failed or gets rejected. Signed-off-by: Timo K <toger5@hotmail.de> * Refactor encryption information. We had lots of enums and booleans to describe the encryption situation. Now we only use the `EncryptionSystem` "enum" which contains the additional information like sharedKey. (and we don't use the isRoomE2EE function that is somewhat confusing since it checks `return widget === null && !room.getCanonicalAlias();` which is only indirectly related to e2ee) Signed-off-by: Timo K <toger5@hotmail.de> * Update recent list. - Don't use deprecated `groupCallEventHander` anymore (it used the old `m.call` state event.) - make the recent list reactive (getting removed from a call removes the item from the list) - support having rooms without shared secret but actual matrix encryption in the recent list - change the share link creation button so that we create a link with pwd for sharedKey rooms and with `perParticipantE2EE=true` for matrix encrypted rooms. Signed-off-by: Timo K <toger5@hotmail.de> * fix types Signed-off-by: Timo K <toger5@hotmail.de> * patch js-sdk for linter Signed-off-by: Timo K <toger5@hotmail.de> * ignore ts expect error Signed-off-by: Timo K <toger5@hotmail.de> * Fix error in widget mode. We cannot call client.getRoomSummary in widget mode. The code path needs to throw before reaching this call. (In general we should never call getRoomSummary if getRoom returns a room) Signed-off-by: Timo K <toger5@hotmail.de> * tempDemo Signed-off-by: Timo K <toger5@hotmail.de> * remove wait for invite view Signed-off-by: Timo K <toger5@hotmail.de> * yarn i18n Signed-off-by: Timo K <toger5@hotmail.de> * reset back mute participant count * add logic to show error view when getting removed * include reason whenever someone gets removed from a call. * fix activeRoom not beeing early enough * fix lints * add comment about encryption situation Signed-off-by: Timo K <toger5@hotmail.de> * Fix lockfile * Use (unmerged!) RoomSummary type from the js-sdk Temporarily change the js-sdk dependency to the PR branch that provides that type * review Signed-off-by: Timo K <toger5@hotmail.de> * review (remove participant count unknown) Signed-off-by: Timo K <toger5@hotmail.de> * remove error for unencrypted calls (allow intentional unencrypted calls) Signed-off-by: Timo K <toger5@hotmail.de> * update js-sdk Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de> Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2024-04-23 21:15:13 +08:00
{t("return_home_button")}
</Button>
) : (
<LinkButton className={styles.homeLink} to="/">
Knocking support (#2281) * Add joining with knock room creation flow. Also add `WaitForInviteView` after knocking. And appropriate error views when knock failed or gets rejected. Signed-off-by: Timo K <toger5@hotmail.de> * Refactor encryption information. We had lots of enums and booleans to describe the encryption situation. Now we only use the `EncryptionSystem` "enum" which contains the additional information like sharedKey. (and we don't use the isRoomE2EE function that is somewhat confusing since it checks `return widget === null && !room.getCanonicalAlias();` which is only indirectly related to e2ee) Signed-off-by: Timo K <toger5@hotmail.de> * Update recent list. - Don't use deprecated `groupCallEventHander` anymore (it used the old `m.call` state event.) - make the recent list reactive (getting removed from a call removes the item from the list) - support having rooms without shared secret but actual matrix encryption in the recent list - change the share link creation button so that we create a link with pwd for sharedKey rooms and with `perParticipantE2EE=true` for matrix encrypted rooms. Signed-off-by: Timo K <toger5@hotmail.de> * fix types Signed-off-by: Timo K <toger5@hotmail.de> * patch js-sdk for linter Signed-off-by: Timo K <toger5@hotmail.de> * ignore ts expect error Signed-off-by: Timo K <toger5@hotmail.de> * Fix error in widget mode. We cannot call client.getRoomSummary in widget mode. The code path needs to throw before reaching this call. (In general we should never call getRoomSummary if getRoom returns a room) Signed-off-by: Timo K <toger5@hotmail.de> * tempDemo Signed-off-by: Timo K <toger5@hotmail.de> * remove wait for invite view Signed-off-by: Timo K <toger5@hotmail.de> * yarn i18n Signed-off-by: Timo K <toger5@hotmail.de> * reset back mute participant count * add logic to show error view when getting removed * include reason whenever someone gets removed from a call. * fix activeRoom not beeing early enough * fix lints * add comment about encryption situation Signed-off-by: Timo K <toger5@hotmail.de> * Fix lockfile * Use (unmerged!) RoomSummary type from the js-sdk Temporarily change the js-sdk dependency to the PR branch that provides that type * review Signed-off-by: Timo K <toger5@hotmail.de> * review (remove participant count unknown) Signed-off-by: Timo K <toger5@hotmail.de> * remove error for unencrypted calls (allow intentional unencrypted calls) Signed-off-by: Timo K <toger5@hotmail.de> * update js-sdk Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de> Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2024-04-23 21:15:13 +08:00
{t("return_home_button")}
</LinkButton>
))}
2021-12-11 08:42:18 +08:00
</FullScreenView>
);
};
2021-12-11 08:42:18 +08:00
export const CrashView: FC = () => {
2022-10-10 21:19:10 +08:00
const { t } = useTranslation();
const onReload = useCallback(() => {
window.location.href = "/";
}, []);
return (
<FullScreenView>
``` move "{{count, number}}_one" "participant_count_one" move "{{count, number}}_other" "participant_count_other" move "{{count}} stars_one" "star_rating_input_label_one" move "{{count}} stars_other" "star_rating_input_label_other" move "{{displayName}} is presenting" "video_tile.presenter_label" move "{{displayName}}, your call has ended." "call_ended_view.headline" move "<0></0><1></1>You may withdraw consent by unchecking this box. If you are currently in a call, this setting will take effect at the end of the call." "settings.opt_in_description" move "<0>Already have an account?</0><1><0>Log in</0> Or <2>Access as a guest</2></1>" "register_auth_links" move "<0>Create an account</0> Or <2>Access as a guest</2>" "login_auth_links" move "<0>Oops, something's gone wrong.</0>" "full_screen_view_h1" move "<0>Submitting debug logs will help us track down the problem.</0>" "full_screen_view_description" move "<0>Thanks for your feedback!</0>" "call_ended_view.feedback_done" move "<0>We'd love to hear your feedback so we can improve your experience.</0>" "call_ended_view.feedback_prompt" move "<0>Why not finish by setting up a password to keep your account?</0><1>You'll be able to keep your name and set an avatar for use on future calls</1>" "call_ended_view.create_account_prompt" move "Another user on this call is having an issue. In order to better diagnose these issues we'd like to collect a debug log." "rageshake_request_modal.body" move "Back to recents" "lobby.leave_button" move "By participating in this beta, you consent to the collection of anonymous data, which we use to improve the product. You can find more information about which data we track in our <2>Privacy Policy</2> and our <5>Cookie Policy</5>." "analytics_notice" move "Call not found" "group_call_loader_failed_heading" move "Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key." "group_call_loader_failed_text" move "Confirm password" "register_confirm_password_label" move "Connectivity to the server has been lost." "disconnected_banner" move "Continue in browser" "app_selection_modal.continue_in_browser" move "Create account" "call_ended_view.create_account_button" move "Debug log request" "rageshake_request_modal.title" move "Developer" "settings.developer_tab_title" move "Developer Settings" "settings.developer_settings_label" move "Element Call Home" "header_label" move "End call" "hangup_button_label" move "Full screen" "fullscreen_button_label" move "Exit full screen" "exit_fullscreen_button_label" move "Expose developer settings in the settings window." "settings.developer_settings_label_description" move "Feedback" "settings.feedback_tab_title" move "Grid" "layout_grid_label" move "Spotlight" "layout_spotlight_label" move "How did it go?" "call_ended_view.survey_prompt" move "If you are experiencing issues or simply would like to provide some feedback, please send us a short description below." "settings.feedback_tab_body" move "Include debug logs" "settings.feedback_tab_send_logs_label" move "Invite to this call" "invite_modal.title" move "Join call" "lobby.join_button" move "Join call now" "room_auth_view_join_button" move "Join existing call?" "join_existing_call_modal.title" move "Link copied to clipboard" "invite_modal.link_copied_toast" move "Local volume" "local_volume_label" move "Logging in…" "logging_in" move "Login" "login_title" move "Login to your account" "unauthenticated_view_login_button" move "Microphone off" "microphone_off" move "Microphone on" "microphone_on" move "More" "settings.more_tab_title" move "Mute microphone" "mute_microphone_button_label" move "Name of call" "call_name" move "Not now, return to home screen" "call_ended_view.not_now_button" move "Open in the app" "app_selection_modal.open_in_app" move "Not registered yet? <2>Create an account</2>" "unauthenticated_view_body" move "Participants" "header_participants_label" move "Passwords must match" "register.passwords_must_match" move "Ready to join?" "app_selection_modal.text" move "Recaptcha dismissed" "recaptcha_dismissed" move "Recaptcha not loaded" "recaptcha_not_loaded" move "Reconnect" "call_ended_view.reconnect_button" move "Registering…" "register.registering" move "Retry sending logs" "rageshake_button_error_caption" move "Return to home screen" "return_home_button" move "Select an option" "select_input_unset_button" move "Select app" "app_selection_modal.title" move "Send debug logs" "rageshake_send_logs" move "Sending debug logs…" "rageshake_sending_logs" move "Sending…" "rageshake_sending" move "Share screen" "screenshare_button_label" move "Sharing screen" "stop_screenshare_button_label" move "Show connection stats" "settings.show_connection_stats_label" move "Speaker" "settings.speaker_device_selection_label" move "Start new call" "start_new_call" move "Start video" "start_video_button_label" move "Stop video" "stop_video_button_label" move "Submit feedback" "settings.feedback_tab_h4" move "Submitting…" "submitting" move "Thanks, we received your feedback!" "settings.feedback_tab_thank_you" move "Thanks!" "rageshake_sent" move "This application has been opened in another tab." "application_opened_another_tab" move "This call already exists, would you like to join?" "join_existing_call_modal.text" move "Unmute microphone" "unmute_microphone_button_label" move "Version: {{version}}" "version" move "Waiting for other participants…" "waiting_for_participants" move "Yes, join call" "join_existing_call_modal.join_button" move "You" "video_tile.sfu_participant_local" move "You were disconnected from the call" "call_ended_view.body" move "Your feedback" "settings.feedback_tab_description_label" move "Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117" "browser_media_e2ee_unsupported" move "By clicking \"Go\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "unauthenticated_view_eula_caption" move "By clicking \"Join call now\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "room_auth_view_eula_caption" move "This site is protected by ReCAPTCHA and the Google <2>Privacy Policy</2> and <6>Terms of Service</6> apply.<9></9>By clicking \"Register\", you agree to our <12>End User Licensing Agreement (EULA)</12>" "register.recaptcha_caption" ```
2023-11-20 21:00:43 +08:00
<Trans i18nKey="full_screen_view_h1">
2022-10-10 21:19:10 +08:00
<h1>Oops, something's gone wrong.</h1>
</Trans>
{Config.get().rageshake?.submit_url && (
``` move "{{count, number}}_one" "participant_count_one" move "{{count, number}}_other" "participant_count_other" move "{{count}} stars_one" "star_rating_input_label_one" move "{{count}} stars_other" "star_rating_input_label_other" move "{{displayName}} is presenting" "video_tile.presenter_label" move "{{displayName}}, your call has ended." "call_ended_view.headline" move "<0></0><1></1>You may withdraw consent by unchecking this box. If you are currently in a call, this setting will take effect at the end of the call." "settings.opt_in_description" move "<0>Already have an account?</0><1><0>Log in</0> Or <2>Access as a guest</2></1>" "register_auth_links" move "<0>Create an account</0> Or <2>Access as a guest</2>" "login_auth_links" move "<0>Oops, something's gone wrong.</0>" "full_screen_view_h1" move "<0>Submitting debug logs will help us track down the problem.</0>" "full_screen_view_description" move "<0>Thanks for your feedback!</0>" "call_ended_view.feedback_done" move "<0>We'd love to hear your feedback so we can improve your experience.</0>" "call_ended_view.feedback_prompt" move "<0>Why not finish by setting up a password to keep your account?</0><1>You'll be able to keep your name and set an avatar for use on future calls</1>" "call_ended_view.create_account_prompt" move "Another user on this call is having an issue. In order to better diagnose these issues we'd like to collect a debug log." "rageshake_request_modal.body" move "Back to recents" "lobby.leave_button" move "By participating in this beta, you consent to the collection of anonymous data, which we use to improve the product. You can find more information about which data we track in our <2>Privacy Policy</2> and our <5>Cookie Policy</5>." "analytics_notice" move "Call not found" "group_call_loader_failed_heading" move "Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key." "group_call_loader_failed_text" move "Confirm password" "register_confirm_password_label" move "Connectivity to the server has been lost." "disconnected_banner" move "Continue in browser" "app_selection_modal.continue_in_browser" move "Create account" "call_ended_view.create_account_button" move "Debug log request" "rageshake_request_modal.title" move "Developer" "settings.developer_tab_title" move "Developer Settings" "settings.developer_settings_label" move "Element Call Home" "header_label" move "End call" "hangup_button_label" move "Full screen" "fullscreen_button_label" move "Exit full screen" "exit_fullscreen_button_label" move "Expose developer settings in the settings window." "settings.developer_settings_label_description" move "Feedback" "settings.feedback_tab_title" move "Grid" "layout_grid_label" move "Spotlight" "layout_spotlight_label" move "How did it go?" "call_ended_view.survey_prompt" move "If you are experiencing issues or simply would like to provide some feedback, please send us a short description below." "settings.feedback_tab_body" move "Include debug logs" "settings.feedback_tab_send_logs_label" move "Invite to this call" "invite_modal.title" move "Join call" "lobby.join_button" move "Join call now" "room_auth_view_join_button" move "Join existing call?" "join_existing_call_modal.title" move "Link copied to clipboard" "invite_modal.link_copied_toast" move "Local volume" "local_volume_label" move "Logging in…" "logging_in" move "Login" "login_title" move "Login to your account" "unauthenticated_view_login_button" move "Microphone off" "microphone_off" move "Microphone on" "microphone_on" move "More" "settings.more_tab_title" move "Mute microphone" "mute_microphone_button_label" move "Name of call" "call_name" move "Not now, return to home screen" "call_ended_view.not_now_button" move "Open in the app" "app_selection_modal.open_in_app" move "Not registered yet? <2>Create an account</2>" "unauthenticated_view_body" move "Participants" "header_participants_label" move "Passwords must match" "register.passwords_must_match" move "Ready to join?" "app_selection_modal.text" move "Recaptcha dismissed" "recaptcha_dismissed" move "Recaptcha not loaded" "recaptcha_not_loaded" move "Reconnect" "call_ended_view.reconnect_button" move "Registering…" "register.registering" move "Retry sending logs" "rageshake_button_error_caption" move "Return to home screen" "return_home_button" move "Select an option" "select_input_unset_button" move "Select app" "app_selection_modal.title" move "Send debug logs" "rageshake_send_logs" move "Sending debug logs…" "rageshake_sending_logs" move "Sending…" "rageshake_sending" move "Share screen" "screenshare_button_label" move "Sharing screen" "stop_screenshare_button_label" move "Show connection stats" "settings.show_connection_stats_label" move "Speaker" "settings.speaker_device_selection_label" move "Start new call" "start_new_call" move "Start video" "start_video_button_label" move "Stop video" "stop_video_button_label" move "Submit feedback" "settings.feedback_tab_h4" move "Submitting…" "submitting" move "Thanks, we received your feedback!" "settings.feedback_tab_thank_you" move "Thanks!" "rageshake_sent" move "This application has been opened in another tab." "application_opened_another_tab" move "This call already exists, would you like to join?" "join_existing_call_modal.text" move "Unmute microphone" "unmute_microphone_button_label" move "Version: {{version}}" "version" move "Waiting for other participants…" "waiting_for_participants" move "Yes, join call" "join_existing_call_modal.join_button" move "You" "video_tile.sfu_participant_local" move "You were disconnected from the call" "call_ended_view.body" move "Your feedback" "settings.feedback_tab_description_label" move "Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117" "browser_media_e2ee_unsupported" move "By clicking \"Go\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "unauthenticated_view_eula_caption" move "By clicking \"Join call now\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "room_auth_view_eula_caption" move "This site is protected by ReCAPTCHA and the Google <2>Privacy Policy</2> and <6>Terms of Service</6> apply.<9></9>By clicking \"Register\", you agree to our <12>End User Licensing Agreement (EULA)</12>" "register.recaptcha_caption" ```
2023-11-20 21:00:43 +08:00
<Trans i18nKey="full_screen_view_description">
<p>Submitting debug logs will help us track down the problem.</p>
</Trans>
)}
<RageshakeButton description="***Soft Crash***" />
<Button className={styles.wideButton} onClick={onReload}>
``` move "{{count, number}}_one" "participant_count_one" move "{{count, number}}_other" "participant_count_other" move "{{count}} stars_one" "star_rating_input_label_one" move "{{count}} stars_other" "star_rating_input_label_other" move "{{displayName}} is presenting" "video_tile.presenter_label" move "{{displayName}}, your call has ended." "call_ended_view.headline" move "<0></0><1></1>You may withdraw consent by unchecking this box. If you are currently in a call, this setting will take effect at the end of the call." "settings.opt_in_description" move "<0>Already have an account?</0><1><0>Log in</0> Or <2>Access as a guest</2></1>" "register_auth_links" move "<0>Create an account</0> Or <2>Access as a guest</2>" "login_auth_links" move "<0>Oops, something's gone wrong.</0>" "full_screen_view_h1" move "<0>Submitting debug logs will help us track down the problem.</0>" "full_screen_view_description" move "<0>Thanks for your feedback!</0>" "call_ended_view.feedback_done" move "<0>We'd love to hear your feedback so we can improve your experience.</0>" "call_ended_view.feedback_prompt" move "<0>Why not finish by setting up a password to keep your account?</0><1>You'll be able to keep your name and set an avatar for use on future calls</1>" "call_ended_view.create_account_prompt" move "Another user on this call is having an issue. In order to better diagnose these issues we'd like to collect a debug log." "rageshake_request_modal.body" move "Back to recents" "lobby.leave_button" move "By participating in this beta, you consent to the collection of anonymous data, which we use to improve the product. You can find more information about which data we track in our <2>Privacy Policy</2> and our <5>Cookie Policy</5>." "analytics_notice" move "Call not found" "group_call_loader_failed_heading" move "Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key." "group_call_loader_failed_text" move "Confirm password" "register_confirm_password_label" move "Connectivity to the server has been lost." "disconnected_banner" move "Continue in browser" "app_selection_modal.continue_in_browser" move "Create account" "call_ended_view.create_account_button" move "Debug log request" "rageshake_request_modal.title" move "Developer" "settings.developer_tab_title" move "Developer Settings" "settings.developer_settings_label" move "Element Call Home" "header_label" move "End call" "hangup_button_label" move "Full screen" "fullscreen_button_label" move "Exit full screen" "exit_fullscreen_button_label" move "Expose developer settings in the settings window." "settings.developer_settings_label_description" move "Feedback" "settings.feedback_tab_title" move "Grid" "layout_grid_label" move "Spotlight" "layout_spotlight_label" move "How did it go?" "call_ended_view.survey_prompt" move "If you are experiencing issues or simply would like to provide some feedback, please send us a short description below." "settings.feedback_tab_body" move "Include debug logs" "settings.feedback_tab_send_logs_label" move "Invite to this call" "invite_modal.title" move "Join call" "lobby.join_button" move "Join call now" "room_auth_view_join_button" move "Join existing call?" "join_existing_call_modal.title" move "Link copied to clipboard" "invite_modal.link_copied_toast" move "Local volume" "local_volume_label" move "Logging in…" "logging_in" move "Login" "login_title" move "Login to your account" "unauthenticated_view_login_button" move "Microphone off" "microphone_off" move "Microphone on" "microphone_on" move "More" "settings.more_tab_title" move "Mute microphone" "mute_microphone_button_label" move "Name of call" "call_name" move "Not now, return to home screen" "call_ended_view.not_now_button" move "Open in the app" "app_selection_modal.open_in_app" move "Not registered yet? <2>Create an account</2>" "unauthenticated_view_body" move "Participants" "header_participants_label" move "Passwords must match" "register.passwords_must_match" move "Ready to join?" "app_selection_modal.text" move "Recaptcha dismissed" "recaptcha_dismissed" move "Recaptcha not loaded" "recaptcha_not_loaded" move "Reconnect" "call_ended_view.reconnect_button" move "Registering…" "register.registering" move "Retry sending logs" "rageshake_button_error_caption" move "Return to home screen" "return_home_button" move "Select an option" "select_input_unset_button" move "Select app" "app_selection_modal.title" move "Send debug logs" "rageshake_send_logs" move "Sending debug logs…" "rageshake_sending_logs" move "Sending…" "rageshake_sending" move "Share screen" "screenshare_button_label" move "Sharing screen" "stop_screenshare_button_label" move "Show connection stats" "settings.show_connection_stats_label" move "Speaker" "settings.speaker_device_selection_label" move "Start new call" "start_new_call" move "Start video" "start_video_button_label" move "Stop video" "stop_video_button_label" move "Submit feedback" "settings.feedback_tab_h4" move "Submitting…" "submitting" move "Thanks, we received your feedback!" "settings.feedback_tab_thank_you" move "Thanks!" "rageshake_sent" move "This application has been opened in another tab." "application_opened_another_tab" move "This call already exists, would you like to join?" "join_existing_call_modal.text" move "Unmute microphone" "unmute_microphone_button_label" move "Version: {{version}}" "version" move "Waiting for other participants…" "waiting_for_participants" move "Yes, join call" "join_existing_call_modal.join_button" move "You" "video_tile.sfu_participant_local" move "You were disconnected from the call" "call_ended_view.body" move "Your feedback" "settings.feedback_tab_description_label" move "Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117" "browser_media_e2ee_unsupported" move "By clicking \"Go\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "unauthenticated_view_eula_caption" move "By clicking \"Join call now\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "room_auth_view_eula_caption" move "This site is protected by ReCAPTCHA and the Google <2>Privacy Policy</2> and <6>Terms of Service</6> apply.<9></9>By clicking \"Register\", you agree to our <12>End User Licensing Agreement (EULA)</12>" "register.recaptcha_caption" ```
2023-11-20 21:00:43 +08:00
{t("return_home_button")}
</Button>
</FullScreenView>
);
};
export const LoadingView: FC = () => {
2022-10-10 21:19:10 +08:00
const { t } = useTranslation();
2021-12-11 08:42:18 +08:00
return (
<FullScreenView>
<h1>{t("common.loading")}</h1>
2021-12-11 08:42:18 +08:00
</FullScreenView>
);
};