mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 22:06:17 +00:00
ci: adding dockerfile
This commit is contained in:
@@ -58,12 +58,10 @@ export class WindowManager {
|
||||
// HMR for renderer base on electron-vite cli.
|
||||
// Load the remote URL for development or the local html file for production.
|
||||
if (is.dev && process.env["ELECTRON_RENDERER_URL"]) {
|
||||
this.mainWindow?.loadURL(
|
||||
`${process.env["ELECTRON_RENDERER_URL"]}#/${hash}`
|
||||
);
|
||||
this.mainWindow?.loadURL(`http://192.168.1.159:8001#/${hash}`);
|
||||
} else {
|
||||
this.mainWindow
|
||||
?.loadURL(`https://staging.hydralauncher.gg/#/${hash}`)
|
||||
?.loadURL(`http://192.168.1.159:8001/#/${hash}`)
|
||||
.catch(() => {
|
||||
this.mainWindow?.loadFile(
|
||||
path.join(__dirname, "../renderer/index.html"),
|
||||
|
||||
@@ -212,7 +212,7 @@ export function App() {
|
||||
useEffect(() => {
|
||||
updateRepacks();
|
||||
|
||||
const id = crypto.randomUUID();
|
||||
const id = `${Date.now()}-${Math.random()}`;
|
||||
const channel = new BroadcastChannel(`download_sources:sync:${id}`);
|
||||
|
||||
channel.onmessage = async (event: MessageEvent<number>) => {
|
||||
|
||||
@@ -79,7 +79,7 @@ export function AddThemeModal({
|
||||
const onSubmit = useCallback(
|
||||
async (values: FormValues) => {
|
||||
const theme: Theme = {
|
||||
id: crypto.randomUUID(),
|
||||
id: `${Date.now()}-${Math.random()}`,
|
||||
name: values.name,
|
||||
isActive: false,
|
||||
author: userDetails?.id,
|
||||
|
||||
@@ -30,7 +30,7 @@ export const ImportThemeModal = ({
|
||||
|
||||
const handleImportTheme = async () => {
|
||||
const theme: Theme = {
|
||||
id: crypto.randomUUID(),
|
||||
id: `${Date.now()}-${Math.random()}`,
|
||||
name: themeName,
|
||||
isActive: false,
|
||||
author: authorId,
|
||||
|
||||
@@ -95,7 +95,7 @@ export function SettingsDownloadSources() {
|
||||
const handleRemoveAllDownloadSources = () => {
|
||||
setIsRemovingDownloadSource(true);
|
||||
|
||||
const id = crypto.randomUUID();
|
||||
const id = `${Date.now()}-${Math.random()}`;
|
||||
const channel = new BroadcastChannel(`download_sources:delete_all:${id}`);
|
||||
|
||||
downloadSourcesWorker.postMessage(["DELETE_ALL_DOWNLOAD_SOURCES", id]);
|
||||
@@ -120,7 +120,7 @@ export function SettingsDownloadSources() {
|
||||
const syncDownloadSources = async () => {
|
||||
setIsSyncingDownloadSources(true);
|
||||
|
||||
const id = crypto.randomUUID();
|
||||
const id = `${Date.now()}-${Math.random()}`;
|
||||
const channel = new BroadcastChannel(`download_sources:sync:${id}`);
|
||||
|
||||
downloadSourcesWorker.postMessage(["SYNC_DOWNLOAD_SOURCES", id]);
|
||||
|
||||
Reference in New Issue
Block a user