Skip to content

Commit

Permalink
Local only (#1670)
Browse files Browse the repository at this point in the history
* Upgraded to realm v20.0.0

* Removed ConnectToServer window

* Delete UI related to subscriptions

* Removed loading synced Realm from the browser

* Adding a note to the changelog
  • Loading branch information
kraenhansen authored Sep 9, 2024
1 parent 97c6dfe commit 3e0e8ea
Show file tree
Hide file tree
Showing 37 changed files with 89 additions and 1,634 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## vNext (TBD)

### Breaking Changes
* Removed all functionality related to Atlas Device Services / Device Sync.

### Deprecations
* None

### Enhancements
* None

### Fixed
* None

### Internal
<!-- * Either mention core version or upgrade -->
<!-- * Using Realm Core vX.Y.Z -->
<!-- * Upgraded Realm Core from vX.Y.Z to vA.B.C -->


## 15.2.1 (2024-06-20)

### Fixed
Expand Down
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"react-sortable-hoc": "^2.0.0",
"react-virtualized": "^9.22.5",
"reactstrap": "^9.2.2",
"realm": "^12.9.0",
"realm": "^20.0.0",
"semver": "^7.6.0",
"uuid": "^9.0.1"
},
Expand Down
4 changes: 0 additions & 4 deletions src/actions/main/Sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export class Sender extends ActionSender {
return this.send(MainActions.ShowRealmBrowser, props);
}

public showConnectToServer(url?: string) {
return this.send(MainActions.ShowConnectToServer, url);
}

public clearRendererCache() {
return this.send(MainActions.ClearRendererCache);
}
Expand Down
29 changes: 1 addition & 28 deletions src/main/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ import { CLOUD_PROTOCOL, STUDIO_PROTOCOL } from '../constants';
import * as dataImporter from '../services/data-importer';
import { showError } from '../ui/reusable/errors';
import { RealmLoadingMode } from '../utils/realms';
import {
IRealmBrowserWindowProps,
IConnectToServerWindowProps,
} from '../windows/WindowProps';
import { IRealmBrowserWindowProps } from '../windows/WindowProps';

import { removeRendererDirectories } from '../utils';
import { CertificateManager } from './CertificateManager';
Expand All @@ -53,9 +50,6 @@ export class Application {
[MainActions.ShowOpenLocalRealm]: () => {
return this.showOpenLocalRealm();
},
[MainActions.ShowConnectToServer]: (url?: string) => {
return this.showConnectToServer({ url });
},
[MainActions.ShowRealmBrowser]: (props: IRealmBrowserWindowProps) => {
return this.showRealmBrowser(props);
},
Expand Down Expand Up @@ -156,27 +150,6 @@ export class Application {
return Promise.all(realmsLoaded);
}

public showConnectToServer(
props: IConnectToServerWindowProps,
): Promise<void> {
const { window, existing } = this.windowManager.createWindow({
type: 'connect-to-server',
props,
});

if (existing) {
window.focus();
return Promise.resolve();
} else {
return new Promise(resolve => {
window.show();
window.webContents.once('did-finish-load', () => {
resolve();
});
});
}
}

public showImportData(format: dataImporter.ImportFormat) {
// Ask the users for the file names of files to import
const paths = dataImporter.showOpenDialog(format);
Expand Down
1 change: 0 additions & 1 deletion src/main/MainActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export enum MainActions {
ShowGreeting = 'show-greeting',
ShowImportData = 'show-import-data',
ShowOpenLocalRealm = 'show-open-local-realm',
ShowConnectToServer = 'show-connect-to-server',
ShowRealmBrowser = 'show-realm-browser',
ClearRendererCache = 'clear-renderer-cache',
}
25 changes: 0 additions & 25 deletions src/ui/ConnectToServer/AnonymousForm.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/ui/ConnectToServer/ApiKeyForm.tsx

This file was deleted.

Loading

0 comments on commit 3e0e8ea

Please sign in to comment.