This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FORGE CONFIG (DO NOT REMOVE!) | |
include forge-conf/api.brownbook.org/before/*; | |
fastcgi_cache_path /usr/local/etc/nginx/cache levels=1:2 keys_zone=FASTCACHE:100m inactive=60m; # use real nginx cache folder path... | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
add_header X-Cache-Status $upstream_cache_status; | |
add_header X-Cache $upstream_cache_status; | |
server { | |
listen 443 ssl http2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"im": null, | |
"fax": null, | |
"blog": null, | |
"city": null, | |
"logo": null, | |
"name": "another t", | |
"voip": null, | |
"email": null, | |
"phone": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.post(`${config.bookingApi}/ManageBooking/GetBooking`, booked, { | |
dataTransformer: ({data}) => { | |
console.log('transformer.data.response', data); | |
let customer = { | |
id: 1, | |
...data.bookerProfile, | |
...data.bookerProfile.address, | |
email: data.bookerProfile.email.address, | |
mobilePhone: data.bookerProfile.phone.countryCode.concat(' ', data.bookerProfile.phone.number) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.post(`${config.bookingApi}/ManageBooking/GetBooking`, booked, { | |
dataTransformer: ({data}) => { | |
console.log('transformer.data.response', data); | |
let customer = { | |
id: 1, | |
...data.bookerProfile, | |
...data.bookerProfile.address, | |
email: data.bookerProfile.email.address, | |
mobilePhone: data.bookerProfile.phone.countryCode.concat(' ', data.bookerProfile.phone.number) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<app-card class="pa-5 mb-5"> | |
<app-row> | |
<app-col cols="12"> | |
<h4 class="payment-calculations">{{ $t('message.paymentCalculation') }}</h4> | |
</app-col> | |
<app-col cols="12"> | |
<v-data-table | |
:loading="loading" | |
disable-pagination |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
methods: { | |
checkParams(params, model, selection) { | |
// Searching params | |
let searching = { | |
arrival: params.arrival, | |
departure: params.departure, | |
propertyId: parseInt(params.propertyID), | |
rooms: parseInt(params.rooms), | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @/lang/index.js | |
const numberFormats = { | |
'en': { | |
currency: { | |
style: 'currency', | |
currency: 'CHF' | |
} | |
}, | |
'de': { | |
currency: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// numeralLocale.js | |
// | |
import numeral from 'numeral'; | |
let locales = { | |
'en': { | |
delimiters: { | |
decimal: '.', | |
thousands: ',' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//** | |
// src/lang/numeralLocales.js | |
import numeral from 'numeral'; | |
export const register = (localeName = 'ch', currency) => numeral.register('locale', localeName, { | |
delimiters: { | |
thousands: ' ', | |
decimal: ',' | |
}, | |
abbreviations: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numeral from 'numeral'; | |
import 'numeral/locales/de'; | |
import 'numeral/locales/de-ch'; | |
import 'numeral/locales/it'; | |
import 'numeral/locales/fr'; | |
numeral.locale('de-ch'); | |
Vue.prototype.$numeral = (val) => { | |
let locale = i18n.locale; | |
let filteredLang = languages.filter(lang => lang.name === locale); |
NewerOlder