From 99e6ec8090e30712561731152155f5ba9aa048e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 21 Jan 2021 11:00:13 +0100 Subject: [PATCH] add sample custom download to configjs.py --- server/src/uds/web/util/configjs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/src/uds/web/util/configjs.py b/server/src/uds/web/util/configjs.py index 9247741e..0ca9fe90 100644 --- a/server/src/uds/web/util/configjs.py +++ b/server/src/uds/web/util/configjs.py @@ -184,6 +184,15 @@ def udsJs(request: 'HttpRequest') -> str: ) ] + # We can add here custom downloads with something like this: + # plugins.append({ + # 'url': 'http://www.google.com/coche.exe', + # 'description': 'Cliente SPICE for download', # Text that appears on download + # 'name': 'Linux', # Can be 'Linux', 'Windows', o 'MacOS'. Sets the icon. + # 'legacy': False # True = Gray, False = White + #}) + + actors: typing.List[typing.Dict[str, str]] = [] if user and user.isStaff(): # Add staff things