-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Rename new default theme (#771)
Old theme is remaining as `classic`, new theme is now `gerwig`.
- Loading branch information
1 parent
4f1b684
commit b91c509
Showing
11 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as ThemeGerwig from "@mux/mux-player/themes/gerwig"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @ts-ignore | ||
import '@mux/mux-player/themes/gerwig'; | ||
export default 'gerwig'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/mux-player/src/themes/2023/2023.html → .../mux-player/src/themes/gerwig/gerwig.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<template id="media-theme-2023"> | ||
<template id="media-theme-gerwig"> | ||
<style> | ||
@keyframes pre-play-hide { | ||
0% { | ||
|
10 changes: 5 additions & 5 deletions
10
packages/mux-player/src/themes/2023/index.ts → ...ges/mux-player/src/themes/gerwig/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// @ts-ignore | ||
import theme from './2023.html'; | ||
import theme from './gerwig.html'; | ||
import { document, globalThis } from '../../polyfills'; | ||
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
|
||
const template = document.createElement('template'); | ||
if ('innerHTML' in template) template.innerHTML = theme; | ||
|
||
class MediaTheme2023 extends MediaThemeElement { | ||
class MediaThemeGerwig extends MediaThemeElement { | ||
static template = template.content?.children?.[0]; | ||
} | ||
|
||
if (!globalThis.customElements.get('media-theme-2023')) { | ||
globalThis.customElements.define('media-theme-2023', MediaTheme2023); | ||
if (!globalThis.customElements.get('media-theme-gerwig')) { | ||
globalThis.customElements.define('media-theme-gerwig', MediaThemeGerwig); | ||
} | ||
|
||
export default MediaTheme2023; | ||
export default MediaThemeGerwig; |
b91c509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
elements-demo-create-react-app – ./examples/create-react-app-with-typescript
elements-demo-create-react-app-git-main-mux.vercel.app
elements-demo-create-react-app-mux.vercel.app
elements-demo-create-react-app.vercel.app
b91c509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
elements-demo-vue – ./examples/vue-with-typescript
elements-demo-vue.vercel.app
elements-demo-vue-mux.vercel.app
elements-demo-vue-git-main-mux.vercel.app
b91c509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
elements-demo-vanilla – ./examples/vanilla-ts-esm
elements-demo-vanilla-git-main-mux.vercel.app
elements-demo-vanilla.vercel.app
elements-demo-vanilla-mux.vercel.app
b91c509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
elements-demo-svelte-kit – ./examples/svelte-kit
elements-demo-svelte-kit-mux.vercel.app
elements-demo-svelte-kit-git-main-mux.vercel.app
elements-demo-svelte-kit.vercel.app
b91c509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
elements-demo-nextjs – ./examples/nextjs-with-typescript
elements-demo-nextjs-mux.vercel.app
elements-demo-nextjs.vercel.app
elements-demo-nextjs-git-main-mux.vercel.app