Compare commits

...

4 commits

Author SHA1 Message Date
Korbs
970a569c33 Update TODO 2024-11-09 12:08:37 -05:00
Korbs
0d6d47c8e9 Remove @iconoir/vue and bump version 2024-11-09 12:08:32 -05:00
Korbs
5724c0e910 Add Iconoir CSS 2024-11-09 12:08:18 -05:00
Korbs
d68ebbea4f Use HTML code for icons now 2024-11-09 12:08:11 -05:00
6 changed files with 36 additions and 23 deletions

View file

@ -9,7 +9,7 @@
- [ ] Cast Support - [ ] Cast Support
- [x] Allow for multiple players on one page - [x] Allow for multiple players on one page
- [ ] 360 Video Support - [ ] 360 Video Support
- [ ] Remove Iconoir's Vue package, replace with their SVG code - [x] Remove Iconoir's Vue package, [replace with CSS](https://iconoir.com/docs/packages/css)
- [ ] Milieu Settings - [ ] Milieu Settings
- [ ] Mode (Default | Fullscreen) - [ ] Mode (Default | Fullscreen)
- [ ] Speed (Default | Instant | Slow) - [ ] Speed (Default | Instant | Slow)

BIN
bun.lockb

Binary file not shown.

View file

@ -15,7 +15,7 @@
"live-streaming" "live-streaming"
], ],
"type": "module", "type": "module",
"version": "0.4.61", "version": "0.4.62",
"exports": { "exports": {
".": "./index.ts" ".": "./index.ts"
}, },
@ -27,7 +27,6 @@
"access": "public" "access": "public"
}, },
"dependencies": { "dependencies": {
"@iconoir/vue": "^7.8.0",
"astro": "^4.14.2" "astro": "^4.14.2"
}, },
"scripts": { "scripts": {

View file

@ -6,16 +6,8 @@ const {
SeekColor = '#ff274d' SeekColor = '#ff274d'
} = Astro.props } = Astro.props
// Icons // Icons and Styles
import { import './Iconoir.css'
RewindSolid,
Enlarge,
ForwardSolid,
PlaySolid,
Refresh,
SoundHighSolid,
MultiWindow
} from "@iconoir/vue"
--- ---
<div class="video-controls"> <div class="video-controls">
@ -23,17 +15,17 @@ import {
<p>{Title}</p> <p>{Title}</p>
</div> </div>
<div class="vc-bottom"> <div class="vc-bottom">
<button style="display: none" id="vc-playagain"><Refresh /></button> <button style="display: none" id="vc-playagain"><i class="iconoir-refresh"></i></button>
<div class="vc-start"> <div class="vc-start">
<button id="vc-playpause"><PlaySolid /></button> <button id="vc-playpause"><i class="iconoir-play-solid"></i></button>
{Live ? {Live ?
null null
: :
<button id="vc-backwards"><RewindSolid /></button> <button id="vc-backwards"><i class="iconoir-rewind-solid"></i></button>
<button id="vc-forwards"><ForwardSolid /></button> <button id="vc-forwards"><i class="iconoir-forward-solid"></i></button>
} }
<div class="vc-volume-controller"> <div class="vc-volume-controller">
<button><SoundHighSolid/></button> <button><i class="iconoir-sound-high-solid"></i></button>
<div class="vc-volume-controller-input"> <div class="vc-volume-controller-input">
<span style={`background: lightblue`} class="vc-volume-bar"></span> <span style={`background: lightblue`} class="vc-volume-bar"></span>
<input type="range" min="0" max="1.0" step="0.01"/> <input type="range" min="0" max="1.0" step="0.01"/>
@ -63,8 +55,8 @@ import {
} }
<slot/> <slot/>
<!-- The requestPictureInPicture() function is not supported in Firefox --> <!-- The requestPictureInPicture() function is not supported in Firefox -->
<button id="vc-pip" onclick="Player.requestPictureInPicture()"><MultiWindow/></button> <button id="vc-pip" onclick="Player.requestPictureInPicture()"><i class="iconoir-multiwindow"></i>/button>
<button id="vc-fullscreen"><Enlarge /></button> <button id="vc-fullscreen"><i class="iconoir-enlarge"></i></button>
</div> </div>
</div> </div>
</div> </div>

22
src/Iconoir.css Normal file

File diff suppressed because one or more lines are too long

View file

@ -19,9 +19,9 @@ import Controller from './Controls/Controller.astro'
import Seek from './Controls/Seek.astro' import Seek from './Controls/Seek.astro'
import Sync from './Controls/Sync.astro' import Sync from './Controls/Sync.astro'
// Styles // Icons and Styles
import './Index.scss' import './Index.scss'
import { Settings } from '@iconoir/vue' import './Iconoir.css'
--- ---
<div class="video-container" id={"zorn-player-" + PlayerName}> <div class="video-container" id={"zorn-player-" + PlayerName}>
@ -31,7 +31,7 @@ import { Settings } from '@iconoir/vue'
{Milieu ? <MilieuEffect/> : null } {Milieu ? <MilieuEffect/> : null }
{SettingsMenu ? {SettingsMenu ?
<Controls PlayerName={PlayerName} Live={Live}> <Controls PlayerName={PlayerName} Live={Live}>
<button id="open-zorn-settings-button" onclick="OpenZornMenu()"><Settings/></button> <button id="open-zorn-settings-button" onclick="OpenZornMenu()"><i class="iconoir-settings"></i></button>
<slot/> <slot/>
</Controls> </Controls>
: :