Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ RAILS_LOG_LEVEL=INFO

RAILS_SERVE_STATIC_FILES=true
SECRET_KEY_BASE=test
BUGSNAG_API_KEY=

APP_HOST=http://localhost:3001
PURCHASE_URL=https://standardnotes.com/purchase
Expand Down
4 changes: 1 addition & 3 deletions app/assets/javascripts/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare global {
interface Window {
bugsnagApiKey?: string;
dashboardUrl?: string;
defaultSyncServer: string;
devAccountEmail?: string;
Expand All @@ -22,7 +21,6 @@ import { render } from 'preact';
import { ApplicationGroupView } from './components/ApplicationGroupView';
import { Bridge } from './services/bridge';
import { BrowserBridge } from './services/browserBridge';
import { startErrorReporting } from './services/errorReporting';
import { StartApplication } from './startApplication';
import { ApplicationGroup } from './ui_models/application_group';
import { isDev } from './utils';
Expand All @@ -34,7 +32,7 @@ const startApplication: StartApplication = async function startApplication(
webSocketUrl: string
) {
SNLog.onLog = console.log;
startErrorReporting();
SNLog.onError = console.error;

const mainApplicationGroup = new ApplicationGroup(
defaultSyncServerHost,
Expand Down
3 changes: 1 addition & 2 deletions app/assets/javascripts/preferences/panes/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { WebApplication } from '@/ui_models/application';
import { AppState } from '@/ui_models/app_state';
import { FunctionComponent } from 'preact';
import { PreferencesPane } from '../components';
import { ErrorReporting, Tools, Defaults, LabsPane } from './general-segments';
import { Tools, Defaults, LabsPane } from './general-segments';
import { ExtensionsLatestVersions } from '@/preferences/panes/extensions-segments';
import { Advanced } from '@/preferences/panes/account';
import { observer } from 'mobx-react-lite';
Expand All @@ -18,7 +18,6 @@ export const General: FunctionComponent<GeneralProps> = observer(
<PreferencesPane>
<Tools application={application} />
<Defaults application={application} />
<ErrorReporting appState={appState} />
<LabsPane application={application} />
<Advanced
application={application}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './ErrorReporting';
export * from './Tools';
export * from './Defaults';
export * from './Labs';
115 changes: 0 additions & 115 deletions app/assets/javascripts/services/errorReporting.ts

This file was deleted.

4 changes: 1 addition & 3 deletions app/assets/javascripts/services/localStorage.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
export enum StorageKey {
DisableErrorReporting = 'DisableErrorReporting',
AnonymousUserId = 'AnonymousUserId',
ShowBetaWarning = 'ShowBetaWarning',
ShowNoAccountWarning = 'ShowNoAccountWarning',
}

export type StorageValue = {
[StorageKey.DisableErrorReporting]: boolean;
[StorageKey.AnonymousUserId]: string;
[StorageKey.ShowBetaWarning]: boolean;
[StorageKey.ShowNoAccountWarning]: boolean;
}
};

export const storage = {
get<K extends StorageKey>(key: K): StorageValue[K] | null {
Expand Down
1 change: 0 additions & 1 deletion app/views/application/app.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<script>
window.defaultSyncServer = "<%= ENV['DEFAULT_SYNC_SERVER'] %>";
window.defaultFilesHost = "<%= ENV['DEFAULT_FILES_HOST'] %>";
window.bugsnagApiKey = "<%= ENV['BUGSNAG_API_KEY'] %>";
window.enabledUnfinishedFeatures = "<%= ENV['ENABLE_UNFINISHED_FEATURES'] %>" === 'true';
window.websocketUrl = "<%= ENV['WEBSOCKET_URL'] %>";
window.purchaseUrl = "<%= ENV['PURCHASE_URL'] %>";
Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<body
data-default-sync-server="<%= env.DEFAULT_SYNC_SERVER %>"
data-default-files-host="<%= env.DEFAULT_FILES_HOST %>"
data-bugsnag-api-key="<%= env.BUGSNAG_API_KEY %>"
data-enable-unfinished-features="<%= env.ENABLE_UNFINISHED_FEATURES %>"
data-web-socket-url="<%= env.WEBSOCKET_URL %>"
data-purchase-url="<%= env.PURCHASE_URL %>"
Expand All @@ -44,7 +43,6 @@
<script>
window.defaultSyncServer = document.body.dataset.defaultSyncServer || "https://api.standardnotes.com";
window.defaultFilesHost = document.body.dataset.defaultFilesHost;
window.bugsnagApiKey = document.body.dataset.bugsnagApiKey;
window.enabledUnfinishedFeatures = document.body.dataset.enableUnfinishedFeatures === 'true';
window.websocketUrl = document.body.dataset.webSocketUrl;
window.purchaseUrl = document.body.dataset.purchaseUrl;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@bugsnag/js": "^7.16.2",
"@reach/alert": "^0.16.0",
"@reach/alert-dialog": "^0.16.2",
"@reach/checkbox": "^0.16.0",
Expand Down
Loading