summaryrefslogtreecommitdiff
path: root/examples/gtk3/js/simple-bar/app.ts
diff options
context:
space:
mode:
authorAylur <[email protected]>2025-01-16 17:37:00 +0100
committerAylur <[email protected]>2025-01-16 17:37:04 +0100
commit9e8634d892c559c5b44565a68bf35b13cbcb5572 (patch)
tree36a8b911e919959cdf64d3c64646f5066c6a2523 /examples/gtk3/js/simple-bar/app.ts
parentbc796ac226800c43e724e27f53f410c157acaffe (diff)
add: gtk3 ts popover example
closes #224 closes #157
Diffstat (limited to 'examples/gtk3/js/simple-bar/app.ts')
-rw-r--r--examples/gtk3/js/simple-bar/app.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/gtk3/js/simple-bar/app.ts b/examples/gtk3/js/simple-bar/app.ts
new file mode 100644
index 0000000..4b7ea48
--- /dev/null
+++ b/examples/gtk3/js/simple-bar/app.ts
@@ -0,0 +1,13 @@
+import { App } from "astal/gtk3"
+import style from "./style.scss"
+import Bar from "./widget/Bar"
+
+App.start({
+ css: style,
+ instanceName: "js",
+ requestHandler(request, res) {
+ print(request)
+ res("ok")
+ },
+ main: () => App.get_monitors().map(Bar),
+})