Commit graph

50 commits

Author SHA1 Message Date
zeppi
1f381ffb9b do not set default protocol client on linux on startup 2021-11-27 10:24:41 -05:00
zeppi
eaf3826df8 update electron version to 11, some changes to app update 2021-11-27 10:18:56 -05:00
zeppi
ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00
Baltazar Gomez
1a1f145d14 fix desktop deep links handler 2021-08-04 12:17:14 -04: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
infinite-persistence
7521ac53a3 Linux: Don't add extra call to associate 'lbry://'
## Issue
Closes 4729: LBRY desktop auto-sets itself as default application for opening html files in Linux file managers like nemo after logout and login or a cold/warm boot

- https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/180
    - It appears that there is a piece of code in xdg that defaults the type to 'text/html' if the parameter is empty. I'm not sure if that's entirely xdg's fault, or it's the way Electron's `setAsDefaultProtocolClient` uses it.

## Changes
In Linux Mint at least, it seems like the `protocols` entry in `electron-builder.json` is enough to associate the LBRY protocol to this app. The extra `setAsDefaultProtocolClient` seems unnecessary.

My test method:
With `setAsDefaultProtocolClient` removed for Linux,
- <a href="lbry://xxx"> still opens the app.
- <a href="lbry://xxx"> does not open the app if the `protocols` entry is removed from `electron-build.json` (confirming that it's doing it's job).
2021-03-08 11:21:41 -05:00
Jeffrey Fisher
1155f5512d Fix linting errors.
Closes #4027
2021-01-29 10:10:10 -05: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
Franco Montenegro
c09a7e8bbc Properly restore maximized window from taskbar if required 2021-01-08 08:12:16 -07:00
zeppi
1b3bc0f4e3 support consolidating txos
improvements

actual values

bump

bump

devtools revert

bugfix

bump
2021-01-05 12:38:55 -05:00
Sean Yesmunt
0cc3af28a3 flow fixes 2020-12-16 10:52:22 -05:00
jessop
a5a1f72555 openItem is now openPath 2020-10-12 09:50:56 -04: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
bc19503419 Allow zooming on Desktop
## Issue
Closes 4501 `Font size`

## New behavior
The Desktop app can now zoom the same way as browsers:
- Zoom In: "Ctrl+=" or "Ctrl+numpadPlus" or "Ctrl+WheelUp"
- Zoom Out: "Ctrl+-" or "Ctrl+numpadMinus" or "Ctrl+WheelDown"
- Zoom Reset: "Ctrl+0" or "Ctrl+numpad0"

## Code changes
(1) Electron provides this functionality through the `zoomIn|zoomOut|resetZoom` roles in the Menu, so it would have been a quick job.

However, given that Electron currently does not support having multiple accelerators for one item, we can't add `Ctrl+WheelUp` to the mix and would have to implement our own handler and use `webFrame`.

Given that we need to add code anyways, we handle both keyboard and mouse cases through the same handler, hence the existence of `zoomWindow.js`.  It also provides the opportunity to few a few quirks with Electron's default implementation (e.g. stuck at both extremes)

(2) I recall there is another Issue for adding keyboard shortcuts.  Given that these shortcuts are universally used in browsers, they are probably "reserved", so shouldn't clash with that task.
2020-07-14 16:08:24 -04:00
Sean Yesmunt
81344b9826 make sure lbryfirst error makes it up to UI 2020-07-09 11:01:12 -04:00
Sean Yesmunt
cadcb53399 add better logging and prevent LbryFirst from trying to start multiple times 2020-07-09 09:41:26 -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
Sean Yesmunt
f9325a816e only start lbryFirst daemon for approved users 2020-07-08 14:23:43 -04:00
Thomas Zarebczan
4291c36c58 Initial commit for LBRY-First
fix killing daemon

bump lbry-first
2020-07-08 14:23:43 -04:00
infiinte-persistence
17d0f00a2e Fix dev base-url being used when generating the hover URL 2020-06-09 09:41:08 -04:00
Sean Yesmunt
a8c3ec54ae only delete origin header for sdk calls - leave everything else as is 2020-06-08 11:52:21 -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
aabcd9690a bump lbry-sdk to 0.75.0 2020-06-03 16:25:06 -04:00
seanyesmunt
1984ee585f second attempt at localized player 2020-03-18 10:04:05 -04:00
Sean Yesmunt
c321db4cab fallback to keychain for auth_token if desktop users don't have an auth_token cookie 2020-01-21 14:39:22 -05:00
Sean Yesmunt
5c906df371 cleanup 2020-01-21 09:50:16 -05:00
Thomas Zarebczan
939a7d7689 feat: app image + cookie
fix: password stuff
2020-01-21 09:50:16 -05:00
tuxfoo
e8e3f50cfb Force color profile to render correct colors 2020-01-07 11:07:47 -05:00
Sean Yesmunt
662cf9c906 fix tray icons, download icons, and fix embed route 2019-12-20 11:43:26 -05:00
Sean Yesmunt
e8c8b20b58 bundle wallet headers in app 2019-12-19 14:26:50 -05:00
jessop
b4440285f8 linking lbry-redux works 2019-11-21 11:44:56 -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
jessop
20dde98506 feat: disable app updates by placing a file named upgradeDisabled in static/ 2019-11-13 11:00:46 -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
jobevers
2cfa4c5301 more updtes to build process 2017-01-26 18:21:53 -06:00
jobevers
1a98a36b86 trying electron-builder 2017-01-26 17:21:06 -06:00
jobevers
6bd93e0b8d bundle lbryum files 2017-01-26 12:30:02 -06:00
jobevers
19192b6300 check if process exists; add icons to build 2017-01-25 01:24:04 -05:00
Job Evers-Meltzer
cafe34cbdc better startup and process management 2017-01-18 10:32:10 -06:00
Job Evers-Meltzer
c0847cc420 initial electron app 2017-01-16 14:07:28 -05:00