Skip to content

Commit

Permalink
bump from 2023 to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Aug 31, 2024
1 parent 6499505 commit a5ca480
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions src/components/main/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2 class="big">Join the contest!</h2>
of over 1.2 million monuments around the world.
</p>
<p>
In order to participate in Wiki Loves Monuments 2023 please follow
In order to participate in Wiki Loves Monuments 2024 please follow
these steps:
</p>
<ol>
Expand Down Expand Up @@ -124,7 +124,7 @@ <h2 class="big">Join the contest!</h2>
>
<div flex="75" flex-xs="100">
<p class="big">
&copy; 2023 <a href="//github.com/yarl">Paweł Marynowski</a> and
&copy; 2024 <a href="//github.com/yarl">Paweł Marynowski</a> and
<a href="//github.com/slaporte">Stephen LaPorte</a> //
<a href="//hatnote.com/">hatnote.com</a>
</p>
Expand Down
10 changes: 5 additions & 5 deletions src/components/main/monument/monument.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ <h4 class="monument__subtitle md-headline muted">
layout-align="center center"
ng-if="false"
>
<strong>Wiki Loves Monuments 2023 has not started yet.</strong>
<strong>Wiki Loves Monuments 2024 has not started yet.</strong>
<span
>Wiki Loves Monuments will start in September. You may still share
your images, but they will not be eligible for the competition.</span
Expand All @@ -328,7 +328,7 @@ <h4 class="monument__subtitle md-headline muted">
>
<strong
>This country is not participating in Wiki Loves Monuments
2023.</strong
2024.</strong
>
<span
>You are still able to upload photos in order to document
Expand All @@ -344,10 +344,10 @@ <h4 class="monument__subtitle md-headline muted">
>
<strong>You are welcome to upload to Wikimedia Commons</strong>
<span>
Please note, if you want to contribute to the 2023 Wiki Loves
Please note, if you want to contribute to the 2024 Wiki Loves
Monuments contest in {{ $ctrl.country.name }}, check the
<a
href="//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2023/Participating_countries"
href="//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2024/Participating_countries"
target="_blank"
>local competition rules</a
>.</span
Expand Down Expand Up @@ -832,7 +832,7 @@ <h4 class="monument__subtitle md-headline">Map</h4>
>
<div flex="75" flex-xs="100">
<p class="big">
&copy; 2017-2023 <a href="//github.com/yarl">Paweł Marynowski</a> and
&copy; 2017-2024 <a href="//github.com/yarl">Paweł Marynowski</a> and
<a href="//github.com/slaporte">Stephen LaPorte</a> //
<a href="//hatnote.com/">hatnote.com</a>
</p>
Expand Down
58 changes: 29 additions & 29 deletions src/components/main/monument/monument.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function controller(

vm.actions = {
claims: [],
other: []
other: [],
};
vm.busy = false;
vm.country = null;
Expand Down Expand Up @@ -79,7 +79,7 @@ function controller(

vm.uploader = new FileUploader({
url: `${$window.__env.baseUrl}/commons`,
withCredentials: true
withCredentials: true,
});
const uploader = vm.uploader;

Expand All @@ -90,7 +90,7 @@ function controller(
fn: (item) => {
const type = `|${item.type.slice(item.type.lastIndexOf("/") + 1)}|`;
return "|jpg|png|jpeg|gif|".indexOf(type) !== -1;
}
},
});

// CALLBACKS
Expand All @@ -101,7 +101,7 @@ function controller(
const str = time.split(" ");
return {
date: str[0].replace(/:/g, "-"),
time: str.length === 2 ? str[1] : undefined
time: str.length === 2 ? str[1] : undefined,
};
}

Expand Down Expand Up @@ -142,7 +142,7 @@ function controller(
{{self|cc-by-sa-4.0}}
${
vm.country
? `{{subst:WLM-is-running|${vm.country.code}|{{Wiki Loves Monuments 2023|${vm.country.code}}}}}`
? `{{subst:WLM-is-running|${vm.country.code}|{{Wiki Loves Monuments 2024|${vm.country.code}}}}}`
: ""
}
Expand All @@ -155,17 +155,17 @@ ${getCategory()}
const [year, month, day] = moment().format("YYYY-MM-DD").split("-");
const categories = [
`[[Category:WLM-UK ${year} unfiltered ${month}-${day}]]`,
"[[Category:Images from Wiki Loves Monuments 2023 in the United Kingdom]]",
"[[Category:Images from Wiki Loves Monuments 2024 in the United Kingdom]]",
getPropertyValue("P1459") &&
"[[Category:Images from Wiki Loves Monuments 2023 in Wales]]",
"[[Category:Images from Wiki Loves Monuments 2024 in Wales]]",
getPropertyValue("P1460") &&
"[[Category:Images from Wiki Loves Monuments 2023 in Northern Ireland]]",
"[[Category:Images from Wiki Loves Monuments 2024 in Northern Ireland]]",
getPropertyValue("P1216") &&
"[[Category:Images from Wiki Loves Monuments 2023 in England]]",
"[[Category:Images from Wiki Loves Monuments 2024 in England]]",
(getPropertyValue("P709") || getPropertyValue("P718")) &&
"[[Category:Images from Wiki Loves Monuments 2023 in Scotland]]",
"[[Category:Images from Wiki Loves Monuments 2024 in Scotland]]",
!getPropertyValue("P18") &&
"[[Category:Potential image for Wikidata item]]"
"[[Category:Potential image for Wikidata item]]",
];
return categories.filter((category) => category).join("\n");
}
Expand All @@ -174,7 +174,7 @@ ${getCategory()}
return `[[${vm.category.title}]]`;
}
if (vm.country.code === "ie") {
return "[[Category:Images from Wiki Loves Monuments 2023 in Ireland – missing category]]";
return "[[Category:Images from Wiki Loves Monuments 2024 in Ireland – missing category]]";
}
if (vm.country.category) {
return `[[Category:${vm.country.category}]]`;
Expand Down Expand Up @@ -232,7 +232,7 @@ ${getCategory()}
fileItem.formData.push(
...[
{ filename: fileItem.commons.fileName },
{ text: fileItem.commons.description }
{ text: fileItem.commons.description },
]
);

Expand All @@ -250,7 +250,7 @@ ${getCategory()}
{ errorformat: "html" },
{ comment: `Monumental WLM ${pack.version}` },
{ watchlist: "watch" },
{ use_auth: true }
{ use_auth: true },
];
fileItem.formData.push(...data);
}
Expand Down Expand Up @@ -318,7 +318,7 @@ ${getCategory()}
title: element.title,
link: `//${element.site.replace("wiki", "")}.wikipedia.org/wiki/${
element.title
}`.replace(" ", "_")
}`.replace(" ", "_"),
}))
.filter(
(element) =>
Expand Down Expand Up @@ -350,7 +350,7 @@ ${getCategory()}
function labelChange(lang) {
vm.actions.other[0] = {
promise: setLabel,
value: lang
value: lang,
};
}

Expand All @@ -369,7 +369,7 @@ ${getCategory()}
vm.actions.other[1] = {
type: "save",
promise: value.id ? setClaimString : addClaimString,
value
value,
};
}

Expand Down Expand Up @@ -430,7 +430,7 @@ ${getCategory()}
function init() {
vm.config = {
env: $window.__env,
package: pack
package: pack,
};

const queueListener = $rootScope.$on("recountQueue", () => recountQueue());
Expand Down Expand Up @@ -471,15 +471,15 @@ ${getCategory()}
center: {
lat: value.latitude,
lng: value.longitude,
zoom: 16
}
zoom: 16,
},
});
vm.map.markers = {
marker: {
lat: value.latitude,
lng: value.longitude,
icon
}
icon,
},
};
leafletData.getMap().then((map) => {
map.scrollWheelZoom.disable();
Expand All @@ -501,7 +501,7 @@ ${getCategory()}
imageService.openImage({
image,
event,
list: vm.images
list: vm.images,
});
}

Expand All @@ -513,15 +513,15 @@ ${getCategory()}
return WikiService.setClaimString({
id: value.id,
property: value.mainsnak.property,
value: value.searchSelected.title
value: value.searchSelected.title,
});
}

function addClaimString(value) {
return WikiService.addClaimString({
entity: id,
property: "P373",
value: value.searchSelected.title
value: value.searchSelected.title,
});
}
}
Expand Down Expand Up @@ -551,7 +551,7 @@ export default () => {
}
);
loadImage();
}
},
}))
.directive("ngThumb", [
"$window",
Expand All @@ -564,7 +564,7 @@ export default () => {
isImage(file) {
const type = `|${file.type.slice(file.type.lastIndexOf("/") + 1)}|`;
return "|jpg|png|jpeg|bmp|gif|".indexOf(type) !== -1;
}
},
};

return {
Expand Down Expand Up @@ -598,8 +598,8 @@ export default () => {
canvas.attr({ width, height });
canvas[0].getContext("2d").drawImage(this, 0, 0, width, height);
}
}
},
};
}
},
]);
};
6 changes: 3 additions & 3 deletions src/index_prod.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<base href="/"></base>
<meta property="og:url" content="https://maps.wikilovesmonuments.org/" />
<meta property="og:title" content="Wiki Loves Monuments Map" />
<meta property="og:description" content="Discover cultural heritage monuments. Contibute to Wiki Loves Monuments 2023!" />
<meta property="og:description" content="Discover cultural heritage monuments. Contibute to Wiki Loves Monuments 2024!" />
<meta property="og:image" content="https://maps.wikilovesmonuments.org/fb.png" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@wikimonuments">
<meta name="twitter:title" content="Wiki Loves Monuments Map">
<meta name="twitter:description" content="Discover cultural heritage monuments. Contibute to Wiki Loves Monuments 2023!">
<meta name="twitter:description" content="Discover cultural heritage monuments. Contibute to Wiki Loves Monuments 2024!">
<meta name="twitter:image" content="https://maps.wikilovesmonuments.org/fb.pn">
<title>Wiki Loves Monuments Map</title>
<meta name="description" content="Discover cultural heritage monuments. Contibute to Wiki Loves Monuments 2023!">
<meta name="description" content="Discover cultural heritage monuments. Contibute to Wiki Loves Monuments 2024!">
</head>
<body ng-app="monumental" ng-cloak>
<ui-view></ui-view>
Expand Down

0 comments on commit a5ca480

Please sign in to comment.