diff --git a/api/.devcontainer/webdav/advent22/config.toml b/api/.devcontainer/webdav/advent22/config.toml new file mode 100644 index 0000000..393cb86 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/config.toml @@ -0,0 +1,27 @@ +calendar = "calendar.toml" +random_seed = "foo_bar" + +[admin] +username = "admin" +password = "42" + +[solution] +value = "ergophobia" + +[site] +title = "Advent22 UI" +subtitle = "Lorem ipsum dolor sit amet" +content = "This supports *markdown* **and** Emoji! 😂" +footer = "Pictures from [Lorem picsum](https://picsum.photos)" + +[puzzle] +skip_empty = true +extra_days = [5] +begin_day = 1 +begin_month = 12 +close_after = 90 + +[image] +size = 1000 +border = 60 + diff --git a/api/.devcontainer/webdav/advent22/files/Gorditas-Bold_50.ttf b/api/.devcontainer/webdav/advent22/files/Gorditas-Bold_50.ttf new file mode 100644 index 0000000..654b790 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/files/Gorditas-Bold_50.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26b8259c2f61ef10dfa2a2fe1d1e113dfb241d6f780ce15878d005f86c1465c5 +size 109800 diff --git a/api/.devcontainer/webdav/advent22/files/OpenSans-ExtraBold_50.ttf b/api/.devcontainer/webdav/advent22/files/OpenSans-ExtraBold_50.ttf new file mode 100644 index 0000000..f37cf6a --- /dev/null +++ b/api/.devcontainer/webdav/advent22/files/OpenSans-ExtraBold_50.ttf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c5a37e45cdeb42a94314e7beb51d8027edca0bc7e2b42f218e34475df974aa3 +size 131244 diff --git a/api/.devcontainer/webdav/advent22/files/calendar.toml b/api/.devcontainer/webdav/advent22/files/calendar.toml new file mode 100644 index 0000000..9cfeea9 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/files/calendar.toml @@ -0,0 +1,15 @@ +background = "things.jpg" +favicon = "flower.jpg" +doors = [ + { day = 1, x1 = 59, y1 = 176, x2 = 219, y2 = 400 }, + { day = 2, x1 = 418, y1 = 414, x2 = 540, y2 = 462 }, + { day = 3, x1 = 640, y1 = 159, x2 = 902, y2 = 338 }, + { day = 4, x1 = 698, y1 = 395, x2 = 888, y2 = 841 }, + { day = 5, x1 = 66, y1 = 484, x2 = 196, y2 = 810 }, + { day = 6, x1 = 284, y1 = 166, x2 = 358, y2 = 454 }, + { day = 7, x1 = 266, y1 = 512, x2 = 360, y2 = 807 }, + { day = 8, x1 = 413, y1 = 183, x2 = 583, y2 = 297 }, + { day = 9, x1 = 550, y1 = 465, x2 = 617, y2 = 785 }, + { day = 10, x1 = 425, y1 = 532, x2 = 469, y2 = 778 }, + { day = 11, x1 = 388, y1 = 358, x2 = 610, y2 = 392 }, +] diff --git a/api/.devcontainer/webdav/advent22/files/flower.jpg b/api/.devcontainer/webdav/advent22/files/flower.jpg new file mode 100644 index 0000000..261a959 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/files/flower.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69a9a84f716ff9ff0cad1b28cd4f41e0f1e1e11794330135c9577e072d65a5dd +size 29742 diff --git a/api/.devcontainer/webdav/advent22/files/things.jpg b/api/.devcontainer/webdav/advent22/files/things.jpg new file mode 100644 index 0000000..cdafb83 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/files/things.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:764eb3d8da629eb89788d735667561a0a72a9dd00355928ecffd0ae5fe552648 +size 1057754 diff --git a/api/.devcontainer/webdav/advent22/images_auto/creek.jpg b/api/.devcontainer/webdav/advent22/images_auto/creek.jpg new file mode 100644 index 0000000..62457f7 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/images_auto/creek.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b43fda31fbe845ebdf2a37d2cc4a98b11e4c84dcfd80b66233f02ba8d006ac28 +size 1552435 diff --git a/api/.devcontainer/webdav/advent22/images_auto/fisher.gif b/api/.devcontainer/webdav/advent22/images_auto/fisher.gif new file mode 100644 index 0000000..2efcb4f Binary files /dev/null and b/api/.devcontainer/webdav/advent22/images_auto/fisher.gif differ diff --git a/api/.devcontainer/webdav/advent22/images_auto/guy.JPG b/api/.devcontainer/webdav/advent22/images_auto/guy.JPG new file mode 100644 index 0000000..511aecc Binary files /dev/null and b/api/.devcontainer/webdav/advent22/images_auto/guy.JPG differ diff --git a/api/.devcontainer/webdav/advent22/images_auto/meadow.jpeg b/api/.devcontainer/webdav/advent22/images_auto/meadow.jpeg new file mode 100644 index 0000000..81303a9 Binary files /dev/null and b/api/.devcontainer/webdav/advent22/images_auto/meadow.jpeg differ diff --git a/api/.devcontainer/webdav/advent22/images_auto/mountains.gif b/api/.devcontainer/webdav/advent22/images_auto/mountains.gif new file mode 100644 index 0000000..baa0283 Binary files /dev/null and b/api/.devcontainer/webdav/advent22/images_auto/mountains.gif differ diff --git a/api/.devcontainer/webdav/advent22/images_auto/path.JPeG b/api/.devcontainer/webdav/advent22/images_auto/path.JPeG new file mode 100644 index 0000000..79104e1 Binary files /dev/null and b/api/.devcontainer/webdav/advent22/images_auto/path.JPeG differ diff --git a/api/.devcontainer/webdav/advent22/images_auto/shore.jpg b/api/.devcontainer/webdav/advent22/images_auto/shore.jpg new file mode 100644 index 0000000..313d8a2 --- /dev/null +++ b/api/.devcontainer/webdav/advent22/images_auto/shore.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c75f72838fe2ab6dcd96f0cb7dd11cf6d2aa540eed1915d266eba19143ef9e15 +size 754647 diff --git a/api/.devcontainer/webdav/advent22/images_auto/tree.GIF b/api/.devcontainer/webdav/advent22/images_auto/tree.GIF new file mode 100644 index 0000000..1eaeded Binary files /dev/null and b/api/.devcontainer/webdav/advent22/images_auto/tree.GIF differ diff --git a/api/.devcontainer/webdav/advent22/images_manual/3.jpg b/api/.devcontainer/webdav/advent22/images_manual/3.jpg new file mode 100644 index 0000000..866b5bd --- /dev/null +++ b/api/.devcontainer/webdav/advent22/images_manual/3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65416352ca6ca52bd5494e97c3022ff39672f646cb199fb4225ad5d3e6f3cfc3 +size 572858 diff --git a/api/.gitignore b/api/.gitignore index d4c7259..8e1824f 100644 --- a/api/.gitignore +++ b/api/.gitignore @@ -1,3 +1,5 @@ +api.*.conf + # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ @@ -151,5 +153,3 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ - -api.conf diff --git a/api/api.conf b/api/api.conf new file mode 100644 index 0000000..46666a1 --- /dev/null +++ b/api/api.conf @@ -0,0 +1,5 @@ +ADVENT22__WEBDAV__PROTOCOL="http" +ADVENT22__WEBDAV__HOST="webdav" +ADVENT22__WEBDAV__PATH="" +ADVENT22__WEBDAV__AUTH__USERNAME="wduser" +ADVENT22__WEBDAV__AUTH__PASSWORD="53cr3t!"