fixed production build assets and makefile targets
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
dev:
|
dev:
|
||||||
WEBKIT_DISABLE_DMABUF_RENDERER=1 wails dev -tags webkit2_41
|
WEBKIT_DISABLE_DMABUF_RENDERER=1 wails dev -tags webkit2_41
|
||||||
|
|
||||||
build:
|
build-dev:
|
||||||
wails build
|
wails build -tags webkit2_41 -debug -clean
|
||||||
|
|
||||||
|
build-prod:
|
||||||
|
wails build -tags webkit2_41 -clean -obfuscated -upx
|
||||||
|
|
||||||
|
generate:
|
||||||
|
go generate ./...
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ const audioPlayer = () => html`
|
|||||||
<div style="width: 50%">
|
<div style="width: 50%">
|
||||||
<seek-bar></seek-bar>
|
<seek-bar></seek-bar>
|
||||||
</div>
|
</div>
|
||||||
<sl-icon name="alarm"></sl-icon>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,14 @@ import { LitElement, html } from 'lit';
|
|||||||
import { customElement, property } from 'lit/decorators.js';
|
import { customElement, property } from 'lit/decorators.js';
|
||||||
import { Play, Pause } from '@go/player/Player';
|
import { Play, Pause } from '@go/player/Player';
|
||||||
|
|
||||||
|
// assets
|
||||||
|
import pauseSVG from "@assets/images/icons/music/pause-solid.svg"
|
||||||
|
import playSVG from "@assets/images/icons/music/play-solid.svg"
|
||||||
|
import shuffleSVG from "@assets/images/icons/music/shuffle.svg"
|
||||||
|
import skipPrevSVG from "@assets/images/icons/music/skip-prev-solid.svg"
|
||||||
|
import skipNextSVG from "@assets/images/icons/music/skip-next-solid.svg"
|
||||||
|
import repeatSVG from "@assets/images/icons/music/repeat.svg"
|
||||||
|
|
||||||
@customElement('player-controls')
|
@customElement('player-controls')
|
||||||
export class PlayerControls extends LitElement {
|
export class PlayerControls extends LitElement {
|
||||||
|
|
||||||
@@ -9,24 +17,23 @@ export class PlayerControls extends LitElement {
|
|||||||
isPlaying = false
|
isPlaying = false
|
||||||
|
|
||||||
override render() {
|
override render() {
|
||||||
var imagePath = this.isPlaying ?
|
var imagePath = this.isPlaying ? pauseSVG : playSVG
|
||||||
"/src/assets/images/icons/music/pause-solid.svg" : "/src/assets/images/icons/music/play-solid.svg"
|
|
||||||
return html`
|
return html`
|
||||||
<div>
|
<div>
|
||||||
<button>
|
<button>
|
||||||
<img src="/src/assets/images/icons/music/shuffle.svg"></img>
|
<img src="${shuffleSVG}"></img>
|
||||||
</button>
|
</button>
|
||||||
<button>
|
<button>
|
||||||
<img src="/src/assets/images/icons/music/skip-prev-solid.svg"></img>
|
<img src="${skipPrevSVG}"></img>
|
||||||
</button>
|
</button>
|
||||||
<button @click="${this.onPlayPauseClick}">
|
<button @click="${this.onPlayPauseClick}">
|
||||||
<img src="${imagePath}"></img>
|
<img src="${imagePath}"></img>
|
||||||
</button>
|
</button>
|
||||||
<button>
|
<button>
|
||||||
<img src="/src/assets/images/icons/music/skip-next-solid.svg"></img>
|
<img src="${skipNextSVG}"></img>
|
||||||
</button>
|
</button>
|
||||||
<button>
|
<button>
|
||||||
<img src="/src/assets/images/icons/music/repeat.svg"></img>
|
<img src="${repeatSVG}"></img>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
"@pages/*": ["./src/pages/*"],
|
"@pages/*": ["./src/pages/*"],
|
||||||
"@node_modules/*": ["./node_modules/*"]
|
"@node_modules/*": ["./node_modules/*"]
|
||||||
},
|
},
|
||||||
|
"types": ["vite/client"],
|
||||||
// needed for Lit Elements
|
// needed for Lit Elements
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"useDefineForClassFields": false, // allows us to define properties as class fields
|
"useDefineForClassFields": false, // allows us to define properties as class fields
|
||||||
|
|||||||
+2
-2
@@ -7,7 +7,7 @@
|
|||||||
"frontend:dev:watcher": "pnpm dev",
|
"frontend:dev:watcher": "pnpm dev",
|
||||||
"frontend:dev:serverUrl": "auto",
|
"frontend:dev:serverUrl": "auto",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "",
|
"name": "yellowjacket",
|
||||||
"email": ""
|
"email": "yj@yellowjacket.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user