mirror of
https://github.com/aljazceru/twentyone-world.github.io.git
synced 2025-12-19 09:24:19 +01:00
refactor: link -> link_to_public_community_group (#30)
* data: link -> public group * feat(index): link -> public group * Revert "feat(index): link -> public group" This reverts commit 975a534b672250c5165842fff819cbbede1ef568. * fix(index): link -> link to public group
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"latitude": 41,
|
"latitude": 41,
|
||||||
"longitude": 20,
|
"longitude": 20,
|
||||||
"name": "Njëzet e një",
|
"name": "Njëzet e një",
|
||||||
"link": "https://twitter.com/_njezetenje/"
|
"link_to_public_community_group": "https://twitter.com/_njezetenje/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Algeria",
|
"country": "Algeria",
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
"latitude": 47.3333,
|
"latitude": 47.3333,
|
||||||
"longitude": 13.3333,
|
"longitude": 13.3333,
|
||||||
"name": "EINUNDZWANZIG",
|
"name": "EINUNDZWANZIG",
|
||||||
"link": "https://einundzwanzig.space/meetups"
|
"link_to_public_community_group": "https://einundzwanzig.space/meetups"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Azerbaijan",
|
"country": "Azerbaijan",
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
"latitude": 44,
|
"latitude": 44,
|
||||||
"longitude": 18,
|
"longitude": 18,
|
||||||
"name": "Dvadeset Jedan",
|
"name": "Dvadeset Jedan",
|
||||||
"link": "https://twitter.com/dvadesetjedan21/"
|
"link_to_public_community_group": "https://twitter.com/dvadesetjedan21/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Botswana",
|
"country": "Botswana",
|
||||||
@@ -428,7 +428,7 @@
|
|||||||
"latitude": 45.1667,
|
"latitude": 45.1667,
|
||||||
"longitude": 15.5,
|
"longitude": 15.5,
|
||||||
"name": "Dvadeset Jedan",
|
"name": "Dvadeset Jedan",
|
||||||
"link": "https://twitter.com/dvadesetjedan21/"
|
"link_to_public_community_group": "https://twitter.com/dvadesetjedan21/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Cuba",
|
"country": "Cuba",
|
||||||
@@ -510,7 +510,7 @@
|
|||||||
"latitude": 13.8333,
|
"latitude": 13.8333,
|
||||||
"longitude": -88.9167,
|
"longitude": -88.9167,
|
||||||
"name": "VEINTIUNO",
|
"name": "VEINTIUNO",
|
||||||
"link": "https://veintiuno.world"
|
"link_to_public_community_group": "https://veintiuno.world"
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -641,7 +641,7 @@
|
|||||||
"latitude": 51,
|
"latitude": 51,
|
||||||
"longitude": 9,
|
"longitude": 9,
|
||||||
"name": "EINUNDZWANZIG",
|
"name": "EINUNDZWANZIG",
|
||||||
"link": "https://einundzwanzig.space/meetups"
|
"link_to_public_community_group": "https://einundzwanzig.space/meetups"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Ghana",
|
"country": "Ghana",
|
||||||
@@ -859,7 +859,7 @@
|
|||||||
"latitude": 42.8333,
|
"latitude": 42.8333,
|
||||||
"longitude": 12.8333,
|
"longitude": 12.8333,
|
||||||
"name": "Ventuno",
|
"name": "Ventuno",
|
||||||
"link": "https://t.me/ventunobtc"
|
"link_to_public_community_group": "https://t.me/ventunobtc"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Jamaica",
|
"country": "Jamaica",
|
||||||
@@ -1173,7 +1173,7 @@
|
|||||||
"latitude": 42,
|
"latitude": 42,
|
||||||
"longitude": 19,
|
"longitude": 19,
|
||||||
"name": "Dvadeset Jedan",
|
"name": "Dvadeset Jedan",
|
||||||
"link": "https://twitter.com/dvadesetjedan21/"
|
"link_to_public_community_group": "https://twitter.com/dvadesetjedan21/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Montserrat",
|
"country": "Montserrat",
|
||||||
@@ -1407,7 +1407,7 @@
|
|||||||
"latitude": 52,
|
"latitude": 52,
|
||||||
"longitude": 20,
|
"longitude": 20,
|
||||||
"name": "Dwadzieścia Jeden",
|
"name": "Dwadzieścia Jeden",
|
||||||
"link": "https://dwadziesciajeden.pl"
|
"link_to_public_community_group": "https://dwadziesciajeden.pl"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Portugal",
|
"country": "Portugal",
|
||||||
@@ -1417,7 +1417,7 @@
|
|||||||
"latitude": 39.5,
|
"latitude": 39.5,
|
||||||
"longitude": -8,
|
"longitude": -8,
|
||||||
"name": "Vinte e Um",
|
"name": "Vinte e Um",
|
||||||
"link": "https://t.me/vinteeumpt"
|
"link_to_public_community_group": "https://t.me/vinteeumpt"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Puerto Rico",
|
"country": "Puerto Rico",
|
||||||
@@ -1555,7 +1555,7 @@
|
|||||||
"latitude": 44,
|
"latitude": 44,
|
||||||
"longitude": 21,
|
"longitude": 21,
|
||||||
"name": "Dvadeset Jedan",
|
"name": "Dvadeset Jedan",
|
||||||
"link": "https://twitter.com/dvadesetjedan21/"
|
"link_to_public_community_group": "https://twitter.com/dvadesetjedan21/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Seychelles",
|
"country": "Seychelles",
|
||||||
@@ -1693,7 +1693,7 @@
|
|||||||
"latitude": 47,
|
"latitude": 47,
|
||||||
"longitude": 8,
|
"longitude": 8,
|
||||||
"name": "EINUNDZWANZIG",
|
"name": "EINUNDZWANZIG",
|
||||||
"link": "https://einundzwanzig.space/meetups"
|
"link_to_public_community_group": "https://einundzwanzig.space/meetups"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Syrian Arab Republic",
|
"country": "Syrian Arab Republic",
|
||||||
@@ -1791,7 +1791,7 @@
|
|||||||
"latitude": 39,
|
"latitude": 39,
|
||||||
"longitude": 35,
|
"longitude": 35,
|
||||||
"name": "Yirmibir",
|
"name": "Yirmibir",
|
||||||
"link": "https://t.me/YirmibirBitcoin"
|
"link_to_public_community_group": "https://t.me/YirmibirBitcoin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Turkmenistan",
|
"country": "Turkmenistan",
|
||||||
@@ -1857,7 +1857,7 @@
|
|||||||
"latitude": 38,
|
"latitude": 38,
|
||||||
"longitude": -97,
|
"longitude": -97,
|
||||||
"name": "TFTC",
|
"name": "TFTC",
|
||||||
"link": "https://tftc.io/",
|
"link_to_public_community_group": "https://tftc.io/",
|
||||||
"external": true
|
"external": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ title: Twentyone.World
|
|||||||
success: function (countries) {
|
success: function (countries) {
|
||||||
|
|
||||||
var basedCountries = countries.filter(function hasLink(c) {
|
var basedCountries = countries.filter(function hasLink(c) {
|
||||||
var hasLink = c.link ? true : false;
|
var hasLink = c.link_to_public_community_group ? true : false;
|
||||||
return hasLink;
|
return hasLink;
|
||||||
});
|
});
|
||||||
var basedCountryCodes = basedCountries.map(function(c) {
|
var basedCountryCodes = basedCountries.map(function(c) {
|
||||||
@@ -51,7 +51,7 @@ title: Twentyone.World
|
|||||||
}
|
}
|
||||||
function getColor(iso) {
|
function getColor(iso) {
|
||||||
let country = countries.find(c => c.alpha3 == iso);
|
let country = countries.find(c => c.alpha3 == iso);
|
||||||
if (country && country.link) {
|
if (country && country.link_to_public_community_group) {
|
||||||
return country.external ? cWhite : cOrange;
|
return country.external ? cWhite : cOrange;
|
||||||
}
|
}
|
||||||
return cGray;
|
return cGray;
|
||||||
@@ -90,8 +90,8 @@ title: Twentyone.World
|
|||||||
},
|
},
|
||||||
click: function (d, path) {
|
click: function (d, path) {
|
||||||
let country = countries.find(c => c.alpha3 == d.iso);
|
let country = countries.find(c => c.alpha3 == d.iso);
|
||||||
if (country.link) {
|
if (country.link_to_public_community_group) {
|
||||||
window.open(country.link);
|
window.open(country.link_to_public_community_group);
|
||||||
} else {
|
} else {
|
||||||
window.open('/fork');
|
window.open('/fork');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user