Skip to content

Commit

Permalink
refactor: rename root level folders and references
Browse files Browse the repository at this point in the history
Signed-off-by: eXhumer <exhumer@exhumer.cc>
  • Loading branch information
eXhumer committed Oct 29, 2024
1 parent 4aa6581 commit 5fd3383
Show file tree
Hide file tree
Showing 139 changed files with 163 additions and 166 deletions.
12 changes: 6 additions & 6 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ const config: ForgeConfig = {
config: rendererConfig,
entryPoints: [
{
html: './src/MainWindow/Index.html',
js: './src/MainWindow/Renderer.ts',
html: './src/main_window/index.html',
js: './src/main_window/renderer.ts',
name: 'main_window',
preload: {
js: './src/MainWindow/Preload.ts',
js: './src/main_window/preload.ts',
},
},
{
html: './src/Player/Index.html',
js: './src/Player/Renderer.ts',
html: './src/player/index.html',
js: './src/player/renderer.ts',
name: 'player',
preload: {
js: './src/Player/Preload.ts',
js: './src/player/preload.ts',
},
},
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0"
"typescript-eslint": "^8.12.2"
},
"keywords": [],
"author": {
Expand All @@ -56,7 +56,7 @@
"dependencies": {
"@exhumer/f1tv-api": "^2.2.1",
"@reduxjs/toolkit": "^2.3.0",
"bitmovin-player": "^8.186.0",
"bitmovin-player": "^8.187.0",
"bitmovin-player-ui": "^3.74.0",
"bootstrap": "^5.3.3",
"react": "^18.3.1",
Expand Down
7 changes: 0 additions & 7 deletions src/Player/React/Skin/SkinModern/LICENSE

This file was deleted.

3 changes: 2 additions & 1 deletion src/Index.ts → src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join } from 'path';
import { app, components, globalShortcut, ipcMain, session, BrowserWindow, Menu } from 'electron';
import { F1TV, F1TVClient } from '@exhumer/f1tv-api';

import { AppConfig, IPCChannel, F1TVLoginSession } from './Type';
import { AppConfig, IPCChannel, F1TVLoginSession } from './type';

declare const MAIN_WINDOW_WEBPACK_ENTRY: string;
declare const MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY: string;
Expand Down Expand Up @@ -45,6 +45,7 @@ const createPlayerWindow = (container: F1TV.ContentVideoContainer, platform: str
width: 1280,
backgroundColor: '#303030',
frame: false,
titleBarStyle: 'customButtonsOnHover',
webPreferences: {
webSecurity: false,
nodeIntegration: false,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/MainWindow/Preload.ts → src/main_window/preload.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { DecodedAscendonToken, F1TV } from '@exhumer/f1tv-api';
import { contextBridge, ipcRenderer } from 'electron';

import { IPCChannel } from '../Type';
import { IPCChannel } from '../type';

contextBridge.exposeInMainWorld('f1tv', {
onAscendon: (cb: (e: Electron.IpcRendererEvent, ascendon: DecodedAscendonToken | null) => void) =>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Player/React/App.tsx → src/player/React/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { updateAscendon, updateConfig, updatePlatform, updateVideoContainer } fr
import { usePlayerDispatch, usePlayerSelector } from './Hook';

import { author, productName } from '../../../package.json';
import { F1TVPlatform } from '../../MainWindow/React/Type';
import { F1TVPlatform } from '../../main_window/React/Type';

const App = () => {
const ascendon = usePlayerSelector(state => state.player.ascendon);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../Skin/SkinModern/skin';

#player {
#bitmovin-player {
height: 100vh;
margin: 0;
padding: 0;
Expand All @@ -15,12 +15,12 @@
}

.bmpui-ui-rewindbutton {
background-image: url('../Asset/SkinModern/images/rewind.svg');
background-image: url('../Skin/SkinModern/assets/images/rewind.svg');
background-size: contain;
}

.bmpui-ui-forwardbutton {
background-image: url('../Asset/SkinModern/images/forward.svg');
background-image: url('../Skin/SkinModern/assets/images/forward.svg');
background-size: contain;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const BitmovinPlayer: BitmovinPlayerFn = ({ playerKey, config }, ref) => {
}));

return (
<div ref={playerDivRef} id='player' />
<div ref={playerDivRef} id='bitmovin-player' />
);
};

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/player/React/Skin/SkinModern/NOTES
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Modified version of skin-modern and it's assets distributed with bitmovin-player-ui.

Modified to change some colors of SVG assets alongside the UI colors.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
// We also display a pause image while playback is paused, instead of a play action button
.#{$prefix}-ui-hugeplaybacktogglebutton {
.#{$prefix}-image {
background-image: url('../Asset/SkinModern/images/pause.svg');
background-image: url('../Skin/SkinModern/assets/images/pause.svg');
opacity: .7;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
// Decrease huge play button size and replace icon with normal play icon
.#{$prefix}-ui-hugeplaybacktogglebutton {
.#{$prefix}-image {
background-image: url('../Asset/SkinModern/images/play.svg');
background-image: url('../Skin/SkinModern/assets/images/play.svg');
background-size: 4em;
}
}
Expand All @@ -75,7 +75,7 @@
&.#{$prefix}-on {
.#{$prefix}-image {
animation: none;
background-image: url('../Asset/SkinModern/images/pause.svg');
background-image: url('../Skin/SkinModern/assets/images/pause.svg');
visibility: visible;
}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
.#{$prefix}-ui-airplaytogglebutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/airplay.svg');
background-image: url('../Skin/SkinModern/assets/images/airplay.svg');

&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/airplayX.svg');
background-image: url('../Skin/SkinModern/assets/images/airplayX.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
.#{$prefix}-ui-audiotracksettingstogglebutton {
@extend %ui-settingstogglebutton;

background-image: url('../Asset/SkinModern/images/audio-tracks.svg');
background-image: url('../Skin/SkinModern/assets/images/audio-tracks.svg');

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/audio-tracksX.svg');
background-image: url('../Skin/SkinModern/assets/images/audio-tracksX.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

& {
animation: #{$prefix}-fancy $buffering-animation-duration ease-in infinite;
background: url('../Asset/SkinModern/images/loader.svg') no-repeat center;
background: url('../Skin/SkinModern/assets/images/loader.svg') no-repeat center;
display: inline-block;
height: 2em;
margin: .2em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@include hidden-animated;

& {
background: $color-background url('../Asset/SkinModern/images/chromecast.svg') center no-repeat;
background: $color-background url('../Skin/SkinModern/assets/images/chromecast.svg') center no-repeat;
background-size: 7em 7em;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
.#{$prefix}-ui-casttogglebutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/chromecast.svg');
background-image: url('../Skin/SkinModern/assets/images/chromecast.svg');

&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/chromecastX.svg');
background-image: url('../Skin/SkinModern/assets/images/chromecastX.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}

& {
background-image: url('../Asset/SkinModern/images/close.svg');
background-image: url('../Skin/SkinModern/assets/images/close.svg');
}

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
.#{$prefix}-ui-fullscreentogglebutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/fullscreen.svg');
background-image: url('../Skin/SkinModern/assets/images/fullscreen.svg');

&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/fullscreenX.svg');
background-image: url('../Skin/SkinModern/assets/images/fullscreenX.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}

.#{$prefix}-image {
background-image: url('../Asset/SkinModern/images/play_big.svg');
background-image: url('../Skin/SkinModern/assets/images/play_big.svg');
background-position: center;
background-repeat: no-repeat;
background-size: 7em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
width: 5em;

.#{$prefix}-image {
background-image: url('../Asset/SkinModern/images/replayX.svg');
background-image: url('../Skin/SkinModern/assets/images/replayX.svg');
background-position: center;
background-repeat: no-repeat;
background-size: 5em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
.#{$prefix}-ui-piptogglebutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/picinpic1.svg');
background-image: url('../Skin/SkinModern/assets/images/picinpic1.svg');

&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/picinpic1X.svg');
background-image: url('../Skin/SkinModern/assets/images/picinpic1X.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
.#{$prefix}-ui-playbacktogglebutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/play.svg');
background-image: url('../Skin/SkinModern/assets/images/play.svg');

&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/pause.svg');
background-image: url('../Skin/SkinModern/assets/images/pause.svg');

&.#{$prefix}-stoptoggle {
background-image: url('../Asset/SkinModern/images/stop.svg');
background-image: url('../Skin/SkinModern/assets/images/stop.svg');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.#{$prefix}-ui-replaybutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/replay-nocircle.svg');
background-image: url('../Skin/SkinModern/assets/images/replay-nocircle.svg');

&:hover {
@include svg-icon-shadow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%ui-settingspanelpageopenbutton {
@extend %ui-button;

background-image: url('../Asset/SkinModern/images/settings.svg');
background-image: url('../Skin/SkinModern/assets/images/settings.svg');
max-height: .8em;
padding: .3em 0;
vertical-align: bottom;
Expand All @@ -14,7 +14,7 @@
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/settingsX.svg');
background-image: url('../Skin/SkinModern/assets/images/settingsX.svg');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
.#{$prefix}-ui-settingstogglebutton {
@extend %ui-settingstogglebutton;

background-image: url('../Asset/SkinModern/images/settings.svg');
background-image: url('../Skin/SkinModern/assets/images/settings.svg');

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/settingsX.svg');
background-image: url('../Skin/SkinModern/assets/images/settingsX.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
.#{$prefix}-ui-subtitlesettingstogglebutton {
@extend %ui-settingstogglebutton;

background-image: url('../Asset/SkinModern/images/subtitles.svg');
background-image: url('../Skin/SkinModern/assets/images/subtitles.svg');

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/subtitlesX.svg');
background-image: url('../Skin/SkinModern/assets/images/subtitlesX.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@
}

&.#{$prefix}-muted {
background-image: url('../Asset/SkinModern/images/music-off.svg');
background-image: url('../Skin/SkinModern/assets/images/music-off.svg');
}

&.#{$prefix}-unmuted {
&[data-#{$prefix}-volume-level-tens='0'] {
background-image: url('../Asset/SkinModern/images/music-off.svg');
background-image: url('../Skin/SkinModern/assets/images/music-off.svg');
}

&[data-#{$prefix}-volume-level-tens='1'],
&[data-#{$prefix}-volume-level-tens='2'],
&[data-#{$prefix}-volume-level-tens='3'],
&[data-#{$prefix}-volume-level-tens='4'],
&[data-#{$prefix}-volume-level-tens='5'] {
background-image: url('../Asset/SkinModern/images/music-low.svg');
background-image: url('../Skin/SkinModern/assets/images/music-low.svg');
}

&[data-#{$prefix}-volume-level-tens='6'],
&[data-#{$prefix}-volume-level-tens='7'],
&[data-#{$prefix}-volume-level-tens='8'],
&[data-#{$prefix}-volume-level-tens='9'],
&[data-#{$prefix}-volume-level-tens='10'] {
background-image: url('../Asset/SkinModern/images/music-on.svg');
background-image: url('../Skin/SkinModern/assets/images/music-on.svg');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
@extend %ui-button;

// svg() usage: http://pavliko.github.io/postcss-svg/
background-image: url('../Asset/SkinModern/images/glasses.svg');
background-image: url('../Skin/SkinModern/assets/images/glasses.svg');

&:hover {
@include svg-icon-shadow;
}

&.#{$prefix}-on {
background-image: url('../Asset/SkinModern/images/glassesX.svg');
background-image: url('../Skin/SkinModern/assets/images/glassesX.svg');
}
}
Loading

0 comments on commit 5fd3383

Please sign in to comment.