Skip to content

Commit

Permalink
Change to new UI architecture of stroeer-videoplayer 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe committed Jun 21, 2022
1 parent 2f8004a commit 8d0e70a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 27 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.9",
"version": "1.0.0",
"name": "@stroeer/stroeer-videoplayer-livestream-ui",
"description": "Ströer Videoplayer Livestream UI",
"main": "dist/StroeerVideoplayer-livestream-ui.cjs.js",
Expand Down Expand Up @@ -35,9 +35,9 @@
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.1.3",
"@rollup/plugin-typescript": "8.3.1",
"@stroeer/stroeer-videoplayer": "0.0.24",
"@stroeer/stroeer-videoplayer-ivad-plugin": "0.0.21",
"@stroeer/stroeer-videoplayer-ivad-ui": "0.0.16",
"@stroeer/stroeer-videoplayer": "1.0.1",
"@stroeer/stroeer-videoplayer-ivad-plugin": "1.0.0",
"@stroeer/stroeer-videoplayer-ivad-ui": "1.0.0",
"@superevilmegaco/jest-evil-svg-transformer": "0.0.4",
"@types/jest": "27.4.1",
"@types/mocha": "9.1.0",
Expand Down
5 changes: 3 additions & 2 deletions src/UI.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ class StroeerVideoplayer {

const svp = new StroeerVideoplayer()

StroeerVideoplayerLivestreamUI.init(svp)
const stroeerVideoplayerLivestreamUI = new StroeerVideoplayerLivestreamUI()
stroeerVideoplayerLivestreamUI.init(svp)

it('should equal the version from package.json', () => {
expect(StroeerVideoplayerLivestreamUI.version).toBe(version)
})

it('should exit early', () => {
StroeerVideoplayerLivestreamUI.init(svp)
stroeerVideoplayerLivestreamUI.init(svp)
expect(uiEl.querySelectorAll('.livestream').length).toBe(1)
})

Expand Down
10 changes: 3 additions & 7 deletions src/UI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const showElement = (element: HTMLElement): void => {
}

class UI {
version: string
uiName: string
public static version: string = version
public static uiName: string = 'livestream'
uiContainerClassName: string
onDocumentFullscreenChange: Function
onVideoElPlay: Function
Expand All @@ -63,8 +63,6 @@ class UI {
isMouseDown: Boolean

constructor () {
this.version = version
this.uiName = 'livestream'
this.uiContainerClassName = 'livestream'
this.onDocumentFullscreenChange = noop
this.onVideoElPlay = noop
Expand Down Expand Up @@ -738,6 +736,4 @@ class UI {
}
}

const StroeerVideoplayerLivestreamUI = new UI()

export default StroeerVideoplayerLivestreamUI
export default UI
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -759,20 +759,20 @@
dependencies:
"@sinonjs/commons" "^1.7.0"

"@stroeer/stroeer-videoplayer-ivad-plugin@0.0.21":
version "0.0.21"
resolved "https://registry.npmjs.org/@stroeer/stroeer-videoplayer-ivad-plugin/-/stroeer-videoplayer-ivad-plugin-0.0.21.tgz"
integrity sha512-BOm6Gxgw0HpdvzuSXLB8UGjudFylMKgtkgfEYNcn5Yx+qSS60RrEaCfyK0vph0ocBBmo9qX4MqAkrWMJ065Ubg==

"@stroeer/stroeer-videoplayer-ivad-ui@0.0.16":
version "0.0.16"
resolved "https://registry.npmjs.org/@stroeer/stroeer-videoplayer-ivad-ui/-/stroeer-videoplayer-ivad-ui-0.0.16.tgz"
integrity sha512-4qKihyry8qr6dnD/7c9FBO9tP6z3ltpvsOzsu7vx1wSC+q+hgBTqXPzGqwXU1zWYNEY5p2rtRi8RtqDEXoMZeQ==

"@stroeer/stroeer-videoplayer@0.0.24":
version "0.0.24"
resolved "https://registry.npmjs.org/@stroeer/stroeer-videoplayer/-/stroeer-videoplayer-0.0.24.tgz"
integrity sha512-zwpVeJu42Y166xvXqgWdb9NrLaLFJOGEYHBJXt5/K+qOm/tleUEJM1OPyom4zt3CQbjMW8SPuxkY1A8qlTOYmA==
"@stroeer/stroeer-videoplayer-ivad-plugin@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stroeer/stroeer-videoplayer-ivad-plugin/-/stroeer-videoplayer-ivad-plugin-1.0.0.tgz#c5f6d62155a12c02db754948412353f1b1b85b21"
integrity sha512-XHvHhDLOhun9QaxU8vz9QdTM7yCei7mRUPKkheyjjMN6YsZpxugvY9xLMMoq7PKnsJkBUY273oQTV82o8c61Rw==

"@stroeer/stroeer-videoplayer-ivad-ui@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stroeer/stroeer-videoplayer-ivad-ui/-/stroeer-videoplayer-ivad-ui-1.0.0.tgz#b2ae81897f4f8fe0109929a6cd75b2d46a753b39"
integrity sha512-kRmtJ9ZJ8w2pa2NdICTQgbNE/7vS/hwhMZqRmTPvBVoivODw7GieBSIsNj9q1mNOB3D5x9O/Wg6IggbRfWbQyg==

"@stroeer/stroeer-videoplayer@1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stroeer/stroeer-videoplayer/-/stroeer-videoplayer-1.0.1.tgz#df318af37c85922107eadf6bc5481f33bdf2d262"
integrity sha512-IA3D/DNBQELGo7RxBIXrFbOILD7mxNMMGOlXBfOTNxMVd3twCrgHoxAfX/TlGfCRxuBcASejNQYGKpegK43Lig==
dependencies:
hls.js "1.1.5"

Expand Down

0 comments on commit 8d0e70a

Please sign in to comment.