mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-05-14 14:53:05 +02:00
Compare commits
No commits in common. "a169c57a52c8b80667f6356b7887db2250e61541" and "62244f432a78bbf3e1f7b0f7178c02cd7a761f6f" have entirely different histories.
a169c57a52
...
62244f432a
@ -10,10 +10,6 @@ insert_final_newline = true
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[**.ts]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[**.json]
|
[**.json]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -5,10 +5,6 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
pull_request:
|
|
||||||
branches-ignore:
|
|
||||||
- master
|
|
||||||
- develop
|
|
||||||
jobs:
|
jobs:
|
||||||
build_on_linux:
|
build_on_linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export const flags: { [key: string]: { flag: string; value?: string }[] } = {
|
export const flags: { [key: string]: { flag: string; value?: any }[] } = {
|
||||||
gpuRasterization: [{ flag: "enable-gpu-rasterization", value: undefined }],
|
gpuRasterization: [{ flag: "enable-gpu-rasterization", value: undefined }],
|
||||||
disableHardwareMediaKeys: [{ flag: "disable-features", value: "HardwareMediaKeyHandling" }],
|
disableHardwareMediaKeys: [{ flag: "disable-features", value: "HardwareMediaKeyHandling" }],
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ import { setTitle } from "./scripts/window-functions";
|
|||||||
const notificationPath = `${app.getPath("userData")}/notification.jpg`;
|
const notificationPath = `${app.getPath("userData")}/notification.jpg`;
|
||||||
const appName = "Tidal Hifi";
|
const appName = "Tidal Hifi";
|
||||||
let currentSong = "";
|
let currentSong = "";
|
||||||
let player: Player;
|
let player: any;
|
||||||
let currentPlayStatus = statuses.paused;
|
let currentPlayStatus = statuses.paused;
|
||||||
|
|
||||||
const elements = {
|
const elements = {
|
||||||
|
@ -18,7 +18,7 @@ export const startExpress = (mainWindow: BrowserWindow) => {
|
|||||||
* @param {*} res
|
* @param {*} res
|
||||||
* @param {*} action
|
* @param {*} action
|
||||||
*/
|
*/
|
||||||
function handleGlobalEvent(res: Response, action: string) {
|
function handleGlobalEvent(res: Response, action: any) {
|
||||||
mainWindow.webContents.send("globalEvent", action);
|
mainWindow.webContents.send("globalEvent", action);
|
||||||
res.sendStatus(200);
|
res.sendStatus(200);
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ export const createSettingsWindow = function () {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
settingsWindow.on("close", (event: Event) => {
|
settingsWindow.on("close", (event: any) => {
|
||||||
if (settingsWindow != null) {
|
if (settingsWindow != null) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
settingsWindow.hide();
|
settingsWindow.hide();
|
||||||
|
60
src/types/mpris-service.d.ts
vendored
60
src/types/mpris-service.d.ts
vendored
@ -1,60 +0,0 @@
|
|||||||
declare class InitOptions {
|
|
||||||
name: string;
|
|
||||||
identity: string;
|
|
||||||
supportedUriSchemes: string[];
|
|
||||||
supportedMimeTypes: string[];
|
|
||||||
supportedInterfaces: string[];
|
|
||||||
desktopEntry: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare class Player {
|
|
||||||
metadata: {
|
|
||||||
"xesam:title": string;
|
|
||||||
"xesam:artist": string[];
|
|
||||||
"xesam:album": string;
|
|
||||||
"mpris:artUrl": string;
|
|
||||||
"mpris:length": number;
|
|
||||||
"mpris:trackid": string;
|
|
||||||
// other options
|
|
||||||
[key: string]: string | number | string[] | object;
|
|
||||||
};
|
|
||||||
playbackStatus: string;
|
|
||||||
identity: string;
|
|
||||||
fullscreen: boolean;
|
|
||||||
supportedUriSchemes: string[];
|
|
||||||
supportedMimeTypes: string[];
|
|
||||||
canQuit: boolean;
|
|
||||||
canRaise: boolean;
|
|
||||||
canSetFullscreen: boolean;
|
|
||||||
hasTrackList: boolean;
|
|
||||||
desktopEntry: string;
|
|
||||||
loopStatus: string;
|
|
||||||
shuffle: boolean;
|
|
||||||
volume: number;
|
|
||||||
canControl: boolean;
|
|
||||||
canPause: boolean;
|
|
||||||
canPlay: boolean;
|
|
||||||
canSeek: boolean;
|
|
||||||
canGoNext: boolean;
|
|
||||||
canGoPrevious: boolean;
|
|
||||||
rate: number;
|
|
||||||
minimumRate: number;
|
|
||||||
maximumRate: number;
|
|
||||||
playlists: string[];
|
|
||||||
activePlaylist: string;
|
|
||||||
|
|
||||||
constructor(opts: { name: string; supportedInterfaces?: string[] });
|
|
||||||
constructor(opts: InitOptions);
|
|
||||||
|
|
||||||
getPosition(): number;
|
|
||||||
seeked(): void;
|
|
||||||
getTrackIndex(trackId: number): number;
|
|
||||||
getTrack(trackId: number): string;
|
|
||||||
addTrack(track: object): void;
|
|
||||||
removeTrack(trackId: number): number;
|
|
||||||
getPlaylistIndex(playlistId: number): number;
|
|
||||||
setPlaylists(playlists: object): void;
|
|
||||||
setActivePlaylist(playlistId: number): void;
|
|
||||||
|
|
||||||
on(event: string | symbol, listener: (...args: object[]) => void): this;
|
|
||||||
}
|
|
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["src/types"],
|
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "ES6",
|
"target": "ES6",
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user