Upgrade dependencies, etc. (#55)

* Run prettify

* Upgrade dependencies and switch out some libraries:

* timeago (freshly jquery dependent) -> ReactTimeAgo
* next-ga -> react-ga and custom plumbing

* Move static/ to public/static/

As per https://github.com/zeit/next.js/blob/master/errors/static-dir-deprecated.md

* Fix cons->icons typo

* Import only what's necessary from lodash (223 -> 180 kb)

* Asyncify MembershipInfoForm
This commit is contained in:
Aarni Koskela
2019-10-30 20:05:08 +02:00
committed by Riku Rouvila
parent db98341a51
commit dcf26deb0f
36 changed files with 3376 additions and 585 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

BIN
public/static/icons/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

View File

@@ -0,0 +1 @@
<svg height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="m.5.5h511v511h-511z" fill="#f50" stroke="#979797"/><path d="m416 206.000625c0 60.75125-49.24875 109.999375-110 109.999375-7.0125 0-13.86875-.66375-20.516875-1.918125l-15.0075 16.88375c-2.846519 3.202358-6.926653 5.034529-11.21125 5.034375h-23.264375v25c0 8.284375-6.715625 15-15 15h-25v25c0 8.284375-6.715625 15-15 15h-70c-8.284375 0-15-6.715625-15-15v-48.786875c0-3.978125 1.580625-7.79375 4.393125-10.606875l101.12625-101.12625c-3.576875-10.84625-5.519375-22.435625-5.519375-34.48 0-60.75125 49.248125-109.999375 109.999375-110 60.930625-.000625 110.000625 49.069375 110.000625 110.000625zm-110-30.000625c0 16.56875 13.43125 30 30 30s30-13.43125 30-30-13.43125-30-30-30-30 13.43125-30 30z" fill="#fff" fill-rule="nonzero"/></g></svg>

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1 @@
<svg height="129" viewBox="0 0 143 129" width="143" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="m125 75 12.5 25h-25zm0-50 12.5 25h-25zm-25 50 12.5 25h-25zm12.5-25 12.5 25h-25zm-100 0 12.5 25h-25zm25-50 12.5 25h-25zm-25 0 12.5 25h-25zm12.5 25 12.5 25h-25zm25 50 12.5 25h-25zm12.5-25 12.5 25h-25zm12.5-25 12.5 25h-25zm12.5 25 12.5 25h-25z" fill="#e8dc64"/><path d="m25 75 12.5-25h-25zm25-50 12.5-25h-25zm-25 0 12.5-25h-25zm12.5 25 12.5-25h-25zm-25 0 12.5-25h-25zm50 50 12.5-25h-25zm37.5-25 12.5-25h-25zm12.5 25 12.5-25h-25zm12.5-25 12.5-25h-25zm0-50 12.5-25h-25zm-112.5 75 12.5-25h-25zm75-50 12.5-25h-25z" fill="#fdf06f"/><path d="m25 75 12.5 25h-25zm50 0 12.5 25h-25zm-37.5-25 12.5 25h-25zm12.5-25 12.5 25h-25zm37.5-25 12.5 25h-25zm25 0 12.5 25h-25zm-12.5 25 12.5 25h-25zm-37.5-25 12.5 25h-25zm25 50 12.5 25h-25z" fill="#ba152b"/><path d="m100 25 12.5-25h-25zm-62.5 75 12.5-25h-25zm12.5-25 12.5-25h-25zm25-50 12.5-25h-25zm12.5 75 12.5-25h-25zm25-50 12.5-25h-25zm-37.5 25 12.5-25h-25zm-12.5-25 12.5-25h-25z" fill="#d31b33"/><path d="m21.78 104.67c1.76 0 3.218.186 4.373.56 1.156.374 2.074.902 2.756 1.584.68.682 1.16 1.485 1.434 2.41.276.923.413 1.946.413 3.068 0 1.54-.324 2.915-.974 4.125s-1.765 2.123-3.35 2.74l4.82 8.843h-5.644l-4.324-8.085h-3.828v8.085h-5.214v-23.33h9.537zm-4.322 11.12h3.762c.858 0 1.562-.077 2.112-.23.55-.155.99-.38 1.32-.678.33-.297.56-.66.693-1.09.132-.428.198-.917.198-1.467 0-.528-.066-1.006-.198-1.436s-.363-.787-.693-1.073-.77-.506-1.32-.66-1.254-.23-2.112-.23h-3.762v6.863zm17.457 12.21v-23.33h16.565v4.29h-11.35v5.114h9.833v4.323h-9.833v5.28h11.35v4.323h-16.564zm26.532-2.41c0 .793-.225 1.453-.677 1.98-.45.53-1.193.793-2.227.793s-1.77-.258-2.21-.775c-.44-.518-.66-1.183-.66-1.997 0-.77.22-1.412.66-1.93.44-.517 1.176-.775 2.21-.775s1.776.258 2.227.775c.452.518.677 1.16.677 1.93zm0-11.714c0 .792-.225 1.452-.677 1.98-.45.528-1.193.792-2.227.792s-1.77-.253-2.21-.76c-.44-.505-.66-1.176-.66-2.012 0-.77.22-1.413.66-1.93.44-.518 1.176-.776 2.21-.776s1.776.258 2.227.775c.452.518.677 1.16.677 1.93zm4.52-9.207h8.482c2.22 0 4.07.3 5.543.906 1.474.606 2.65 1.436 3.53 2.492s1.508 2.293 1.882 3.713.56 2.954.56 4.604c0 1.606-.19 3.113-.577 4.52-.385 1.41-1.022 2.64-1.913 3.697-.892 1.057-2.074 1.887-3.548 2.493-1.474.605-3.3.907-5.478.907h-8.482v-23.33zm9.24 19.007c.99 0 1.838-.18 2.542-.545.703-.363 1.275-.874 1.715-1.534s.764-1.435.974-2.326c.208-.892.312-1.865.312-2.92 0-1.057-.1-2.036-.297-2.938-.198-.902-.517-1.683-.957-2.343s-1.017-1.176-1.733-1.55c-.715-.374-1.59-.56-2.623-.56h-3.96v14.717h4.026zm24.685 4.686c-1.804 0-3.388-.286-4.752-.858s-2.508-1.375-3.432-2.41c-.924-1.033-1.622-2.28-2.096-3.745-.473-1.463-.71-3.096-.71-4.9 0-1.848.243-3.52.727-5.016.483-1.496 1.198-2.772 2.144-3.828s2.117-1.87 3.514-2.442c1.398-.572 2.998-.858 4.802-.858s3.393.28 4.77.84c1.374.563 2.528 1.365 3.463 2.41.936 1.046 1.645 2.3 2.13 3.763.483 1.462.725 3.095.725 4.9 0 1.803-.242 3.453-.726 4.95-.484 1.495-1.204 2.776-2.162 3.843-.957 1.068-2.133 1.892-3.53 2.475-1.398.584-3.02.875-4.868.875zm.198-4.29c1.848 0 3.29-.65 4.323-1.947 1.034-1.298 1.55-3.245 1.55-5.84 0-2.553-.51-4.472-1.533-5.76-1.024-1.287-2.47-1.93-4.34-1.93-1.914 0-3.388.654-4.422 1.963-1.034 1.31-1.55 3.228-1.55 5.758 0 2.574.527 4.51 1.583 5.808 1.057 1.298 2.52 1.947 4.39 1.947zm21.846-19.404 5.445 13.265 5.446-13.266h5.907l1.815 23.33h-5.249l-1.055-13.464-.033-2.442-5.016 11.748h-3.63l-4.983-11.715-.066 2.376-1.023 13.5h-5.28l1.815-23.33h5.906z" fill="#222"/></g></svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

View File

@@ -0,0 +1 @@
<svg height="206" viewBox="0 0 960 206" width="960" xmlns="http://www.w3.org/2000/svg"><g fill="#349c4a" fill-rule="evenodd"><path d="m635.7 65.9h37.4v136.4h-37.4zm-437.3 0v73.7c0 18.1-8.3 28.7-24.9 28.7s-24.9-10.6-24.9-28.7v-73.7h-37.8v83.1c0 35.1 26.1 55.9 63.1 55.9s63.1-20.9 63.1-55.9v-83.1zm262.7 0v73.7c0 18.1-8.3 28.7-24.9 28.7s-24.9-10.6-24.9-28.7v-73.7h-37.8v83.1c0 35.1 26.1 55.9 63.1 55.9s63.1-20.8 63.1-55.9v-83.1z"/><circle cx="653.8" cy="23.8" r="23.8"/><path d="m522.3 65.9v136.4h37.4v-102.8h52.2v-33.6zm396.5 93.8c-6.8 7.6-16.3 12.5-27.2 12.5h-.4c-19.7 0-31.7-9.8-36.3-24.9h105.1v-13.7c0-39.3-28.7-70.7-70.3-70.7-39.3 0-71.1 31.7-71.1 71.1s29.5 71.1 71.8 71.1h.8c21.9 0 39.3-8.3 51.4-20.8zm-28.7-63.9c15.9 0 27.6 7.2 32.5 21.5h-66.1c5.6-12.8 17.7-21.5 33.6-21.5zm-102.8 63.9c-6.4 6-14.7 9.8-24.2 9.8h-.8c-19.3-.4-34-15.9-34-35.5 0-19.3 14.7-35.1 34-35.5h.8c10.2 0 18.9 4.5 25.3 11.3l25.7-25.7c-12.5-13.2-30.2-21.2-51.4-21.2h-.4c-38.9.4-69.9 31.7-69.9 70.7s31 70.7 69.9 70.7h.4c20 0 37.4-7.6 49.9-19.7zm-490.2-93.8v-51h-37.4v127.8c0 44.6 14.4 59.3 57.4 59.3h32.1v-34.8h-26.8c-23.1 0-25.7-3.4-25.7-24.6v-43h52.5v-33.6c0-.1-52.1-.1-52.1-.1zm-259.7-9c0-12.9 7.9-20.4 18.5-20.4 6.8 0 12.1 3.8 14.7 7.9l22.7-22.7c-11.7-16.3-27.2-21.5-42.3-21.5-27.6 0-50.3 24.2-51 56.3v145.9h37.4v-104h48.4v-32.5h-48.4z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1 @@
<svg height="306" viewBox="0 0 789 306" width="789" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><clipPath id="a"><path d="m0 0h789v306h-789z"/></clipPath><path d="m0 0h789v306h-789z" fill="#ef4a8d"/><g fill="#fff"><path clip-path="url(#a)" clip-rule="evenodd" d="m338.2 153.174c0-35.93-22.308-57.872-60.155-57.872-38.03 0-60.153 21.94-60.153 57.872s22.122 57.874 60.153 57.874c37.847 0 60.154-21.942 60.154-57.874m-20.114 0c0 33.23-19.014 41.52-40.04 41.52-21.21 0-40.225-8.29-40.225-41.52 0-33.07 19.2-41.52 40.225-41.52 21.027 0 40.04 8.45 40.04 41.52" fill-rule="evenodd"/><path clip-path="url(#a)" clip-rule="evenodd" d="m462.438 208.874v-98.366c0-12.954-9.273-12.903-19.36-12.903 0 51.327-.02 111.27-.02 111.27h19.38zm112.366-9.492c-3.07 7.115-6.05 8.8-13.717 9.076h-9.834l48.27-111.295h25.6l48.086 111.295-9.023-.03c-8.885.006-12.202-2.037-15.41-9.046l-36.087-87.18h-2.013l-35.873 87.18z" fill-rule="evenodd"/><path clip-path="url(#a)" d="m371.765 195.36h46.394c13.388 0 11.947 13.514 11.947 13.514l-58.342-.013-19.38.014v-111.295c10.087 0 19.38-.038 19.38 12.916v84.864z"/><path clip-path="url(#a)" clip-rule="evenodd" d="m207.712 175.412c0-25.2-28.054-27.605-49.092-33.223-9.967-2.73-20.486-6.42-20.486-17.174 0-13.48 15.302-16.1 28.59-16.1 5.375 0 11.845 1.294 17.835 2.157 10.497 2.4 13.74-11.17 13.74-11.17-4.206-1.932-17.718-5.217-30.637-5.217-27.5 0-48.17 9.63-48.17 31.293 0 26.8 26.023 29.53 48.54 35.31 9.965 2.566 20.3 6.096 20.3 16.686 0 11.97-11.82 17.05-27.274 17.05-10.19 0-17.11-.746-27.104-4.403-11.754-4.296-18.284 10.15-18.284 10.15 9.998 6.24 25.114 10.106 41.135 10.106 41.567-.002 50.905-21.345 50.905-35.468" fill-rule="evenodd"/><path clip-path="url(#a)" d="m509.315 111.095h-22.065c-13.393 0-11.953-13.515-11.953-13.515l34.02.012 19.38-.012h34.003s1.437 13.515-11.95 13.515h-22.067l.012 97.78h-19.395z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1 @@
<svg enable-background="new 0 0 1165.46 128" viewBox="0 0 1165.46 128" xmlns="http://www.w3.org/2000/svg"><g fill="#231f20"><path d="m498.93 125.55h35.34l-60-79.64 51.53-43.7h-19.83l-76.38 64.76v-64.76h-28.19v123.34h28.19v-41.76l23.12-19.6z"/><path d="m224.52 2.21-48.89 94.02-48.03-94.02h-31.33l15.98 31.29-32.76 62.99-48.16-94.28h-31.33l63 123.34h15.22l40.88-78.63 40.17 78.63h14.95l64.13-123.34z"/><path d="m592.97 114.07v-47.48h71.52v-11.48h-71.52v-41.42h78.91l9-11.48h-116.09v123.34h116.09l-9-11.48z"/><path d="m1079.54 114.07v-47.48h71.53v-11.48h-71.53v-41.42h85.92v-11.48h-114.1v123.34h114.1v-11.48z"/><path d="m342.23 125.55h31.33l-63-123.33h-17.05l-64.13 123.33h13.83l12.83-24.67h73.59zm-80.21-36.15 31.15-59.91 30.6 59.91z"/><path d="m995.75 2.21v84.56l-80.9-84.56h-33.77v123.34h12.62v-104.33l99.82 104.33h14.85v-123.34z"/><path d="m847.65 61.69c-1.15-43.74-34.53-61.69-75.57-61.69h-.01c-41.76 0-75.62 18.57-75.62 64s33.86 64 75.62 64h.01c40.64 0 73.79-17.6 75.54-60.43.05-1.16.08-2.34.08-3.57 0-.8-.02-1.57-.05-2.31m-75.57 55.09c-29.19 0-44.84-8.8-44.84-52.78s15.66-52.79 44.84-52.79c29.19 0 44.84 8.8 44.84 52.79s-15.66 52.78-44.84 52.78"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.