Skip to content

Commit ab12250

Browse files
committed
Added video component with working timestamp links.
1 parent 979c326 commit ab12250

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

apps/fluster/src-tauri/src/features/media/video_timestamp_link_parser.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ impl MdxParser<String> for VideoTimestampLinkParser {
2626
new_content = new_content.replace(
2727
match_content,
2828
&format!(
29-
r#"<VideoTimestampLink id='{}' timestamp="{}">
30-
{}
31-
</VideoTimestampLink>"#,
29+
r#"<VideoTimestampLink id='{}' timestamp="{}">{}</VideoTimestampLink>"#,
3230
video_id, timestamp, body
3331
),
3432
);

apps/fluster/src/features/mdx/data/component_map/get_component_map.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
H4,
3131
P,
3232
AnchorTag,
33-
Video,
33+
VideoTimestampLink,
3434
} from "@fluster.io/dev";
3535
import { MDXComponents } from "mdx/types";
3636
import { InlineMdxContent } from "#/mdx/presentation/inline_mdx_content";
@@ -202,6 +202,10 @@ const items: ComponentMapItem[] = [
202202
query: "EquationTag",
203203
component: EquationTag,
204204
},
205+
{
206+
query: "VideoTimestampLink",
207+
component: VideoTimestampLink,
208+
},
205209

206210
// -- Documentation Only --
207211
{

packages/fluster_developer/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export * from "./embeddable_components/text/small/index";
88
export * from "./embeddable_components/auto_inserted/inline_citation/index";
99
export * from "./embeddable_components/auto_inserted/dictionary_entry/index";
1010
export * from "./embeddable_components/auto_inserted/equation_tag/index";
11+
export * from "./embeddable_components/auto_inserted/video_timestamp_link/index";
1112
export * from "./embeddable_components/academic/bibliography_citation/index";
1213
export * from "./embeddable_components/html_elements/block_quote";
1314
export * from "./embeddable_components/colors/color_swatch/index";

0 commit comments

Comments
 (0)