fix: notify beta period end
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
|||||||
TagsView,
|
TagsView,
|
||||||
NotesView,
|
NotesView,
|
||||||
FooterView,
|
FooterView,
|
||||||
ChallengeModal
|
ChallengeModal,
|
||||||
} from '@/views';
|
} from '@/views';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -30,7 +30,7 @@ import {
|
|||||||
infiniteScroll,
|
infiniteScroll,
|
||||||
lowercase,
|
lowercase,
|
||||||
selectOnFocus,
|
selectOnFocus,
|
||||||
snEnter
|
snEnter,
|
||||||
} from './directives/functional';
|
} from './directives/functional';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -48,27 +48,23 @@ import {
|
|||||||
PrivilegesManagementModal,
|
PrivilegesManagementModal,
|
||||||
RevisionPreviewModal,
|
RevisionPreviewModal,
|
||||||
HistoryMenu,
|
HistoryMenu,
|
||||||
SyncResolutionMenu
|
SyncResolutionMenu,
|
||||||
} from './directives/views';
|
} from './directives/views';
|
||||||
|
|
||||||
import { trusted } from './filters';
|
import { trusted } from './filters';
|
||||||
import { isDev } from './utils';
|
import { isDev } from './utils';
|
||||||
import { Bridge, BrowserBridge } from './services/bridge';
|
import { Bridge, BrowserBridge } from './services/bridge';
|
||||||
import { startErrorReporting } from './services/errorReporting';
|
import { startErrorReporting } from './services/errorReporting';
|
||||||
|
import { alertDialog } from './services/alertService';
|
||||||
|
|
||||||
if (__WEB__) {
|
if (__WEB__) {
|
||||||
startApplication(
|
startApplication((window as any)._default_sync_server, new BrowserBridge());
|
||||||
(window as any)._default_sync_server,
|
|
||||||
new BrowserBridge()
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
(window as any).startApplication = startApplication;
|
(window as any).startApplication = startApplication;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function startApplication(
|
async function startApplication(defaultSyncServerHost: string, bridge: Bridge) {
|
||||||
defaultSyncServerHost: string,
|
notifyBetaPeriodEnd();
|
||||||
bridge: Bridge
|
|
||||||
) {
|
|
||||||
|
|
||||||
SNLog.onLog = console.log;
|
SNLog.onLog = console.log;
|
||||||
startErrorReporting();
|
startErrorReporting();
|
||||||
@@ -92,7 +88,7 @@ async function startApplication(
|
|||||||
.directive('editorView', () => new EditorView())
|
.directive('editorView', () => new EditorView())
|
||||||
.directive('tagsView', () => new TagsView())
|
.directive('tagsView', () => new TagsView())
|
||||||
.directive('notesView', () => new NotesView())
|
.directive('notesView', () => new NotesView())
|
||||||
.directive('footerView', () => new FooterView())
|
.directive('footerView', () => new FooterView());
|
||||||
|
|
||||||
// Directives - Functional
|
// Directives - Functional
|
||||||
angular
|
angular
|
||||||
@@ -123,15 +119,16 @@ async function startApplication(
|
|||||||
.directive('passwordWizard', () => new PasswordWizard())
|
.directive('passwordWizard', () => new PasswordWizard())
|
||||||
.directive('permissionsModal', () => new PermissionsModal())
|
.directive('permissionsModal', () => new PermissionsModal())
|
||||||
.directive('privilegesAuthModal', () => new PrivilegesAuthModal())
|
.directive('privilegesAuthModal', () => new PrivilegesAuthModal())
|
||||||
.directive('privilegesManagementModal', () => new PrivilegesManagementModal())
|
.directive(
|
||||||
|
'privilegesManagementModal',
|
||||||
|
() => new PrivilegesManagementModal()
|
||||||
|
)
|
||||||
.directive('revisionPreviewModal', () => new RevisionPreviewModal())
|
.directive('revisionPreviewModal', () => new RevisionPreviewModal())
|
||||||
.directive('historyMenu', () => new HistoryMenu())
|
.directive('historyMenu', () => new HistoryMenu())
|
||||||
.directive('syncResolutionMenu', () => new SyncResolutionMenu());
|
.directive('syncResolutionMenu', () => new SyncResolutionMenu());
|
||||||
|
|
||||||
// Filters
|
// Filters
|
||||||
angular
|
angular.module('app').filter('trusted', ['$sce', trusted]);
|
||||||
.module('app')
|
|
||||||
.filter('trusted', ['$sce', trusted]);
|
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
angular.module('app').service('mainApplicationGroup', ApplicationGroup);
|
angular.module('app').service('mainApplicationGroup', ApplicationGroup);
|
||||||
@@ -141,8 +138,10 @@ async function startApplication(
|
|||||||
Object.defineProperties(window, {
|
Object.defineProperties(window, {
|
||||||
application: {
|
application: {
|
||||||
get: () =>
|
get: () =>
|
||||||
(angular.element(document).injector().get('mainApplicationGroup') as any)
|
(angular
|
||||||
.primaryApplication
|
.element(document)
|
||||||
|
.injector()
|
||||||
|
.get('mainApplicationGroup') as any).primaryApplication,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -151,3 +150,16 @@ async function startApplication(
|
|||||||
angular.bootstrap(document, ['app']);
|
angular.bootstrap(document, ['app']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function notifyBetaPeriodEnd() {
|
||||||
|
if (window.location.hostname === 'app-beta.standardnotes.org') {
|
||||||
|
alertDialog({
|
||||||
|
title: 'Beta period has ended',
|
||||||
|
text:
|
||||||
|
'Thank you for trying this beta version. Please sign out, then ' +
|
||||||
|
'sign in to <a href="https://app.standardnotes.org" target="_blank">' +
|
||||||
|
'app.standardnotes.org</a> ' +
|
||||||
|
'to continue using Standard Notes.',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user