From a5ca4802dcb28574b6344096f21f75670f669a92 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Fri, 30 Aug 2024 21:27:49 -0700 Subject: [PATCH] bump from 2023 to 2024 --- src/components/main/dashboard/dashboard.html | 4 +- src/components/main/monument/monument.html | 10 ++-- src/components/main/monument/monument.js | 58 ++++++++++---------- src/index_prod.ejs | 6 +- 4 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/components/main/dashboard/dashboard.html b/src/components/main/dashboard/dashboard.html index dad1245..d56873c 100755 --- a/src/components/main/dashboard/dashboard.html +++ b/src/components/main/dashboard/dashboard.html @@ -61,7 +61,7 @@

Join the contest!

of over 1.2 million monuments around the world.

- In order to participate in Wiki Loves Monuments 2023 please follow + In order to participate in Wiki Loves Monuments 2024 please follow these steps:

    @@ -124,7 +124,7 @@

    Join the contest!

    >

    - © 2023 Paweł Marynowski and + © 2024 Paweł Marynowski and Stephen LaPorte // hatnote.com

    diff --git a/src/components/main/monument/monument.html b/src/components/main/monument/monument.html index 42a63e6..6407503 100755 --- a/src/components/main/monument/monument.html +++ b/src/components/main/monument/monument.html @@ -313,7 +313,7 @@

    layout-align="center center" ng-if="false" > - Wiki Loves Monuments 2023 has not started yet. + Wiki Loves Monuments 2024 has not started yet. Wiki Loves Monuments will start in September. You may still share your images, but they will not be eligible for the competition. > This country is not participating in Wiki Loves Monuments - 2023. You are still able to upload photos in order to document @@ -344,10 +344,10 @@

    > You are welcome to upload to Wikimedia Commons - 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 local competition rules.Map

    >

    - © 2017-2023 Paweł Marynowski and + © 2017-2024 Paweł Marynowski and Stephen LaPorte // hatnote.com

    diff --git a/src/components/main/monument/monument.js b/src/components/main/monument/monument.js index 7cccab2..d64f7bb 100755 --- a/src/components/main/monument/monument.js +++ b/src/components/main/monument/monument.js @@ -46,7 +46,7 @@ function controller( vm.actions = { claims: [], - other: [] + other: [], }; vm.busy = false; vm.country = null; @@ -79,7 +79,7 @@ function controller( vm.uploader = new FileUploader({ url: `${$window.__env.baseUrl}/commons`, - withCredentials: true + withCredentials: true, }); const uploader = vm.uploader; @@ -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 @@ -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, }; } @@ -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}}}}}` : "" } @@ -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"); } @@ -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}]]`; @@ -232,7 +232,7 @@ ${getCategory()} fileItem.formData.push( ...[ { filename: fileItem.commons.fileName }, - { text: fileItem.commons.description } + { text: fileItem.commons.description }, ] ); @@ -250,7 +250,7 @@ ${getCategory()} { errorformat: "html" }, { comment: `Monumental WLM ${pack.version}` }, { watchlist: "watch" }, - { use_auth: true } + { use_auth: true }, ]; fileItem.formData.push(...data); } @@ -318,7 +318,7 @@ ${getCategory()} title: element.title, link: `//${element.site.replace("wiki", "")}.wikipedia.org/wiki/${ element.title - }`.replace(" ", "_") + }`.replace(" ", "_"), })) .filter( (element) => @@ -350,7 +350,7 @@ ${getCategory()} function labelChange(lang) { vm.actions.other[0] = { promise: setLabel, - value: lang + value: lang, }; } @@ -369,7 +369,7 @@ ${getCategory()} vm.actions.other[1] = { type: "save", promise: value.id ? setClaimString : addClaimString, - value + value, }; } @@ -430,7 +430,7 @@ ${getCategory()} function init() { vm.config = { env: $window.__env, - package: pack + package: pack, }; const queueListener = $rootScope.$on("recountQueue", () => recountQueue()); @@ -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(); @@ -501,7 +501,7 @@ ${getCategory()} imageService.openImage({ image, event, - list: vm.images + list: vm.images, }); } @@ -513,7 +513,7 @@ ${getCategory()} return WikiService.setClaimString({ id: value.id, property: value.mainsnak.property, - value: value.searchSelected.title + value: value.searchSelected.title, }); } @@ -521,7 +521,7 @@ ${getCategory()} return WikiService.addClaimString({ entity: id, property: "P373", - value: value.searchSelected.title + value: value.searchSelected.title, }); } } @@ -551,7 +551,7 @@ export default () => { } ); loadImage(); - } + }, })) .directive("ngThumb", [ "$window", @@ -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 { @@ -598,8 +598,8 @@ export default () => { canvas.attr({ width, height }); canvas[0].getContext("2d").drawImage(this, 0, 0, width, height); } - } + }, }; - } + }, ]); }; diff --git a/src/index_prod.ejs b/src/index_prod.ejs index 486c4d9..438a868 100755 --- a/src/index_prod.ejs +++ b/src/index_prod.ejs @@ -9,15 +9,15 @@ - + - + Wiki Loves Monuments Map - +