-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First commits on the refactoring of the browser * Updating the sidebar * Making progress on the browser * Refactored the browser into "realm-browser" * Fixed opening synced realms
- Loading branch information
1 parent
a8aa3e5
commit 9b46393
Showing
31 changed files
with
792 additions
and
562 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
import { ipcRenderer } from "electron"; | ||
import * as Realm from "realm"; | ||
|
||
import { IServerAdministrationOptions } from "./windows/WindowType"; | ||
import { | ||
IRealmBrowserOptions, | ||
IServerAdministrationOptions, | ||
} from "./windows/WindowType"; | ||
|
||
export enum Actions { | ||
ShowConnectToServer = "show-connect-to-server", | ||
ShowGreeting = "show-server-administration", | ||
ShowOpenLocalRealm = "show-open-local-realm", | ||
ShowRealmBrowser = "show-realm-browser", | ||
ShowServerAdministration = "show-server-administration", | ||
} | ||
|
||
// We use sendSync to avoid closing windows before the actions complete | ||
|
||
export const showConnectToServer = (options?: void) => { | ||
ipcRenderer.sendSync(Actions.ShowConnectToServer, options); | ||
}; | ||
|
||
export const showGreeting = (options?: void) => { | ||
ipcRenderer.sendSync(Actions.ShowGreeting); | ||
}; | ||
|
||
export const showServerAdministration = (options: IServerAdministrationOptions) => { | ||
ipcRenderer.sendSync(Actions.ShowServerAdministration, options); | ||
export const showOpenLocalRealm = (options?: void) => { | ||
ipcRenderer.sendSync(Actions.ShowOpenLocalRealm, options); | ||
}; | ||
|
||
export const showConnectToServer = (options?: void) => { | ||
ipcRenderer.sendSync(Actions.ShowConnectToServer, options); | ||
export const showRealmBrowser = (options: IRealmBrowserOptions) => { | ||
ipcRenderer.sendSync(Actions.ShowRealmBrowser, options); | ||
}; | ||
|
||
export const showOpenLocalRealm = (options?: void) => { | ||
ipcRenderer.sendSync(Actions.ShowOpenLocalRealm, options); | ||
export const showServerAdministration = (options: IServerAdministrationOptions) => { | ||
ipcRenderer.sendSync(Actions.ShowServerAdministration, options); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.