Mohamed Gharib
34c725231c
[v2] Refactor devtools (better naming to remove confusion) ( #2921 )
2023-09-19 20:56:49 +10:00
Lea Anthony
6aa6762f12
Devtools hotkey ( #2915 )
...
* Add Ctrl/Cmd+Shift+F12 Hotkey to open devtools when `-devtools` flag used.
2023-09-19 05:56:14 +10:00
Lea Anthony
efc86c1056
Delete wails binary
2023-09-16 15:00:20 +10:00
Lea Anthony
9584a2ce5a
Merge latest v2 changes
2023-09-16 14:56:23 +10:00
Travis McLane
ebdd57a7c4
remove cmd/wails/wails binary
2023-09-11 17:12:57 -05:00
Zámbó, Levente
647bc87600
[v2, Linux] fix menu background color ( #2873 )
...
* fix menu background color
* remove commented line
* handle transparent window and background color
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-09-07 21:25:02 +10:00
Lea Anthony
1644ee152e
v2.6.0
2023-09-06 19:45:08 +10:00
David Haukeness
069fe18b9d
Move watcher init to doWatcherLoop and implement -reloaddirs ( #2871 )
...
* remove random print statement
* move watcher into loop and implement reloaddirs
* Fixed -reloaddirs for issue #2829
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-09-06 19:33:22 +10:00
Lea Anthony
acf8dea170
[chore] Big tidy up. Fix bullet point output.
2023-09-06 19:27:29 +10:00
Andreas Christou
886bcc7b47
Add print functionality to v2 ( #2822 )
...
* Add print functionality to v2
* Update changelog
* Update runtime docs
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-09-06 07:55:36 +10:00
Lea Anthony
4a5663c1cb
Merge branch 'master' into v3-alpha
2023-09-02 08:38:48 +10:00
David Haukeness
2e9f57a60d
No go rebuild ( #2870 )
...
* add flag option for NoGoRebuild
2023-08-30 21:24:05 +10:00
stffabi
44c291b297
[v2, build] Fixed support for Go 1.21 go.mod files ( #2876 )
2023-08-30 18:24:41 +10:00
Nobleman
4ad4d7c7e3
postbuild hook fix ( #2839 )
...
postbuildhook should only run if application was built
2023-08-29 18:47:14 +10:00
Nobleman
93a616ceef
[bugfix] build hook command parsing ( #2836 )
...
* fix build hook command parsing
use `shlex`, rather than `strings` package, to split build command
* fix compiler error
2023-08-28 08:50:13 +10:00
Zámbó, Levente
427e41f190
fix disable window resize ( #2863 )
...
* fix disable window resize
* change issue number in changelog
* change pull request number in changelog
2023-08-28 08:40:28 +10:00
stffabi
761efed84d
[v2] Introduce size and physical size of screens ( #2856 )
2023-08-26 10:11:01 +10:00
Phil Richards
427fe7e8d3
Init GTK in NewFrontend, not init ( #2841 )
...
* Init GTK in `NewFrontend`, not `init`
So apps that have a headless / non-gui mode will be able to run, since
they needn't call `NewFrontend` (which is called by `CreateApp`).
Previously, `init` would call `C.gtk_init` regardless of whether
CreateApp was called.
Also change to call `C.gtk_init_check` with a panic, instead of
`C.gtk_init`, since `gtk_init` just exits the process if it fails,
without a sensible error message.
Fixes #2628 .
* Update changelog
2023-08-26 06:41:53 +10:00
Zámbó, Levente
5a4eae968f
set the background color for window ( #2853 )
...
* set the background color for window
* update changelog for #2853
2023-08-25 08:27:52 +10:00
Zámbó, Levente
9085e1edbb
Bugfix/2848 window set position timing ( #2850 )
...
* run WindowSetPosition on main thread
* remove wait group from SetPosition it is not neaded
* update changelog
2023-08-25 05:50:26 +10:00
Lea Anthony
946a4c56a0
[v3 mac] Better logging
2023-08-18 09:58:43 +10:00
Lea Anthony
e6c691a376
Support external asset server
2023-08-14 20:49:09 +10:00
Lea Anthony
ee8eb001c2
Merge branch 'master' into v3-alpha
...
# Conflicts:
# v2/internal/frontend/desktop/windows/go-webview2/webviewloader/env_create.go
2023-08-14 18:08:52 +10:00
Lea Anthony
543b18dd54
Revert v3 changes in v2 asset server
2023-08-14 08:28:32 +10:00
Lea Anthony
13be4a333f
Move to slog logger for application and log plugin
2023-08-10 22:04:13 +10:00
Zámbó, Levente
e72e4aa179
add new programName option to linux options ( #2817 )
...
* add new programName option to linux options
* modify changelog
* free program name string
2023-08-10 07:48:09 +10:00
Aranggi J. Toar
48b35aaafe
chore: update npm and docker package names for dnf package manager ( #2790 )
...
* chore: update package names for dnf package manager
* chore: update changelog
2023-07-24 19:53:24 +10:00
guangwu
150dac9ead
chore: slice replace loop ( #2757 )
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-13 23:13:47 +10:00
Ethan Reesor
22cfcbd5a1
Override error formatting ( #2717 )
2023-07-13 20:40:22 +10:00
Lea Anthony
61f7b10f36
[v2 templates] Add explicit style import ( #2721 )
...
* [v2 templates] Add explicit style import
* [v2] Remove style import
2023-07-10 21:27:41 +02:00
Mohamed Gharib
8acbdc246c
[v2] Add smart default context-menu functionality (backported from v3) ( #2748 )
...
* [v2] Add smart default context-menu functionality (backported from v3)
* Update changelog
2023-06-28 06:35:02 +10:00
Mohamed Gharib
5292ced731
[v2, runtime] Separate runtime js debug build ( #2745 )
2023-06-27 21:31:08 +10:00
Travis McLane
da4a7ac64b
[v2] assetserver/webview purego implementation
2023-06-23 21:50:51 -05:00
Travis McLane
94e1ec91ad
Revert "Merge branch 'v3-alpha_linux' into v3-alpha"
...
This reverts commit b317efaf2c , reversing
changes made to 29b9c5200f .
2023-06-23 21:50:51 -05:00
Lea Anthony
b317efaf2c
Merge branch 'v3-alpha_linux' into v3-alpha
...
# Conflicts:
# v3/STATUS.md
# v3/examples/menu/main.go
# v3/go.mod
# v3/pkg/application/application.go
# v3/pkg/application/webview_window.go
2023-06-22 19:46:10 +10:00
stffabi
8fd16d4be3
[assetServer] Make WebView request URL and RequestURI RFC and Go docs compliant ( #2722 )
...
* [v2 dev] Improve logging of external AssetHandler
* [assetServer] Make WebView request URL and RequestURI RFC and Go docs conforme
2023-06-20 08:06:42 +02:00
Mohamed Gharib
4162f097f1
[v2, options] Add EnableDefaultContextMenu option ( #2733 )
...
* [v2, options] Add EnableDefaultContextMenu option
* Update changelog & docs
* go mod tidy (./v2)
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-06-20 06:31:47 +10:00
Mohamed Gharib
fa851f29c5
[v2] Add -devtools production build flag ( #2725 )
...
* [v2] Add devtools production build flag
* Update changelog
* Fix changelog spacing
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-06-19 06:45:01 +10:00
Lea Anthony
01e2e46e0d
[v3 windows] Support frameless drag. Add /wails/flags endpoint.
2023-06-15 19:08:08 +10:00
Lea Anthony
c03078ca16
[v3] Add capabilities, move to app-region css for drag, support native drag on Windows
2023-06-14 18:12:37 +10:00
Lea Anthony
f2ab205415
[chore] Use webview2 package ( #2687 )
...
* [v2 windows] Use external webview2 package
* Update CHANGELOG
2023-06-10 17:04:31 +10:00
Lea Anthony
28a2b4fbd9
[v2] Update go mod dependency versions
2023-06-09 10:15:21 +10:00
Lea Anthony
d1932c36ce
Merge remote-tracking branch 'origin/v3-alpha' into v3-alpha
...
# Conflicts:
# v2/internal/app/app_dev.go
# v3/STATUS.md
# v3/Taskfile.yaml
# v3/examples/binding/go.mod
# v3/examples/binding/go.sum
# v3/examples/menu/main.go
# v3/examples/window/main.go
# v3/go.mod
# v3/go.sum
# v3/pkg/application/application_windows.go
# v3/pkg/application/dialogs_windows.go
# v3/pkg/application/menuitem_windows.go
# v3/pkg/application/options_webview_window.go
# v3/pkg/application/options_win.go
# v3/pkg/application/popupmenu_windows.go
# v3/pkg/application/systemtray_windows.go
# v3/pkg/application/webview_window.go
# v3/pkg/application/webview_window_windows.go
# v3/pkg/events/events.go
# v3/pkg/events/events.txt
# v3/pkg/w32/constants.go
# v3/pkg/w32/popupmenu.go
# v3/pkg/w32/screen.go
# v3/pkg/w32/typedef.go
# v3/pkg/w32/user32.go
# website/src/pages/changelog.mdx
2023-06-07 08:19:25 +10:00
5aaee9
6d857bf61a
windows/nsis: add hidpi support for nsis installer ( #2694 )
...
* feat(windows/nsis): add hidpi support for nsis installer
* website: add changelog
2023-06-04 07:26:24 +10:00
Lea Anthony
a5b52f2795
[v3 windows] initial systray support
2023-05-30 16:31:58 +08:00
Misite Bao
d3a4d89786
chore: add Prettier as format tool ( #2689 )
2023-05-30 07:40:54 +10:00
Marvin Wendt
65c68301a0
Change style of doctor command ( #2660 )
...
* Refactor doctor command
* Refactor doctor command
* Refactor doctor command
* Refactor doctor command
* Added changelog entry
2023-05-26 17:55:53 +10:00
Misite Bao
37e43dabc0
docs: improve documentation ( #2686 )
...
* docs: fix changelog format
* fix: fix release tools
* chore: set sync translated documents as a scheduled task
2023-05-26 17:49:50 +10:00
Amin Yahyaabadi
35eb1e0160
fix: avoid app crashing when the Linux GTK key is empty ( #2672 )
...
* fix: avoid app crash when the Linux GTK key is empty
Fixes this error:
```
DEBUG | Log dir is: /root/.config/surrealdb_explorer/log.txt
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running, locked to thread]:
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.parseKey({0x0, 0x0})
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/keys.go:87 +0xa5
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.acceleratorToGTK(0xc0001c5f20)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/keys.go:72 +0x2c
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.processMenuItem(0x866bc0?, 0xc0001c8a80, 0xc0001c8a80?)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/menu.go:159 +0x40b
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.processSubmenu(0xc0001c8a20, 0x79a2a9?)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/menu.go:99 +0xdc
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.processMenu(0xc00021f6c0, 0x12?)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/menu.go:82 +0x46
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.(*Window).SetApplicationMenu(0xc00021f6c0, 0xc000128dc8)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/menu.go:75 +0x1b6
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.NewWindow(0xc00011ba40, 0x0)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/window.go:126 +0x37b
github.com/wailsapp/wails/v2/internal/frontend/desktop/linux.NewFrontend({0x1cea4e8?, 0xc00023b890}, 0xc00011ba40, 0xc000128e40, 0xc0001c8b40, {0x1ce7480?, 0xc000139840})
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/linux/frontend.go:182 +0x5c5
github.com/wailsapp/wails/v2/internal/frontend/desktop.NewFrontend(...)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/frontend/desktop/desktop_linux.go:16
github.com/wailsapp/wails/v2/internal/app.CreateApp(0xc00011ba40)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/internal/app/app_production.go:84 +0x5a5
github.com/wailsapp/wails/v2/pkg/application.(*Application).Run(0xc000131940)
/home/aminya/go/pkg/mod/github.com/wailsapp/wails/v2@v2.5.1/pkg/application/application.go:57 +0x29
wails_vue/backend.BootApplication(0xc000131640, 0xc000138a40, 0xc0001c5320, 0xc0001c55c0, 0xc000128b40, 0xc00012ec30, 0xc000131880)
/home/aminya/Documents/GitHub/teamnoon/SurrealDB-Explorer/backend/Application.go:103 +0x718
reflect.Value.call({0x874160?, 0x1c761f0?, 0xc000138a00?}, {0x8e263d, 0x4}, {0xc0001584d0, 0x7, 0x1c761f0?})
/usr/local/go/src/reflect/value.go:586 +0xb0b
reflect.Value.Call({0x874160?, 0x1c761f0?, 0x1c761f0?}, {0xc0001584d0?, 0x0?, 0x1c761f0?})
/usr/local/go/src/reflect/value.go:370 +0xbc
github.com/Envuso/go-ioc-container.(*Invocable).CallMethodWith(0xc000138a00, 0x1c761f0?, {0x0?, 0x1cef290?, 0x8bd180?})
/home/aminya/go/pkg/mod/github.com/!envuso/go-ioc-container@v0.0.5/invocable.go:149 +0xad
github.com/Envuso/go-ioc-container.(*ContainerInstance).Call(0xc00011c630?, {0x874160?, 0x1c761f0?}, {0x0, 0x0, 0x0})
/home/aminya/go/pkg/mod/github.com/!envuso/go-ioc-container@v0.0.5/container_invocation.go:30 +0x6c
main.main()
/home/aminya/Documents/GitHub/teamnoon/SurrealDB-Explorer/main.go:34 +0x112
```
* fix: merge the key length comparison
2023-05-25 18:40:37 +10:00
Lea Anthony
62d97f85ec
v2.5.1
2023-05-16 19:43:41 +10:00