diff --git a/main.py b/main.py index 46c29c2..b7c6083 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,9 @@ +import os + class Plugin: + async def whoami(self, *args): + return os.getuid() + # A normal method. It can be called from JavaScript using call_plugin_function("method_1", argument1, argument2) async def method_1(self, *args): pass @@ -9,4 +14,4 @@ class Plugin: # Asyncio-compatible long-running code, executed in a task when the plugin is loaded async def _main(self): - pass \ No newline at end of file + pass diff --git a/main_view.html b/main_view.html index b3a11a8..f418e70 100644 --- a/main_view.html +++ b/main_view.html @@ -4,8 +4,71 @@ + - +

Hello World

+
+
Buttons
+
+
Buttons
+
+
+
Button field
+
+
+
+
+
+
Another button field
+
+
+
+
+
+
+
+ + +
Disabled button field (with icon) +
+
+
+
+
+
+
+
+ +
Describing button field +
+
+
+
Here's some info to help you go about your day, clicking + buttons...
+
+
+
- \ No newline at end of file +