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> | |
<div class="flex content-center justify-center full-width q-pa-xl"> | |
<div class="row" style="width: 60%;"> | |
<div class="col-md-12"> | |
<div v-if="isLoading"> | |
<q-spinner-facebook size="4rem" color="grey-5" class="absolute-center"></q-spinner-facebook> | |
</div> | |
<div v-if="!isLoading"> | |
<q-card square class="shadow-10 q-pa-xl"> |
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 { ApolloClient } from 'apollo-client' | |
import { createHttpLink } from 'apollo-link-http' | |
import { InMemoryCache } from 'apollo-cache-inmemory' | |
import { ApolloLink } from 'apollo-link' | |
import VueApollo from 'vue-apollo' | |
//WS imports | |
import { split } from 'apollo-link' | |
import { getMainDefinition } from 'apollo-utilities' |
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
<script> | |
import Widget from '@/components/widgets/Widget'; | |
import TabWidget from '@/store/models/tab/TabWidget'; | |
import VolumeInspectorProfile from './VolumeInspectorProfile'; | |
import VolumeInspectorRatios from './VolumeInspectorRatios'; | |
import BaseChip from '../../base/BaseChip'; | |
import VolumeInspectorStream from './VolumeInspectorStream'; | |
import BaseIconButton from '../../base/BaseIconButton'; | |
import TradeFlowSettings from '../../../store/models/widget/TradeFlowSettings'; | |
import BaseMenu from '../../base/BaseMenu'; |
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
async calculateTotal() { | |
Booking.insertOrUpdate({ | |
data: { | |
id:1, | |
totalPrice: 0, | |
paymentPrice: 0 | |
} | |
}); | |
TotalPrice.deleteAll() |
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); |
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
// 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
// @/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
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
<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 |
OlderNewer