Commit Graph

1156 Commits

Author SHA1 Message Date
Bruno Lemos
74a608035a [Desktop] Open window on login
Fix for menubar mode
2018-12-29 22:16:53 -02:00
Bruno Lemos
af0969f49e Revert "[Desktop] Trying to fix logo not showing on release build after login"
This reverts commit aa1592735d.
2018-12-29 21:29:49 -02:00
Bruno Lemos
aa9dd1239f [Desktop] Fix broken Reload after login 2018-12-29 21:28:03 -02:00
Bruno Lemos
3896e8d819 [Desktop] Fix broken logo after login 2018-12-29 21:16:43 -02:00
Bruno Lemos
9a0d007ae9 [Security] Disable window.eval
As recommended by Electron warning
2018-12-29 21:07:43 -02:00
Bruno Lemos
d7a95c8d3d [Desktop] Explicitly disable contextIsolation
Required for the window.ipc to work on oauth flow
2018-12-29 20:57:32 -02:00
Bruno Lemos
1d5e625d9d [Desktop] Setup React and Redux devtools extensions 2018-12-29 20:46:35 -02:00
Bruno Lemos
aa1592735d [Desktop] Trying to fix logo not showing on release build after login
Didnt work
2018-12-29 07:53:40 -02:00
Bruno Lemos
d2b21cb29b [Desktop] Disable nodeIntegration as a security precaution
https://github.com/electron/electron/issues/5113

https://github.com/electron/electron/issues/4362

https://github.com/PaulLeCam/react-native-electron/issues/6
2018-12-29 06:59:57 -02:00
Bruno Lemos
856c10166a [Desktop] Enable Linux target 2018-12-29 05:27:54 -02:00
Bruno Lemos
b9758dd0ac [Desktop][Windows] Fix window losing maximized state on tray click 2018-12-29 05:24:12 -02:00
Bruno Lemos
739746d78f [Desktop] Maximize window on first launch 2018-12-29 04:51:25 -02:00
Bruno Lemos
4c5c0f8712 [Desktop][Windows] Fix oauth flow
Fix deep linking by getting url from second-instance argv and dispatching an open-url event that is being listened by the Linking API
2018-12-29 04:38:46 -02:00
Bruno Lemos
e5ff519751 [Desktop] Prevent multiple instances of the app
Fix devhub:// on Windows that was opening a new instance instead of focusing on current instance
2018-12-29 04:30:32 -02:00
Bruno Lemos
1c2c103f27 [Desktop] Move some code to a init function 2018-12-29 02:25:59 -02:00
Bruno Lemos
dd6dd92005 [Desktop] Persist window size, position and user preferences
Including Desktop/Menubar mode and lockOnCenter option
2018-12-28 22:44:51 -02:00
Bruno Lemos
814e7ccfa4 [Desktop] Disable lockOnCenter by default
On all platforms
2018-12-28 22:44:51 -02:00
Bruno Lemos
688e636bb9 [Desktop] Fix node_modules not being included 2018-12-28 22:44:47 -02:00
Bruno Lemos
81404e1bb3 Use shx instead of rimraf to support more commands 2018-12-28 22:03:22 -02:00
Bruno Lemos
ce79fce72a Merge branch 'master' of github.com:devhubapp/devhub into desktop 2018-12-28 07:36:46 -02:00
Bruno Lemos
b6a9830b74 Merge pull request #76 from gregoryfm/master
Add `rimraf` to use instead `rm -rf`
2018-12-28 07:32:39 -02:00
Bruno Lemos
2ba2e6170f Merge branch 'master' into master 2018-12-28 07:31:44 -02:00
Bruno Lemos
f2ca73f4b3 [Desktop][Windows] Hide window on blur on Menubar mode 2018-12-28 07:15:13 -02:00
Bruno Lemos
f0a788df23 [Desktop][macOS] Small fix on tray click handler 2018-12-28 06:41:50 -02:00
Bruno Lemos
439fb3d0f1 [Desktop][Windows] Fix Menubar mode + Handle all possible taskbar positions 2018-12-28 06:35:33 -02:00
Bruno Lemos
cc51488a05 [Desktop] Enable lockOnCenter by default only on macOS 2018-12-28 03:28:58 -02:00
Bruno Lemos
3a34096363 Revert "[Desktop] Move mode switch from View menu to a new Options menu"
This reverts commit 7c28376bbc.
2018-12-28 03:26:47 -02:00
Bruno Lemos
0c31d6ae05 Change title to only DevHub 2018-12-28 03:23:42 -02:00
Bruno Lemos
9466501c81 [Desktop][Windows] Remove Bring All to Front menu 2018-12-28 03:21:28 -02:00
Bruno Lemos
7c28376bbc [Desktop] Move mode switch from View menu to a new Options menu 2018-12-28 03:21:26 -02:00
Bruno Lemos
ab3cc388ad Merge branch 'desktop' of github.com:devhubapp/devhub into desktop 2018-12-28 03:03:11 -02:00
Bruno Lemos
8105f5f4c3 [Desktop][Windows] Fix window max dimensions 2018-12-28 03:00:35 -02:00
Bruno Lemos
2d2a5d9bb1 [Desktop] Only enable Menubar Mode on macOS 2018-12-28 02:49:55 -02:00
Bruno Lemos
a9eddbfeb0 [Desktop] Only create frameless window on macOS 2018-12-28 02:42:07 -02:00
Bruno Lemos
a4ac69465c [Windows] Use cross-env to set env vars 2018-12-28 02:31:24 -02:00
Bruno Lemos
212d44860a [Windows] Fix pushd 2018-12-28 02:14:39 -02:00
Bruno Lemos
2785c78981 [Desktop] Use electron-is-dev instead of NODE_ENV
Fix problem on Windows without bash shell
2018-12-28 01:15:50 -02:00
Bruno Lemos
f2a8274d54 [Desktop][Windows] Fix undefined app.dock 2018-12-28 01:15:18 -02:00
Bruno Lemos
5368da98ed Remove rm command from start script
Fix `yarn dev` on Windows without bash shell.
Note: Please install Bash shell on your Windows. See README.

Fix #74
Closes #76
2018-12-28 00:29:55 -02:00
Bruno Lemos
2bd58c2951 [Windows] Add note about bash shell 2018-12-28 00:18:48 -02:00
Bruno Lemos
0cc5c30f75 [Windows] Add tip about horizontal scrolling 2018-12-27 23:18:04 -02:00
Bruno Lemos
e21d5bdb59 Block Product Hunt for now. Dont hunt me yet. 2018-12-27 17:57:43 -02:00
Bruno Lemos
313e796881 Ignore desktop and www folders from Now 2018-12-27 17:11:22 -02:00
Bruno Lemos
dfd27bc9f4 [Desktop] Rewrote how Desktop/Menubar modes are handled
Desktop mode is now the default one

Desktop mode starts maximized

Desktop mode is now frameless

Create only one window, reuse between Desktop and Menubar

Fix Menu and, by consequence, fix Copy, Paste, Select All, etc

Remove empty button from TouchBar

Option to make window be always at the center

Handle Full Screen Mode

Allow showing DevTools on development only

Show options on Dock icon, Menu and Tray icon

Add menu items to open DevHub on GitHub, Report bug and Send feedback

Fix app not reopening after Cmd+W

Remove arrow
2018-12-27 03:45:00 -02:00
Gregory Menezes
59072dfe2c Add rimraf to use instead rm -rf 2018-12-27 14:56:05 +11:00
Bruno Lemos
5a611e3262 [Desktop] Run OAuth flow on user's browser using deep linking 2018-12-25 07:09:58 -02:00
Bruno Lemos
81b7b93e87 [Desktop] Fix icons
Also regenerated icons for all platforms, now with a gradient and better aligment
2018-12-25 04:33:44 -02:00
Bruno Lemos
62727b34cc [Desktop] Rename electron.ts to index.ts 2018-12-25 03:34:11 -02:00
Bruno Lemos
5bc863ee79 [Desktop] Change arrow color based on current theme 2018-12-24 18:08:36 -02:00
Bruno Lemos
dc5dd844e2 [Desktop] Auto reload Electron on change 2018-12-24 18:08:35 -02:00