@docusaurus/theme-classic 0.0.0-4151 → 0.0.0-4160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codeTranslations/ar.json +2 -0
- package/codeTranslations/base.json +4 -0
- package/codeTranslations/bn.json +2 -0
- package/codeTranslations/cs.json +2 -0
- package/codeTranslations/da.json +2 -0
- package/codeTranslations/de.json +2 -0
- package/codeTranslations/es.json +2 -0
- package/codeTranslations/fa.json +2 -0
- package/codeTranslations/fil.json +2 -0
- package/codeTranslations/fr.json +2 -0
- package/codeTranslations/he.json +2 -0
- package/codeTranslations/hi.json +2 -0
- package/codeTranslations/ja.json +2 -0
- package/codeTranslations/ko.json +2 -0
- package/codeTranslations/pl.json +2 -0
- package/codeTranslations/pt-BR.json +2 -0
- package/codeTranslations/pt-PT.json +2 -0
- package/codeTranslations/ru.json +2 -0
- package/codeTranslations/sr.json +2 -0
- package/codeTranslations/tr.json +2 -0
- package/codeTranslations/vi.json +2 -0
- package/codeTranslations/zh-Hans.json +2 -0
- package/codeTranslations/zh-Hant.json +2 -0
- package/lib/theme/ErrorPageContent.js +43 -0
- package/lib/theme/Layout/index.js +5 -1
- package/lib/types.d.ts +7 -0
- package/lib-next/theme/ErrorPageContent.js +35 -0
- package/lib-next/theme/Layout/index.js +3 -1
- package/lib-next/types.d.ts +7 -0
- package/package.json +12 -12
- package/src/theme/ErrorPageContent.tsx +41 -0
- package/src/theme/Layout/index.tsx +3 -1
- package/src/types.d.ts +7 -0
- package/update-code-translations.js +0 -1
package/codeTranslations/ar.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "تم النسخ",
|
|
5
5
|
"theme.CodeBlock.copy": "نسخ",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "نسخ الرمز إلى الحافظة",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "لم نتمكن من العثور على ما كنت تبحث عنه.",
|
|
8
10
|
"theme.NotFound.p2": "يرجى الاتصال بمالك الموقع الذي ربطك بعنوان URL الأصلي وإخباره بأن الارتباط الخاص به معطل.",
|
|
9
11
|
"theme.NotFound.title": "الصفحة غير موجودة",
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"theme.CodeBlock.copy___DESCRIPTION": "The copy button label on code blocks",
|
|
10
10
|
"theme.CodeBlock.copyButtonAriaLabel": "Copy code to clipboard",
|
|
11
11
|
"theme.CodeBlock.copyButtonAriaLabel___DESCRIPTION": "The ARIA label for copy code blocks button",
|
|
12
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
13
|
+
"theme.ErrorPageContent.title___DESCRIPTION": "The title of the fallback page when the page crashed",
|
|
14
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
15
|
+
"theme.ErrorPageContent.tryAgain___DESCRIPTION": "The label of the button to try again when the page crashed",
|
|
12
16
|
"theme.NotFound.p1": "We could not find what you were looking for.",
|
|
13
17
|
"theme.NotFound.p1___DESCRIPTION": "The first paragraph of the 404 page",
|
|
14
18
|
"theme.NotFound.p2": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
|
package/codeTranslations/bn.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "কপিড",
|
|
5
5
|
"theme.CodeBlock.copy": "কপি",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "ক্লিপবোর্ডে কোড কপি করুন",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "আপনি যা খুঁজছিলেন তা আমরা খুঁজে পাইনি।",
|
|
8
10
|
"theme.NotFound.p2": "দয়া করে সাইটের মালিকের সাথে যোগাযোগ করুন যা আপনাকে মূল URL এর সাথে যুক্ত করেছে এবং তাদের লিঙ্কটি ভাঙ্গা রয়েছে তা তাদের জানান।",
|
|
9
11
|
"theme.NotFound.title": "পেজটি খুঁজে পাওয়া যায়নি",
|
package/codeTranslations/cs.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Zkopírováno",
|
|
5
5
|
"theme.CodeBlock.copy": "Zkopírovat",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Zkopírovat kód do schránky",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Nepodařilo se nám najít co jste hledal(a).",
|
|
8
10
|
"theme.NotFound.p2": "Kontaktujte prosím vlastníka webu, který vás odkázal na původní URL a upozorněte ho, že jejich odkaz nefunguje.",
|
|
9
11
|
"theme.NotFound.title": "Stránka nenalezena",
|
package/codeTranslations/da.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Kopieret",
|
|
5
5
|
"theme.CodeBlock.copy": "Kopier",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Kopier kode til udklipsholder",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Vi kunne ikke finde det, du søgte.",
|
|
8
10
|
"theme.NotFound.p2": "Venligst kontakt ejeren til webstedet, som førte dig frem denne URL, og informer dem om at linket ikke virker.",
|
|
9
11
|
"theme.NotFound.title": "Siden blev ikke fundet",
|
package/codeTranslations/de.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Kopiert",
|
|
5
5
|
"theme.CodeBlock.copy": "Kopieren",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "In die Zwischenablage kopieren",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Wir konnten nicht finden, wonach Sie gesucht haben.",
|
|
8
10
|
"theme.NotFound.p2": "Bitte kontaktieren Sie den Besitzer der Seite, die Sie mit der ursprünglichen URL verlinkt hat, und teilen Sie ihm mit, dass der Link nicht mehr funktioniert.",
|
|
9
11
|
"theme.NotFound.title": "Seite nicht gefunden",
|
package/codeTranslations/es.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Copiado",
|
|
5
5
|
"theme.CodeBlock.copy": "Copiar",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Copiar código al portapapeles",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "No pudimos encontrar lo que buscaba.",
|
|
8
10
|
"theme.NotFound.p2": "Comuníquese con el dueño del sitio que lo vinculó a la URL original y hágale saber que su vínculo está roto.",
|
|
9
11
|
"theme.NotFound.title": "Página No Encontrada",
|
package/codeTranslations/fa.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "کپی شد",
|
|
5
5
|
"theme.CodeBlock.copy": "کپی",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "کپی به کلیپ بورد",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "صفحه ای که دنبال آن بودید پیدا نشد.",
|
|
8
10
|
"theme.NotFound.p2": "لطفا با صاحب وبسایت تماس بگیرید و ایشان را از مشکل پیش آمده مطلع کنید.",
|
|
9
11
|
"theme.NotFound.title": "صفحه ای که دنبال آن بودید پیدا نشد.",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Kinopya",
|
|
5
5
|
"theme.CodeBlock.copy": "Kopyahin",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Kopyahin ang code sa clipboard",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Hindi namin mahanap ang iyong hinananap.",
|
|
8
10
|
"theme.NotFound.p2": "Mangyaring makipag-ugnayan sa may-ari ng site na nag-link sa iyo sa orihinal na URL at sabihin sa kanila na ang kanilang link ay putol.",
|
|
9
11
|
"theme.NotFound.title": "Hindi Nahanap ang Pahina",
|
package/codeTranslations/fr.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Copié",
|
|
5
5
|
"theme.CodeBlock.copy": "Copier",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Copier le code",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Nous n'avons pas trouvé ce que vous recherchez.",
|
|
8
10
|
"theme.NotFound.p2": "Veuillez contacter le propriétaire du site qui vous a lié à l'URL d'origine et leur faire savoir que leur lien est cassé.",
|
|
9
11
|
"theme.NotFound.title": "Page introuvable",
|
package/codeTranslations/he.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "הועתק",
|
|
5
5
|
"theme.CodeBlock.copy": "העתק",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "העתק קוד ללוח העריכה",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "אנחנו לא מוצאים את מה שאתה מנסה לחפש.",
|
|
8
10
|
"theme.NotFound.p2": "הקישור אינו תקין, אנא פנה למנהל האתר ממנו קיבלת קישור זה.",
|
|
9
11
|
"theme.NotFound.title": "דף לא נמצא",
|
package/codeTranslations/hi.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "कॉपीड",
|
|
5
5
|
"theme.CodeBlock.copy": "कॉपी",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "क्लिपबोर्ड पर कोड कॉपी करें",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "हमें वह नहीं मिला, जिसकी आपको तलाश थी।",
|
|
8
10
|
"theme.NotFound.p2": "कृपया उस साइट के मालिक से संपर्क करें जिसने आपको मूल URL से जोड़ा है और उन्हें बताएं कि उनका लिंक टूट गया है।",
|
|
9
11
|
"theme.NotFound.title": "पेज नहीं मिला",
|
package/codeTranslations/ja.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "コピーしました",
|
|
5
5
|
"theme.CodeBlock.copy": "コピー",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "クリップボードにコードをコピー",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "お探しのページが見つかりませんでした。",
|
|
8
10
|
"theme.NotFound.p2": "このページにリンクしているサイトの所有者に連絡をしてリンクが壊れていることを伝えてください。",
|
|
9
11
|
"theme.NotFound.title": "ページが見つかりません",
|
package/codeTranslations/ko.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "복사했습니다",
|
|
5
5
|
"theme.CodeBlock.copy": "복사",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "클립보드에 코드 복사",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "원하는 페이지를 찾을 수 없습니다.",
|
|
8
10
|
"theme.NotFound.p2": "사이트 관리자에게 링크가 깨진 것을 알려주세요.",
|
|
9
11
|
"theme.NotFound.title": "페이지를 찾을 수 없습니다.",
|
package/codeTranslations/pl.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Skopiowano!",
|
|
5
5
|
"theme.CodeBlock.copy": "Kopiuj",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Kopiuj do schowka",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Nie mogliśmy znaleźć strony której szukasz.",
|
|
8
10
|
"theme.NotFound.p2": "Proszę skontaktuj się z właścielem strony, z której link doprowadził Cię tutaj i poinformuj ich, że odnośnik jest nieprawidłowy.",
|
|
9
11
|
"theme.NotFound.title": "Strona nie została znaleziona",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Copiado",
|
|
5
5
|
"theme.CodeBlock.copy": "Copiar",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Copiar código para a área de transferência",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Não foi possível encontrar o que você está procurando.",
|
|
8
10
|
"theme.NotFound.p2": "Entre em contato com o proprietário do site que lhe trouxe para cá e lhe informe que o link está quebrado.",
|
|
9
11
|
"theme.NotFound.title": "Página não encontrada",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Copiado",
|
|
5
5
|
"theme.CodeBlock.copy": "Copiar",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Copiar código para a área de transferência",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Não foi possível encontrar o que procura.",
|
|
8
10
|
"theme.NotFound.p2": "Por favor, contacte o proprietário do site que o trouxe aqui e informe-lhe que o link está partido.",
|
|
9
11
|
"theme.NotFound.title": "Página não encontrada",
|
package/codeTranslations/ru.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Скопировано",
|
|
5
5
|
"theme.CodeBlock.copy": "Скопировать",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Скопировать в буфер обмена",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "К сожалению, мы не смогли найти запрашиваемую вами страницу.",
|
|
8
10
|
"theme.NotFound.p2": "Пожалуйста, обратитесь к владельцу сайта, с которого вы перешли на эту ссылку, чтобы сообщить ему, что ссылка не работает.",
|
|
9
11
|
"theme.NotFound.title": "Страница не найдена",
|
package/codeTranslations/sr.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Копирано",
|
|
5
5
|
"theme.CodeBlock.copy": "Копирај",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Копирај код у меморију",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Тражени резултат не постоји.",
|
|
8
10
|
"theme.NotFound.p2": "Молимо вас да контактирате власника сајта који вас је упутио овде и обавестите га да је њихова веза нетачна.",
|
|
9
11
|
"theme.NotFound.title": "Страница није пронађена",
|
package/codeTranslations/tr.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Kopyalandı",
|
|
5
5
|
"theme.CodeBlock.copy": "Kopyala",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Kodu panoya kopyala",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Aradığınız şeyi bulamadık.",
|
|
8
10
|
"theme.NotFound.p2": "Lütfen sizi orijinal URL'ye yönlendiren sitenin sahibiyle iletişime geçin ve bağlantısının bozuk olduğunu bildirin.",
|
|
9
11
|
"theme.NotFound.title": "Sayfa Bulunamadı",
|
package/codeTranslations/vi.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "Đã sao chép",
|
|
5
5
|
"theme.CodeBlock.copy": "Sao chép",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "Sao chép code vào bộ nhớ tạm",
|
|
7
|
+
"theme.ErrorPageContent.title": "This page crashed.",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "Try again",
|
|
7
9
|
"theme.NotFound.p1": "Chúng tôi không thể tìm thấy những gì bạn đang tìm kiếm.",
|
|
8
10
|
"theme.NotFound.p2": "Vui lòng liên hệ với trang web đã dẫn bạn tới đây và thông báo cho họ biết rằng đường dẫn này bị hỏng.",
|
|
9
11
|
"theme.NotFound.title": "Không tìm thấy trang",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "复制成功",
|
|
5
5
|
"theme.CodeBlock.copy": "复制",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "复制代码到剪贴板",
|
|
7
|
+
"theme.ErrorPageContent.title": "页面已崩溃。",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "重试",
|
|
7
9
|
"theme.NotFound.p1": "我们找不到您要找的页面。",
|
|
8
10
|
"theme.NotFound.p2": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
|
|
9
11
|
"theme.NotFound.title": "找不到页面",
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
"theme.CodeBlock.copied": "複製成功",
|
|
5
5
|
"theme.CodeBlock.copy": "複製",
|
|
6
6
|
"theme.CodeBlock.copyButtonAriaLabel": "複製代碼至剪貼簿",
|
|
7
|
+
"theme.ErrorPageContent.title": "頁面已崩潰。",
|
|
8
|
+
"theme.ErrorPageContent.tryAgain": "重試",
|
|
7
9
|
"theme.NotFound.p1": "我們找不到您要找的頁面。",
|
|
8
10
|
"theme.NotFound.p2": "請聯絡原始連結來源網站的所有者,並通知他們連結已毀損。",
|
|
9
11
|
"theme.NotFound.title": "找不到頁面",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = ErrorPageContent;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Translate = _interopRequireDefault(require("@docusaurus/Translate"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
function ErrorPageContent({
|
|
21
|
+
error,
|
|
22
|
+
tryAgain
|
|
23
|
+
}) {
|
|
24
|
+
return <main className="container margin-vert--xl">
|
|
25
|
+
<div className="row">
|
|
26
|
+
<div className="col col--6 col--offset-3">
|
|
27
|
+
<h1 className="hero__title">
|
|
28
|
+
<_Translate.default id="theme.ErrorPageContent.title" description="The title of the fallback page when the page crashed">
|
|
29
|
+
This page crashed.
|
|
30
|
+
</_Translate.default>
|
|
31
|
+
</h1>
|
|
32
|
+
<p>{error.message}</p>
|
|
33
|
+
<div>
|
|
34
|
+
<button type="button" onClick={tryAgain}>
|
|
35
|
+
<_Translate.default id="theme.ErrorPageContent.tryAgain" description="The label of the button to try again when the page crashed">
|
|
36
|
+
Try again
|
|
37
|
+
</_Translate.default>
|
|
38
|
+
</button>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</main>;
|
|
43
|
+
}
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
11
11
|
|
|
12
|
+
var _ErrorBoundary = _interopRequireDefault(require("@docusaurus/ErrorBoundary"));
|
|
13
|
+
|
|
12
14
|
var _SkipToContent = _interopRequireDefault(require("@theme/SkipToContent"));
|
|
13
15
|
|
|
14
16
|
var _AnnouncementBar = _interopRequireDefault(require("@theme/AnnouncementBar"));
|
|
@@ -25,6 +27,8 @@ var _useKeyboardNavigation = _interopRequireDefault(require("@theme/hooks/useKey
|
|
|
25
27
|
|
|
26
28
|
var _themeCommon = require("@docusaurus/theme-common");
|
|
27
29
|
|
|
30
|
+
var _ErrorPageContent = _interopRequireDefault(require("@theme/ErrorPageContent"));
|
|
31
|
+
|
|
28
32
|
require("./styles.css");
|
|
29
33
|
|
|
30
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -53,7 +57,7 @@ function Layout(props) {
|
|
|
53
57
|
<_Navbar.default />
|
|
54
58
|
|
|
55
59
|
<div className={(0, _clsx.default)(_themeCommon.ThemeClassNames.wrapper.main, wrapperClassName, pageClassName)}>
|
|
56
|
-
{children}
|
|
60
|
+
<_ErrorBoundary.default fallback={_ErrorPageContent.default}>{children}</_ErrorBoundary.default>
|
|
57
61
|
</div>
|
|
58
62
|
|
|
59
63
|
{!noFooter && <_Footer.default />}
|
package/lib/types.d.ts
CHANGED
|
@@ -173,6 +173,13 @@ declare module '@theme/EditThisPage' {
|
|
|
173
173
|
export default EditThisPage;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
declare module '@theme/ErrorPageContent' {
|
|
177
|
+
import ErrorComponent from '@theme/Error';
|
|
178
|
+
|
|
179
|
+
const ErrorPageContent: typeof ErrorComponent;
|
|
180
|
+
export default ErrorPageContent;
|
|
181
|
+
}
|
|
182
|
+
|
|
176
183
|
declare module '@theme/Footer' {
|
|
177
184
|
const Footer: () => JSX.Element | null;
|
|
178
185
|
export default Footer;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import Translate from '@docusaurus/Translate';
|
|
9
|
+
export default function ErrorPageContent({error, tryAgain}) {
|
|
10
|
+
return (
|
|
11
|
+
<main className="container margin-vert--xl">
|
|
12
|
+
<div className="row">
|
|
13
|
+
<div className="col col--6 col--offset-3">
|
|
14
|
+
<h1 className="hero__title">
|
|
15
|
+
<Translate
|
|
16
|
+
id="theme.ErrorPageContent.title"
|
|
17
|
+
description="The title of the fallback page when the page crashed">
|
|
18
|
+
This page crashed.
|
|
19
|
+
</Translate>
|
|
20
|
+
</h1>
|
|
21
|
+
<p>{error.message}</p>
|
|
22
|
+
<div>
|
|
23
|
+
<button type="button" onClick={tryAgain}>
|
|
24
|
+
<Translate
|
|
25
|
+
id="theme.ErrorPageContent.tryAgain"
|
|
26
|
+
description="The label of the button to try again when the page crashed">
|
|
27
|
+
Try again
|
|
28
|
+
</Translate>
|
|
29
|
+
</button>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</main>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
+
import ErrorBoundary from '@docusaurus/ErrorBoundary';
|
|
9
10
|
import SkipToContent from '@theme/SkipToContent';
|
|
10
11
|
import AnnouncementBar from '@theme/AnnouncementBar';
|
|
11
12
|
import Navbar from '@theme/Navbar';
|
|
@@ -14,6 +15,7 @@ import LayoutProviders from '@theme/LayoutProviders';
|
|
|
14
15
|
import LayoutHead from '@theme/LayoutHead';
|
|
15
16
|
import useKeyboardNavigation from '@theme/hooks/useKeyboardNavigation';
|
|
16
17
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
18
|
+
import ErrorPageContent from '@theme/ErrorPageContent';
|
|
17
19
|
import './styles.css';
|
|
18
20
|
|
|
19
21
|
function Layout(props) {
|
|
@@ -35,7 +37,7 @@ function Layout(props) {
|
|
|
35
37
|
wrapperClassName,
|
|
36
38
|
pageClassName,
|
|
37
39
|
)}>
|
|
38
|
-
{children}
|
|
40
|
+
<ErrorBoundary fallback={ErrorPageContent}>{children}</ErrorBoundary>
|
|
39
41
|
</div>
|
|
40
42
|
|
|
41
43
|
{!noFooter && <Footer />}
|
package/lib-next/types.d.ts
CHANGED
|
@@ -173,6 +173,13 @@ declare module '@theme/EditThisPage' {
|
|
|
173
173
|
export default EditThisPage;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
declare module '@theme/ErrorPageContent' {
|
|
177
|
+
import ErrorComponent from '@theme/Error';
|
|
178
|
+
|
|
179
|
+
const ErrorPageContent: typeof ErrorComponent;
|
|
180
|
+
export default ErrorPageContent;
|
|
181
|
+
}
|
|
182
|
+
|
|
176
183
|
declare module '@theme/Footer' {
|
|
177
184
|
const Footer: () => JSX.Element | null;
|
|
178
185
|
export default Footer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4160",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/types.d.ts",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@docusaurus/core": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
28
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
29
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
31
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
34
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
26
|
+
"@docusaurus/core": "0.0.0-4160",
|
|
27
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4160",
|
|
28
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4160",
|
|
29
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4160",
|
|
30
|
+
"@docusaurus/theme-common": "0.0.0-4160",
|
|
31
|
+
"@docusaurus/types": "0.0.0-4160",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-4160",
|
|
33
|
+
"@docusaurus/utils-common": "0.0.0-4160",
|
|
34
|
+
"@docusaurus/utils-validation": "0.0.0-4160",
|
|
35
35
|
"@mdx-js/mdx": "^1.6.21",
|
|
36
36
|
"@mdx-js/react": "^1.6.21",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"rtlcss": "^3.3.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
53
|
+
"@docusaurus/module-type-aliases": "0.0.0-4160",
|
|
54
54
|
"@types/mdx-js__react": "^1.5.4",
|
|
55
55
|
"@types/parse-numeric-range": "^0.0.1",
|
|
56
56
|
"@types/rtlcss": "^3.1.1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=14"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e1b8d50a0e6e4f29b1455d7875a28a11ea5fb577"
|
|
68
68
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import Translate from '@docusaurus/Translate';
|
|
10
|
+
import type {Props} from '@theme/Error';
|
|
11
|
+
|
|
12
|
+
export default function ErrorPageContent({
|
|
13
|
+
error,
|
|
14
|
+
tryAgain,
|
|
15
|
+
}: Props): JSX.Element {
|
|
16
|
+
return (
|
|
17
|
+
<main className="container margin-vert--xl">
|
|
18
|
+
<div className="row">
|
|
19
|
+
<div className="col col--6 col--offset-3">
|
|
20
|
+
<h1 className="hero__title">
|
|
21
|
+
<Translate
|
|
22
|
+
id="theme.ErrorPageContent.title"
|
|
23
|
+
description="The title of the fallback page when the page crashed">
|
|
24
|
+
This page crashed.
|
|
25
|
+
</Translate>
|
|
26
|
+
</h1>
|
|
27
|
+
<p>{error.message}</p>
|
|
28
|
+
<div>
|
|
29
|
+
<button type="button" onClick={tryAgain}>
|
|
30
|
+
<Translate
|
|
31
|
+
id="theme.ErrorPageContent.tryAgain"
|
|
32
|
+
description="The label of the button to try again when the page crashed">
|
|
33
|
+
Try again
|
|
34
|
+
</Translate>
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</main>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
+
import ErrorBoundary from '@docusaurus/ErrorBoundary';
|
|
10
11
|
import SkipToContent from '@theme/SkipToContent';
|
|
11
12
|
import AnnouncementBar from '@theme/AnnouncementBar';
|
|
12
13
|
import Navbar from '@theme/Navbar';
|
|
@@ -16,6 +17,7 @@ import LayoutHead from '@theme/LayoutHead';
|
|
|
16
17
|
import type {Props} from '@theme/Layout';
|
|
17
18
|
import useKeyboardNavigation from '@theme/hooks/useKeyboardNavigation';
|
|
18
19
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
20
|
+
import ErrorPageContent from '@theme/ErrorPageContent';
|
|
19
21
|
import './styles.css';
|
|
20
22
|
|
|
21
23
|
function Layout(props: Props): JSX.Element {
|
|
@@ -39,7 +41,7 @@ function Layout(props: Props): JSX.Element {
|
|
|
39
41
|
wrapperClassName,
|
|
40
42
|
pageClassName,
|
|
41
43
|
)}>
|
|
42
|
-
{children}
|
|
44
|
+
<ErrorBoundary fallback={ErrorPageContent}>{children}</ErrorBoundary>
|
|
43
45
|
</div>
|
|
44
46
|
|
|
45
47
|
{!noFooter && <Footer />}
|
package/src/types.d.ts
CHANGED
|
@@ -173,6 +173,13 @@ declare module '@theme/EditThisPage' {
|
|
|
173
173
|
export default EditThisPage;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
declare module '@theme/ErrorPageContent' {
|
|
177
|
+
import ErrorComponent from '@theme/Error';
|
|
178
|
+
|
|
179
|
+
const ErrorPageContent: typeof ErrorComponent;
|
|
180
|
+
export default ErrorPageContent;
|
|
181
|
+
}
|
|
182
|
+
|
|
176
183
|
declare module '@theme/Footer' {
|
|
177
184
|
const Footer: () => JSX.Element | null;
|
|
178
185
|
export default Footer;
|
|
@@ -216,7 +216,6 @@ async function updateCodeTranslations() {
|
|
|
216
216
|
// eslint-disable-next-line no-restricted-syntax
|
|
217
217
|
for (const localeFile of localesFiles) {
|
|
218
218
|
logSection(`Will update ${path.basename(localeFile)}`);
|
|
219
|
-
// eslint-disable-next-line no-await-in-loop
|
|
220
219
|
await updateLocaleCodeTranslations(localeFile, baseFileMessages);
|
|
221
220
|
}
|
|
222
221
|
}
|