Skip to content

Commit

Permalink
feat: add error dialog (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Dec 9, 2024
1 parent c24c6e7 commit 2edd3fe
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 31 deletions.
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"dev": "chokidar --debounce 50 './themes/*/!(dist|.turbo)' -c 'turbo build --force --filter=./$(dirname {path}) && touch ./site/$(dirname {path}).md'"
},
"dependencies": {
"media-chrome": "^4.2.2"
"media-chrome": "~4.3.0"
},
"devDependencies": {
"@player.style/demuxed-2022": "0.0.12",
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@mux/mux-video": "0.21.0-canary.0-4375d6f",
"@mux/mux-video": "0.22.0-canary.0-2fbb2c1",
"@mux/mux-video-react": "^0.11.3",
"@next/mdx": "^14.2.12",
"@radix-ui/react-popover": "^1.1.1",
Expand Down
1 change: 1 addition & 0 deletions themes/demuxed-2022/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>
<div class="demuxed-gradient-bottom"></div>
<div slot="top-chrome">
<media-cast-button class="small-button">
Expand Down
2 changes: 1 addition & 1 deletion themes/halloween/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@

.media-volume-wrapper {
position: relative;
z-index: 2;
width: 1em;
}

Expand Down Expand Up @@ -251,6 +250,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>

<div slot="centered-chrome">
<media-play-button mediapaused>
Expand Down
1 change: 1 addition & 0 deletions themes/instaplay/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>

<media-play-button slot="centered-chrome">
<svg slot="play" aria-hidden="true" viewBox="0 0 24 24" fill="currentColor">
Expand Down
1 change: 1 addition & 0 deletions themes/microvideo/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
<media-error-dialog slot="dialog"></media-error-dialog>

<template if="streamtype == 'on-demand'">

Expand Down
1 change: 1 addition & 0 deletions themes/minimal/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
<media-error-dialog slot="dialog"></media-error-dialog>

<template if="title">
<div slot="top-chrome">
Expand Down
2 changes: 1 addition & 1 deletion themes/notflix/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@

.media-volume-wrapper {
position: relative;
z-index: 2;
}

.media-volume-range-wrapper {
Expand Down Expand Up @@ -189,6 +188,7 @@
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
<media-error-dialog slot="dialog"></media-error-dialog>

<div class="time-bar">
<media-time-range></media-time-range>
Expand Down
2 changes: 2 additions & 0 deletions themes/reelplay/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@
nohotkeys="{{nohotkeys}}"
defaultstreamtype="on-demand"
>
<media-error-dialog slot="dialog"></media-error-dialog>

<div slot="top-chrome">
<div class="top-bar">
<span>ReelPlay: Welcome!</span>
Expand Down
3 changes: 1 addition & 2 deletions themes/sutro/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>

<!-- Controls Gradient -->
<style>
Expand Down Expand Up @@ -318,7 +319,6 @@
<style>
media-mute-button {
position: relative;
z-index: 1;
}

media-mute-button .muted-path {
Expand Down Expand Up @@ -514,7 +514,6 @@
<style>
media-time-display {
position: relative;
z-index: 1;
padding: calc(0.5 * var(--base));
font-size: calc(0.7 * var(--base));
border-radius: calc(0.5 * var(--base));
Expand Down
2 changes: 1 addition & 1 deletion themes/vimeonova/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
--media-box-margin: 0;
--media-preview-time-background: rgb(var(--vimeonova-black) / 1);
padding-inline: 10px;
z-index: 1;
}

media-time-range.small {
Expand Down Expand Up @@ -354,6 +353,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>

<div slot="top-chrome" class="header">
<template if="mediatitle">
Expand Down
1 change: 1 addition & 0 deletions themes/x-mas/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>
<div class="gradient-bottom"></div>
<div slot="top-chrome">
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 310 169">
Expand Down
1 change: 1 addition & 0 deletions themes/yt/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
>
<slot name="media" slot="media"></slot>
<slot name="poster" slot="poster"></slot>
<media-error-dialog slot="dialog"></media-error-dialog>

<!-- Gradient -->
<style>
Expand Down

0 comments on commit 2edd3fe

Please sign in to comment.