diff --git a/build/darwin/icons.icns b/build/darwin/icons.icns index 93c7299..9aa3170 100644 Binary files a/build/darwin/icons.icns and b/build/darwin/icons.icns differ diff --git a/build/windows/icon.ico b/build/windows/icon.ico index bfa0690..da6ddc7 100644 Binary files a/build/windows/icon.ico and b/build/windows/icon.ico differ diff --git a/frontend/bindings/sfxkeeb/fileservice.ts b/frontend/bindings/sfxkeeb/fileservice.ts index 09c339b..12d6afc 100644 --- a/frontend/bindings/sfxkeeb/fileservice.ts +++ b/frontend/bindings/sfxkeeb/fileservice.ts @@ -8,7 +8,7 @@ // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; +import { Call as $Call, CancellablePromise as $CancellablePromise } from "@wailsio/runtime"; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Unused imports @@ -19,9 +19,7 @@ export function OpenProject(): $CancellablePromise { } export function OpenVideo(): $CancellablePromise<$models.VideoResult> { - return $Call.ByID(392322154).then(($result: any) => { - return $$createType0($result); - }); + return $Call.ByID(392322154); } export function SaveAudio(dataBase64: string, defaultName: string): $CancellablePromise { @@ -31,6 +29,3 @@ export function SaveAudio(dataBase64: string, defaultName: string): $Cancellable export function SaveProject(content: string, defaultName: string): $CancellablePromise { return $Call.ByID(2685219959, content, defaultName); } - -// Private type creation functions -const $$createType0 = $models.VideoResult.createFrom; diff --git a/frontend/bindings/sfxkeeb/index.ts b/frontend/bindings/sfxkeeb/index.ts index 6a55141..bc8cf7d 100644 --- a/frontend/bindings/sfxkeeb/index.ts +++ b/frontend/bindings/sfxkeeb/index.ts @@ -6,6 +6,6 @@ export { FileService }; -export { +export type { VideoResult } from "./models.js"; diff --git a/frontend/bindings/sfxkeeb/models.ts b/frontend/bindings/sfxkeeb/models.ts index 5fac6ab..0bea836 100644 --- a/frontend/bindings/sfxkeeb/models.ts +++ b/frontend/bindings/sfxkeeb/models.ts @@ -1,34 +1,10 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Create as $Create } from "@wailsio/runtime"; - /** * VideoResult is returned when the user opens a video file. */ -export class VideoResult { +export interface VideoResult { "url": string; "name": string; - - /** Creates a new VideoResult instance. */ - constructor($$source: Partial = {}) { - if (!("url" in $$source)) { - this["url"] = ""; - } - if (!("name" in $$source)) { - this["name"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new VideoResult instance from a string or object. - */ - static createFrom($$source: any = {}): VideoResult { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new VideoResult($$parsedSource as Partial); - } } diff --git a/main.go b/main.go index 1412ae4..8672116 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func main() { Name: "sfxkeeb", Description: "Annotate keyboard key presses on a video timeline", Assets: application.AssetOptions{ - Handler: application.AssetFileServerFS(assets), + Handler: application.BundledAssetFileServer(assets), Middleware: func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.Path == localMediaVideoPath && fileService != nil {