Commit graph

27 commits

Author SHA1 Message Date
Tobias Speicher 21af8f4f28 refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-23 12:12:44 -04:00
Franco Montenegro aa40a44ce3 Only allow to window.open http and https protocols. 2022-02-17 15:09:43 -05:00
Franco Montenegro 8fb67d5980 Fix markdown guide button. 2022-02-17 15:09:43 -05:00
jessopb a1f4a7f8ec
Electron 15 (#7384)
* upgrade electron to 15

* linter

* change electron-cookies to modded version for electron >=10

* electron-cookies version fix
2022-01-02 15:33:11 -05:00
jessopb 6d04ff6e32
Revert "upgrade electron to 15 (#7363)" (#7383)
This reverts commit 08c47a57f1.
2021-12-31 14:49:45 -05:00
jessopb 08c47a57f1
upgrade electron to 15 (#7363)
* upgrade electron to 15

* linter
2021-12-31 12:53:07 -05:00
zeppi eaf3826df8 update electron version to 11, some changes to app update 2021-11-27 10:18:56 -05:00
seanyesmunt 951745d105 Revert "Remove the need to call 'app.getLocale()'"
This reverts commit 39b662265c.
2021-04-06 15:42:27 -04:00
infinite-persistence 45c158f5b4 Remove the need to call 'app.getLocale()'
The removal is primarily to ease the upcoming language refactoring, but it was also never hit anyway, because if the `storedLanguage` is indeed null or undefined (like in the case of a fresh install), the `then` block never runs.

Fortunately, we do still get the effect of "falling back to OS's language", because `selectLanguage` will call `getDefaultLanguage` if `language` is null. While the `language` localStorage remains null, the rest of the code still gets the native language via `selectLanguage`.

Aside: `getDefaultLanguage` uses `navigator.language`. It does seem to grab my OS's locale correctly.
2021-04-04 22:54:33 -04:00
zeppi 33564b8620 fix lang constant 2021-01-18 14:19:08 -05:00
zeppi 6fb345dbbc zh languages
bugfix

bugfix3

publish

add zh back for homepage selector

test

revert i18n file

DRY publish language
2021-01-11 10:30:26 -05:00
zeppi 1b3bc0f4e3 support consolidating txos
improvements

actual values

bump

bump

devtools revert

bugfix

bump
2021-01-05 12:38:55 -05:00
jessop e61f8551a3 upgrade electron
disable cors switch

electron version test

v8

wip

v9

bump

nativeImage

clean
2020-10-07 10:14:54 -04:00
Franco Montenegro cbfed97853 Add app closing behavior setting 2020-08-20 01:16:11 -04:00
infiinte-persistence ad0d96328b Add ability to support language subsets, with only CT and CS enabled for now.
CT - Chinese Traditional
CS - Chinese Simplified

Note that if English subsets like en-GB is enabled in the future, the default 'en' value used throughout the code (including in redux.git) needs to be changed to 'en-US'.
2020-07-08 14:25:14 -04:00
infiinte-persistence 17d0f00a2e Fix dev base-url being used when generating the hover URL 2020-06-09 09:41:08 -04:00
infiinte-persistence ae82b3fc05 Create transient "status bar" to display the hover URL.
Implementation:
- <StatusBar> listens to 'update-target-url' and will show/hide itself as needed.
- Handled the display of "lbry://" protocol.

CSS:
- The colors chosen should work on both Light and Dark Theme.
- The delay is necessary to avoid blinkies when the mouse is moving around.

#4259
2020-06-04 10:31:06 -04:00
Sean Yesmunt 662cf9c906 fix tray icons, download icons, and fix embed route 2019-12-20 11:43:26 -05:00
Sean Yesmunt 03acee9ed2 add comment 2019-11-18 15:00:00 -05:00
Jessop 8cb4208282 autoLaunch on startup 2019-11-18 15:00:00 -05:00
Jeremy Kauffman 751b86d05d finished?! 2019-11-13 09:53:01 -05:00
Jeremy Kauffman 8a2393cb67 proper default languages 2019-11-13 09:53:01 -05:00
peterjgrainger 1d053c5302 load translations before the application starts 2019-11-13 09:53:01 -05:00
peterjgrainger ef1f6e9836 put supported languages in one constants file 2019-11-13 09:53:01 -05:00
peterjgrainger 4a0855e074 Used OS language to default localization 2019-11-13 09:53:01 -05:00
Sean Yesmunt ab2ee079e2 fix scripts 2019-11-11 13:27:29 -05:00
Sean Yesmunt 6ad31a3ce9 refactor lbrytv web server 2019-11-11 13:27:29 -05:00
Renamed from src/platforms/electron/createWindow.js (Browse further)