first commit
Build and deploy / build-and-push (push) Successful in 17s
Build and deploy / deploy (push) Successful in 10s

This commit is contained in:
william
2026-08-21 16:23:49 +02:00
committed by william
commit 3f4ebc4527
248 changed files with 10180 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
"""Constructeurs de réglages ("controls") pour les widgets."""
+2
View File
@@ -0,0 +1,2 @@
def c_align(key, label, target, default="left", group=None):
return {"key": key, "label": label, "type": "align", "target": target, "default": default, "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_checkbox(key, label, target, true_value="1", false_value="", default=False, group=None):
return {"key": key, "label": label, "type": "checkbox", "target": target, "true_value": true_value, "false_value": false_value, "default": default, "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_color(key, label, target, default="#e8eaf0", group=None):
return {"key": key, "label": label, "type": "color", "target": target, "default": default, "group": group}
+3
View File
@@ -0,0 +1,3 @@
def c_preset(key, label, options, default=None, group=None):
"""options: liste de (clé, libellé, {propriété_css: valeur, ...})."""
return {"key": key, "label": label, "type": "preset", "options": options, "default": default or options[0][0], "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_scale(key="scale", label="Échelle", group="Disposition"):
return {"key": key, "label": label, "type": "scale", "min": 0.1, "max": 3, "step": 0.05, "default": 1, "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_select(key, label, target, options, default=None, group=None):
return {"key": key, "label": label, "type": "select", "target": target, "options": options, "default": default or options[0][0], "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_slider(key, label, target, unit="px", min=0, max=100, step=1, default=16, group=None):
return {"key": key, "label": label, "type": "slider", "target": target, "unit": unit, "min": min, "max": max, "step": step, "default": default, "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_text(key, label, target, placeholder="", default="", group=None):
return {"key": key, "label": label, "type": "text", "target": target, "placeholder": placeholder, "default": default, "group": group}
+2
View File
@@ -0,0 +1,2 @@
def c_textarea(key, label, target, placeholder="", default="", group=None):
return {"key": key, "label": label, "type": "textarea", "target": target, "placeholder": placeholder, "default": default, "group": group}
@@ -0,0 +1,2 @@
def c_toggle_token(key, label, target, token, group=None):
return {"key": key, "label": label, "type": "toggle_token", "target": target, "token": token, "group": group}
+3
View File
@@ -0,0 +1,3 @@
def c_url(key, label, target, placeholder="https://...", default="", allow_upload=False, upload_accept="*/*", group=None):
return {"key": key, "label": label, "type": "url", "target": target, "placeholder": placeholder, "default": default,
"allow_upload": allow_upload, "upload_accept": upload_accept, "group": group}