Update
This commit is contained in:
parent
033f4f2a9b
commit
22cace06fd
|
@ -7,7 +7,7 @@ export let communes = [
|
|||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["Denmark",""],[55.915625218626275, 9.673445220831253]],
|
||||
location: [["Denmark"],[55.915625218626275, 9.673445220831253]],
|
||||
status: "forming",
|
||||
members: 1,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
|
@ -19,7 +19,7 @@ export let communes = [
|
|||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["Latvia",""],[56.934159375258055, 25.269099001330265]],
|
||||
location: [["Latvia"],[56.934159375258055, 25.269099001330265]],
|
||||
status: "forming",
|
||||
members: 1,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
|
@ -50,8 +50,8 @@ export function addMarkersCommunes(map,content) {
|
|||
}
|
||||
else if (field=="location") {
|
||||
let location = g[field][0]
|
||||
let town = location[1]=="" ? "" : ", " + content[location[1]]
|
||||
text += fieldText + content[location[0]] + town + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else if (field=="status") {
|
||||
|
|
|
@ -56,8 +56,8 @@ export function addMarkersCoops(map,content) {
|
|||
}
|
||||
else if (field=="location") {
|
||||
let location = g[field][0]
|
||||
let town = location[1]=="" ? "" : ", " + content[location[1]]
|
||||
text += fieldText + content[location[0]] + town + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else if (field=="market" || field=="status" || field=="description") {
|
||||
|
|
|
@ -30,7 +30,7 @@ export let groups = [
|
|||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["Ireland",""], [53.280192832733576, -7.688103518964818]],
|
||||
location: [["Ireland"], [53.280192832733576, -7.688103518964818]],
|
||||
members: 6,
|
||||
contact: ["https://discord.gg/4BUau4AZre","DiscordInviteLink"]
|
||||
},
|
||||
|
@ -39,6 +39,11 @@ export let groups = [
|
|||
members: 2,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["USA","Florida"], [26.945024427155868, -81.22162645059898]],
|
||||
members: 2,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
}
|
||||
]
|
||||
|
||||
export let groupsByCountry = {}
|
||||
|
@ -68,8 +73,8 @@ function addMarkersToLayer(g,layer,content) {
|
|||
}
|
||||
else if (field=="location") {
|
||||
let location = g[field][0]
|
||||
let town = location[1]=="" ? "" : ", " + content[location[1]]
|
||||
text += fieldText + content[location[0]] + town + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else {
|
||||
|
@ -99,7 +104,7 @@ export function addMarkersGroups(map,content) {
|
|||
addMarkersToLayer(g,groupsMarkersLayerOut,content)
|
||||
}
|
||||
else {
|
||||
let locationName = [gs[0].location[0][0],""]
|
||||
let locationName = [gs[0].location[0][0]]
|
||||
let locationCoordinates = [0,0]
|
||||
let members = 0
|
||||
let contact = gs[0].contact
|
||||
|
|
|
@ -41,7 +41,8 @@ export function addMarkersParties(map,content) {
|
|||
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
||||
}
|
||||
else if (field=="location") {
|
||||
text += fieldText + content[g[field][0]] + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else if (field=="description") {
|
||||
|
|
|
@ -2,7 +2,7 @@ export let partners = [
|
|||
{
|
||||
name: "Gaia's Fall",
|
||||
type: "typeGaiasFall",
|
||||
location: [["Online",""],[0,0]],
|
||||
location: [["Online"],[0,0]],
|
||||
link: "https://discord.libsoc.org/invite/",
|
||||
description: "descriptionGaiasFall",
|
||||
logo: "gaias_fall"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"map-prompt": "Want to appear on our map? Contact us!",
|
||||
"Online": "Online",
|
||||
"Denmark": "Denmark",
|
||||
"Estonia": "Estonia",
|
||||
|
@ -8,11 +9,13 @@
|
|||
"Germany": "Germany",
|
||||
"Copenhagen": "Copenhagen",
|
||||
"Ireland": "Ireland",
|
||||
"USA": "USA",
|
||||
"Montreal": "Montreal",
|
||||
"Kolding": "Kolding",
|
||||
"KohtlaJarve": "Kohtla-Järve",
|
||||
"Athens": "Athens",
|
||||
"Riga": "Riga",
|
||||
"Halifax": "Halifax",
|
||||
"Wiesbaden": "Wiesbaden"
|
||||
"Wiesbaden": "Wiesbaden",
|
||||
"Florida": "Florida"
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"map-prompt": "Хочешь оказаться на нашей карте? Напиши нам!",
|
||||
"Online": "Онлайн",
|
||||
"Denmark": "Дания",
|
||||
"Estonia": "Эстония",
|
||||
|
@ -7,6 +8,7 @@
|
|||
"Canada": "Канада",
|
||||
"Ireland": "Ирландия",
|
||||
"Germany": "Германия",
|
||||
"USA": "CША",
|
||||
"Copenhagen": "Копенгаген",
|
||||
"Kolding": "Колдинг",
|
||||
"KohtlaJarve": "Кохтла-Ярве",
|
||||
|
@ -14,5 +16,6 @@
|
|||
"Riga": "Рига",
|
||||
"Halifax": "Галифакс",
|
||||
"Montreal": "Монреаль",
|
||||
"Wiesbaden": "Висбаден"
|
||||
"Wiesbaden": "Висбаден",
|
||||
"Florida": "Флорида"
|
||||
}
|
|
@ -34,15 +34,16 @@
|
|||
<div id="text-container">
|
||||
<h1>{$content.communes}</h1>
|
||||
<img id="commune-img" src="/img/common/commune.svg" alt="commune">
|
||||
<p>{$content.p1}</p>
|
||||
<p class="description">{$content.p1}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackCommunes(createMap,$content,locale)}></map-component>
|
||||
<p id="add-prompt">{$content["map-prompt"]}</p>
|
||||
{#each Object.entries(communesByCountry) as [name,communes]}
|
||||
<h4 class="country-name">{$content[name]}</h4>
|
||||
<div class="country-block">
|
||||
{#each communes as commune}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{$content[commune.location[0][0]] + (commune.location[0][1]=="" ? "" : ", " + $content[commune.location[0][1]])}</p>
|
||||
<p><b>{$content.location}: </b>{commune.location[0].map(x => $content[x]).join(", ")}</p>
|
||||
<p><b>{$content.status}: </b>{$content[commune.status]}</p>
|
||||
<p><b>{$content.members}: </b>{commune.members}</p>
|
||||
<p><b>{$content.contact}: </b><a href={commune.contact[0]} target=;_blank; rel=noreferrer>{$content[commune.contact[1]]}</a></p>
|
||||
|
@ -58,6 +59,14 @@
|
|||
<style>
|
||||
@import '/css/common.css';
|
||||
|
||||
.description {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#add-prompt {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#commune-img {
|
||||
position: absolute;
|
||||
width: 11.5rem;
|
||||
|
@ -96,7 +105,7 @@
|
|||
#map {
|
||||
--height: 30rem;
|
||||
--width: 100%;
|
||||
--margin-bottom: 3rem;
|
||||
--margin-bottom: 0,5rem;
|
||||
}
|
||||
|
||||
#text-container {
|
||||
|
@ -111,6 +120,7 @@
|
|||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
|
@ -121,10 +131,6 @@
|
|||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
#container>div>p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#container p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
|
|
@ -33,9 +33,10 @@
|
|||
<div id="text-container">
|
||||
<h1>{$content.cooperatives}</h1>
|
||||
<img id="coops-img" src="/img/common/coops.svg" alt="coops">
|
||||
<p>{$content.p1}</p>
|
||||
<p class="description">{$content.p1}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackCoops(createMap,$content,locale)}></map-component>
|
||||
<p id="add-prompt">{$content["map-prompt"]}</p>
|
||||
{#each Object.entries(coopsByCountry) as [name,coops]}
|
||||
<h4 class="country-name">{$content[name]}</h4>
|
||||
<div class="country-block">
|
||||
|
@ -44,7 +45,7 @@
|
|||
<div class="img-general-info">
|
||||
<div>
|
||||
<p><b>{$content.name}: </b>{coop.name}</p>
|
||||
<p><b>{$content.location}: </b>{$content[coop.location[0][0]] + (coop.location[0][1]=="" ? "" : ", " + $content[coop.location[0][1]])}</p>
|
||||
<p><b>{$content.location}: </b>{coop.location[0].map(x => $content[x]).join(", ")}</p>
|
||||
<p><b>{$content.market}: </b>{$content[coop.market]}</p>
|
||||
<p><b>{$content.workers}: </b>{coop.workers}</p>
|
||||
<p><b>{$content.status}: </b>{$content[coop.status]}</p>
|
||||
|
@ -70,6 +71,14 @@
|
|||
<style>
|
||||
@import '/css/common.css';
|
||||
|
||||
.description {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#add-prompt {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#coops-img {
|
||||
position: absolute;
|
||||
width: 10.5rem;
|
||||
|
@ -127,7 +136,7 @@
|
|||
#map {
|
||||
--height: 30rem;
|
||||
--width: 100%;
|
||||
--margin-bottom: 3rem;
|
||||
--margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
#text-container {
|
||||
|
@ -142,6 +151,7 @@
|
|||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
|
@ -152,10 +162,6 @@
|
|||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
#container>div>p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#container p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
|
|
@ -34,15 +34,16 @@
|
|||
<div id="text-container">
|
||||
<h1>{$content.groups}</h1>
|
||||
<img id="groups-img" src="/img/common/groups.svg" alt="groups">
|
||||
<p>{$content.p1}</p>
|
||||
<p class="description">{$content.p1}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackGroups(createMap,$content)}></map-component>
|
||||
<p id="add-prompt">{$content["map-prompt"]}</p>
|
||||
{#each Object.entries(groupsByCountry) as [name,groups]}
|
||||
<h4 class="country-name">{$content[name]}</h4>
|
||||
<div class="country-block">
|
||||
{#each groups as group}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{$content[group.location[0][0]] + (group.location[0][1]=="" ? "" : ", " + $content[group.location[0][1]])}</p>
|
||||
<p><b>{$content.location}: </b>{group.location[0].map(x => $content[x]).join(", ")}</p>
|
||||
<p><b>{$content.members}: </b>{group.members}</p>
|
||||
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{$content[group.contact[1]]}</a></p>
|
||||
</div>
|
||||
|
@ -57,6 +58,14 @@
|
|||
<style>
|
||||
@import '/css/common.css';
|
||||
|
||||
.description {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#add-prompt {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#groups-img {
|
||||
position: absolute;
|
||||
width: 14rem;
|
||||
|
@ -119,10 +128,6 @@
|
|||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
#container>div>p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#container p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
|
|
@ -34,9 +34,10 @@
|
|||
<div id="text-container">
|
||||
<h1>{$content.parties}</h1>
|
||||
<img id="party-img" src="/img/common/parties.svg" alt="party">
|
||||
<p>{$content.p1}</p>
|
||||
<p class="description">{$content.p1}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackParties(createMap,$content)}></map-component>
|
||||
<p id="add-prompt">{$content["map-prompt"]}</p>
|
||||
{#each Object.entries(partiesByCountry) as [name,parties]}
|
||||
<h4 class="country-name">{$content[name]}</h4>
|
||||
<div class="country-block">
|
||||
|
@ -67,6 +68,14 @@
|
|||
<style>
|
||||
@import '/css/common.css';
|
||||
|
||||
.description {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#add-prompt {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
#party-img {
|
||||
position: absolute;
|
||||
width: 11.5rem;
|
||||
|
@ -129,7 +138,7 @@
|
|||
#map {
|
||||
--height: 30rem;
|
||||
--width: 100%;
|
||||
--margin-bottom: 3rem;
|
||||
--margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
#text-container {
|
||||
|
@ -154,10 +163,6 @@
|
|||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
#container>div>p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
#container p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ export let communes = [
|
|||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["Denmark",""],[55.915625218626275, 9.673445220831253]],
|
||||
location: [["Denmark"],[55.915625218626275, 9.673445220831253]],
|
||||
status: "forming",
|
||||
members: 1,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
|
@ -19,7 +19,7 @@ export let communes = [
|
|||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["Latvia",""],[56.934159375258055, 25.269099001330265]],
|
||||
location: [["Latvia"],[56.934159375258055, 25.269099001330265]],
|
||||
status: "forming",
|
||||
members: 1,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
|
@ -50,8 +50,8 @@ export function addMarkersCommunes(map,content) {
|
|||
}
|
||||
else if (field=="location") {
|
||||
let location = g[field][0]
|
||||
let town = location[1]=="" ? "" : ", " + content[location[1]]
|
||||
text += fieldText + content[location[0]] + town + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else if (field=="status") {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{S as t,i as o,a as n,b as e,s as r,e as i,n as a,d as s,c,o as m,f as l,t as p,g,h as u,j as h,k as d,l as f,m as b,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{addMarkersGroups as v,groupsByCountry as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function k(t,o,n){const e=t.slice();return e[6]=o[n][0],e[7]=o[n][1],e}function z(t,o,n){const e=t.slice();return e[10]=o[n],e}function D(t){let o,n,r,i,a,c,m,j,v,y,z,D,E,O,R,T,A,C=t[1].groups+"",H=t[1].p1+"",L=t[1].subheading1+"",M=Object.entries(w),S=[];for(let o=0;o<M.length;o+=1)S[o]=N(k(t,M,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),i=p(C),a=g(),c=l("img"),j=g(),v=l("p"),y=p(H),z=g(),D=l("h3"),E=p(L),O=g(),R=l("map-component"),A=g();for(let t=0;t<S.length;t+=1)S[t].c();u(c,"id","groups-img"),h(c.src,m="/img/common/groups.svg")||u(c,"src","/img/common/groups.svg"),u(c,"alt","groups"),d(R,"id","map"),d(R,"callback",T=t[5]),u(n,"id","text-container"),u(o,"id","container")},m(t,s){e(t,o,s),f(o,n),f(n,r),f(r,i),f(n,a),f(n,c),f(n,j),f(n,v),f(v,y),f(n,z),f(n,D),f(D,E),f(n,O),f(n,R),f(n,A);for(let t=0;t<S.length;t+=1)S[t].m(n,null)},p(t,o){if(2&o&&C!==(C=t[1].groups+"")&&b(i,C),2&o&&H!==(H=t[1].p1+"")&&b(y,H),2&o&&L!==(L=t[1].subheading1+"")&&b(E,L),2&o&&T!==(T=t[5])&&d(R,"callback",T),2&o){let e;for(M=Object.entries(w),e=0;e<M.length;e+=1){const r=k(t,M,e);S[e]?S[e].p(r,o):(S[e]=N(r),S[e].c(),S[e].m(n,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=M.length}},d(t){t&&s(o),x(S,t)}}}function E(t){let o,n,r,i,a,c,m,h,d,x,j,v,w,y,k,z,D,E,N,O=t[1].location+"",R=t[1][t[10].location[0][0]]+(""==t[10].location[0][1]?"":", "+t[1][t[10].location[0][1]]),T=t[1].members+"",A=t[10].members+"",C=t[1].contact+"",H=t[1][t[10].contact[1]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),i=p(O),a=p(": "),c=p(R),m=g(),h=l("p"),d=l("b"),x=p(T),j=p(": "),v=p(A),w=g(),y=l("p"),k=l("b"),z=p(C),D=p(": "),E=l("a"),N=p(H),u(E,"href",t[10].contact[0]),u(E,"target",";_blank;"),u(E,"rel","noreferrer"),u(o,"class","location-info")},m(t,s){e(t,o,s),f(o,n),f(n,r),f(r,i),f(r,a),f(n,c),f(o,m),f(o,h),f(h,d),f(d,x),f(d,j),f(h,v),f(o,w),f(o,y),f(y,k),f(k,z),f(k,D),f(y,E),f(E,N)},p(t,o){2&o&&O!==(O=t[1].location+"")&&b(i,O),2&o&&R!==(R=t[1][t[10].location[0][0]]+(""==t[10].location[0][1]?"":", "+t[1][t[10].location[0][1]]))&&b(c,R),2&o&&T!==(T=t[1].members+"")&&b(x,T),2&o&&C!==(C=t[1].contact+"")&&b(z,C),2&o&&H!==(H=t[1][t[10].contact[1]]+"")&&b(N,H)},d(t){t&&s(o)}}}function N(t){let o,n,r,i,a,c=t[1][t[6]]+"",m=t[7],h=[];for(let o=0;o<m.length;o+=1)h[o]=E(z(t,m,o));return{c(){o=l("h4"),n=p(c),r=g(),i=l("div");for(let t=0;t<h.length;t+=1)h[t].c();a=g(),u(o,"class","country-name"),u(i,"class","country-block")},m(t,s){e(t,o,s),f(o,n),e(t,r,s),e(t,i,s);for(let t=0;t<h.length;t+=1)h[t].m(i,null);f(i,a)},p(t,o){if(2&o&&c!==(c=t[1][t[6]]+"")&&b(n,c),2&o){let n;for(m=t[7],n=0;n<m.length;n+=1){const e=z(t,m,n);h[n]?h[n].p(e,o):(h[n]=E(e),h[n].c(),h[n].m(i,a))}for(;n<h.length;n+=1)h[n].d(1);h.length=m.length}},d(t){t&&s(o),t&&s(r),t&&s(i),x(h,t)}}}function O(t){let o,n=2==t[0]&&D(t);return{c(){n&&n.c(),o=i()},m(t,r){n&&n.m(t,r),e(t,o,r)},p(t,e){2==t[0]?n?n.p(t,e):(n=D(t),n.c(),n.m(o.parentNode,o)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&s(o)}}}function R(t){let o,n=t[0],c=O(t);return{c(){c.c(),o=i(),this.c=a},m(t,n){c.m(t,n),e(t,o,n)},p(t,[e]){1&e&&r(n,n=t[0])?(c.d(1),c=O(t),c.c(),c.m(o.parentNode,o)):c.p(t,e)},i:a,o:a,d(t){t&&s(o),c.d(t)}}}function T(t,o,n){let e,r,i=j(0);c(t,i,(t=>n(0,e=t)));let a=j({});function s(t,o){let n=t([22,0],2);v(n,o)}c(t,a,(t=>n(1,r=t))),y(a,"groups-component",i),y(a,"countries",i),m((()=>{}));return[e,r,i,a,s,t=>s(t,r)]}class A extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}.country-name{margin-bottom:0.5rem}.country-block{margin-bottom:2rem}.location-info{margin-bottom:0.75rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",o(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},T,R,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",A);export{A as default};
|
||||
import{S as t,i as o,a as n,b as e,s as r,e as a,n as i,d as m,c as s,o as c,f as l,t as p,g,h as u,j as d,k as h,l as f,m as b,p as j}from"./index-4348483d.js";import{w as x}from"./index-71440b21.js";import{addMarkersGroups as v,groupsByCountry as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function k(t,o,n){const e=t.slice();return e[7]=o[n][0],e[8]=o[n][1],e}function z(t,o,n){const e=t.slice();return e[11]=o[n],e}function D(t){let o,n,r,a,i,s,c,x,v,y,z,D,E,O,R,T,A,C,H,L,M=t[1].groups+"",S=t[1].p1+"",_=t[1].subheading1+"",q=t[1]["map-prompt"]+"",B=Object.entries(w),F=[];for(let o=0;o<B.length;o+=1)F[o]=N(k(t,B,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),a=p(M),i=g(),s=l("img"),x=g(),v=l("p"),y=p(S),z=g(),D=l("h3"),E=p(_),O=g(),R=l("map-component"),A=g(),C=l("p"),H=p(q),L=g();for(let t=0;t<F.length;t+=1)F[t].c();u(s,"id","groups-img"),d(s.src,c="/img/common/groups.svg")||u(s,"src","/img/common/groups.svg"),u(s,"alt","groups"),u(v,"class","description"),h(R,"id","map"),h(R,"callback",T=t[5]),u(C,"id","add-prompt"),u(n,"id","text-container"),u(o,"id","container")},m(t,m){e(t,o,m),f(o,n),f(n,r),f(r,a),f(n,i),f(n,s),f(n,x),f(n,v),f(v,y),f(n,z),f(n,D),f(D,E),f(n,O),f(n,R),f(n,A),f(n,C),f(C,H),f(n,L);for(let t=0;t<F.length;t+=1)F[t].m(n,null)},p(t,o){if(2&o&&M!==(M=t[1].groups+"")&&b(a,M),2&o&&S!==(S=t[1].p1+"")&&b(y,S),2&o&&_!==(_=t[1].subheading1+"")&&b(E,_),2&o&&T!==(T=t[5])&&h(R,"callback",T),2&o&&q!==(q=t[1]["map-prompt"]+"")&&b(H,q),2&o){let e;for(B=Object.entries(w),e=0;e<B.length;e+=1){const r=k(t,B,e);F[e]?F[e].p(r,o):(F[e]=N(r),F[e].c(),F[e].m(n,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=B.length}},d(t){t&&m(o),j(F,t)}}}function E(t){let o,n,r,a,i,s,c,d,h,j,x,v,w,y,k,z,D,E,N,O=t[1].location+"",R=t[11].location[0].map(t[6]).join(", ")+"",T=t[1].members+"",A=t[11].members+"",C=t[1].contact+"",H=t[1][t[11].contact[1]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),a=p(O),i=p(": "),s=p(R),c=g(),d=l("p"),h=l("b"),j=p(T),x=p(": "),v=p(A),w=g(),y=l("p"),k=l("b"),z=p(C),D=p(": "),E=l("a"),N=p(H),u(E,"href",t[11].contact[0]),u(E,"target",";_blank;"),u(E,"rel","noreferrer"),u(o,"class","location-info")},m(t,m){e(t,o,m),f(o,n),f(n,r),f(r,a),f(r,i),f(n,s),f(o,c),f(o,d),f(d,h),f(h,j),f(h,x),f(d,v),f(o,w),f(o,y),f(y,k),f(k,z),f(k,D),f(y,E),f(E,N)},p(t,o){2&o&&O!==(O=t[1].location+"")&&b(a,O),2&o&&R!==(R=t[11].location[0].map(t[6]).join(", ")+"")&&b(s,R),2&o&&T!==(T=t[1].members+"")&&b(j,T),2&o&&C!==(C=t[1].contact+"")&&b(z,C),2&o&&H!==(H=t[1][t[11].contact[1]]+"")&&b(N,H)},d(t){t&&m(o)}}}function N(t){let o,n,r,a,i,s=t[1][t[7]]+"",c=t[8],d=[];for(let o=0;o<c.length;o+=1)d[o]=E(z(t,c,o));return{c(){o=l("h4"),n=p(s),r=g(),a=l("div");for(let t=0;t<d.length;t+=1)d[t].c();i=g(),u(o,"class","country-name"),u(a,"class","country-block")},m(t,m){e(t,o,m),f(o,n),e(t,r,m),e(t,a,m);for(let t=0;t<d.length;t+=1)d[t].m(a,null);f(a,i)},p(t,o){if(2&o&&s!==(s=t[1][t[7]]+"")&&b(n,s),2&o){let n;for(c=t[8],n=0;n<c.length;n+=1){const e=z(t,c,n);d[n]?d[n].p(e,o):(d[n]=E(e),d[n].c(),d[n].m(a,i))}for(;n<d.length;n+=1)d[n].d(1);d.length=c.length}},d(t){t&&m(o),t&&m(r),t&&m(a),j(d,t)}}}function O(t){let o,n=2==t[0]&&D(t);return{c(){n&&n.c(),o=a()},m(t,r){n&&n.m(t,r),e(t,o,r)},p(t,e){2==t[0]?n?n.p(t,e):(n=D(t),n.c(),n.m(o.parentNode,o)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&m(o)}}}function R(t){let o,n=t[0],s=O(t);return{c(){s.c(),o=a(),this.c=i},m(t,n){s.m(t,n),e(t,o,n)},p(t,[e]){1&e&&r(n,n=t[0])?(s.d(1),s=O(t),s.c(),s.m(o.parentNode,o)):s.p(t,e)},i:i,o:i,d(t){t&&m(o),s.d(t)}}}function T(t,o,n){let e,r,a=x(0);s(t,a,(t=>n(0,e=t)));let i=x({});function m(t,o){let n=t([22,0],2);v(n,o)}s(t,i,(t=>n(1,r=t))),y(i,"groups-component",a),y(i,"countries",a),c((()=>{}));return[e,r,a,i,m,t=>m(t,r),t=>r[t]]}class A extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.description{margin-bottom:1rem}#add-prompt{margin-bottom:2rem}#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}.country-name{margin-bottom:0.5rem}.country-block{margin-bottom:2rem}.location-info{margin-bottom:0.75rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container p{text-align:justify}</style>",o(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},T,R,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",A);export{A as default};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -56,8 +56,8 @@ export function addMarkersCoops(map,content) {
|
|||
}
|
||||
else if (field=="location") {
|
||||
let location = g[field][0]
|
||||
let town = location[1]=="" ? "" : ", " + content[location[1]]
|
||||
text += fieldText + content[location[0]] + town + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else if (field=="market" || field=="status" || field=="description") {
|
||||
|
|
|
@ -30,7 +30,7 @@ export let groups = [
|
|||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["Ireland",""], [53.280192832733576, -7.688103518964818]],
|
||||
location: [["Ireland"], [53.280192832733576, -7.688103518964818]],
|
||||
members: 6,
|
||||
contact: ["https://discord.gg/4BUau4AZre","DiscordInviteLink"]
|
||||
},
|
||||
|
@ -39,6 +39,11 @@ export let groups = [
|
|||
members: 2,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: [["USA","Florida"], [26.945024427155868, -81.22162645059898]],
|
||||
members: 2,
|
||||
contact: ["https://discord.gg/Qk8KUk787z","DiscordInviteLink"]
|
||||
}
|
||||
]
|
||||
|
||||
export let groupsByCountry = {}
|
||||
|
@ -68,8 +73,8 @@ function addMarkersToLayer(g,layer,content) {
|
|||
}
|
||||
else if (field=="location") {
|
||||
let location = g[field][0]
|
||||
let town = location[1]=="" ? "" : ", " + content[location[1]]
|
||||
text += fieldText + content[location[0]] + town + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else {
|
||||
|
@ -99,7 +104,7 @@ export function addMarkersGroups(map,content) {
|
|||
addMarkersToLayer(g,groupsMarkersLayerOut,content)
|
||||
}
|
||||
else {
|
||||
let locationName = [gs[0].location[0][0],""]
|
||||
let locationName = [gs[0].location[0][0]]
|
||||
let locationCoordinates = [0,0]
|
||||
let members = 0
|
||||
let contact = gs[0].contact
|
||||
|
|
|
@ -41,7 +41,8 @@ export function addMarkersParties(map,content) {
|
|||
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
||||
}
|
||||
else if (field=="location") {
|
||||
text += fieldText + content[g[field][0]] + "<br>"
|
||||
let locationString = location.map(x => content[x]).join(", ")
|
||||
text += fieldText + locationString + "<br>"
|
||||
coordinates = g[field][1]
|
||||
}
|
||||
else if (field=="description") {
|
||||
|
|
|
@ -2,7 +2,7 @@ export let partners = [
|
|||
{
|
||||
name: "Gaia's Fall",
|
||||
type: "typeGaiasFall",
|
||||
location: [["Online",""],[0,0]],
|
||||
location: [["Online"],[0,0]],
|
||||
link: "https://discord.libsoc.org/invite/",
|
||||
description: "descriptionGaiasFall",
|
||||
logo: "gaias_fall"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"map-prompt": "Want to appear on our map? Contact us!",
|
||||
"Online": "Online",
|
||||
"Denmark": "Denmark",
|
||||
"Estonia": "Estonia",
|
||||
|
@ -8,11 +9,13 @@
|
|||
"Germany": "Germany",
|
||||
"Copenhagen": "Copenhagen",
|
||||
"Ireland": "Ireland",
|
||||
"USA": "USA",
|
||||
"Montreal": "Montreal",
|
||||
"Kolding": "Kolding",
|
||||
"KohtlaJarve": "Kohtla-Järve",
|
||||
"Athens": "Athens",
|
||||
"Riga": "Riga",
|
||||
"Halifax": "Halifax",
|
||||
"Wiesbaden": "Wiesbaden"
|
||||
"Wiesbaden": "Wiesbaden",
|
||||
"Florida": "Florida"
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"map-prompt": "Хочешь оказаться на нашей карте? Напиши нам!",
|
||||
"Online": "Онлайн",
|
||||
"Denmark": "Дания",
|
||||
"Estonia": "Эстония",
|
||||
|
@ -7,6 +8,7 @@
|
|||
"Canada": "Канада",
|
||||
"Ireland": "Ирландия",
|
||||
"Germany": "Германия",
|
||||
"USA": "CША",
|
||||
"Copenhagen": "Копенгаген",
|
||||
"Kolding": "Колдинг",
|
||||
"KohtlaJarve": "Кохтла-Ярве",
|
||||
|
@ -14,5 +16,6 @@
|
|||
"Riga": "Рига",
|
||||
"Halifax": "Галифакс",
|
||||
"Montreal": "Монреаль",
|
||||
"Wiesbaden": "Висбаден"
|
||||
"Wiesbaden": "Висбаден",
|
||||
"Florida": "Флорида"
|
||||
}
|
Loading…
Reference in New Issue