Skip to content

Instantly share code, notes, and snippets.

# 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;
{
"im": null,
"fax": null,
"blog": null,
"city": null,
"logo": null,
"name": "another t",
"voip": null,
"email": null,
"phone": null,
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.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)
};
<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
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),
};
// @/lang/index.js
const numberFormats = {
'en': {
currency: {
style: 'currency',
currency: 'CHF'
}
},
'de': {
currency: {
// numeralLocale.js
//
import numeral from 'numeral';
let locales = {
'en': {
delimiters: {
decimal: '.',
thousands: ','
},
//**
// src/lang/numeralLocales.js
import numeral from 'numeral';
export const register = (localeName = 'ch', currency) => numeral.register('locale', localeName, {
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
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);