Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/classes/WebviewEngine.ts>default

Advanced Web Composition for Future
Latest
class default
extends Utils
import { default } from "https://deno.land/x/ogone@revb3/src/classes/WebviewEngine.ts";

this class should creates all the files that are needed for editors

Static Properties

private
clients: Map<string, Function>

all clients that are subscribed to the WebviewEngine reactions

application: string
applicationFileURL

application file should be updated by Ogone

componentTextFileURL

component file should be updated by the Editor

portFileURL

port file should be updated by Ogone

subDistFolderURL: string
optional
watcher: ReturnType<Deno.watchFs>

Static Methods

will update the application file which will contain the script for the webview

remove(uuid: string): boolean

removes the client from the registry

subscribe(uuid?: string, client: Function)

save the function into the client

will update the application file which will contain the script for the webview

will update the port file under the .ogone folder in the workspace

watch the componentTextFile that need to be updated by the extension