From 65b9c44579faef3c1208355b61f26e9e2662641c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=BCller?= Date: Wed, 25 Sep 2024 01:29:15 +0200 Subject: [PATCH] Support additional logos, starting with THW --- app/app.py | 12 +- app/openscad/thing-logos/thw.dxf | 2180 ++++++++++++++++++++++++++++++ app/templates/index.html | 6 + 3 files changed, 2195 insertions(+), 3 deletions(-) create mode 100644 app/openscad/thing-logos/thw.dxf diff --git a/app/app.py b/app/app.py index c548383..05aaa24 100644 --- a/app/app.py +++ b/app/app.py @@ -23,16 +23,21 @@ class Generator: GENERATOR_SCAD_FILE_NAME = "generator.scad" GENERATED_STL_FILE_NAME = "generated.stl" - def __init__(self, name: str, tempdir: Path | str): + def __init__(self, name: str, tempdir: Path | str, logo: str = None): self._name = name self._tempdir = Path(tempdir) + # sanitize input + if "/" in logo: + raise ValueError("invalid logo name") + self._logo = Path(logo).name + def _generate_scad_template(self) -> str: return f""" use $fn=180; // one name tag for 0.5l Club Mate and similar bottles - bottle_clip(name="{self._name}", logo="thing-logos/fablab.dxf"); + bottle_clip(name="{self._name}", logo="thing-logos/{self._logo}.dxf"); """ def _generate_files_in_temp_dir(self): @@ -83,6 +88,7 @@ async def generate(): raise ValueError name = data["name"] + logo = data.get("logo", None) except (TypeError, KeyError, ValueError): abort(400) @@ -90,7 +96,7 @@ async def generate(): async with semaphore: with tempfile.TemporaryDirectory(prefix="fablab-bottle-clip-generator-") as tempdir: - generator = Generator(name, tempdir) + generator = Generator(name, tempdir, logo) generated_stl_file_name = await generator.generate_stl() diff --git a/app/openscad/thing-logos/thw.dxf b/app/openscad/thing-logos/thw.dxf new file mode 100644 index 0000000..ea585bb --- /dev/null +++ b/app/openscad/thing-logos/thw.dxf @@ -0,0 +1,2180 @@ +999 +"DXF R12 Output" (www.mydxf.blogspot.com) + 0 +SECTION + 2 +HEADER + 9 +$ACADVER + 1 +AC1009 + 9 +$EXTMIN + 10 + 0 + 20 + 0 + 9 +$EXTMAX + 10 + 8.5 + 20 + 11 + 0 +ENDSEC + 0 +SECTION + 2 +ENTITIES +0 +LINE +8 +Layer 1 +10 +50.644900 +20 +26.484900 +11 +45.695080 +21 +27.180523 +0 +LINE +8 +Layer 1 +10 +45.695080 +20 +27.180523 +11 +45.293567 +21 +29.033158 +0 +LINE +8 +Layer 1 +10 +45.293567 +20 +29.033158 +11 +44.713515 +21 +30.838123 +0 +LINE +8 +Layer 1 +10 +44.713515 +20 +30.838123 +11 +48.582975 +21 +34.033183 +0 +LINE +8 +Layer 1 +10 +48.582975 +20 +34.033183 +11 +47.540418 +21 +36.065363 +0 +LINE +8 +Layer 1 +10 +47.540418 +20 +36.065363 +11 +46.306995 +21 +37.987923 +0 +LINE +8 +Layer 1 +10 +46.306995 +20 +37.987923 +11 +41.602285 +21 +36.233193 +0 +LINE +8 +Layer 1 +10 +41.602285 +20 +36.233193 +11 +40.320760 +21 +37.645130 +0 +LINE +8 +Layer 1 +10 +40.320760 +20 +37.645130 +11 +38.907605 +21 +38.924243 +0 +LINE +8 +Layer 1 +10 +38.907605 +20 +38.924243 +11 +40.664185 +21 +43.622243 +0 +LINE +8 +Layer 1 +10 +40.664185 +20 +43.622243 +11 +38.739797 +21 +44.855735 +0 +LINE +8 +Layer 1 +10 +38.739797 +20 +44.855735 +11 +36.705655 +21 +45.896533 +0 +LINE +8 +Layer 1 +10 +36.705655 +20 +45.896533 +11 +33.504915 +21 +42.031623 +0 +LINE +8 +Layer 1 +10 +33.504915 +20 +42.031623 +11 +31.697935 +21 +42.610334 +0 +LINE +8 +Layer 1 +10 +31.697935 +20 +42.610334 +11 +29.843735 +21 +43.011562 +0 +LINE +8 +Layer 1 +10 +29.843735 +20 +43.011562 +11 +29.010201 +21 +47.963082 +0 +LINE +8 +Layer 1 +10 +29.010201 +20 +47.963082 +11 +26.724980 +21 +48.066669 +0 +LINE +8 +Layer 1 +10 +26.724980 +20 +48.066669 +11 +24.439751 +21 +47.963082 +0 +LINE +8 +Layer 1 +10 +24.439751 +20 +47.963082 +11 +23.605787 +21 +43.011562 +0 +LINE +8 +Layer 1 +10 +23.605787 +20 +43.011562 +11 +21.751767 +21 +42.609620 +0 +LINE +8 +Layer 1 +10 +21.751767 +20 +42.609620 +11 +19.944607 +21 +42.031623 +0 +LINE +8 +Layer 1 +10 +19.944607 +20 +42.031623 +11 +16.744297 +21 +45.896533 +0 +LINE +8 +Layer 1 +10 +16.744297 +20 +45.896533 +11 +14.710833 +21 +44.855057 +0 +LINE +8 +Layer 1 +10 +14.710833 +20 +44.855057 +11 +12.785767 +21 +43.622243 +0 +LINE +8 +Layer 1 +10 +12.785767 +20 +43.622243 +11 +14.542337 +21 +38.924243 +0 +LINE +8 +Layer 1 +10 +14.542337 +20 +38.924243 +11 +13.132091 +21 +37.648760 +0 +LINE +8 +Layer 1 +10 +13.132091 +20 +37.648760 +11 +11.862717 +21 +36.233193 +0 +LINE +8 +Layer 1 +10 +11.862717 +20 +36.233193 +11 +7.144237 +21 +37.987923 +0 +LINE +8 +Layer 1 +10 +7.144237 +20 +37.987923 +11 +5.909818 +21 +36.065588 +0 +LINE +8 +Layer 1 +10 +5.909818 +20 +36.065588 +11 +4.866537 +21 +34.033183 +0 +LINE +8 +Layer 1 +10 +4.866537 +20 +34.033183 +11 +8.736427 +21 +30.838123 +0 +LINE +8 +Layer 1 +10 +8.736427 +20 +30.838123 +11 +8.157682 +21 +29.033091 +0 +LINE +8 +Layer 1 +10 +8.157682 +20 +29.033091 +11 +7.754432 +21 +27.180523 +0 +LINE +8 +Layer 1 +10 +7.754432 +20 +27.180523 +11 +2.797552 +21 +26.348719 +0 +LINE +8 +Layer 1 +10 +2.797552 +20 +26.348719 +11 +2.700029 +21 +24.067085 +0 +LINE +8 +Layer 1 +10 +2.700029 +20 +24.067085 +11 +2.797552 +21 +21.785459 +0 +LINE +8 +Layer 1 +10 +2.797552 +20 +21.785459 +11 +7.754432 +21 +20.951928 +0 +LINE +8 +Layer 1 +10 +7.754432 +20 +20.951928 +11 +8.156703 +21 +19.099933 +0 +LINE +8 +Layer 1 +10 +8.156703 +20 +19.099933 +11 +8.736427 +21 +17.296058 +0 +LINE +8 +Layer 1 +10 +8.736427 +20 +17.296058 +11 +4.866537 +21 +14.099268 +0 +LINE +8 +Layer 1 +10 +4.866537 +20 +14.099268 +11 +5.909183 +21 +12.067242 +0 +LINE +8 +Layer 1 +10 +5.909183 +20 +12.067242 +11 +7.144237 +21 +10.146688 +0 +LINE +8 +Layer 1 +10 +7.144237 +20 +10.146688 +11 +11.862717 +21 +11.899258 +0 +LINE +8 +Layer 1 +10 +11.862717 +20 +11.899258 +11 +13.132778 +21 +10.484468 +0 +LINE +8 +Layer 1 +10 +13.132778 +20 +10.484468 +11 +14.542337 +21 +9.208638 +0 +LINE +8 +Layer 1 +10 +14.542337 +20 +9.208638 +11 +12.785767 +21 +4.511928 +0 +LINE +8 +Layer 1 +10 +12.785767 +20 +4.511928 +11 +14.710683 +21 +3.278821 +0 +LINE +8 +Layer 1 +10 +14.710683 +20 +3.278821 +11 +16.744297 +21 +2.237648 +0 +LINE +8 +Layer 1 +10 +16.744297 +20 +2.237648 +11 +19.944607 +21 +6.102988 +0 +LINE +8 +Layer 1 +10 +19.944607 +20 +6.102988 +11 +21.750927 +21 +5.520358 +0 +LINE +8 +Layer 1 +10 +21.750927 +20 +5.520358 +11 +23.605787 +21 +5.120889 +0 +LINE +8 +Layer 1 +10 +23.605787 +20 +5.120889 +11 +24.439751 +21 +0.171099 +0 +LINE +8 +Layer 1 +10 +24.439751 +20 +0.171099 +11 +26.724980 +21 +0.066704 +0 +LINE +8 +Layer 1 +10 +26.724980 +20 +0.066704 +11 +29.010201 +21 +0.171099 +0 +LINE +8 +Layer 1 +10 +29.010201 +20 +0.171099 +11 +29.843735 +21 +5.120889 +0 +LINE +8 +Layer 1 +10 +29.843735 +20 +5.120889 +11 +31.698700 +21 +5.519606 +0 +LINE +8 +Layer 1 +10 +31.698700 +20 +5.519606 +11 +33.504915 +21 +6.102988 +0 +LINE +8 +Layer 1 +10 +33.504915 +20 +6.102988 +11 +36.705655 +21 +2.237648 +0 +LINE +8 +Layer 1 +10 +36.705655 +20 +2.237648 +11 +38.739936 +21 +3.278163 +0 +LINE +8 +Layer 1 +10 +38.739936 +20 +3.278163 +11 +40.664185 +21 +4.511928 +0 +LINE +8 +Layer 1 +10 +40.664185 +20 +4.511928 +11 +38.907605 +21 +9.208638 +0 +LINE +8 +Layer 1 +10 +38.907605 +20 +9.208638 +11 +40.320082 +21 +10.488116 +0 +LINE +8 +Layer 1 +10 +40.320082 +20 +10.488116 +11 +41.602285 +21 +11.899258 +0 +LINE +8 +Layer 1 +10 +41.602285 +20 +11.899258 +11 +46.306995 +21 +10.146688 +0 +LINE +8 +Layer 1 +10 +46.306995 +20 +10.146688 +11 +47.541071 +21 +12.067463 +0 +LINE +8 +Layer 1 +10 +47.541071 +20 +12.067463 +11 +48.582975 +21 +14.099268 +0 +LINE +8 +Layer 1 +10 +48.582975 +20 +14.099268 +11 +44.713515 +21 +17.296058 +0 +LINE +8 +Layer 1 +10 +44.713515 +20 +17.296058 +11 +45.294603 +21 +19.099948 +0 +LINE +8 +Layer 1 +10 +45.294603 +20 +19.099948 +11 +45.695080 +21 +20.951928 +0 +LINE +8 +Layer 1 +10 +45.695080 +20 +20.951928 +11 +50.652390 +21 +21.785459 +0 +LINE +8 +Layer 1 +10 +50.652390 +20 +21.785459 +11 +50.644883 +21 +26.484899 +0 +LINE +8 +Layer 1 +10 +50.644883 +20 +26.484899 +11 +50.644900 +21 +26.484900 +0 +LINE +8 +Layer 1 +10 +34.504300 +20 +10.873600 +11 +31.735610 +21 +6.266290 +0 +LINE +8 +Layer 1 +10 +31.735610 +20 +6.266290 +11 +30.024650 +21 +9.105910 +0 +LINE +8 +Layer 1 +10 +30.024650 +20 +9.105910 +11 +28.370428 +21 +8.835525 +0 +LINE +8 +Layer 1 +10 +28.370428 +20 +8.835525 +11 +26.698023 +21 +8.745260 +0 +LINE +8 +Layer 1 +10 +26.698023 +20 +8.745260 +11 +25.025628 +21 +8.835320 +0 +LINE +8 +Layer 1 +10 +25.025628 +20 +8.835320 +11 +23.371440 +21 +9.105910 +0 +LINE +8 +Layer 1 +10 +23.371440 +20 +9.105910 +11 +21.658330 +21 +6.266290 +0 +LINE +8 +Layer 1 +10 +21.658330 +20 +6.266290 +11 +20.244763 +21 +8.633659 +0 +LINE +8 +Layer 1 +10 +20.244763 +20 +8.633659 +11 +18.776000 +21 +10.947200 +0 +LINE +8 +Layer 1 +10 +18.776000 +20 +10.947200 +11 +17.085022 +21 +12.103365 +0 +LINE +8 +Layer 1 +10 +17.085022 +20 +12.103365 +11 +15.579680 +21 +13.483326 +0 +LINE +8 +Layer 1 +10 +15.579680 +20 +13.483326 +11 +14.276748 +21 +15.055144 +0 +LINE +8 +Layer 1 +10 +14.276748 +20 +15.055144 +11 +13.192999 +21 +16.786879 +0 +LINE +8 +Layer 1 +10 +13.192999 +20 +16.786879 +11 +12.345207 +21 +18.646592 +0 +LINE +8 +Layer 1 +10 +12.345207 +20 +18.646592 +11 +11.750146 +21 +20.602342 +0 +LINE +8 +Layer 1 +10 +11.750146 +20 +20.602342 +11 +11.424589 +21 +22.622192 +0 +LINE +8 +Layer 1 +10 +11.424589 +20 +22.622192 +11 +11.385310 +21 +24.674200 +0 +LINE +8 +Layer 1 +10 +11.385310 +20 +24.674200 +11 +11.574940 +21 +26.666784 +0 +LINE +8 +Layer 1 +10 +11.574940 +20 +26.666784 +11 +12.037163 +21 +28.606231 +0 +LINE +8 +Layer 1 +10 +12.037163 +20 +28.606231 +11 +12.753224 +21 +30.464788 +0 +LINE +8 +Layer 1 +10 +12.753224 +20 +30.464788 +11 +13.704373 +21 +32.214703 +0 +LINE +8 +Layer 1 +10 +13.704373 +20 +32.214703 +11 +14.871856 +21 +33.828223 +0 +LINE +8 +Layer 1 +10 +14.871856 +20 +33.828223 +11 +16.236920 +21 +35.277598 +0 +LINE +8 +Layer 1 +10 +16.236920 +20 +35.277598 +11 +17.780812 +21 +36.535074 +0 +LINE +8 +Layer 1 +10 +17.780812 +20 +36.535074 +11 +19.484780 +21 +37.572900 +0 +LINE +8 +Layer 1 +10 +19.484780 +20 +37.572900 +11 +19.484780 +21 +40.975690 +0 +LINE +8 +Layer 1 +10 +19.484780 +20 +40.975690 +11 +33.909180 +21 +40.975690 +0 +LINE +8 +Layer 1 +10 +33.909180 +20 +40.975690 +11 +33.909180 +21 +37.572900 +0 +LINE +8 +Layer 1 +10 +33.909180 +20 +37.572900 +11 +35.626820 +21 +36.528794 +0 +LINE +8 +Layer 1 +10 +35.626820 +20 +36.528794 +11 +37.179203 +21 +35.261122 +0 +LINE +8 +Layer 1 +10 +37.179203 +20 +35.261122 +11 +38.548537 +21 +33.798579 +0 +LINE +8 +Layer 1 +10 +38.548537 +20 +33.798579 +11 +39.717030 +21 +32.169860 +0 +LINE +8 +Layer 1 +10 +39.717030 +20 +32.169860 +11 +40.666891 +21 +30.403658 +0 +LINE +8 +Layer 1 +10 +40.666891 +20 +30.403658 +11 +41.380327 +21 +28.528668 +0 +LINE +8 +Layer 1 +10 +41.380327 +20 +28.528668 +11 +41.839548 +21 +26.573584 +0 +LINE +8 +Layer 1 +10 +41.839548 +20 +26.573584 +11 +42.026760 +21 +24.567100 +0 +LINE +8 +Layer 1 +10 +42.026760 +20 +24.567100 +11 +41.939085 +21 +22.152387 +0 +LINE +8 +Layer 1 +10 +41.939085 +20 +22.152387 +11 +41.552073 +21 +19.959781 +0 +LINE +8 +Layer 1 +10 +41.552073 +20 +19.959781 +11 +40.893587 +21 +17.978661 +0 +LINE +8 +Layer 1 +10 +40.893587 +20 +17.978661 +11 +39.991493 +21 +16.198405 +0 +LINE +8 +Layer 1 +10 +39.991493 +20 +16.198405 +11 +38.873654 +21 +14.608393 +0 +LINE +8 +Layer 1 +10 +38.873654 +20 +14.608393 +11 +37.567934 +21 +13.198002 +0 +LINE +8 +Layer 1 +10 +37.567934 +20 +13.198002 +11 +36.102198 +21 +11.956611 +0 +LINE +8 +Layer 1 +10 +36.102198 +20 +11.956611 +11 +34.504310 +21 +10.873600 +0 +LINE +8 +Layer 1 +10 +34.504310 +20 +10.873600 +11 +34.504300 +21 +10.873600 +0 +LINE +8 +Layer 1 +10 +33.219600 +20 +40.292400 +11 +20.180400 +21 +40.292400 +0 +LINE +8 +Layer 1 +10 +20.180400 +20 +40.292400 +11 +20.180400 +21 +36.859000 +0 +LINE +8 +Layer 1 +10 +20.180400 +20 +36.859000 +11 +23.379400 +21 +36.859000 +0 +LINE +8 +Layer 1 +10 +23.379400 +20 +36.859000 +11 +23.379400 +21 +37.557300 +0 +LINE +8 +Layer 1 +10 +23.379400 +20 +37.557300 +11 +25.092100 +21 +37.557300 +0 +LINE +8 +Layer 1 +10 +25.092100 +20 +37.557300 +11 +25.092100 +21 +31.150400 +0 +LINE +8 +Layer 1 +10 +25.092100 +20 +31.150400 +11 +24.406600 +21 +31.150400 +0 +LINE +8 +Layer 1 +10 +24.406600 +20 +31.150400 +11 +24.406600 +21 +28.400200 +0 +LINE +8 +Layer 1 +10 +24.406600 +20 +28.400200 +11 +28.977100 +21 +28.400200 +0 +LINE +8 +Layer 1 +10 +28.977100 +20 +28.400200 +11 +28.977100 +21 +31.150400 +0 +LINE +8 +Layer 1 +10 +28.977100 +20 +31.150400 +11 +28.292900 +21 +31.150400 +0 +LINE +8 +Layer 1 +10 +28.292900 +20 +31.150400 +11 +28.292900 +21 +37.542200 +0 +LINE +8 +Layer 1 +10 +28.292900 +20 +37.542200 +11 +30.019300 +21 +37.542200 +0 +LINE +8 +Layer 1 +10 +30.019300 +20 +37.542200 +11 +30.019300 +21 +36.859000 +0 +LINE +8 +Layer 1 +10 +30.019300 +20 +36.859000 +11 +33.219600 +21 +36.859000 +0 +LINE +8 +Layer 1 +10 +33.219600 +20 +36.859000 +11 +33.219600 +21 +40.292400 +0 +LINE +8 +Layer 1 +10 +19.607200 +20 +35.030400 +11 +19.607200 +21 +32.280600 +0 +LINE +8 +Layer 1 +10 +19.607200 +20 +32.280600 +11 +20.306500 +21 +32.280600 +0 +LINE +8 +Layer 1 +10 +20.306500 +20 +32.280600 +11 +20.306500 +21 +21.309500 +0 +LINE +8 +Layer 1 +10 +20.306500 +20 +21.309500 +11 +19.607226 +21 +21.325050 +0 +LINE +8 +Layer 1 +10 +19.607226 +20 +21.325050 +11 +19.607200 +21 +18.574900 +0 +LINE +8 +Layer 1 +10 +19.607200 +20 +18.574900 +11 +24.192700 +21 +18.574900 +0 +LINE +8 +Layer 1 +10 +24.192700 +20 +18.574900 +11 +24.192700 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +24.192700 +20 +21.325100 +11 +23.506800 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +23.506800 +20 +21.325100 +11 +23.506800 +21 +24.059800 +0 +LINE +8 +Layer 1 +10 +23.506800 +20 +24.059800 +11 +29.907900 +21 +24.059800 +0 +LINE +8 +Layer 1 +10 +29.907900 +20 +24.059800 +11 +29.907900 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +29.907900 +20 +21.325100 +11 +29.223600 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +29.223600 +20 +21.325100 +11 +29.223600 +21 +18.574900 +0 +LINE +8 +Layer 1 +10 +29.223600 +20 +18.574900 +11 +33.792800 +21 +18.574900 +0 +LINE +8 +Layer 1 +10 +33.792800 +20 +18.574900 +11 +33.792800 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +33.792800 +20 +21.325100 +11 +33.108600 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +33.108600 +20 +21.325100 +11 +33.108600 +21 +32.294000 +0 +LINE +8 +Layer 1 +10 +33.108600 +20 +32.294000 +11 +33.792813 +21 +32.280611 +0 +LINE +8 +Layer 1 +10 +33.792813 +20 +32.280611 +11 +33.792800 +21 +35.030400 +0 +LINE +8 +Layer 1 +10 +33.792800 +20 +35.030400 +11 +29.223600 +21 +35.030400 +0 +LINE +8 +Layer 1 +10 +29.223600 +20 +35.030400 +11 +29.223600 +21 +32.280600 +0 +LINE +8 +Layer 1 +10 +29.223600 +20 +32.280600 +11 +29.907900 +21 +32.280600 +0 +LINE +8 +Layer 1 +10 +29.907900 +20 +32.280600 +11 +29.907900 +21 +26.809500 +0 +LINE +8 +Layer 1 +10 +29.907900 +20 +26.809500 +11 +23.506800 +21 +26.809500 +0 +LINE +8 +Layer 1 +10 +23.506800 +20 +26.809500 +11 +23.506800 +21 +32.280600 +0 +LINE +8 +Layer 1 +10 +23.506800 +20 +32.280600 +11 +24.192700 +21 +32.280600 +0 +LINE +8 +Layer 1 +10 +24.192700 +20 +32.280600 +11 +24.192700 +21 +35.030400 +0 +LINE +8 +Layer 1 +10 +24.192700 +20 +35.030400 +11 +19.607200 +21 +35.030400 +0 +LINE +8 +Layer 1 +10 +26.707800 +20 +15.987000 +11 +31.738690 +21 +7.619300 +0 +LINE +8 +Layer 1 +10 +31.738690 +20 +7.619300 +11 +38.332950 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +38.332950 +20 +18.588700 +11 +39.970300 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +39.970300 +20 +18.588700 +11 +39.970300 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +39.970300 +20 +21.325100 +11 +34.492300 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +34.492300 +20 +21.325100 +11 +34.492300 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +34.492300 +20 +18.588700 +11 +35.132600 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +35.132600 +20 +18.588700 +11 +31.738700 +21 +12.940100 +0 +LINE +8 +Layer 1 +10 +31.738700 +20 +12.940100 +11 +26.692700 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +26.692700 +20 +21.325100 +11 +21.661400 +21 +12.940100 +0 +LINE +8 +Layer 1 +10 +21.661400 +20 +12.940100 +11 +18.282900 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +18.282900 +20 +18.588700 +11 +18.923200 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +18.923200 +20 +18.588700 +11 +18.923200 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +18.923200 +20 +21.325100 +11 +13.429700 +21 +21.325100 +0 +LINE +8 +Layer 1 +10 +13.429700 +20 +21.325100 +11 +13.429700 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +13.429700 +20 +18.588700 +11 +15.082200 +21 +18.588700 +0 +LINE +8 +Layer 1 +10 +15.082200 +20 +18.588700 +11 +21.676460 +21 +7.619300 +0 +LINE +8 +Layer 1 +10 +21.676460 +20 +7.619300 +11 +26.707790 +21 +15.987000 + 0 +ENDSEC + 0 +EOF \ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index 52cf623..37b1034 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -26,6 +26,7 @@ data() { return { name: "", + logo: "fablab", fetching: false, error: false, } @@ -50,6 +51,7 @@ method: "post", body: JSON.stringify({ "name": this.name, + "logo": this.logo, }), headers: { "Content-Type": "application/json", @@ -87,6 +89,10 @@
+