diff options
author | 2019-11-01 13:03:15 +0100 | |
---|---|---|
committer | 2019-11-01 13:03:15 +0100 | |
commit | 9c5c3401b67c4196591f17df9d62edc4610844fb (patch) | |
tree | f88a77d8fe5775eb4a0b73f5eaa9314154a62e1c /src | |
parent | Merge branch 'develop' of https://github.com/getferdi/ferdi into develop (diff) | |
parent | #160 Setup Sentry for Electron (diff) | |
download | ferdium-app-9c5c3401b67c4196591f17df9d62edc4610844fb.tar.gz ferdium-app-9c5c3401b67c4196591f17df9d62edc4610844fb.tar.zst ferdium-app-9c5c3401b67c4196591f17df9d62edc4610844fb.zip |
Merge branch 'develop' of https://github.com/getferdi/ferdi into develop
Diffstat (limited to 'src')
-rw-r--r-- | src/api/server/ServerApi.js | 4 | ||||
-rw-r--r-- | src/i18n/locales/de.json | 4 | ||||
-rw-r--r-- | src/i18n/locales/fr.json | 4 | ||||
-rw-r--r-- | src/index.html | 1 | ||||
-rw-r--r-- | src/index.js | 2 | ||||
-rw-r--r-- | src/sentry.js | 5 |
6 files changed, 14 insertions, 6 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 164bc237b..627425948 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -458,7 +458,7 @@ export default class ServerApi { | |||
458 | 458 | ||
459 | // News | 459 | // News |
460 | async getLatestNews() { | 460 | async getLatestNews() { |
461 | const url = `${apiBase()}/news?platform=${os.platform()}&arch=${os.arch()}&version=${app.getVersion()}`; | 461 | const url = `https://api.getferdi.com/v1/news?platform=${os.platform()}&arch=${os.arch()}&version=${app.getVersion()}`; |
462 | const request = await sendAuthRequest(url); | 462 | const request = await sendAuthRequest(url); |
463 | if (!request.ok) throw request; | 463 | if (!request.ok) throw request; |
464 | const data = await request.json(); | 464 | const data = await request.json(); |
@@ -468,7 +468,7 @@ export default class ServerApi { | |||
468 | } | 468 | } |
469 | 469 | ||
470 | async hideNews(id) { | 470 | async hideNews(id) { |
471 | const request = await sendAuthRequest(`${apiBase()}/news/${id}/read`); | 471 | const request = await sendAuthRequest(`https://api.getferdi.com/v1/news/${id}/read`); |
472 | if (!request.ok) throw request; | 472 | if (!request.ok) throw request; |
473 | debug('ServerApi::hideNews resolves', id); | 473 | debug('ServerApi::hideNews resolves', id); |
474 | } | 474 | } |
diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index 01688d5cb..2709f7788 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json | |||
@@ -188,7 +188,7 @@ | |||
188 | "pricing.plan.pro-yearly": "Ferdi Professional jährlich", | 188 | "pricing.plan.pro-yearly": "Ferdi Professional jährlich", |
189 | "pricing.trial.cta.accept": "Ja, Upgrade zu Ferdi Professional durchführen", | 189 | "pricing.trial.cta.accept": "Ja, Upgrade zu Ferdi Professional durchführen", |
190 | "pricing.trial.cta.skip": "Weiter zu Ferdi", | 190 | "pricing.trial.cta.skip": "Weiter zu Ferdi", |
191 | "pricing.trial.cta.start": "Start using Ferdi", | 191 | "pricing.trial.cta.start": "Ferdi verwenden", |
192 | "pricing.trial.error": "Tut uns leid, wir konnten deine kostenlose Testlizenz nicht aktivieren!", | 192 | "pricing.trial.error": "Tut uns leid, wir konnten deine kostenlose Testlizenz nicht aktivieren!", |
193 | "pricing.trial.features.headline": "Ferdi Professional beinhaltet:", | 193 | "pricing.trial.features.headline": "Ferdi Professional beinhaltet:", |
194 | "pricing.trial.headline.pro": "Hi {name}, willkommen bei Ferdi", | 194 | "pricing.trial.headline.pro": "Hi {name}, willkommen bei Ferdi", |
@@ -255,7 +255,7 @@ | |||
255 | "settings.app.cacheInfo": "Der Ferdi Cache belegt derzeit {size}.", | 255 | "settings.app.cacheInfo": "Der Ferdi Cache belegt derzeit {size}.", |
256 | "settings.app.currentVersion": "Aktuelle Version:", | 256 | "settings.app.currentVersion": "Aktuelle Version:", |
257 | "settings.app.form.accentColor": "Akzentfarbe", | 257 | "settings.app.form.accentColor": "Akzentfarbe", |
258 | "settings.app.form.adaptableDarkMode": "Enable adaptable Dark Mode", | 258 | "settings.app.form.adaptableDarkMode": "Angepassten DarkMode aktivieren", |
259 | "settings.app.form.autoLaunchInBackground": "Im Hintergrund öffnen", | 259 | "settings.app.form.autoLaunchInBackground": "Im Hintergrund öffnen", |
260 | "settings.app.form.autoLaunchOnStart": "Ferdi beim Systemstart ausführen", | 260 | "settings.app.form.autoLaunchOnStart": "Ferdi beim Systemstart ausführen", |
261 | "settings.app.form.beta": "Beta-Versionen einbeziehen", | 261 | "settings.app.form.beta": "Beta-Versionen einbeziehen", |
diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 908e2ace7..2edf358f5 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json | |||
@@ -255,11 +255,11 @@ | |||
255 | "settings.app.cacheInfo": "Le cache de Ferdi occupe actuellement {size} en espace disque.", | 255 | "settings.app.cacheInfo": "Le cache de Ferdi occupe actuellement {size} en espace disque.", |
256 | "settings.app.currentVersion": "Version actuelle :", | 256 | "settings.app.currentVersion": "Version actuelle :", |
257 | "settings.app.form.accentColor": "Accent de couleur", | 257 | "settings.app.form.accentColor": "Accent de couleur", |
258 | "settings.app.form.adaptableDarkMode": "Enable adaptable Dark Mode", | 258 | "settings.app.form.adaptableDarkMode": "Activer le mode sombre adaptable", |
259 | "settings.app.form.autoLaunchInBackground": "Ouvrir en arrière-plan", | 259 | "settings.app.form.autoLaunchInBackground": "Ouvrir en arrière-plan", |
260 | "settings.app.form.autoLaunchOnStart": "Lancer Ferdi au démarrage", | 260 | "settings.app.form.autoLaunchOnStart": "Lancer Ferdi au démarrage", |
261 | "settings.app.form.beta": "Accepter les versions bêta", | 261 | "settings.app.form.beta": "Accepter les versions bêta", |
262 | "settings.app.form.darkMode": "Activer le thème sombre", | 262 | "settings.app.form.darkMode": "Joindre le côté obscure", |
263 | "settings.app.form.enableGPUAcceleration": "Activer l'accélération GPU", | 263 | "settings.app.form.enableGPUAcceleration": "Activer l'accélération GPU", |
264 | "settings.app.form.enableLock": "Activer le verrouillage de Ferdi", | 264 | "settings.app.form.enableLock": "Activer le verrouillage de Ferdi", |
265 | "settings.app.form.enableSpellchecking": "Activer la vérification orthographique", | 265 | "settings.app.form.enableSpellchecking": "Activer la vérification orthographique", |
diff --git a/src/index.html b/src/index.html index 7f223b662..31e8aa553 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -14,6 +14,7 @@ | |||
14 | <script> | 14 | <script> |
15 | document.querySelector('body').classList.add(process.env.OS_PLATFORM ? process.env.OS_PLATFORM : process.platform); | 15 | document.querySelector('body').classList.add(process.env.OS_PLATFORM ? process.env.OS_PLATFORM : process.platform); |
16 | 16 | ||
17 | require('./sentry') | ||
17 | const { isDevMode } = require('./environment'); | 18 | const { isDevMode } = require('./environment'); |
18 | if (isDevMode) { | 19 | if (isDevMode) { |
19 | const debugging = require('debug'); | 20 | const debugging = require('debug'); |
diff --git a/src/index.js b/src/index.js index 3453b46f7..bc3c9555a 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -39,6 +39,7 @@ import handleDeepLink from './electron/deepLinking'; | |||
39 | import { isPositionValid } from './electron/windowUtils'; | 39 | import { isPositionValid } from './electron/windowUtils'; |
40 | import { appId } from './package.json'; // eslint-disable-line import/no-unresolved | 40 | import { appId } from './package.json'; // eslint-disable-line import/no-unresolved |
41 | import './electron/exception'; | 41 | import './electron/exception'; |
42 | import './sentry'; | ||
42 | 43 | ||
43 | import { | 44 | import { |
44 | DEFAULT_APP_SETTINGS, | 45 | DEFAULT_APP_SETTINGS, |
@@ -173,6 +174,7 @@ const createWindow = () => { | |||
173 | webPreferences: { | 174 | webPreferences: { |
174 | nodeIntegration: true, | 175 | nodeIntegration: true, |
175 | webviewTag: true, | 176 | webviewTag: true, |
177 | preload: path.join(__dirname, 'sentry.js') | ||
176 | }, | 178 | }, |
177 | }); | 179 | }); |
178 | 180 | ||
diff --git a/src/sentry.js b/src/sentry.js new file mode 100644 index 000000000..4f6d7205d --- /dev/null +++ b/src/sentry.js | |||
@@ -0,0 +1,5 @@ | |||
1 | import * as Sentry from '@sentry/electron'; | ||
2 | |||
3 | Sentry.init({ | ||
4 | dsn: 'https://f3d022fbcf6243a68a58d681c2122ee4@sentry.io/1803053', | ||
5 | }); | ||