Update
This commit is contained in:
parent
d84e9022db
commit
b3884131d0
|
@ -1,7 +1,7 @@
|
|||
|
||||
export let communities = [
|
||||
{
|
||||
location: ["CanadaMontreal",[44.654781585774785, -63.61076905562609]],
|
||||
location: ["CanadaMontreal",[45.55541047232767, -73.42859611607271]],
|
||||
status: "forming",
|
||||
members: 2,
|
||||
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
export let groups = [
|
||||
{
|
||||
location: ["CanadaHalifax",[44.65166135030067, -63.59289968306866]],
|
||||
members: 2,
|
||||
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: ["DenmarkCopenhagen",[55.6840661150132, 12.557133959514688]],
|
||||
members: 1,
|
||||
|
|
|
@ -7,11 +7,12 @@
|
|||
"location": "Location",
|
||||
"members": "Members",
|
||||
"contact": "Contact",
|
||||
"DiscordInviteLink": "Discord invite link",
|
||||
"WhatsAppInviteLink": "WhatsApp invite link",
|
||||
"DenmarkCopenhagen": "Denmark, Copenhagen",
|
||||
"DenmarkKolding": "Denmark, Kolding",
|
||||
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||
"GreeceAthens": "Greece, Athens",
|
||||
"LatviaRiga": "Latvia, Riga",
|
||||
"DiscordInviteLink": "Discord invite link",
|
||||
"WhatsAppInviteLink": "WhatsApp invite link"
|
||||
"CanadaHalifax": "Canada, Halifax"
|
||||
}
|
|
@ -7,11 +7,12 @@
|
|||
"location": "Локация",
|
||||
"members": "Участники",
|
||||
"contact": "Контакт",
|
||||
"DiscordInviteLink": "Discord ссылка",
|
||||
"WhatsAppInviteLink": "WhatsApp ссылка",
|
||||
"DenmarkCopenhagen": "Дания, Копенгаген",
|
||||
"DenmarkKolding": "Дания, Колдинг",
|
||||
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||
"GreeceAthens": "Греция, Афины",
|
||||
"LatviaRiga": "Латвия, Рига",
|
||||
"DiscordInviteLink": "Discord ссылка",
|
||||
"WhatsAppInviteLink": "WhatsApp ссылка"
|
||||
"CanadaHalifax": "Канада, Галифакс"
|
||||
}
|
|
@ -36,7 +36,6 @@
|
|||
<p>{$content.p1}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackCommunities(createMap,$content,locale)}></map-component>
|
||||
<h4>{$content.subheading2}</h4>
|
||||
{#each communities as community}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{$content[community.location[0]]}</p>
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
<p>{$content.p2}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackCoops(createMap,$content,locale)}></map-component>
|
||||
<h4>{$content.subheading2}</h4>
|
||||
{#each coops as coop}
|
||||
<div class="location-info">
|
||||
<div class="img-general-info">
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
<p>{$content.p2}</p>
|
||||
<h3>{$content.subheading1}</h3>
|
||||
<map-component id="map" callback={(createMap) => mapCallbackGroups(createMap,$content,locale)}></map-component>
|
||||
<h4>{$content.subheading2}</h4>
|
||||
{#each groups as group}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{$content[group.location[0]]}</p>
|
||||
|
|
|
@ -16,13 +16,21 @@
|
|||
let loaded
|
||||
let content = writable({})
|
||||
|
||||
let contentGroups = writable({})
|
||||
let contentCommunities = writable({})
|
||||
let contentCoops = writable({})
|
||||
|
||||
loadLocaleContent(contentGroups,"groups-component")
|
||||
loadLocaleContent(contentCommunities,"communities-component")
|
||||
loadLocaleContent(contentCoops,"cooperatives-component")
|
||||
|
||||
let locale = loadLocaleContent(content,"join-us-component",loaded)
|
||||
|
||||
function mapCallback(createMap,content,locale) {
|
||||
function mapCallback(createMap,content) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
addMarkersGroups(map,content,locale)
|
||||
addMarkersCoops(map,content,locale)
|
||||
addMarkersCommunities(map,content,locale)
|
||||
addMarkersGroups(map,$contentGroups)
|
||||
addMarkersCommunities(map,$contentCommunities)
|
||||
addMarkersCoops(map,$contentCoops)
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
|
@ -61,7 +69,7 @@
|
|||
<p>{$content.nearYou}</p>
|
||||
</div>
|
||||
<p>{$content.noneNear} <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel=noreferrer>{$content.WhatsAppGroup}</a> {$content.or} <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel=noreferrer>{$content.DiscordServer}</a>{$content.helpStart}</p>
|
||||
<map-component id="map" callback={(createMap) => mapCallback(createMap,$content,locale)}></map-component>
|
||||
<map-component id="map" callback={(createMap) => mapCallback(createMap,$content)}></map-component>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
export let communities = [
|
||||
{
|
||||
location: ["CanadaMontreal",[44.654781585774785, -63.61076905562609]],
|
||||
location: ["CanadaMontreal",[45.55541047232767, -73.42859611607271]],
|
||||
status: "forming",
|
||||
members: 2,
|
||||
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
|
||||
|
|
|
@ -1 +1 @@
|
|||
import{S as t,i as o,a as n,b as e,s as i,e as a,n as m,d as s,c as r,o as c,f as l,t as g,g as p,h as u,j as h,k as d,l as b,m as f,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{communities as v,addMarkersCommunities as w}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,i,a,m,r,c,j,w,k,z,E,O,R,T,A,C,H,L,M,N=t[0].heading+"",S=t[0].p1+"",_=t[0].subheading1+"",q=t[0].subheading2+"",B=v,F=[];for(let o=0;o<B.length;o+=1)F[o]=D(y(t,B,o));return{c(){o=l("div"),n=l("div"),i=l("h1"),a=g(N),m=p(),r=l("img"),j=p(),w=l("p"),k=g(S),z=p(),E=l("h3"),O=g(_),R=p(),T=l("map-component"),C=p(),H=l("h4"),L=g(q),M=p();for(let t=0;t<F.length;t+=1)F[t].c();u(r,"id","communities-img"),h(r.src,c="/img/common/communities.svg")||u(r,"src","/img/common/communities.svg"),u(r,"alt","communities"),d(T,"id","map"),d(T,"callback",A=t[5]),u(n,"id","text-container"),u(o,"id","container")},m(t,s){e(t,o,s),b(o,n),b(n,i),b(i,a),b(n,m),b(n,r),b(n,j),b(n,w),b(w,k),b(n,z),b(n,E),b(E,O),b(n,R),b(n,T),b(n,C),b(n,H),b(H,L),b(n,M);for(let t=0;t<F.length;t+=1)F[t].m(n,null)},p(t,o){if(1&o&&N!==(N=t[0].heading+"")&&f(a,N),1&o&&S!==(S=t[0].p1+"")&&f(k,S),1&o&&_!==(_=t[0].subheading1+"")&&f(O,_),1&o&&A!==(A=t[5])&&d(T,"callback",A),1&o&&q!==(q=t[0].subheading2+"")&&f(L,q),1&o){let e;for(B=v,e=0;e<B.length;e+=1){const i=y(t,B,e);F[e]?F[e].p(i,o):(F[e]=D(i),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&&s(o),x(F,t)}}}function D(t){let o,n,i,a,m,r,c,h,d,x,j,v,w,k,y,z,D,E,O,R,T,A,C,H,L,M,N=t[0].location+"",S=t[0][t[6].location[0]]+"",_=t[0].status+"",q=t[0][t[6].status]+"",B=t[0].members+"",F=t[6].members+"",G=t[0].contact+"",I=t[0][t[6].contact[1]]+"";return{c(){o=l("div"),n=l("p"),i=l("b"),a=g(N),m=g(": "),r=g(S),c=p(),h=l("p"),d=l("b"),x=g(_),j=g(": "),v=g(q),w=p(),k=l("p"),y=l("b"),z=g(B),D=g(": "),E=g(F),O=p(),R=l("p"),T=l("b"),A=g(G),C=g(": "),H=l("a"),L=g(I),M=p(),u(H,"href",t[6].contact[0]),u(H,"target",";_blank;"),u(H,"rel","noreferrer"),u(o,"class","location-info")},m(t,s){e(t,o,s),b(o,n),b(n,i),b(i,a),b(i,m),b(n,r),b(o,c),b(o,h),b(h,d),b(d,x),b(d,j),b(h,v),b(o,w),b(o,k),b(k,y),b(y,z),b(y,D),b(k,E),b(o,O),b(o,R),b(R,T),b(T,A),b(T,C),b(R,H),b(H,L),b(o,M)},p(t,o){1&o&&N!==(N=t[0].location+"")&&f(a,N),1&o&&S!==(S=t[0][t[6].location[0]]+"")&&f(r,S),1&o&&_!==(_=t[0].status+"")&&f(x,_),1&o&&q!==(q=t[0][t[6].status]+"")&&f(v,q),1&o&&B!==(B=t[0].members+"")&&f(z,B),1&o&&G!==(G=t[0].contact+"")&&f(A,G),1&o&&I!==(I=t[0][t[6].contact[1]]+"")&&f(L,I)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,i=n&&z(t);return{c(){i&&i.c(),o=a(),this.c=m},m(t,n){i&&i.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?i?i.p(t,e):(i=z(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},i:m,o:m,d(t){i&&i.d(t),t&&s(o)}}}function O(t,o,n){let e,i,a=j({});r(t,a,(t=>n(0,e=t)));let m=k(a,"communities-component",i);function s(t,o){let n=t([51.505,-.09],3);w(n,o)}c((()=>{}));return[e,i,a,m,s,t=>s(t,e)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{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},O,E,i,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communities-component",R);export{R as default};
|
||||
import{S as t,i as o,a as n,b as e,s as i,e as a,n as m,d as s,c as r,o as c,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{communities as v,addMarkersCommunities as w}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,i,a,m,r,c,j,w,k,z,E,O,R,T,A,C,H=t[0].heading+"",L=t[0].p1+"",M=t[0].subheading1+"",N=v,S=[];for(let o=0;o<N.length;o+=1)S[o]=D(y(t,N,o));return{c(){o=l("div"),n=l("div"),i=l("h1"),a=p(H),m=g(),r=l("img"),j=g(),w=l("p"),k=p(L),z=g(),E=l("h3"),O=p(M),R=g(),T=l("map-component"),C=g();for(let t=0;t<S.length;t+=1)S[t].c();u(r,"id","communities-img"),h(r.src,c="/img/common/communities.svg")||u(r,"src","/img/common/communities.svg"),u(r,"alt","communities"),d(T,"id","map"),d(T,"callback",A=t[5]),u(n,"id","text-container"),u(o,"id","container")},m(t,s){e(t,o,s),f(o,n),f(n,i),f(i,a),f(n,m),f(n,r),f(n,j),f(n,w),f(w,k),f(n,z),f(n,E),f(E,O),f(n,R),f(n,T),f(n,C);for(let t=0;t<S.length;t+=1)S[t].m(n,null)},p(t,o){if(1&o&&H!==(H=t[0].heading+"")&&b(a,H),1&o&&L!==(L=t[0].p1+"")&&b(k,L),1&o&&M!==(M=t[0].subheading1+"")&&b(O,M),1&o&&A!==(A=t[5])&&d(T,"callback",A),1&o){let e;for(N=v,e=0;e<N.length;e+=1){const i=y(t,N,e);S[e]?S[e].p(i,o):(S[e]=D(i),S[e].c(),S[e].m(n,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=N.length}},d(t){t&&s(o),x(S,t)}}}function D(t){let o,n,i,a,m,r,c,h,d,x,j,v,w,k,y,z,D,E,O,R,T,A,C,H,L,M,N=t[0].location+"",S=t[0][t[6].location[0]]+"",_=t[0].status+"",q=t[0][t[6].status]+"",B=t[0].members+"",F=t[6].members+"",G=t[0].contact+"",I=t[0][t[6].contact[1]]+"";return{c(){o=l("div"),n=l("p"),i=l("b"),a=p(N),m=p(": "),r=p(S),c=g(),h=l("p"),d=l("b"),x=p(_),j=p(": "),v=p(q),w=g(),k=l("p"),y=l("b"),z=p(B),D=p(": "),E=p(F),O=g(),R=l("p"),T=l("b"),A=p(G),C=p(": "),H=l("a"),L=p(I),M=g(),u(H,"href",t[6].contact[0]),u(H,"target",";_blank;"),u(H,"rel","noreferrer"),u(o,"class","location-info")},m(t,s){e(t,o,s),f(o,n),f(n,i),f(i,a),f(i,m),f(n,r),f(o,c),f(o,h),f(h,d),f(d,x),f(d,j),f(h,v),f(o,w),f(o,k),f(k,y),f(y,z),f(y,D),f(k,E),f(o,O),f(o,R),f(R,T),f(T,A),f(T,C),f(R,H),f(H,L),f(o,M)},p(t,o){1&o&&N!==(N=t[0].location+"")&&b(a,N),1&o&&S!==(S=t[0][t[6].location[0]]+"")&&b(r,S),1&o&&_!==(_=t[0].status+"")&&b(x,_),1&o&&q!==(q=t[0][t[6].status]+"")&&b(v,q),1&o&&B!==(B=t[0].members+"")&&b(z,B),1&o&&G!==(G=t[0].contact+"")&&b(A,G),1&o&&I!==(I=t[0][t[6].contact[1]]+"")&&b(L,I)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,i=n&&z(t);return{c(){i&&i.c(),o=a(),this.c=m},m(t,n){i&&i.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?i?i.p(t,e):(i=z(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},i:m,o:m,d(t){i&&i.d(t),t&&s(o)}}}function O(t,o,n){let e,i,a=j({});r(t,a,(t=>n(0,e=t)));let m=k(a,"communities-component",i);function s(t,o){let n=t([51.505,-.09],3);w(n,o)}c((()=>{}));return[e,i,a,m,s,t=>s(t,e)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{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},O,E,i,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communities-component",R);export{R as default};
|
||||
|
|
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 a,n as i,d as s,c as m,o as c,f as l,t as p,g,h,j as u,k as d,l as b,m as f,p as x}from"./index-4348483d.js";import{w as j}from"./index-71440b21.js";import{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,r,a,i,m,c,j,w,k,z,E,O,R,T,A,C,H,L,M,N,S,_,q=t[0].heading+"",B=t[0].p1+"",F=t[0].p2+"",G=t[0].subheading1+"",I=t[0].subheading2+"",J=v,K=[];for(let o=0;o<J.length;o+=1)K[o]=D(y(t,J,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),a=p(q),i=g(),m=l("img"),j=g(),w=l("p"),k=p(B),z=g(),E=l("p"),O=p(F),R=g(),T=l("h3"),A=p(G),C=g(),H=l("map-component"),M=g(),N=l("h4"),S=p(I),_=g();for(let t=0;t<K.length;t+=1)K[t].c();h(m,"id","groups-img"),u(m.src,c="/img/common/groups.svg")||h(m,"src","/img/common/groups.svg"),h(m,"alt","groups"),d(H,"id","map"),d(H,"callback",L=t[5]),h(n,"id","text-container"),h(o,"id","container")},m(t,s){e(t,o,s),b(o,n),b(n,r),b(r,a),b(n,i),b(n,m),b(n,j),b(n,w),b(w,k),b(n,z),b(n,E),b(E,O),b(n,R),b(n,T),b(T,A),b(n,C),b(n,H),b(n,M),b(n,N),b(N,S),b(n,_);for(let t=0;t<K.length;t+=1)K[t].m(n,null)},p(t,o){if(1&o&&q!==(q=t[0].heading+"")&&f(a,q),1&o&&B!==(B=t[0].p1+"")&&f(k,B),1&o&&F!==(F=t[0].p2+"")&&f(O,F),1&o&&G!==(G=t[0].subheading1+"")&&f(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&f(S,I),1&o){let e;for(J=v,e=0;e<J.length;e+=1){const r=y(t,J,e);K[e]?K[e].p(r,o):(K[e]=D(r),K[e].c(),K[e].m(n,null))}for(;e<K.length;e+=1)K[e].d(1);K.length=J.length}},d(t){t&&s(o),x(K,t)}}}function D(t){let o,n,r,a,i,m,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T=t[0].location+"",A=t[0][t[6].location[0]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[0][t[6].contact[1]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),a=p(T),i=p(": "),m=p(A),c=g(),u=l("p"),d=l("b"),x=p(C),j=p(": "),v=p(H),w=g(),k=l("p"),y=l("b"),z=p(L),D=p(": "),E=l("a"),O=p(M),R=g(),h(E,"href",t[6].contact[0]),h(E,"target",";_blank;"),h(E,"rel","noreferrer"),h(o,"class","location-info")},m(t,s){e(t,o,s),b(o,n),b(n,r),b(r,a),b(r,i),b(n,m),b(o,c),b(o,u),b(u,d),b(d,x),b(d,j),b(u,v),b(o,w),b(o,k),b(k,y),b(y,z),b(y,D),b(k,E),b(E,O),b(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&f(a,T),1&o&&A!==(A=t[0][t[6].location[0]]+"")&&f(m,A),1&o&&C!==(C=t[0].members+"")&&f(x,C),1&o&&L!==(L=t[0].contact+"")&&f(z,L),1&o&&M!==(M=t[0][t[6].contact[1]]+"")&&f(O,M)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,r=n&&z(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,n){r&&r.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?r?r.p(t,e):(r=z(t),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i:i,o:i,d(t){r&&r.d(t),t&&s(o)}}}function O(t,o,n){let e,r,a=j({});m(t,a,(t=>n(0,e=t)));let i=k(a,"groups-component",r);function s(t,o){let n=t([51.505,-.09],3);w(n,o)}c((()=>{}));return[e,r,a,i,s,t=>s(t,e)]}class R 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}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.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},O,E,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",R);export{R 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 s,c as m,o as c,f as l,t as p,g,h,j as u,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{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,n){const e=t.slice();return e[6]=o[n],e}function z(t){let o,n,r,a,i,m,c,j,w,k,z,E,O,R,T,A,C,H,L,M,N=t[0].heading+"",S=t[0].p1+"",_=t[0].p2+"",q=t[0].subheading1+"",B=v,F=[];for(let o=0;o<B.length;o+=1)F[o]=D(y(t,B,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),a=p(N),i=g(),m=l("img"),j=g(),w=l("p"),k=p(S),z=g(),E=l("p"),O=p(_),R=g(),T=l("h3"),A=p(q),C=g(),H=l("map-component"),M=g();for(let t=0;t<F.length;t+=1)F[t].c();h(m,"id","groups-img"),u(m.src,c="/img/common/groups.svg")||h(m,"src","/img/common/groups.svg"),h(m,"alt","groups"),d(H,"id","map"),d(H,"callback",L=t[5]),h(n,"id","text-container"),h(o,"id","container")},m(t,s){e(t,o,s),f(o,n),f(n,r),f(r,a),f(n,i),f(n,m),f(n,j),f(n,w),f(w,k),f(n,z),f(n,E),f(E,O),f(n,R),f(n,T),f(T,A),f(n,C),f(n,H),f(n,M);for(let t=0;t<F.length;t+=1)F[t].m(n,null)},p(t,o){if(1&o&&N!==(N=t[0].heading+"")&&b(a,N),1&o&&S!==(S=t[0].p1+"")&&b(k,S),1&o&&_!==(_=t[0].p2+"")&&b(O,_),1&o&&q!==(q=t[0].subheading1+"")&&b(A,q),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o){let e;for(B=v,e=0;e<B.length;e+=1){const r=y(t,B,e);F[e]?F[e].p(r,o):(F[e]=D(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&&s(o),x(F,t)}}}function D(t){let o,n,r,a,i,m,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T=t[0].location+"",A=t[0][t[6].location[0]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[0][t[6].contact[1]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),a=p(T),i=p(": "),m=p(A),c=g(),u=l("p"),d=l("b"),x=p(C),j=p(": "),v=p(H),w=g(),k=l("p"),y=l("b"),z=p(L),D=p(": "),E=l("a"),O=p(M),R=g(),h(E,"href",t[6].contact[0]),h(E,"target",";_blank;"),h(E,"rel","noreferrer"),h(o,"class","location-info")},m(t,s){e(t,o,s),f(o,n),f(n,r),f(r,a),f(r,i),f(n,m),f(o,c),f(o,u),f(u,d),f(d,x),f(d,j),f(u,v),f(o,w),f(o,k),f(k,y),f(y,z),f(y,D),f(k,E),f(E,O),f(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&b(a,T),1&o&&A!==(A=t[0][t[6].location[0]]+"")&&b(m,A),1&o&&C!==(C=t[0].members+"")&&b(x,C),1&o&&L!==(L=t[0].contact+"")&&b(z,L),1&o&&M!==(M=t[0][t[6].contact[1]]+"")&&b(O,M)},d(t){t&&s(o)}}}function E(t){let o,n=0!=Object.keys(t[0]).length,r=n&&z(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,n){r&&r.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?r?r.p(t,e):(r=z(t),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i:i,o:i,d(t){r&&r.d(t),t&&s(o)}}}function O(t,o,n){let e,r,a=j({});m(t,a,(t=>n(0,e=t)));let i=k(a,"groups-component",r);function s(t,o){let n=t([51.505,-.09],3);w(n,o)}c((()=>{}));return[e,r,a,i,s,t=>s(t,e)]}class R 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}.location-info{margin-bottom:2rem}.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},O,E,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",R);export{R as default};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,9 @@
|
|||
export let groups = [
|
||||
{
|
||||
location: ["CanadaHalifax",[44.65166135030067, -63.59289968306866]],
|
||||
members: 2,
|
||||
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
|
||||
},
|
||||
{
|
||||
location: ["DenmarkCopenhagen",[55.6840661150132, 12.557133959514688]],
|
||||
members: 1,
|
||||
|
|
|
@ -7,11 +7,12 @@
|
|||
"location": "Location",
|
||||
"members": "Members",
|
||||
"contact": "Contact",
|
||||
"DiscordInviteLink": "Discord invite link",
|
||||
"WhatsAppInviteLink": "WhatsApp invite link",
|
||||
"DenmarkCopenhagen": "Denmark, Copenhagen",
|
||||
"DenmarkKolding": "Denmark, Kolding",
|
||||
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
|
||||
"GreeceAthens": "Greece, Athens",
|
||||
"LatviaRiga": "Latvia, Riga",
|
||||
"DiscordInviteLink": "Discord invite link",
|
||||
"WhatsAppInviteLink": "WhatsApp invite link"
|
||||
"CanadaHalifax": "Canada, Halifax"
|
||||
}
|
|
@ -7,11 +7,12 @@
|
|||
"location": "Локация",
|
||||
"members": "Участники",
|
||||
"contact": "Контакт",
|
||||
"DiscordInviteLink": "Discord ссылка",
|
||||
"WhatsAppInviteLink": "WhatsApp ссылка",
|
||||
"DenmarkCopenhagen": "Дания, Копенгаген",
|
||||
"DenmarkKolding": "Дания, Колдинг",
|
||||
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
|
||||
"GreeceAthens": "Греция, Афины",
|
||||
"LatviaRiga": "Латвия, Рига",
|
||||
"DiscordInviteLink": "Discord ссылка",
|
||||
"WhatsAppInviteLink": "WhatsApp ссылка"
|
||||
"CanadaHalifax": "Канада, Галифакс"
|
||||
}
|
Loading…
Reference in New Issue