Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Apr 16, 2024
1 parent 530701d commit 7b2048a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/standalone/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { html, render } from 'lit'
import { live } from 'lit/directives/live.js'

import { Player, isMobile, PlayerEvent } from '@oplayer/core'
import { Player, PlayerEvent } from '@oplayer/core'
import danmaku from '@oplayer/danmaku'
import dash from '@oplayer/dash'
import hls from '@oplayer/hls'
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/src/functions/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ export const ICONS_MAP = {
playbackRate: speedSvg,
subtitle: subtitleSvg,
loop: loopSvg,
progressIndicator: null,
loadingIndicator: null,
quality: qualitySvg,
lang: langSvg,
progressIndicator: null,
loadingIndicator: null,
previous: null,
next: null,
// plugins
chromecast: null,
airplay: null,
danmaku: null,
playlist: null,
previous: null,
next: null
playlist: null
}

export namespace Icons {
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ export type UiConfig = {
loadingIndicator?: string
next?: string
previous?: string
subtitle?: string
quality?: string
lang?: string
chromecast?: string
airplay?: string
danmaku?: string
playlist?: string
}

/* --- WIP --- */
Expand Down

0 comments on commit 7b2048a

Please sign in to comment.