import { HELP_EMAIL } from "@cocalc/util/theme"; import { appBasePath } from "@cocalc/frontend/customize/app-base-path"; import { join } from "path"; import A from "./link"; import supportURL from "@cocalc/frontend/support/url"; import { Icon } from "@cocalc/frontend/components/icon"; const STYLE = { display: "none", zIndex: 10000, position: "absolute", overflow: "scroll", height: "90vh", width: "60vw", top: "5vh", left: "20vw", border: "1px solid #aaaaaa", boxShadow: "10px 10px 10px lightgrey", padding: "30px", borderRadius: "5px", fontSize: "12pt", backgroundColor: "white", color: "#444", } as React.CSSProperties; export default function Crash() { const getSupport = supportURL({ subject: "CoCalc Crashed", body: "CoCalc is crashing...", type: "question", hideExtra: true, }); const dismiss = () => { // Yes, this is a very non-react way to do this. This is a // port of something else that didn't use React. const crash = document.getElementById("cocalc-react-crash"); if (crash == null) return; crash.style.display = "none"; }; return (
Sorry to interrupt your work. An error happened in CoCalc's web application. Don't worry, all your files are securely stored on its servers!
window.location.reload()}> Reload this browser tab {" "} in order to recover from this. You might also try{" "} a new session .
Dismiss this error and continue using CoCalc.
If this happens repeatedly for a specific file or action, please report all details in a support ticket, via email to{" "} {HELP_EMAIL}, or consult our{" "} other support resources. Thank you! Unfortunately, if you don't explain how you hit this problem so we can reproduce it, then we probably will not be able to fix it.