Remove kletterspots.de specific stuff

This commit is contained in:
Pieter Vander Vennet 2020-12-14 01:14:22 +01:00
parent c693faea95
commit 7ad601f2eb
9 changed files with 23 additions and 26 deletions

View file

@ -47,22 +47,22 @@ export class AllKnownLayouts {
new LayoutConfig(personal), new LayoutConfig(personal),
AllKnownLayouts.GenerateCycloFix(), AllKnownLayouts.GenerateCycloFix(),
new LayoutConfig(aed), new LayoutConfig(aed),
// new LayoutConfig(bookcases), new LayoutConfig(bookcases),
new LayoutConfig(toilets), new LayoutConfig(toilets),
// new LayoutConfig(artworks), new LayoutConfig(artworks),
// new LayoutConfig(ghostbikes), new LayoutConfig(ghostbikes),
new LayoutConfig(shops), new LayoutConfig(shops),
new LayoutConfig(drinking_water), new LayoutConfig(drinking_water),
new LayoutConfig(nature), new LayoutConfig(nature),
new LayoutConfig(cyclestreets), new LayoutConfig(cyclestreets),
// new LayoutConfig(maps), new LayoutConfig(maps),
// new LayoutConfig(fritures), new LayoutConfig(fritures),
new LayoutConfig(benches), new LayoutConfig(benches),
new LayoutConfig(charging_stations), new LayoutConfig(charging_stations),
// new LayoutConfig(widths), new LayoutConfig(widths),
// new LayoutConfig(buurtnatuur), new LayoutConfig(buurtnatuur),
// new LayoutConfig(bike_monitoring_stations), new LayoutConfig(bike_monitoring_stations),
// new LayoutConfig(surveillance_cameras) new LayoutConfig(surveillance_cameras)
new LayoutConfig(climbing), new LayoutConfig(climbing),
]; ];

View file

@ -80,7 +80,7 @@ export class InitUiElements {
layoutDefinition: string = "") { layoutDefinition: string = "") {
if (layoutToUse === undefined) { if (layoutToUse === undefined) {
console.log("Incorrect layout") console.log("Incorrect layout")
new FixedUiElement("Error: incorrect layout <i>" + layoutName + "</i><br/><a href='https://kletterspots.de/index.html'>Go back</a>").AttachTo("centermessage").onClick(() => { new FixedUiElement(`Error: incorrect layout <i>${layoutName}</i><br/><a href='https://${window.location.host}/index.html'>Go back</a>`).AttachTo("centermessage").onClick(() => {
}); });
throw "Incorrect layout" throw "Incorrect layout"
} }

View file

@ -53,8 +53,7 @@ export class WelcomeMessage extends UIElement {
loginStatus, loginStatus,
this.tail, this.tail,
"<br/>", "<br/>",
this.languagePicker, this.languagePicker
Translations.t.general.customIntro as UIElement
]).Render() ]).Render()
} }

View file

@ -8,7 +8,7 @@ export default class Locale {
public static language: UIEventSource<string> = Locale.setup(); public static language: UIEventSource<string> = Locale.setup();
private static setup() { private static setup() {
const source = LocalStorageSource.Get('language', "de"); const source = LocalStorageSource.Get('language', "en");
if (!UIElement.runningFromConsole) { if (!UIElement.runningFromConsole) {
// @ts-ignore // @ts-ignore
window.setLanguage = function (language: string) { window.setLanguage = function (language: string) {

View file

@ -10,6 +10,10 @@
"de": "Auf dieser Karte finden Sie verschiedene Klettermöglichkeiten wie Kletterhallen, Boulderhallen und Felsen in der Natur.", "de": "Auf dieser Karte finden Sie verschiedene Klettermöglichkeiten wie Kletterhallen, Boulderhallen und Felsen in der Natur.",
"en": "On this map you will find various climbing opportunities such as climbing gyms, bouldering halls and rocks in nature." "en": "On this map you will find various climbing opportunities such as climbing gyms, bouldering halls and rocks in nature."
}, },
"descriptionTail": {
"en": "<p><strong>kletterspots.de</strong> is run by <a href='https://utopicode.de/en/?ref=kletterspots' target='_blank'>Christian Neumann</a>. Please <a href='https://utopicode.de/en/contact/?project=kletterspots&ref=kletterspots' target='blank'>get in touch</a> if you have feedback or questions.</p><p>The project uses data of the <a href='https://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a> project and is based on the free software <a href='https://github.com/pietervdvn/MapComplete' target='_blank'>MapComplete</a>.</p>",
"de": "<p><strong>kletterspots.de</strong> wird betrieben von <a href='https://utopicode.de/?ref=kletterspots' target='_blank'>Christian Neumann</a>. Bitte <a href='https://utopicode.de/kontakt/?project=kletterspots&ref=kletterspots' target='blank'>melden Sie sich</a>, wenn Sie Feedback oder Fragen haben.</p><p>Das Projekt nutzt Daten des <a href='https://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a> Projekts und basiert auf der freien Software <a href='https://github.com/pietervdvn/MapComplete' target='_blank'>MapComplete</a>.</p>"
},
"language": [ "language": [
"de", "de",
"en", "en",

View file

@ -470,10 +470,6 @@
"de": "Die E-Mail-Adresse dieser {category} lautet <a href='mailto:{email}' target='_blank'>{email}</a>" "de": "Die E-Mail-Adresse dieser {category} lautet <a href='mailto:{email}' target='_blank'>{email}</a>"
} }
}, },
"customIntro": {
"en": "<p><strong>kletterspots.de</strong> is run by <a href='https://utopicode.de/en/?ref=kletterspots' target='_blank'>Christian Neumann</a>. Please <a href='https://utopicode.de/en/contact/?project=kletterspots&ref=kletterspots' target='blank'>get in touch</a> if you have feedback or questions.</p><p>The project uses data of the <a href='https://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a> project and is based on the free software <a href='https://github.com/pietervdvn/MapComplete' target='_blank'>MapComplete</a>.</p>",
"de": "<p><strong>kletterspots.de</strong> wird betrieben von <a href='https://utopicode.de/?ref=kletterspots' target='_blank'>Christian Neumann</a>. Bitte <a href='https://utopicode.de/kontakt/?project=kletterspots&ref=kletterspots' target='blank'>melden Sie sich</a>, wenn Sie Feedback oder Fragen haben.</p><p>Das Projekt nutzt Daten des <a href='https://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a> Projekts und basiert auf der freien Software <a href='https://github.com/pietervdvn/MapComplete' target='_blank'>MapComplete</a>.</p>"
},
"openStreetMapIntro": { "openStreetMapIntro": {
"en": "<h3>An Open Map</h3><p>Wouldn't it be cool if there was a single map, which everyone could freely use and edit? A single place to store all geo-information? Then, all those websites with different, small and incompatible maps (which are always outdated) wouldn't be needed anymore.</p><p><b><a href='https://OpenStreetMap.org' target='_blank'>OpenStreetMap</a></b> is this map. The map data can be used for free (with <a href='https://osm.org/copyright' target='_blank'>attribution and publication of changes to that data</a>). On top of that, everyone can freely add new data and fix errors. This website uses OpenStreetMap as well. All the data is from there, and your answers and corrections are added there as well.</p><p>A ton of people and application already use OpenStreetMap: <a href='https://maps.me/' target='_blank'>Maps.me</a>, <a href='https://osmAnd.net' target='_blank'>OsmAnd</a>, but also the maps at Facebook, Instagram, Apple-maps and Bing-maps are (partly) powered by OpenStreetMap.If you change something here, it'll be reflected in those applications too - after their next update!</p>", "en": "<h3>An Open Map</h3><p>Wouldn't it be cool if there was a single map, which everyone could freely use and edit? A single place to store all geo-information? Then, all those websites with different, small and incompatible maps (which are always outdated) wouldn't be needed anymore.</p><p><b><a href='https://OpenStreetMap.org' target='_blank'>OpenStreetMap</a></b> is this map. The map data can be used for free (with <a href='https://osm.org/copyright' target='_blank'>attribution and publication of changes to that data</a>). On top of that, everyone can freely add new data and fix errors. This website uses OpenStreetMap as well. All the data is from there, and your answers and corrections are added there as well.</p><p>A ton of people and application already use OpenStreetMap: <a href='https://maps.me/' target='_blank'>Maps.me</a>, <a href='https://osmAnd.net' target='_blank'>OsmAnd</a>, but also the maps at Facebook, Instagram, Apple-maps and Bing-maps are (partly) powered by OpenStreetMap.If you change something here, it'll be reflected in those applications too - after their next update!</p>",
"es": "<h3>Un mapa abierto</h3><p></p>¿No sería genial si hubiera un solo mapa, que todos pudieran usar y editar libremente?¿Un solo lugar para almacenar toda la información geográfica? Entonces, todos esos sitios web con mapas diferentes, pequeños e incompatibles (que siempre están desactualizados) ya no serían necesarios.</p><p><b><a href='https://OpenStreetMap.org' target='_blank'>OpenStreetMap</a></b> es ese mapa. Los datos del mapa se pueden utilizar de forma gratuita (con <a href='https://osm.org/copyright' target='_blank'> atribución y publicación de cambios en esos datos</a>).Además de eso, todos pueden agregar libremente nuevos datos y corregir errores. Este sitio web también usa OpenStreetMap. Todos los datos provienen de allí, y tus respuestas y correcciones también se añadirán allí.</p><p>Muchas personas y aplicaciones ya usan OpenStreetMap: <a href='https://maps.me/' target='_blank'>Maps.me</a>, <a href='https://osmAnd.net' target='_blank'>OsmAnd</a>, pero también los mapas de Facebook, Instagram, Apple y Bing son (en parte) impulsados por OpenStreetMap .Si cambias algo aquí, también se reflejará en esas aplicaciones, en su próxima actualización</p>", "es": "<h3>Un mapa abierto</h3><p></p>¿No sería genial si hubiera un solo mapa, que todos pudieran usar y editar libremente?¿Un solo lugar para almacenar toda la información geográfica? Entonces, todos esos sitios web con mapas diferentes, pequeños e incompatibles (que siempre están desactualizados) ya no serían necesarios.</p><p><b><a href='https://OpenStreetMap.org' target='_blank'>OpenStreetMap</a></b> es ese mapa. Los datos del mapa se pueden utilizar de forma gratuita (con <a href='https://osm.org/copyright' target='_blank'> atribución y publicación de cambios en esos datos</a>).Además de eso, todos pueden agregar libremente nuevos datos y corregir errores. Este sitio web también usa OpenStreetMap. Todos los datos provienen de allí, y tus respuestas y correcciones también se añadirán allí.</p><p>Muchas personas y aplicaciones ya usan OpenStreetMap: <a href='https://maps.me/' target='_blank'>Maps.me</a>, <a href='https://osmAnd.net' target='_blank'>OsmAnd</a>, pero también los mapas de Facebook, Instagram, Apple y Bing son (en parte) impulsados por OpenStreetMap .Si cambias algo aquí, también se reflejará en esas aplicaciones, en su próxima actualización</p>",

View file

@ -18,7 +18,7 @@
<link href="css/ReviewElement.css" rel="stylesheet"/> <link href="css/ReviewElement.css" rel="stylesheet"/>
<!-- $$$CUSTOM-CSS --> <!-- $$$CUSTOM-CSS -->
<link rel="manifest" href="./manifest.manifest"> <link rel="manifest" href="./manifest.manifest">
<link rel="icon" href="assets/themes/climbing/climbing_no_rope.svg" sizes="any" type="image/svg+xml"> <link rel="icon" href="assets/svg/add.svg" sizes="any" type="image/svg+xml">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<!-- $$$OG-META --> <!-- $$$OG-META -->
@ -30,8 +30,6 @@
} }
</style> </style>
<script async defer data-domain="kletterspots.de" src="https://plausible.io/js/plausible.outbound-links.js"></script>
</head> </head>
<body> <body>
@ -39,7 +37,7 @@
id="decoration-desktop"> id="decoration-desktop">
<!-- A nice decoration while loading or on errors --> <!-- A nice decoration while loading or on errors -->
<!-- DECORATION 0 START --> <!-- DECORATION 0 START -->
<img src="./assets/themes/climbing/climbing_no_rope.svg"/> <img src="./assets/svg/add.svg"/>
<!-- DECORATION 0 END --> <!-- DECORATION 0 END -->
</div> </div>
@ -62,13 +60,13 @@
<div id="layer-selection"> <div id="layer-selection">
</div> </div>
<div id="centermessage">Lade...</div> <div id="centermessage">Loading MapComplete, hang on...</div>
<div id="top-right"></div> <div id="top-right"></div>
<span id="geolocate-button"></span> <span id="geolocate-button"></span>
<div id="leafletDiv"></div> <div id="leafletDiv"></div>
<script src="./index.ts"></script> <script src="./index.ts"></script>
<script data-goatcounter="https://pietervdvn.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body> </body>
</html> </html>

View file

@ -7,7 +7,7 @@ import * as $ from "jquery";
import LayoutConfig from "./Customizations/JSON/LayoutConfig"; import LayoutConfig from "./Customizations/JSON/LayoutConfig";
import {Utils} from "./Utils"; import {Utils} from "./Utils";
let defaultLayout = "climbing" let defaultLayout = "bookcases"
// --------------------- Special actions based on the parameters ----------------- // --------------------- Special actions based on the parameters -----------------
// @ts-ignore // @ts-ignore
if (location.href.startsWith("http://buurtnatuur.be")) { if (location.href.startsWith("http://buurtnatuur.be")) {

View file

@ -86,11 +86,11 @@ function generateWikiEntry(layout: LayoutConfig){
auth=`Yes, by ${layout.maintainer};` auth=`Yes, by ${layout.maintainer};`
} }
return `{{service_item return `{{service_item
|name= [https://kletterspots.de/${layout.id}.html ${layout.id}] |name= [https://mapcomplete.osm.be/${layout.id}.html ${layout.id}]
|region= Worldwide |region= Worldwide
|lang= ${languages} |lang= ${languages}
|descr= A MapComplete theme: ${Translations.W(layout.description).InnerRender()} |descr= A MapComplete theme: ${Translations.W(layout.description).InnerRender()}
|material= {{yes|[https://kletterspots.de/ ${auth}]}} |material= {{yes|[https://mapcomplete.osm.be/ ${auth}]}}
|image= MapComplete_Screenshot.png |image= MapComplete_Screenshot.png
|genre= POI, editor, ${layout.id} |genre= POI, editor, ${layout.id}
}}` }}`