-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83c5ff0
commit 03725e7
Showing
8 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
{ | ||
"name": "@webview/webview", | ||
"version": "0.8.0", | ||
"exports": "./mod.ts", | ||
"lock": false, | ||
"tasks": { | ||
"check": "deno check --unstable mod.ts", | ||
"fmt": "deno fmt --unstable", | ||
"fmt:check": "deno fmt --unstable --check", | ||
"lint": "deno lint --unstable", | ||
"test:doc": "deno test -A --unstable --doc", | ||
"build": "deno run -A --unstable script/build.ts", | ||
"run": "deno task build && export PLUGIN_URL=\"./build/\" && deno run -A --unstable", | ||
"run:fast": "export PLUGIN_URL=\"./build/\" && deno run -A --unstable" | ||
"check": "deno check mod.ts", | ||
"fmt": "deno fmt", | ||
"fmt:check": "deno fmt --check", | ||
"lint": "deno lint", | ||
"test:doc": "deno test -A --unstable-ffi --doc", | ||
"build": "deno run -A script/build.ts", | ||
"run": "deno task build && export PLUGIN_URL=\"./build/\" && deno run -A --unstable-ffi", | ||
"run:fast": "export PLUGIN_URL=\"./build/\" && deno run -A --unstable-ffi" | ||
}, | ||
"unstable": ["ffi"], | ||
"fmt": { | ||
"files": { | ||
"exclude": [ | ||
"webview/" | ||
] | ||
} | ||
} | ||
"exclude": ["webview/"] | ||
}, | ||
"imports": { "@denosaurs/plug": "jsr:@denosaurs/plug@^1.0.5" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
/** | ||
* Webview is a tiny cross-platform library to make web-based GUIs for desktop | ||
* applications. | ||
* | ||
* @example | ||
* ``` | ||
* import { Webview } from "@webview/webview"; | ||
* | ||
* const html = ` | ||
* <html> | ||
* <body> | ||
* <h1>Hello from deno v${Deno.version.deno}</h1> | ||
* </body> | ||
* </html> | ||
* `; | ||
* | ||
* const webview = new Webview(); | ||
* | ||
* webview.navigate(`data:text/html,${encodeURIComponent(html)}`); | ||
* webview.run(); | ||
* ``` | ||
* | ||
* @module | ||
*/ | ||
|
||
export * from "./src/webview.ts"; | ||
export { preload, unload } from "./src/ffi.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule webview
updated
22 files
+69 −255 | .clang-tidy | |
+107 −12 | .github/workflows/ci.yaml | |
+49 −36 | CHANGELOG.md | |
+2,658 −0 | Doxyfile | |
+48 −0 | MIGRATION.md | |
+147 −78 | README.md | |
+6 −2 | examples/basic.c | |
+15 −7 | examples/basic.cc | |
+0 −12 | examples/basic.go | |
+163 −27 | examples/bind.c | |
+72 −23 | examples/bind.cc | |
+0 −35 | examples/bind.go | |
+0 −3 | go.mod | |
+226 −137 | script/build.bat | |
+304 −43 | script/build.sh | |
+0 −315 | webview.go | |
+3,428 −675 | webview.h | |
+25 −0 | webview.i | |
+0 −32 | webview_go_glue.c | |
+24 −0 | webview_mingw_support.h | |
+424 −26 | webview_test.cc | |
+0 −50 | webview_test.go |