Spaces:
Sleeping
Sleeping
Commit ·
80014f2
1
Parent(s): 45df88a
Commit
Browse files- button_toggle.py +7 -1
- date_picker.py +7 -1
- date_range_picker.py +7 -1
- requirements.txt +1 -1
- screenshot.ts +1 -1
button_toggle.py
CHANGED
|
@@ -14,7 +14,13 @@ def load(e: me.LoadEvent):
|
|
| 14 |
me.set_theme_mode("system")
|
| 15 |
|
| 16 |
|
| 17 |
-
@me.page(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
def app():
|
| 19 |
state = me.state(State)
|
| 20 |
|
|
|
|
| 14 |
me.set_theme_mode("system")
|
| 15 |
|
| 16 |
|
| 17 |
+
@me.page(
|
| 18 |
+
on_load=load,
|
| 19 |
+
security_policy=me.SecurityPolicy(
|
| 20 |
+
allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
|
| 21 |
+
),
|
| 22 |
+
path="/button_toggle",
|
| 23 |
+
)
|
| 24 |
def app():
|
| 25 |
state = me.state(State)
|
| 26 |
|
date_picker.py
CHANGED
|
@@ -13,7 +13,13 @@ def on_load(e: me.LoadEvent):
|
|
| 13 |
me.set_theme_mode("system")
|
| 14 |
|
| 15 |
|
| 16 |
-
@me.page(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
def app():
|
| 18 |
state = me.state(State)
|
| 19 |
with me.box(
|
|
|
|
| 13 |
me.set_theme_mode("system")
|
| 14 |
|
| 15 |
|
| 16 |
+
@me.page(
|
| 17 |
+
path="/date_picker",
|
| 18 |
+
security_policy=me.SecurityPolicy(
|
| 19 |
+
allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
|
| 20 |
+
),
|
| 21 |
+
on_load=on_load,
|
| 22 |
+
)
|
| 23 |
def app():
|
| 24 |
state = me.state(State)
|
| 25 |
with me.box(
|
date_range_picker.py
CHANGED
|
@@ -18,7 +18,13 @@ def on_load(e: me.LoadEvent):
|
|
| 18 |
me.set_theme_mode("system")
|
| 19 |
|
| 20 |
|
| 21 |
-
@me.page(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
def app():
|
| 23 |
state = me.state(State)
|
| 24 |
with me.box(
|
|
|
|
| 18 |
me.set_theme_mode("system")
|
| 19 |
|
| 20 |
|
| 21 |
+
@me.page(
|
| 22 |
+
path="/date_range_picker",
|
| 23 |
+
security_policy=me.SecurityPolicy(
|
| 24 |
+
allowed_iframe_parents=["https://google.github.io", "https://huggingface.co"]
|
| 25 |
+
),
|
| 26 |
+
on_load=on_load,
|
| 27 |
+
)
|
| 28 |
def app():
|
| 29 |
state = me.state(State)
|
| 30 |
with me.box(
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
mesop>=0.
|
| 2 |
Flask==3.0.0
|
| 3 |
gunicorn==22.0.0
|
| 4 |
Werkzeug==3.0.6
|
|
|
|
| 1 |
+
mesop>=0.10.0
|
| 2 |
Flask==3.0.0
|
| 3 |
gunicorn==22.0.0
|
| 4 |
Werkzeug==3.0.6
|
screenshot.ts
CHANGED
|
@@ -11,7 +11,7 @@ const pythonDemoFiles = fs
|
|
| 11 |
console.log(pythonDemoFiles);
|
| 12 |
|
| 13 |
// Remove the skip if you want to re-generate the screenshots.
|
| 14 |
-
test('screenshot each demo', async ({page}) => {
|
| 15 |
// This will take a while.
|
| 16 |
test.setTimeout(0);
|
| 17 |
|
|
|
|
| 11 |
console.log(pythonDemoFiles);
|
| 12 |
|
| 13 |
// Remove the skip if you want to re-generate the screenshots.
|
| 14 |
+
test.skip('screenshot each demo', async ({page}) => {
|
| 15 |
// This will take a while.
|
| 16 |
test.setTimeout(0);
|
| 17 |
|