Skip to content

Commit 48ec485

Browse files
Revert "Upgrade Wails to v2.15"
This reverts commit 8405404.
1 parent d4af170 commit 48ec485

4 files changed

Lines changed: 53 additions & 172 deletions

File tree

frontend/wailsjs/runtime/runtime.d.ts

Lines changed: 31 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export interface Size {
2121
export interface Screen {
2222
isCurrent: boolean;
2323
isPrimary: boolean;
24-
width : number
25-
height : number
24+
width: number;
25+
height: number;
2626
}
2727

2828
// Environment information such as platform, buildtype, ...
@@ -38,19 +38,32 @@ export interface EnvironmentInfo {
3838
export function EventsEmit(eventName: string, ...data: any): void;
3939

4040
// [EventsOn](https://wails.io/docs/reference/runtime/events#eventson) sets up a listener for the given event name.
41-
export function EventsOn(eventName: string, callback: (...data: any) => void): () => void;
41+
export function EventsOn(
42+
eventName: string,
43+
callback: (...data: any) => void
44+
): () => void;
4245

4346
// [EventsOnMultiple](https://wails.io/docs/reference/runtime/events#eventsonmultiple)
4447
// sets up a listener for the given event name, but will only trigger a given number times.
45-
export function EventsOnMultiple(eventName: string, callback: (...data: any) => void, maxCallbacks: number): () => void;
48+
export function EventsOnMultiple(
49+
eventName: string,
50+
callback: (...data: any) => void,
51+
maxCallbacks: number
52+
): () => void;
4653

4754
// [EventsOnce](https://wails.io/docs/reference/runtime/events#eventsonce)
4855
// sets up a listener for the given event name, but will only trigger once.
49-
export function EventsOnce(eventName: string, callback: (...data: any) => void): () => void;
56+
export function EventsOnce(
57+
eventName: string,
58+
callback: (...data: any) => void
59+
): () => void;
5060

5161
// [EventsOff](https://wails.io/docs/reference/runtime/events#eventsoff)
5262
// unregisters the listener for the given event name.
53-
export function EventsOff(eventName: string, ...additionalEventNames: string[]): void;
63+
export function EventsOff(
64+
eventName: string,
65+
...additionalEventNames: string[]
66+
): void;
5467

5568
// [EventsOffAll](https://wails.io/docs/reference/runtime/events#eventsoffall)
5669
// unregisters all listeners.
@@ -200,7 +213,12 @@ export function WindowIsNormal(): Promise<boolean>;
200213

201214
// [WindowSetBackgroundColour](https://wails.io/docs/reference/runtime/window#windowsetbackgroundcolour)
202215
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
203-
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
216+
export function WindowSetBackgroundColour(
217+
R: number,
218+
G: number,
219+
B: number,
220+
A: number
221+
): void;
204222

205223
// [ScreenGetAll](https://wails.io/docs/reference/runtime/window#screengetall)
206224
// Gets the all screens. Call this anew each time you want to refresh data from the underlying windowing system.
@@ -236,95 +254,17 @@ export function ClipboardSetText(text: string): Promise<boolean>;
236254

237255
// [OnFileDrop](https://wails.io/docs/reference/runtime/draganddrop#onfiledrop)
238256
// OnFileDrop listens to drag and drop events and calls the callback with the coordinates of the drop and an array of path strings.
239-
export function OnFileDrop(callback: (x: number, y: number ,paths: string[]) => void, useDropTarget: boolean) :void
257+
export function OnFileDrop(
258+
callback: (x: number, y: number, paths: string[]) => void,
259+
useDropTarget: boolean
260+
): void;
240261

241262
// [OnFileDropOff](https://wails.io/docs/reference/runtime/draganddrop#dragandddropoff)
242263
// OnFileDropOff removes the drag and drop listeners and handlers.
243-
export function OnFileDropOff() :void
264+
export function OnFileDropOff(): void;
244265

245266
// Check if the file path resolver is available
246267
export function CanResolveFilePaths(): boolean;
247268

248269
// Resolves file paths for an array of files
249-
export function ResolveFilePaths(files: File[]): void
250-
251-
// Notification types
252-
export interface NotificationOptions {
253-
id: string;
254-
title: string;
255-
subtitle?: string; // macOS and Linux only
256-
body?: string;
257-
categoryId?: string;
258-
data?: { [key: string]: any };
259-
}
260-
261-
export interface NotificationAction {
262-
id?: string;
263-
title?: string;
264-
destructive?: boolean; // macOS-specific
265-
}
266-
267-
export interface NotificationCategory {
268-
id?: string;
269-
actions?: NotificationAction[];
270-
hasReplyField?: boolean;
271-
replyPlaceholder?: string;
272-
replyButtonTitle?: string;
273-
}
274-
275-
// [InitializeNotifications](https://wails.io/docs/reference/runtime/notification#initializenotifications)
276-
// Initializes the notification service for the application.
277-
// This must be called before sending any notifications.
278-
export function InitializeNotifications(): Promise<void>;
279-
280-
// [CleanupNotifications](https://wails.io/docs/reference/runtime/notification#cleanupnotifications)
281-
// Cleans up notification resources and releases any held connections.
282-
export function CleanupNotifications(): Promise<void>;
283-
284-
// [IsNotificationAvailable](https://wails.io/docs/reference/runtime/notification#isnotificationavailable)
285-
// Checks if notifications are available on the current platform.
286-
export function IsNotificationAvailable(): Promise<boolean>;
287-
288-
// [RequestNotificationAuthorization](https://wails.io/docs/reference/runtime/notification#requestnotificationauthorization)
289-
// Requests notification authorization from the user (macOS only).
290-
export function RequestNotificationAuthorization(): Promise<boolean>;
291-
292-
// [CheckNotificationAuthorization](https://wails.io/docs/reference/runtime/notification#checknotificationauthorization)
293-
// Checks the current notification authorization status (macOS only).
294-
export function CheckNotificationAuthorization(): Promise<boolean>;
295-
296-
// [SendNotification](https://wails.io/docs/reference/runtime/notification#sendnotification)
297-
// Sends a basic notification with the given options.
298-
export function SendNotification(options: NotificationOptions): Promise<void>;
299-
300-
// [SendNotificationWithActions](https://wails.io/docs/reference/runtime/notification#sendnotificationwithactions)
301-
// Sends a notification with action buttons. Requires a registered category.
302-
export function SendNotificationWithActions(options: NotificationOptions): Promise<void>;
303-
304-
// [RegisterNotificationCategory](https://wails.io/docs/reference/runtime/notification#registernotificationcategory)
305-
// Registers a notification category that can be used with SendNotificationWithActions.
306-
export function RegisterNotificationCategory(category: NotificationCategory): Promise<void>;
307-
308-
// [RemoveNotificationCategory](https://wails.io/docs/reference/runtime/notification#removenotificationcategory)
309-
// Removes a previously registered notification category.
310-
export function RemoveNotificationCategory(categoryId: string): Promise<void>;
311-
312-
// [RemoveAllPendingNotifications](https://wails.io/docs/reference/runtime/notification#removeallpendingnotifications)
313-
// Removes all pending notifications from the notification center.
314-
export function RemoveAllPendingNotifications(): Promise<void>;
315-
316-
// [RemovePendingNotification](https://wails.io/docs/reference/runtime/notification#removependingnotification)
317-
// Removes a specific pending notification by its identifier.
318-
export function RemovePendingNotification(identifier: string): Promise<void>;
319-
320-
// [RemoveAllDeliveredNotifications](https://wails.io/docs/reference/runtime/notification#removealldeliverednotifications)
321-
// Removes all delivered notifications from the notification center.
322-
export function RemoveAllDeliveredNotifications(): Promise<void>;
323-
324-
// [RemoveDeliveredNotification](https://wails.io/docs/reference/runtime/notification#removedeliverednotification)
325-
// Removes a specific delivered notification by its identifier.
326-
export function RemoveDeliveredNotification(identifier: string): Promise<void>;
327-
328-
// [RemoveNotification](https://wails.io/docs/reference/runtime/notification#removenotification)
329-
// Removes a notification by its identifier (cross-platform convenience function).
330-
export function RemoveNotification(identifier: string): Promise<void>;
270+
export function ResolveFilePaths(files: File[]): void;

frontend/wailsjs/runtime/runtime.js

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function EventsOff(eventName, ...additionalEventNames) {
4949
}
5050

5151
export function EventsOffAll() {
52-
return window.runtime.EventsOffAll();
52+
return window.runtime.EventsOffAll();
5353
}
5454

5555
export function EventsOnce(eventName, callback) {
@@ -240,59 +240,3 @@ export function CanResolveFilePaths() {
240240
export function ResolveFilePaths(files) {
241241
return window.runtime.ResolveFilePaths(files);
242242
}
243-
244-
export function InitializeNotifications() {
245-
return window.runtime.InitializeNotifications();
246-
}
247-
248-
export function CleanupNotifications() {
249-
return window.runtime.CleanupNotifications();
250-
}
251-
252-
export function IsNotificationAvailable() {
253-
return window.runtime.IsNotificationAvailable();
254-
}
255-
256-
export function RequestNotificationAuthorization() {
257-
return window.runtime.RequestNotificationAuthorization();
258-
}
259-
260-
export function CheckNotificationAuthorization() {
261-
return window.runtime.CheckNotificationAuthorization();
262-
}
263-
264-
export function SendNotification(options) {
265-
return window.runtime.SendNotification(options);
266-
}
267-
268-
export function SendNotificationWithActions(options) {
269-
return window.runtime.SendNotificationWithActions(options);
270-
}
271-
272-
export function RegisterNotificationCategory(category) {
273-
return window.runtime.RegisterNotificationCategory(category);
274-
}
275-
276-
export function RemoveNotificationCategory(categoryId) {
277-
return window.runtime.RemoveNotificationCategory(categoryId);
278-
}
279-
280-
export function RemoveAllPendingNotifications() {
281-
return window.runtime.RemoveAllPendingNotifications();
282-
}
283-
284-
export function RemovePendingNotification(identifier) {
285-
return window.runtime.RemovePendingNotification(identifier);
286-
}
287-
288-
export function RemoveAllDeliveredNotifications() {
289-
return window.runtime.RemoveAllDeliveredNotifications();
290-
}
291-
292-
export function RemoveDeliveredNotification(identifier) {
293-
return window.runtime.RemoveDeliveredNotification(identifier);
294-
}
295-
296-
export function RemoveNotification(identifier) {
297-
return window.runtime.RemoveNotification(identifier);
298-
}

go.mod

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
module aether
22

3-
go 1.25.0
3+
go 1.23
44

55
require (
6-
github.com/wailsapp/wails/v2 v2.15.0
7-
golang.org/x/image v0.41.0
6+
github.com/wailsapp/wails/v2 v2.11.0
7+
golang.org/x/image v0.23.0
88
)
99

1010
require (
11-
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 // indirect
1211
github.com/bep/debounce v1.2.1 // indirect
1312
github.com/go-ole/go-ole v1.3.0 // indirect
1413
github.com/godbus/dbus/v5 v5.1.0 // indirect
@@ -32,8 +31,8 @@ require (
3231
github.com/valyala/fasttemplate v1.2.2 // indirect
3332
github.com/wailsapp/go-webview2 v1.0.22 // indirect
3433
github.com/wailsapp/mimetype v1.4.1 // indirect
35-
golang.org/x/crypto v0.53.0 // indirect
36-
golang.org/x/net v0.56.0 // indirect
37-
golang.org/x/sys v0.46.0 // indirect
38-
golang.org/x/text v0.39.0 // indirect
34+
golang.org/x/crypto v0.33.0 // indirect
35+
golang.org/x/net v0.35.0 // indirect
36+
golang.org/x/sys v0.30.0 // indirect
37+
golang.org/x/text v0.22.0 // indirect
3938
)

go.sum

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 h1:N3IGoHHp9pb6mj1cbXbuaSXV/UMKwmbKLf53nQmtqMA=
2-
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3/go.mod h1:QtOLZGz8olr4qH2vWK0QH0w0O4T9fEIjMuWpKUsH7nc=
31
github.com/bep/debounce v1.2.1 h1:v67fRdBA9UQu2NhLFXrSg0Brw7CexQekrBwDMM8bzeY=
42
github.com/bep/debounce v1.2.1/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0=
53
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -47,8 +45,8 @@ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
4745
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
4846
github.com/samber/lo v1.49.1 h1:4BIFyVfuQSEpluc7Fua+j1NolZHiEHEpaSEKdsH0tew=
4947
github.com/samber/lo v1.49.1/go.mod h1:dO6KHFzUKXgP8LDhU0oI8d2hekjXnGOu0DB8Jecxd6o=
50-
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
51-
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
48+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
49+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
5250
github.com/tkrajina/go-reflector v0.5.8 h1:yPADHrwmUbMq4RGEyaOUpz2H90sRsETNVpjzo3DLVQQ=
5351
github.com/tkrajina/go-reflector v0.5.8/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4=
5452
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
@@ -59,27 +57,27 @@ github.com/wailsapp/go-webview2 v1.0.22 h1:YT61F5lj+GGaat5OB96Aa3b4QA+mybD0Ggq6N
5957
github.com/wailsapp/go-webview2 v1.0.22/go.mod h1:qJmWAmAmaniuKGZPWwne+uor3AHMB5PFhqiK0Bbj8kc=
6058
github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs=
6159
github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o=
62-
github.com/wailsapp/wails/v2 v2.15.0 h1:u7cHK+UesZOlYxyJxfYLteaCPhws6UsZoDdqUejuX6Q=
63-
github.com/wailsapp/wails/v2 v2.15.0/go.mod h1:scxrgwfsv6yR6fE6cCF+Flfl+JeU+SR87T9x4kILJ6M=
64-
golang.org/x/crypto v0.53.0 h1:QZ4Muo8THX6CizN2vPPd5fBGHyogrdK9fG4wLPFUsto=
65-
golang.org/x/crypto v0.53.0/go.mod h1:DNLU434OwVakk9PzuwV8w62mAJpRJL3vsgcfp4Qnsio=
66-
golang.org/x/image v0.41.0 h1:8wS72eGJMJaBxK6okTzd4WaXumUlTVlb753MlsSvTCo=
67-
golang.org/x/image v0.41.0/go.mod h1:uIc348UZMSvS5Z65CVZ7iDPaNobNFEPeJ4kbqTOszmA=
60+
github.com/wailsapp/wails/v2 v2.11.0 h1:seLacV8pqupq32IjS4Y7V8ucab0WZwtK6VvUVxSBtqQ=
61+
github.com/wailsapp/wails/v2 v2.11.0/go.mod h1:jrf0ZaM6+GBc1wRmXsM8cIvzlg0karYin3erahI4+0k=
62+
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
63+
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
64+
golang.org/x/image v0.23.0 h1:HseQ7c2OpPKTPVzNjG5fwJsOTCiiwS4QdsYi5XU6H68=
65+
golang.org/x/image v0.23.0/go.mod h1:wJJBTdLfCCf3tiHa1fNxpZmUI4mmoZvwMCPP0ddoNKY=
6866
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
69-
golang.org/x/net v0.56.0 h1:Rw8j/hFzGvJUZwNBXnAtf5sVDVt+65SK2C7IxCxZt5o=
70-
golang.org/x/net v0.56.0/go.mod h1:D3Ku6r+V6JROoZK144D2XfMHFcMq/0zSfLelVTCFKec=
67+
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
68+
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
7169
golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7270
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7371
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7472
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7573
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7674
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
77-
golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
78-
golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
75+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
76+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
7977
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
8078
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
81-
golang.org/x/text v0.39.0 h1:UbZz4pLOvn600D6Oh6GGEI6VAmndrEBLv8/6BEXzyus=
82-
golang.org/x/text v0.39.0/go.mod h1:3UwRclnC2g0TU9x8PZiyfOajCd1zaUNHF9cvqcQZ+ZM=
79+
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
80+
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
8381
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
8482
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
8583
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)