From 5a2a3a4964bb7b61f478760447a6ccb7256eebdb Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sat, 4 Feb 2023 14:26:28 +0100 Subject: [PATCH] feat(frontend): Add Asciinema replacer Signed-off-by: Tilman Vatteroth --- frontend/CHANGELOG.md | 1 + .../asciinema-frame.test.tsx.snap | 19 +++++++++ ...asciinema-markdown-extension.test.tsx.snap | 14 +++++++ .../asciinema/asciinema-app-extension.ts | 19 +++++++++ .../asciinema/asciinema-frame.test.tsx | 25 ++++++++++++ .../asciinema/asciinema-frame.tsx | 34 ++++++++++++++++ .../asciinema-markdown-extension.test.tsx | 40 +++++++++++++++++++ .../asciinema/asciinema-markdown-extension.ts | 30 ++++++++++++++ .../asciinema/replace-asciinema-link.test.ts | 35 ++++++++++++++++ .../asciinema/replace-asciinema-link.ts | 34 ++++++++++++++++ .../optional-app-extensions.ts | 2 + 11 files changed, 253 insertions(+) create mode 100644 frontend/src/extensions/extra-integrations/asciinema/__snapshots__/asciinema-frame.test.tsx.snap create mode 100644 frontend/src/extensions/extra-integrations/asciinema/__snapshots__/asciinema-markdown-extension.test.tsx.snap create mode 100644 frontend/src/extensions/extra-integrations/asciinema/asciinema-app-extension.ts create mode 100644 frontend/src/extensions/extra-integrations/asciinema/asciinema-frame.test.tsx create mode 100644 frontend/src/extensions/extra-integrations/asciinema/asciinema-frame.tsx create mode 100644 frontend/src/extensions/extra-integrations/asciinema/asciinema-markdown-extension.test.tsx create mode 100644 frontend/src/extensions/extra-integrations/asciinema/asciinema-markdown-extension.ts create mode 100644 frontend/src/extensions/extra-integrations/asciinema/replace-asciinema-link.test.ts create mode 100644 frontend/src/extensions/extra-integrations/asciinema/replace-asciinema-link.ts diff --git a/frontend/CHANGELOG.md b/frontend/CHANGELOG.md index 4dd31c998..ea831ff45 100644 --- a/frontend/CHANGELOG.md +++ b/frontend/CHANGELOG.md @@ -53,6 +53,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 - Notes may now be deleted directly from the history page - HedgeDoc instances can be branded either with a '@ \' or '@ \' after the HedgeDoc logo and text - Images will be loaded via proxy if an image proxy is configured in the backend +- Asciinema videos may be embedded by pasting the URL of one video into a single line - The toolbar includes an emoji and fork-awesome icon picker. - Collapsible blocks can be added via a toolbar button or via autocompletion of " + + This is a click shield for + +