Removed js files

This commit is contained in:
Pieter Vander Vennet 2020-07-20 19:53:35 +02:00
parent 7b80e945bb
commit b20be9e132
86 changed files with 0 additions and 5800 deletions

View file

@ -1,50 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessTag = void 0;
var TagRendering_1 = require("../TagRendering");
var TagsFilter_1 = require("../../Logic/TagsFilter");
var AccessTag = /** @class */ (function (_super) {
__extends(AccessTag, _super);
function AccessTag() {
return _super.call(this, AccessTag.options) || this;
}
AccessTag.options = {
priority: 20,
question: "Is dit gebied toegankelijk?",
primer: "Dit gebied is ",
freeform: {
key: "access:description",
template: "Iets anders: $$$",
renderTemplate: "De toegankelijkheid van dit gebied is: {access:description}",
placeholder: "Specifieer"
},
mappings: [
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("access", "yes"), new TagsFilter_1.Tag("fee", "")]), txt: "publiek toegankelijk" },
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("access", "no"), new TagsFilter_1.Tag("fee", "")]), txt: "niet toegankelijk" },
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("access", "private"), new TagsFilter_1.Tag("fee", "")]), txt: "niet toegankelijk, want privegebied" },
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("access", "permissive"), new TagsFilter_1.Tag("fee", "")]), txt: "toegankelijk, maar het is privegebied" },
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("access", "guided"), new TagsFilter_1.Tag("fee", "")]), txt: "enkel met gids of op activiteit" },
{
k: new TagsFilter_1.And([new TagsFilter_1.Tag("access", "yes"),
new TagsFilter_1.Tag("fee", "yes")]),
txt: "toegankelijk mits betaling",
priority: 10
},
]
};
return AccessTag;
}(TagRendering_1.TagRenderingOptions));
exports.AccessTag = AccessTag;

View file

@ -1,36 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescriptionQuestion = void 0;
var TagRendering_1 = require("../TagRendering");
var DescriptionQuestion = /** @class */ (function (_super) {
__extends(DescriptionQuestion, _super);
function DescriptionQuestion(category) {
return _super.call(this, {
question: "Zijn er bijzonderheden die we moeten weten over dit " + category + "?<br>" +
"<span class='question-subtext'>Je hoeft niet te herhalen wat je net hebt aangeduid.<br/>" +
"Een <i>naam</i> wordt in de volgende stap gevraagd.<br/>" +
"Voel je vrij om dit veld over te slaan.</span>",
freeform: {
key: "description:0",
renderTemplate: "{description:0}",
template: "$$$"
},
priority: 14
}) || this;
}
return DescriptionQuestion;
}(TagRendering_1.TagRenderingOptions));
exports.DescriptionQuestion = DescriptionQuestion;

View file

@ -1,30 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../TagRendering");
var FixedText = /** @class */ (function (_super) {
__extends(FixedText, _super);
function FixedText(category) {
return _super.call(this, {
mappings: [
{
k: null, txt: category
}
]
}) || this;
}
return FixedText;
}(TagRendering_1.TagRenderingOptions));
exports.default = FixedText;

View file

@ -1,41 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.NameInline = void 0;
var TagRendering_1 = require("../TagRendering");
var TagsFilter_1 = require("../../Logic/TagsFilter");
var NameInline = /** @class */ (function (_super) {
__extends(NameInline, _super);
function NameInline(category) {
return _super.call(this, {
question: "",
freeform: {
renderTemplate: "{name}",
template: "De naam van dit " + category + " is $$$",
key: "name",
extraTags: new TagsFilter_1.Tag("noname", "") // Remove 'noname=yes'
},
mappings: [
{ k: new TagsFilter_1.Tag("noname", "yes"), txt: NameInline.Upper(category) + " zonder naam" },
{ k: null, txt: NameInline.Upper(category) }
]
}) || this;
}
NameInline.Upper = function (string) {
return string.charAt(0).toUpperCase() + string.slice(1);
};
return NameInline;
}(TagRendering_1.TagRenderingOptions));
exports.NameInline = NameInline;

View file

@ -1,48 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.NameQuestion = void 0;
/**
* There are two ways to ask for names:
* One is a big 'name-question', the other is the 'edit name' in the title.
* THis one is the big question
*/
var TagRendering_1 = require("../TagRendering");
var TagsFilter_1 = require("../../Logic/TagsFilter");
var NameQuestion = /** @class */ (function (_super) {
__extends(NameQuestion, _super);
function NameQuestion() {
return _super.call(this, NameQuestion.options) || this;
}
NameQuestion.options = {
priority: 10,
question: "Wat is de <i>officiële</i> naam van dit gebied?<br><span class='question-subtext'>" +
"Zelf een naam bedenken wordt afgeraden.<br/>" +
"Een beschrijving van het gebied geven kan in een volgende stap.<br/>" +
"</span>",
freeform: {
key: "name",
template: "De naam is $$$",
renderTemplate: "",
placeholder: "",
extraTags: new TagsFilter_1.Tag("noname", "")
},
mappings: [
{ k: new TagsFilter_1.Tag("noname", "yes"), txt: "Dit gebied heeft geen naam" },
]
};
return NameQuestion;
}(TagRendering_1.TagRenderingOptions));
exports.NameQuestion = NameQuestion;

View file

@ -1,41 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperatorTag = void 0;
var TagRendering_1 = require("../TagRendering");
var TagsFilter_1 = require("../../Logic/TagsFilter");
var OperatorTag = /** @class */ (function (_super) {
__extends(OperatorTag, _super);
function OperatorTag() {
return _super.call(this, OperatorTag.options) || this;
}
OperatorTag.options = {
priority: 15,
question: "Wie beheert dit gebied?",
freeform: {
key: "operator",
template: "Dit gebied wordt beheerd door $$$",
renderTemplate: "Dit gebied wordt beheerd door {operator}",
placeholder: "organisatie"
},
mappings: [
{ k: new TagsFilter_1.Tag("operator", "Natuurpunt"), txt: "Natuurpunt" },
{ k: new TagsFilter_1.Tag("operator", "Agentschap Natuur en Bos"), txt: "het Agentschap Natuur en Bos (ANB)" },
{ k: new TagsFilter_1.Tag("operator", "private"), txt: "Beheer door een privépersoon" }
]
};
return OperatorTag;
}(TagRendering_1.TagRenderingOptions));
exports.OperatorTag = OperatorTag;

View file

@ -1,40 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.OsmLink = void 0;
var TagRendering_1 = require("../TagRendering");
var Img_1 = require("../../UI/Img");
var TagsFilter_1 = require("../../Logic/TagsFilter");
var OsmLink = /** @class */ (function (_super) {
__extends(OsmLink, _super);
function OsmLink() {
return _super.call(this, OsmLink.options) || this;
}
OsmLink.options = {
freeform: {
key: "id",
template: "$$$",
renderTemplate: "<span class='osmlink'><a href='https://osm.org/{id}' target='_blank'>" +
Img_1.Img.osmAbstractLogo +
"</a></span>",
placeholder: "",
},
mappings: [
{ k: new TagsFilter_1.Tag("id", "node/-1"), txt: "<span class='alert'>Uploading</span>" }
]
};
return OsmLink;
}(TagRendering_1.TagRenderingOptions));
exports.OsmLink = OsmLink;

View file

@ -1,59 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.WikipediaLink = void 0;
var TagRendering_1 = require("../TagRendering");
var WikipediaLink = /** @class */ (function (_super) {
__extends(WikipediaLink, _super);
function WikipediaLink() {
return _super.call(this, WikipediaLink.options) || this;
}
WikipediaLink.FixLink = function (value) {
if (value === undefined) {
return undefined;
}
// @ts-ignore
if (value.startsWith("https")) {
return value;
}
else {
var splitted = value.split(":");
var language = splitted[0];
splitted.shift();
var page = splitted.join(":");
return 'https://' + language + '.wikipedia.org/wiki/' + page;
}
};
WikipediaLink.options = {
priority: 10,
// question: "Wat is het overeenstemmende wkipedia-artikel?",
tagsPreprocessor: function (tags) {
if (tags.wikipedia !== undefined) {
tags.wikipedia = WikipediaLink.FixLink(tags.wikipedia);
}
},
freeform: {
key: "wikipedia",
template: "$$$",
renderTemplate: "<span class='wikipedialink'>" +
"<a href='{wikipedia}' target='_blank'>" +
"<img width='64px' src='./assets/wikipedia.svg' alt='wikipedia'>" +
"</a></span>",
placeholder: ""
},
};
return WikipediaLink;
}(TagRendering_1.TagRenderingOptions));
exports.WikipediaLink = WikipediaLink;

View file

@ -1,52 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var ParkingType = /** @class */ (function (_super) {
__extends(ParkingType, _super);
function ParkingType() {
return _super.call(this, {
priority: 5,
question: "Van welk type is deze fietsenparking?",
freeform: {
key: "bicycle_parking",
extraTags: new TagsFilter_1.Tag("fixme", "Freeform bicycle_parking= tag used: possibly a wrong value"),
template: "Iets anders: $$$",
renderTemplate: "Dit is een fietsenparking van het type: {bicycle_parking}",
placeholder: "Specifieer"
},
mappings: [
{ k: new TagsFilter_1.Tag("bicycle_parking", "stands"), txt: ParkingType.toImgTxt(ParkingType.images.stands) },
{ k: new TagsFilter_1.Tag("bicycle_parking", "wall_loops"), txt: ParkingType.toImgTxt(ParkingType.images.wall_loops) },
{ k: new TagsFilter_1.Tag("bicycle_parking", "handlebar_holder"), txt: ParkingType.toImgTxt(ParkingType.images.handlebar_holder) },
{ k: new TagsFilter_1.Tag("bicycle_parking", "shed"), txt: ParkingType.toImgTxt(ParkingType.images.shed) },
{ k: new TagsFilter_1.Tag("bicycle_parking", "two-tier"), txt: ParkingType.toImgTxt(ParkingType.images["two-tier"]) }
]
}) || this;
}
ParkingType.toImgTxt = function (url) {
return "<img src=" + url + ">";
};
ParkingType.images = {
stands: "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Bike_racks_at_north-west_of_Westfield_-_geograph.org.uk_-_1041057.jpg/100px-Bike_racks_at_north-west_of_Westfield_-_geograph.org.uk_-_1041057.jpg",
wall_loops: "https://wiki.openstreetmap.org/w/images/thumb/c/c2/Bike-parking-wheelbender.jpg/100px-Bike-parking-wheelbender.jpg",
handlebar_holder: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Bicycle_parking_handlebar_holder.jpg/100px-Bicycle_parking_handlebar_holder.jpg",
shed: "https://wiki.openstreetmap.org/w/images/thumb/b/b2/Bike-shelter.jpg/100px-Bike-shelter.jpg",
"two-tier": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Bicis_a_l%27estaci%C3%B3_de_Leiden.JPG/100px-Bicis_a_l%27estaci%C3%B3_de_Leiden.JPG"
};
return ParkingType;
}(TagRendering_1.TagRenderingOptions));
exports.default = ParkingType;

View file

@ -1,32 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var PumpManometer = /** @class */ (function (_super) {
__extends(PumpManometer, _super);
function PumpManometer() {
return _super.call(this, {
question: "Does the pump have a pressure indicator or manometer?",
mappings: [
{ k: new TagsFilter_1.Tag("manometer", "yes"), txt: "Yes, there is a manometer" },
{ k: new TagsFilter_1.Tag("manometer", "broken"), txt: "Yes, but it is broken" },
{ k: new TagsFilter_1.Tag("manometer", "yes"), txt: "No" }
]
}) || this;
}
return PumpManometer;
}(TagRendering_1.TagRenderingOptions));
exports.default = PumpManometer;

View file

@ -1,32 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var PumpManual = /** @class */ (function (_super) {
__extends(PumpManual, _super);
function PumpManual() {
return _super.call(this, {
priority: 5,
question: "Is this an electric bike pump?",
mappings: [
{ k: new TagsFilter_1.Tag("manual", "yes"), txt: "Manual pump" },
{ k: new TagsFilter_1.Tag("manual", "no"), txt: "Electric pump" }
]
}) || this;
}
return PumpManual;
}(TagRendering_1.TagRenderingOptions));
exports.default = PumpManual;

View file

@ -1,31 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var PumpOperational = /** @class */ (function (_super) {
__extends(PumpOperational, _super);
function PumpOperational() {
return _super.call(this, {
question: "Is the bicycle pump still operational?",
mappings: [
{ k: new TagsFilter_1.Tag("service:bicycle:pump:operational_status", "broken"), txt: "This pump is broken" },
{ k: new TagsFilter_1.Tag("service:bicycle:pump:operational_status", ""), txt: "This pump is operational" }
]
}) || this;
}
return PumpOperational;
}(TagRendering_1.TagRenderingOptions));
exports.default = PumpOperational;

View file

@ -1,41 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var PumpValves = /** @class */ (function (_super) {
__extends(PumpValves, _super);
function PumpValves() {
return _super.call(this, {
question: "What valves are supported?",
mappings: [
{
k: new TagsFilter_1.Tag("valves", " sclaverand;schrader;dunlop"),
txt: "There is a default head, so Presta, Dunlop and Auto"
},
{ k: new TagsFilter_1.Tag("valves", "dunlop"), txt: "Only dunlop" },
{ k: new TagsFilter_1.Tag("valves", "sclaverand"), txt: "Only Sclaverand (also known as Dunlop)" },
{ k: new TagsFilter_1.Tag("valves", "auto"), txt: "Only auto" },
],
freeform: {
key: "valves",
template: "Supported valves are $$$",
renderTemplate: "Supported valves are {valves}"
}
}) || this;
}
return PumpValves;
}(TagRendering_1.TagRenderingOptions));
exports.default = PumpValves;

View file

@ -1,44 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
/**
* Currently not used in Cyclofix because it's a little vague
*/
var BikeStationBrand = /** @class */ (function (_super) {
__extends(BikeStationBrand, _super);
function BikeStationBrand() {
var _this = this;
throw Error('BikeStationBrand disabled');
_this = _super.call(this, BikeStationBrand.options) || this;
return _this;
}
BikeStationBrand.options = {
priority: 15,
question: "What is the brand of this bike station (name of university, shop, city...)?",
freeform: {
key: "brand",
template: "The brand of this bike station is $$$",
renderTemplate: "The brand of this bike station is {operator}",
placeholder: "brand"
},
mappings: [
{ k: new TagsFilter_1.Tag("brand", "Velo Fix Station"), txt: "Velo Fix Station" }
]
};
return BikeStationBrand;
}(TagRendering_1.TagRenderingOptions));
exports.default = BikeStationBrand;

View file

@ -1,32 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var StationChain = /** @class */ (function (_super) {
__extends(StationChain, _super);
function StationChain() {
return _super.call(this, {
priority: 5,
question: "Does this bike station have a special tool to repair your bike chain?",
mappings: [
{ k: new TagsFilter_1.Tag("service:bicycle:chain_tool", "yes"), txt: "There is a chain tool." },
{ k: new TagsFilter_1.Tag("service:bicycle:chain_tool", "no"), txt: "There is no chain tool." },
]
}) || this;
}
return StationChain;
}(TagRendering_1.TagRenderingOptions));
exports.default = StationChain;

View file

@ -1,41 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var BikeStationOperator = /** @class */ (function (_super) {
__extends(BikeStationOperator, _super);
function BikeStationOperator() {
return _super.call(this, {
priority: 15,
question: "Who operates this bike station (name of university, shop, city...)?",
freeform: {
key: "operator",
template: "This bike station is operated by $$$",
renderTemplate: "This bike station is operated by {operator}",
placeholder: "organisatie"
},
mappings: [
{ k: new TagsFilter_1.Tag("operator", "KU Leuven"), txt: "KU Leuven" },
{ k: new TagsFilter_1.Tag("operator", "Stad Halle"), txt: "Stad Halle" },
{ k: new TagsFilter_1.Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis" },
{ k: new TagsFilter_1.Tag("operator", "Jette"), txt: "Jette" },
{ k: new TagsFilter_1.Tag("operator", "private"), txt: "Beheer door een privépersoon" }
]
}) || this;
}
return BikeStationOperator;
}(TagRendering_1.TagRenderingOptions));
exports.default = BikeStationOperator;

View file

@ -1,33 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var BikeStationPumpTools = /** @class */ (function (_super) {
__extends(BikeStationPumpTools, _super);
function BikeStationPumpTools() {
return _super.call(this, {
priority: 15,
question: "Which services are available at this bike station?",
mappings: [
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("service:bicycle:tools", "no"), new TagsFilter_1.Tag("service:bicycle:pump", "yes")]), txt: "There is only a pump available." },
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("service:bicycle:tools", "yes"), new TagsFilter_1.Tag("service:bicycle:pump", "no")]), txt: "There are only tools (screwdrivers, pliers...) available." },
{ k: new TagsFilter_1.And([new TagsFilter_1.Tag("service:bicycle:tools", "yes"), new TagsFilter_1.Tag("service:bicycle:pump", "yes")]), txt: "There are both tools and a pump available." }
]
}) || this;
}
return BikeStationPumpTools;
}(TagRendering_1.TagRenderingOptions));
exports.default = BikeStationPumpTools;

View file

@ -1,32 +0,0 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var TagRendering_1 = require("../../TagRendering");
var TagsFilter_1 = require("../../../Logic/TagsFilter");
var BikeStationStand = /** @class */ (function (_super) {
__extends(BikeStationStand, _super);
function BikeStationStand() {
return _super.call(this, {
priority: 10,
question: "Does this bike station have a hook to suspend your bike with or a stand to elevate it?",
mappings: [
{ k: new TagsFilter_1.Tag("service:bicycle:stand", "yes"), txt: "There is a hook or stand." },
{ k: new TagsFilter_1.Tag("service:bicycle:stand", "no"), txt: "There is no hook or stand" },
]
}) || this;
}
return BikeStationStand;
}(TagRendering_1.TagRenderingOptions));
exports.default = BikeStationStand;