Improved indentation in fields example

This commit is contained in:
Alexander Cerutti
2019-03-30 00:45:02 +01:00
parent 7c2540a93d
commit 447d71709e
2 changed files with 86 additions and 86 deletions

View File

@@ -36,11 +36,11 @@ app.all(function manageRequest(request, response) {
"value": "25 mag", "value": "25 mag",
"textAlignment": "PKTextAlignmentCenter" "textAlignment": "PKTextAlignmentCenter"
}, { }, {
"key": "header2", "key": "header2",
"label": "Volo", "label": "Volo",
"value": "EZY997", "value": "EZY997",
"textAlignment": "PKTextAlignmentCenter" "textAlignment": "PKTextAlignmentCenter"
}); });
pass.primaryFields.push({ pass.primaryFields.push({
key: "IATA-source", key: "IATA-source",
@@ -48,11 +48,11 @@ app.all(function manageRequest(request, response) {
label: "Napoli", label: "Napoli",
textAlignment: "PKTextAlignmentLeft" textAlignment: "PKTextAlignmentLeft"
}, { }, {
key: "IATA-destination", key: "IATA-destination",
value: "VCE", value: "VCE",
label: "Venezia Marco Polo", label: "Venezia Marco Polo",
textAlignment: "PKTextAlignmentRight" textAlignment: "PKTextAlignmentRight"
}); });
pass.secondaryFields.push({ pass.secondaryFields.push({
"key": "secondary1", "key": "secondary1",
@@ -60,21 +60,21 @@ app.all(function manageRequest(request, response) {
"value": "18:40", "value": "18:40",
"textAlignment": "PKTextAlignmentCenter", "textAlignment": "PKTextAlignmentCenter",
}, { }, {
"key": "sec2", "key": "sec2",
"label": "Partenze", "label": "Partenze",
"value": "19:10", "value": "19:10",
"textAlignment": "PKTextAlignmentCenter" "textAlignment": "PKTextAlignmentCenter"
}, { }, {
"key": "sec3", "key": "sec3",
"label": "SB", "label": "SB",
"value": "Sì", "value": "Sì",
"textAlignment": "PKTextAlignmentCenter" "textAlignment": "PKTextAlignmentCenter"
}, { }, {
"key": "sec4", "key": "sec4",
"label": "Imbarco", "label": "Imbarco",
"value": "Anteriore", "value": "Anteriore",
"textAlignment": "PKTextAlignmentCenter" "textAlignment": "PKTextAlignmentCenter"
}); });
pass.auxiliaryFields.push({ pass.auxiliaryFields.push({
"key": "aux1", "key": "aux1",
@@ -82,11 +82,11 @@ app.all(function manageRequest(request, response) {
"value": "MR. WHO KNOWS", "value": "MR. WHO KNOWS",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "aux2", "key": "aux2",
"label": "Posto", "label": "Posto",
"value": "1A*", "value": "1A*",
"textAlignment": "PKTextAlignmentCenter" "textAlignment": "PKTextAlignmentCenter"
}); });
pass.backFields.push({ pass.backFields.push({
"key": "document number", "key": "document number",
@@ -94,56 +94,56 @@ app.all(function manageRequest(request, response) {
"value": "- -", "value": "- -",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "You're checked in, what next", "key": "You're checked in, what next",
"label": "Hai effettuato il check-in, Quali sono le prospettive", "label": "Hai effettuato il check-in, Quali sono le prospettive",
"value": "", "value": "",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "Check In", "key": "Check In",
"label": "1. check-in✓", "label": "1. check-in✓",
"value": "", "value": "",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "checkIn", "key": "checkIn",
"label": "", "label": "",
"value": "Le uscite d'imbarco chiudono 30 minuti prima della partenza, quindi sii puntuale. In questo aeroporto puoi utilizzare la corsia Fast Track ai varchi di sicurezza.", "value": "Le uscite d'imbarco chiudono 30 minuti prima della partenza, quindi sii puntuale. In questo aeroporto puoi utilizzare la corsia Fast Track ai varchi di sicurezza.",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "2. Bags", "key": "2. Bags",
"label": "2. Bagaglio", "label": "2. Bagaglio",
"value": "", "value": "",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "Require special assistance", "key": "Require special assistance",
"label": "Assistenza speciale", "label": "Assistenza speciale",
"value": "Se hai richiesto assistenza speciale, presentati a un membro del personale nell'area di Consegna bagagli almeno 90 minuti prima del volo.", "value": "Se hai richiesto assistenza speciale, presentati a un membro del personale nell'area di Consegna bagagli almeno 90 minuti prima del volo.",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "3. Departures", "key": "3. Departures",
"label": "3. Partenze", "label": "3. Partenze",
"value": "", "value": "",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "photoId", "key": "photoId",
"label": "Un documento didentità corredato di fotografia", "label": "Un documento didentità corredato di fotografia",
"value": "è obbligatorio su TUTTI i voli. Per un viaggio internazionale è necessario un passaporto valido o, dove consentita, una carta didentità.", "value": "è obbligatorio su TUTTI i voli. Per un viaggio internazionale è necessario un passaporto valido o, dove consentita, una carta didentità.",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "yourSeat", "key": "yourSeat",
"label": "Il tuo posto:", "label": "Il tuo posto:",
"value": "verifica il tuo numero di posto nella parte superiore. Durante limbarco utilizza le scale anteriori e posteriori: per le file 1-10 imbarcati dalla parte anteriore; per le file 11-31 imbarcati dalla parte posteriore. Colloca le borse di dimensioni ridotte sotto il sedile davanti a te.", "value": "verifica il tuo numero di posto nella parte superiore. Durante limbarco utilizza le scale anteriori e posteriori: per le file 1-10 imbarcati dalla parte anteriore; per le file 11-31 imbarcati dalla parte posteriore. Colloca le borse di dimensioni ridotte sotto il sedile davanti a te.",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "Pack safely", "key": "Pack safely",
"label": "Bagaglio sicuro", "label": "Bagaglio sicuro",
"value": "Fai clic http://easyjet.com/it/articoli-pericolosi per maggiori informazioni sulle merci pericolose oppure visita il sito CAA http://www.caa.co.uk/default.aspx?catid=2200", "value": "Fai clic http://easyjet.com/it/articoli-pericolosi per maggiori informazioni sulle merci pericolose oppure visita il sito CAA http://www.caa.co.uk/default.aspx?catid=2200",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}, { }, {
"key": "Thank you for travelling easyJet", "key": "Thank you for travelling easyJet",
"label": "Grazie per aver viaggiato con easyJet", "label": "Grazie per aver viaggiato con easyJet",
"value": "", "value": "",
"textAlignment": "PKTextAlignmentLeft" "textAlignment": "PKTextAlignmentLeft"
}); });
pass.generate().then(function (stream) { pass.generate().then(function (stream) {
response.set({ response.set({

View File

@@ -699,8 +699,8 @@ class Pass {
* Validates the contents of the passed options and handle them * Validates the contents of the passed options and handle them
* *
* @function readCertificates * @function readCertificates
* @params {Object} certificates - certificates object with raw content and, optionally, * @params {Object} certificates - certificates object with raw content
* the already parsed certificates * and, optionally, the already parsed certificates
* @returns {Object} - parsed certificates to be pushed to Pass.Certificates. * @returns {Object} - parsed certificates to be pushed to Pass.Certificates.
*/ */
@@ -817,11 +817,11 @@ function dateToW3CString(date, format) {
} }
/** /**
* Apply a filter to arg0 to remove hidden files names (starting with dot) * Apply a filter to arg0 to remove hidden files names (starting with dot)
* *
* @function removeHidden * @function removeHidden
* @params {String[]} from - list of file names * @params {String[]} from - list of file names
* @return {String[]} * @return {String[]}
*/ */
function removeHidden(from) { function removeHidden(from) {