restructure files onto electron-vite boilerplate

This commit is contained in:
jeffvli 2025-05-18 14:03:18 -07:00
parent 91ce2cd8a1
commit 1cf587bc8f
457 changed files with 9927 additions and 11705 deletions

View file

@ -1,6 +1,9 @@
/* eslint-disable consistent-return */
import { SetActivity } from '@xhayper/discord-rpc';
import isElectron from 'is-electron';
import { useCallback, useEffect, useRef } from 'react';
import { controller } from '/@/renderer/api/controller';
import { ServerType } from '/@/renderer/api/types';
import {
getServerById,
useCurrentSong,
@ -9,12 +12,9 @@ import {
useGeneralSettings,
usePlayerStore,
} from '/@/renderer/store';
import { SetActivity } from '@xhayper/discord-rpc';
import { PlayerStatus } from '/@/renderer/types';
import { ServerType } from '/@/renderer/api/types';
import { controller } from '/@/renderer/api/controller';
const discordRpc = isElectron() ? window.electron.discordRpc : null;
const discordRpc = isElectron() ? window.api.discordRpc : null;
export const useDiscordRpc = () => {
const intervalRef = useRef(0);