From 2625b66c2977833a1b06436988a213beb1c9d606 Mon Sep 17 00:00:00 2001 From: tree Date: Thu, 9 Nov 2023 21:05:26 +0100 Subject: [PATCH] optionals --- README.md | 14 +++++++------- README.tpl.eta | 2 +- events/events.yaml | 7 +++++++ schema.yaml | 2 ++ 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 595a47b..808df63 100644 --- a/README.md +++ b/README.md @@ -36,19 +36,19 @@ research and community of [Web3Privacy Now](https://web3privacy.info). | summit | `s1` | **2023-06-05** | 🇨🇿 Prague | 16 | [PBW](https://prgblockweek.com/)+[ETHPrague](https://ethprague.com/) | Tree | [web](https://prague.web3privacy.info/), [git](https://github.com/web3privacy/w3ps1) | | meetup | `rom1` | **2023-10-05** | 🇮🇹 Rome | 10 | [ETHRome](https://ethrome.org/) | PG | [web](https://lu.ma/web3privacynow_rome) | | meetup | `prg1` | **2023-11-14** | 🇨🇿 Prague | 5 | [DCxPrague](https://dcxprague.org/) | Tree | [web](https://lu.ma/w3pm-prg1) | -| meetup | `bcn1` | 2024/Q1 | 🇪🇸 Barcelona | 3 | | Tree | | -| meetup | `itxx` | 2024/Q1 | 🇮🇹 Italy (TBD) | 3 | | PG | | -| meetup | `lib1` | 2024/Mar | 🇨🇿 Liberec | 3 | [ETHBohemia](https://ethbohemia.ethevents.club/) | Tree | | +| meetup | `bcn1`* | 2024/Q1 | 🇪🇸 Barcelona | 3 | | Tree | | +| meetup | `itxx`* | 2024/Q1 | 🇮🇹 Italy (TBD) | 3 | | PG | | +| meetup | `lib1`* | 2024/Mar | 🇨🇿 Liberec | 3 | [ETHBohemia](https://ethbohemia.ethevents.club/) | Tree | | | meetup | `ams1` | 2024/Apr | 🇳🇱 Amsterdam | 3 | [ETHDam 2024](https://www.ethdam.com/) | - | | -| meetup | `tal1` | 2024/Apr | 🇪🇪 Tallinn | 3 | [ETHTallinn](https://www.ethtallinn.org/) | - | | -| meetup | `por1` | 2024/May | 🇵🇹 Porto | 3 | [ETHPorto](https://ethporto.org/) | - | | +| meetup | `tal1`* | 2024/Apr | 🇪🇪 Tallinn | 3 | [ETHTallinn](https://www.ethtallinn.org/) | - | | +| meetup | `por1`* | 2024/May | 🇵🇹 Porto | 3 | [ETHPorto](https://ethporto.org/) | - | | | meetup | `ber1` | 2024/May | 🇩🇪 Berlin | 3 | ETHBerlin 4 | Tree | | | summit | `s2` | 2024/Jun | 🇨🇿 Prague | 16 | ETHPrague 2024 | Tree | | | hackathon | `h1` | 2024/Jun | 🇸🇮 Bled | 10 | | Tree | | | meetup | `lju1` | 2024/Jun | 🇸🇮 Ljubljana | 5 | W3PN Hackathon | Tree | | -| meetup | `bcn2` | 2024/Jul | 🇪🇸 Barcelona | 3 | ETHBarcelona (?) | - | | +| meetup | `bcn2`* | 2024/Jul | 🇪🇸 Barcelona | 3 | ETHBarcelona (?) | - | | | meetup | `bru1` | 2024/Jul | 🇧🇪 Brussels | 3 | [EthCC 7](https://www.ethcc.io/) | Mykola | | -| meetup | `waw1` | 2024/Sep | 🇵🇱 Warsaw | 3 | ETHWarsaw (?) | Tree | | +| meetup | `waw1`* | 2024/Sep | 🇵🇱 Warsaw | 3 | ETHWarsaw (?) | Tree | | | meetup | `rom2` | 2024/Oct | 🇮🇹 Rome | 5 | ETHRome 2024 | PG | | | summit | `s3` | 2024/Nov | 🇨🇿 Brno | 16 | ETHBrno 2024 | Tree | | | meetup | `dc1` | 2024/Q4 | 🏴‍☠️ SE Asia | 5 | [Devcon 7](https://devcon.org/) | - | | diff --git a/README.tpl.eta b/README.tpl.eta index a9203bd..248915a 100644 --- a/README.tpl.eta +++ b/README.tpl.eta @@ -27,7 +27,7 @@ research and community of [Web3Privacy Now](https://web3privacy.info). | type | # id | date | location | 🎰 | coincidence | dri | links | | --- | --- | --- | --- | --- | --- | --- | --- | <% it.events.forEach(function(event, i){ %> -| <%= event.type %> | `<%= event.id.replace("w3pm-", "").replace(/^w3p/, '') %>` | <%= event.date.match(/^\d{4}-\d{2}-\d{2}$/) ? `**${event.date}**` : event.date %> | <%= it.getFlagEmoji(event.country) %> <%= event.city %> | <%= event.slots || '-' %> | <%= event.coincidence %> | <%= event.lead || "-" %> | <%= (event.links && Object.keys(event.links).map(k => `[${k}](${event.links[k]})`).join(", ")) || "" %> | +| <%= event.type %> | `<%= event.id.replace("w3pm-", "").replace(/^w3p/, '') %>`<% if (event.optional) { %>*<% } %> | <%= event.date.match(/^\d{4}-\d{2}-\d{2}$/) ? `**${event.date}**` : event.date %> | <%= it.getFlagEmoji(event.country) %> <%= event.city %> | <%= event.slots || '-' %> | <%= event.coincidence %> | <%= event.lead || "-" %> | <%= (event.links && Object.keys(event.links).map(k => `[${k}](${event.links[k]})`).join(", ")) || "" %> | <% }) %> [Source file](./events/events.yaml) diff --git a/events/events.yaml b/events/events.yaml index 4f2c11c..a051f11 100644 --- a/events/events.yaml +++ b/events/events.yaml @@ -41,6 +41,7 @@ country: es coincidence: "" lead: Tree + optional: true slots: 3 - id: w3pm-itxx @@ -50,6 +51,7 @@ country: it coincidence: "" lead: PG + optional: true slots: 3 - id: w3pm-lib1 @@ -59,6 +61,7 @@ country: cz coincidence: "[ETHBohemia](https://ethbohemia.ethevents.club/)" lead: Tree + optional: true slots: 3 - id: w3pm-ams1 @@ -78,6 +81,7 @@ # ETHTallinn - April 19 - 21, 2024 coincidence: "[ETHTallinn](https://www.ethtallinn.org/)" slots: 3 + optional: true - id: w3pm-por1 type: meetup @@ -86,6 +90,7 @@ country: pt coincidence: "[ETHPorto](https://ethporto.org/)" slots: 3 + optional: true - id: w3pm-ber1 type: meetup @@ -132,6 +137,7 @@ country: es coincidence: "ETHBarcelona (?)" slots: 3 + optional: true - id: w3pm-bru1 type: meetup @@ -151,6 +157,7 @@ coincidence: "ETHWarsaw (?)" lead: Tree slots: 3 + optional: true - id: w3pm-rom2 type: meetup diff --git a/schema.yaml b/schema.yaml index 6ec391b..7625511 100644 --- a/schema.yaml +++ b/schema.yaml @@ -34,6 +34,8 @@ $defs: type: number visitors: type: number + optional: + type: boolean links: type: object additionalProperties: false