added prettier package

This commit is contained in:
Moriz Wahl 2021-03-24 19:42:17 +01:00
parent f09d2328d3
commit 83fc483eaf
51 changed files with 124 additions and 170 deletions

View File

@ -1,2 +1,3 @@
node_modules node_modules
**/*.min.js **/*.min.js
build

View File

@ -45,6 +45,7 @@
"nouislider": "^12.1.0", "nouislider": "^12.1.0",
"particles-bg-vue": "1.2.3", "particles-bg-vue": "1.2.3",
"perfect-scrollbar": "^1.3.0", "perfect-scrollbar": "^1.3.0",
"prettier": "^2.2.1",
"qrcode": "^1.4.4", "qrcode": "^1.4.4",
"quill": "^1.3.6", "quill": "^1.3.6",
"sweetalert2": "^9.5.4", "sweetalert2": "^9.5.4",

View File

@ -10,12 +10,8 @@
class="m-md-2" class="m-md-2"
> >
<b-dropdown-divider></b-dropdown-divider> <b-dropdown-divider></b-dropdown-divider>
<b-dropdown-item @click.prevent="setLocale('de')"> <b-dropdown-item @click.prevent="setLocale('de')">Deutsch</b-dropdown-item>
Deutsch <b-dropdown-item @click.prevent="setLocale('en')">English</b-dropdown-item>
</b-dropdown-item>
<b-dropdown-item @click.prevent="setLocale('en')">
English
</b-dropdown-item>
</b-dropdown> </b-dropdown>
</b-col> </b-col>
</header> </header>

View File

@ -1,7 +1,7 @@
import axios from 'axios' import axios from 'axios'
import CONFIG from '../config' import CONFIG from '../config'
const apiGet = async url => { const apiGet = async (url) => {
try { try {
const result = await axios.get(url) const result = await axios.get(url)
if (result.status !== 200) { if (result.status !== 200) {
@ -32,10 +32,10 @@ const apiPost = async (url, payload) => {
} }
const communityAPI = { const communityAPI = {
balance: async session_id => { balance: async (session_id) => {
return apiGet(CONFIG.COMMUNITY_API_STATE_BALANCE_URL + 'ajaxGetBalance/' + session_id) return apiGet(CONFIG.COMMUNITY_API_STATE_BALANCE_URL + 'ajaxGetBalance/' + session_id)
}, },
transactions: async session_id => { transactions: async (session_id) => {
return apiGet(CONFIG.COMMUNITY_API_STATE_BALANCE_URL + 'ajaxListTransactions/' + session_id) return apiGet(CONFIG.COMMUNITY_API_STATE_BALANCE_URL + 'ajaxListTransactions/' + session_id)
}, },
create: async (session_id, email, amount, memo, target_date = new Date()) => { create: async (session_id, email, amount, memo, target_date = new Date()) => {

View File

@ -30,7 +30,7 @@ const loginAPI = {
} }
return apiPost(CONFIG.LOGIN_API_URL + 'unsecureLogin', payload) return apiPost(CONFIG.LOGIN_API_URL + 'unsecureLogin', payload)
}, },
logout: async session_id => { logout: async (session_id) => {
const payload = { session_id } const payload = { session_id }
return apiPost(CONFIG.LOGIN_API_URL + 'logout', payload) return apiPost(CONFIG.LOGIN_API_URL + 'logout', payload)
}, },

View File

@ -6,7 +6,7 @@
:per-page="perPage" :per-page="perPage"
:size="size" :size="size"
:value="value" :value="value"
@change="val => $emit('change', val)" @change="(val) => $emit('change', val)"
:align="align" :align="align"
:total-rows="total" :total-rows="total"
> >

View File

@ -59,7 +59,7 @@ export default {
value: { value: {
type: Number, type: Number,
default: 0, default: 0,
validator: value => { validator: (value) => {
return value >= 0 && value <= 100 return value >= 0 && value <= 100
}, },
description: 'Progress value', description: 'Progress value',

View File

@ -9,7 +9,7 @@
v-for="(route, index) in $route.matched.slice()" v-for="(route, index) in $route.matched.slice()"
:key="route.name" :key="route.name"
:active="index === $route.matched.length - 1" :active="index === $route.matched.length - 1"
style="display:inline-block" style="display: inline-block"
> >
<router-link :to="{ name: route.name }" v-if="index < $route.matched.length - 1"> <router-link :to="{ name: route.name }" v-if="index < $route.matched.length - 1">
{{ route.name }} {{ route.name }}

View File

@ -93,11 +93,11 @@ function chartOptions() {
mode: 'point', mode: 'point',
}, },
cutoutPercentage: 83, cutoutPercentage: 83,
legendCallback: function(chart) { legendCallback: function (chart) {
let data = chart.data let data = chart.data
let content = '' let content = ''
data.labels.forEach(function(label, index) { data.labels.forEach(function (label, index) {
let bgColor = data.datasets[0].backgroundColor[index] let bgColor = data.datasets[0].backgroundColor[index]
content += '<span class="chart-legend-item">' content += '<span class="chart-legend-item">'
@ -129,7 +129,7 @@ function chartOptions() {
ticks: { ticks: {
beginAtZero: true, beginAtZero: true,
padding: 10, padding: 10,
callback: function(value) { callback: function (value) {
if (!(value % 10)) { if (!(value % 10)) {
return value return value
} }

View File

@ -3,7 +3,7 @@
// Code from: https://codepen.io/jedtrow/full/ygRYgo // Code from: https://codepen.io/jedtrow/full/ygRYgo
// //
import Chart from 'chart.js' import Chart from 'chart.js'
Chart.elements.Rectangle.prototype.draw = function() { Chart.elements.Rectangle.prototype.draw = function () {
let ctx = this._chart.ctx let ctx = this._chart.ctx
let vm = this._view let vm = this._view
let left, right, top, bottom, signX, signY, borderSkipped, radius let left, right, top, bottom, signX, signY, borderSkipped, radius

View File

@ -53,7 +53,7 @@ export default {
} }
}, },
deactivateAll() { deactivateAll() {
this.items.forEach(item => { this.items.forEach((item) => {
item.active = false item.active = false
}) })
}, },

View File

@ -72,9 +72,7 @@ export default {
}, },
}, },
created() { created() {
this.cbId = Math.random() this.cbId = Math.random().toString(16).slice(2)
.toString(16)
.slice(2)
}, },
} }
</script> </script>

View File

@ -58,7 +58,7 @@
</div> </div>
</slot> </slot>
<slot name="error"> <slot name="error">
<div v-if="errors[0]" class="invalid-feedback" style="display: block;"> <div v-if="errors[0]" class="invalid-feedback" style="display: block">
{{ errors[0] }} {{ errors[0] }}
</div> </div>
</slot> </slot>

View File

@ -58,9 +58,7 @@ export default {
}, },
}, },
created() { created() {
this.cbId = Math.random() this.cbId = Math.random().toString(16).slice(2)
.toString(16)
.slice(2)
}, },
} }
</script> </script>

View File

@ -40,7 +40,7 @@ export default {
components: { components: {
contentRender: { contentRender: {
props: ['component'], props: ['component'],
render: function(createElement) { render: function (createElement) {
return createElement(this.component) return createElement(this.component)
}, },
}, },
@ -58,7 +58,7 @@ export default {
verticalAlign: { verticalAlign: {
type: String, type: String,
default: 'top', default: 'top',
validator: value => { validator: (value) => {
let acceptedValues = ['top', 'bottom'] let acceptedValues = ['top', 'bottom']
return acceptedValues.indexOf(value) !== -1 return acceptedValues.indexOf(value) !== -1
}, },
@ -67,7 +67,7 @@ export default {
horizontalAlign: { horizontalAlign: {
type: String, type: String,
default: 'right', default: 'right',
validator: value => { validator: (value) => {
let acceptedValues = ['left', 'center', 'right'] let acceptedValues = ['left', 'center', 'right']
return acceptedValues.indexOf(value) !== -1 return acceptedValues.indexOf(value) !== -1
}, },
@ -76,7 +76,7 @@ export default {
type: { type: {
type: String, type: String,
default: 'info', default: 'info',
validator: value => { validator: (value) => {
let acceptedValues = ['default', 'info', 'primary', 'danger', 'warning', 'success'] let acceptedValues = ['default', 'info', 'primary', 'danger', 'warning', 'success']
return acceptedValues.indexOf(value) !== -1 return acceptedValues.indexOf(value) !== -1
}, },
@ -86,7 +86,7 @@ export default {
timeout: { timeout: {
type: Number, type: Number,
default: 5000, default: 5000,
validator: value => { validator: (value) => {
return value >= 0 return value >= 0
}, },
description: 'Notification timeout (closes after X milliseconds). Default is 5000 (5s)', description: 'Notification timeout (closes after X milliseconds). Default is 5000 (5s)',
@ -131,7 +131,7 @@ export default {
customPosition() { customPosition() {
let initialMargin = 20 let initialMargin = 20
let alertHeight = this.elmHeight + 10 let alertHeight = this.elmHeight + 10
let sameAlertsCount = this.$notifications.state.filter(alert => { let sameAlertsCount = this.$notifications.state.filter((alert) => {
return ( return (
alert.horizontalAlign === this.horizontalAlign && alert.horizontalAlign === this.horizontalAlign &&
alert.verticalAlign === this.verticalAlign && alert.verticalAlign === this.verticalAlign &&

View File

@ -44,7 +44,7 @@ export default {
this.$notifications.settings.overlap = this.overlap this.$notifications.settings.overlap = this.overlap
}, },
watch: { watch: {
overlap: function(newVal) { overlap: function (newVal) {
this.$notifications.settings.overlap = newVal this.$notifications.settings.overlap = newVal
}, },
}, },

View File

@ -15,7 +15,7 @@ const NotificationStore = {
this.settings = Object.assign(this.settings, options) this.settings = Object.assign(this.settings, options)
}, },
removeNotification(timestamp) { removeNotification(timestamp) {
const indexToDelete = this.state.findIndex(n => n.timestamp === timestamp) const indexToDelete = this.state.findIndex((n) => n.timestamp === timestamp)
if (indexToDelete !== -1) { if (indexToDelete !== -1) {
this.state.splice(indexToDelete, 1) this.state.splice(indexToDelete, 1)
} }
@ -33,7 +33,7 @@ const NotificationStore = {
}, },
notify(notification) { notify(notification) {
if (Array.isArray(notification)) { if (Array.isArray(notification)) {
notification.forEach(notificationInstance => { notification.forEach((notificationInstance) => {
this.addNotification(notificationInstance) this.addNotification(notificationInstance)
}) })
} else { } else {

View File

@ -27,15 +27,15 @@
<i class="ni ni-single-02"></i> <i class="ni ni-single-02"></i>
<span>{{ $t('site.overview.account_overview') }}</span> <span>{{ $t('site.overview.account_overview') }}</span>
</router-link> </router-link>
<router-link to="/profile" class="dropdown-item text-lg text-muted"> <router-link to="/profile" class="dropdown-item text-lg text-muted">
<i class="ni ni-single-02"></i> <i class="ni ni-single-02"></i>
<span>{{ $t('site.navbar.my-profil') }}</span> <span>{{ $t('site.navbar.my-profil') }}</span>
</router-link> </router-link>
<router-link to="/profileedit" class="dropdown-item text-lg text-muted"> <router-link to="/profileedit" class="dropdown-item text-lg text-muted">
<i class="ni ni-settings-gear-65"></i> <i class="ni ni-settings-gear-65"></i>
<span>{{ $t('site.navbar.settings') }}</span> <span>{{ $t('site.navbar.settings') }}</span>
</router-link> </router-link>
<router-link to="/transactions" class="dropdown-item text-lg text-muted"> <router-link to="/transactions" class="dropdown-item text-lg text-muted">
<i class="ni ni-calendar-grid-58"></i> <i class="ni ni-calendar-grid-58"></i>
<span>Transactions</span> <span>Transactions</span>
</router-link> </router-link>
@ -46,7 +46,7 @@
</router-link> </router-link>
--> -->
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<div @click="logout" class="dropdown-item text-lg text-muted"> <div @click="logout" class="dropdown-item text-lg text-muted">
<i class="ni ni-support-16"></i> <i class="ni ni-support-16"></i>
{{ $t('logout') }} {{ $t('logout') }}
</div> </div>

View File

@ -111,7 +111,7 @@ export default {
linkPrefix() { linkPrefix() {
if (this.link.name) { if (this.link.name) {
let words = this.link.name.split(' ') let words = this.link.name.split(' ')
return words.map(word => word.substring(0, 1)).join('') return words.map((word) => word.substring(0, 1)).join('')
} }
return '' return ''
}, },
@ -120,7 +120,7 @@ export default {
}, },
isActive() { isActive() {
if (this.$route && this.$route.path) { if (this.$route && this.$route.path) {
let matchingRoute = this.children.find(c => this.$route.path.startsWith(c.link.path)) let matchingRoute = this.children.find((c) => this.$route.path.startsWith(c.link.path))
if (matchingRoute !== undefined) { if (matchingRoute !== undefined) {
return true return true
} }

View File

@ -66,7 +66,7 @@ export default {
type: { type: {
type: String, type: String,
default: 'primary', default: 'primary',
validator: value => { validator: (value) => {
let acceptedValues = ['primary', 'info', 'success', 'warning', 'danger'] let acceptedValues = ['primary', 'info', 'success', 'warning', 'danger']
return acceptedValues.indexOf(value) !== -1 return acceptedValues.indexOf(value) !== -1
}, },
@ -102,7 +102,7 @@ export default {
}, },
methods: { methods: {
findAndActivateTab(title) { findAndActivateTab(title) {
let tabToActivate = this.tabs.find(t => t.title === title) let tabToActivate = this.tabs.find((t) => t.title === title)
if (tabToActivate) { if (tabToActivate) {
this.activateTab(tabToActivate) this.activateTab(tabToActivate)
} }
@ -115,7 +115,7 @@ export default {
tab.active = true tab.active = true
}, },
deactivateTabs() { deactivateTabs() {
this.tabs.forEach(tab => { this.tabs.forEach((tab) => {
tab.active = false tab.active = false
}) })
}, },

View File

@ -1,6 +1,6 @@
export default { export default {
bind: function(el, binding, vnode) { bind: function (el, binding, vnode) {
el.clickOutsideEvent = function(event) { el.clickOutsideEvent = function (event) {
// here I check that click was outside the el and his childrens // here I check that click was outside the el and his childrens
if (!(el == event.target || el.contains(event.target))) { if (!(el == event.target || el.contains(event.target))) {
// and if it did, call method provided in attribute value // and if it did, call method provided in attribute value
@ -9,7 +9,7 @@ export default {
} }
document.body.addEventListener('click', el.clickOutsideEvent) document.body.addEventListener('click', el.clickOutsideEvent)
}, },
unbind: function(el) { unbind: function (el) {
document.body.removeEventListener('click', el.clickOutsideEvent) document.body.removeEventListener('click', el.clickOutsideEvent)
}, },
} }

View File

@ -9,7 +9,7 @@ Vue.use(VueI18n)
function loadLocaleMessages() { function loadLocaleMessages() {
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i) const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i)
const messages = {} const messages = {}
locales.keys().forEach(key => { locales.keys().forEach((key) => {
const matched = key.match(/([A-Za-z0-9-_]+)\./i) const matched = key.match(/([A-Za-z0-9-_]+)\./i)
if (matched && matched.length > 1) { if (matched && matched.length > 1) {
const locale = matched[1] const locale = matched[1]

View File

@ -22,5 +22,5 @@ new Vue({
router, router,
store, store,
i18n, i18n,
render: h => h(App), render: (h) => h(App),
}) })

View File

@ -37,7 +37,7 @@ import 'vue-good-table/dist/vue-good-table.css'
import VueMoment from 'vue-moment' import VueMoment from 'vue-moment'
Object.keys(rules).forEach(rule => { Object.keys(rules).forEach((rule) => {
extend(rule, { extend(rule, {
...rules[rule], // copies rule configuration ...rules[rule], // copies rule configuration
message: messages[rule], // assign message message: messages[rule], // assign message

View File

@ -98,10 +98,10 @@ export const store = new Vuex.Store({
//dispatch('logout') //dispatch('logout')
} }
}, },
passwordReset: async data => { passwordReset: async (data) => {
//console.log('<<<<<<<<<<< PASSWORT RESET TODO >>>>>>>>>>>', data.email) //console.log('<<<<<<<<<<< PASSWORT RESET TODO >>>>>>>>>>>', data.email)
}, },
schoepfen: async data => { schoepfen: async (data) => {
// http://localhost/transaction-creations/ajaxCreate // http://localhost/transaction-creations/ajaxCreate
}, },
createUser: async ({ commit, dispatch }, data) => { createUser: async ({ commit, dispatch }, data) => {

View File

@ -291,77 +291,77 @@ export default {
methods: { methods: {
TransienceList() { TransienceList() {
axios.get('/json-example/admin_transience_list.json').then( axios.get('/json-example/admin_transience_list.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.transiencelist = d.data this.transiencelist = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )
}, },
TransactionList() { TransactionList() {
axios.get('/json-example/admin_transaction_list.json').then( axios.get('/json-example/admin_transaction_list.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.transactionlist = d.data this.transactionlist = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )
}, },
UserList() { UserList() {
axios.get('/json-example/admin_userlist.json').then( axios.get('/json-example/admin_userlist.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.userlist = d.data this.userlist = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )
}, },
CommunityStatistic() { CommunityStatistic() {
axios.get('/json-example/admin_community_statistic.json').then( axios.get('/json-example/admin_community_statistic.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.communitystatistic = d.data this.communitystatistic = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )
}, },
ChartsStatistic() { ChartsStatistic() {
axios.get('/json-example/admin_charts_statistic.json').then( axios.get('/json-example/admin_charts_statistic.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.chartsstatistic = d.data this.chartsstatistic = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )
}, },
CardStatistic() { CardStatistic() {
axios.get('/json-example/admin_card_statistic.json').then( axios.get('/json-example/admin_card_statistic.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.cardstatistic = d.data this.cardstatistic = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )
}, },
StatisticDatas() { StatisticDatas() {
axios.get('/json-example/admin_statisticdatas.json').then( axios.get('/json-example/admin_statisticdatas.json').then(
d => { (d) => {
//console.log(d); //console.log(d);
this.userdata = d.data this.userdata = d.data
}, },
error => { (error) => {
//console.log(error) //console.log(error)
}, },
) )

View File

@ -26,9 +26,7 @@
mode: 'pages', mode: 'pages',
}" }"
> >
<div slot="table-actions"> <div slot="table-actions">Einträge suchen .</div>
Einträge suchen .
</div>
</vue-good-table> </vue-good-table>
</b-col> </b-col>
<b-col xl="4" class="mb-5 mb-xl-0"> <b-col xl="4" class="mb-5 mb-xl-0">

View File

@ -25,9 +25,7 @@
mode: 'pages', mode: 'pages',
}" }"
> >
<div slot="table-actions"> <div slot="table-actions">Mitglieder suchen .</div>
Mitglieder suchen .
</div>
</vue-good-table> </vue-good-table>
</b-col> </b-col>
<b-col xl="4" class="mb-5 mb-xl-0"> <b-col xl="4" class="mb-5 mb-xl-0">
@ -46,9 +44,7 @@
<b-card-body> <b-card-body>
<form> <form>
<b-row class=""> <b-row class="">
<label class="col-md-3 col-form-label form-control-label"> <label class="col-md-3 col-form-label form-control-label">Name</label>
Name
</label>
<b-col md="10"> <b-col md="10">
<base-input placeholder="Jon Snow"></base-input> <base-input placeholder="Jon Snow"></base-input>
</b-col> </b-col>
@ -66,9 +62,7 @@
</b-col> </b-col>
</b-row> </b-row>
<b-row class=""> <b-row class="">
<label class="col-md-3 col-form-label form-control-label"> <label class="col-md-3 col-form-label form-control-label">Gruppe</label>
Gruppe
</label>
<b-col md="10"> <b-col md="10">
<base-input placeholder="Gruppe"></base-input> <base-input placeholder="Gruppe"></base-input>
</b-col> </b-col>
@ -99,9 +93,7 @@
<form> <form>
<b-row class=""> <b-row class="">
<label class="col-md-3 col-form-label form-control-label"> <label class="col-md-3 col-form-label form-control-label">Name</label>
Name
</label>
<b-col md="10"> <b-col md="10">
<base-input placeholder="name"></base-input> <base-input placeholder="name"></base-input>
</b-col> </b-col>
@ -120,9 +112,7 @@
</b-col> </b-col>
</b-row> </b-row>
<b-row class=""> <b-row class="">
<label class="col-md-3 col-form-label form-control-label"> <label class="col-md-3 col-form-label form-control-label">Gruppe</label>
Gruppe
</label>
<b-col md="10"> <b-col md="10">
<base-input placeholder="Gruppe"></base-input> <base-input placeholder="Gruppe"></base-input>
</b-col> </b-col>

View File

@ -1,7 +1,5 @@
<template> <template>
<div> <div>default</div>
default
</div>
</template> </template>
<script> <script>

View File

@ -24,9 +24,7 @@
mode: 'pages', mode: 'pages',
}" }"
> >
<div slot="table-actions"> <div slot="table-actions">Mitglieder suchen .</div>
Mitglieder suchen .
</div>
</vue-good-table> </vue-good-table>
</b-col> </b-col>
<b-col xl="4" class="mb-5 mb-xl-0"> <b-col xl="4" class="mb-5 mb-xl-0">

View File

@ -66,7 +66,7 @@
<b-row> <b-row>
<b-col> <b-col>
<b-card no-body class="border-0"> <b-card no-body class="border-0">
<div id="map-custom" class="map-canvas" style="height: 600px;"></div> <div id="map-custom" class="map-canvas" style="height: 600px"></div>
</b-card> </b-card>
</b-col> </b-col>
</b-row> </b-row>
@ -155,13 +155,13 @@ export default {
content: contentString, content: contentString,
}) })
google.maps.event.addListener(marker, 'click', function() { google.maps.event.addListener(marker, 'click', function () {
infowindow.open(map, marker) infowindow.open(map, marker)
}) })
}, },
}, },
mounted() { mounted() {
GoogleMapsLoader.load(google => { GoogleMapsLoader.load((google) => {
this.initMap(google) this.initMap(google)
}) })
}, },

View File

@ -179,7 +179,7 @@ export default {
dateDiff() { dateDiff() {
this.form.hours = (this.$moment(this.form.to) - this.$moment(this.form.from)) / 1000 / 3600 this.form.hours = (this.$moment(this.form.to) - this.$moment(this.form.from)) / 1000 / 3600
}, },
getNow: function() { getNow: function () {
//const today = new Date() //const today = new Date()
//const date = today.getDate()+'.'+(today.getMonth()+1)+'.'+ today.getFullYear(); //const date = today.getDate()+'.'+(today.getMonth()+1)+'.'+ today.getFullYear();
//const time = today.getHours() + ":" + today.getMinutes(); //const time = today.getHours() + ":" + today.getMinutes();

View File

@ -131,9 +131,7 @@ export default {
config: { config: {
altInput: false, altInput: false,
dateFormat: 'd-m-Y', dateFormat: 'd-m-Y',
minDate: this.$moment() minDate: this.$moment().startOf('month').format('DD.MM.YYYY'),
.startOf('month')
.format('DD.MM.YYYY'),
maxDate: this.$moment().format('DD.MM.YYYY'), maxDate: this.$moment().format('DD.MM.YYYY'),
mode: 'range', mode: 'range',
}, },
@ -169,9 +167,7 @@ export default {
messages: [], messages: [],
submitted: false, submitted: false,
days: { days: {
thisMonth: this.$moment() thisMonth: this.$moment().month(this.$moment().month()).daysInMonth(),
.month(this.$moment().month())
.daysInMonth(),
lastMonth: this.$moment() lastMonth: this.$moment()
.month(this.$moment().month() - 1) .month(this.$moment().month() - 1)
.daysInMonth(), .daysInMonth(),
@ -180,9 +176,7 @@ export default {
.daysInMonth(), .daysInMonth(),
}, },
names: { names: {
thisMonth: this.$moment() thisMonth: this.$moment().month(this.$moment().month()).format('MMMM'),
.month(this.$moment().month())
.format('MMMM'),
lastMonth: this.$moment() lastMonth: this.$moment()
.month(this.$moment().month() - 1) .month(this.$moment().month() - 1)
.format('MMMM'), .format('MMMM'),
@ -194,7 +188,7 @@ export default {
}, },
created() {}, created() {},
watch: { watch: {
$form: function() { $form: function () {
stunden(this.form) stunden(this.form)
}, },
}, },
@ -228,20 +222,20 @@ export default {
this.index++ this.index++
//console.log('this.stundenSumme ende=> ', this.stundenSumme) //console.log('this.stundenSumme ende=> ', this.stundenSumme)
}, },
addNewMessage: function() { addNewMessage: function () {
this.messages.push({ this.messages.push({
DaysNumber: '', DaysNumber: '',
TextDecoded: '', TextDecoded: '',
}) })
}, },
deleteNewMessage: function(event) { deleteNewMessage: function (event) {
//console.log('deleteNewMessage:event) => ', event) //console.log('deleteNewMessage:event) => ', event)
//console.log("deleteNewMessage:this.events.splice(this.event) => ", this.events.splice(this.event)) //console.log("deleteNewMessage:this.events.splice(this.event) => ", this.events.splice(this.event))
this.form.splice(event, null) this.form.splice(event, null)
this.messages.splice(index, 1) this.messages.splice(index, 1)
this.index-- this.index--
}, },
submitForm: function(e) { submitForm: function (e) {
//console.log(this.messages) //console.log(this.messages)
this.messages = [{ DaysNumber: '', TextDecoded: '' }] this.messages = [{ DaysNumber: '', TextDecoded: '' }]

View File

@ -13,7 +13,7 @@
<strong>QR Code Scanner</strong> <strong>QR Code Scanner</strong>
- Scanne den QR Code deines Partners - Scanne den QR Code deines Partners
</span> </span>
<b-col v-show="!scan" lg="12" class="text-right "> <b-col v-show="!scan" lg="12" class="text-right">
<img src="/img/icons/gradido/qr-scan-pure.png" height="50" @click="scan = true" /> <img src="/img/icons/gradido/qr-scan-pure.png" height="50" @click="scan = true" />
</b-col> </b-col>
<b-alert v-show="scan" show variant="warning"> <b-alert v-show="scan" show variant="warning">
@ -56,9 +56,7 @@
</div> </div>
<br /> <br />
<div> <div>
<b-col class="text-left p-3 p-sm-1"> <b-col class="text-left p-3 p-sm-1">Empfänger</b-col>
Empfänger
</b-col>
<b-input-group <b-input-group
id="input-group-1" id="input-group-1"
@ -68,7 +66,7 @@
size="lg" size="lg"
class="mb-3" class="mb-3"
> >
<b-input-group-prepend class="p-3 d-none d-md-block "> <b-input-group-prepend class="p-3 d-none d-md-block">
<b-icon icon="envelope" class="display-3"></b-icon> <b-icon icon="envelope" class="display-3"></b-icon>
</b-input-group-prepend> </b-input-group-prepend>
<b-form-input <b-form-input
@ -78,19 +76,15 @@
placeholder="E-Mail" placeholder="E-Mail"
:rules="{ required: true, email: true }" :rules="{ required: true, email: true }"
required required
style="font-size: xx-large; padding-left:20px" style="font-size: xx-large; padding-left: 20px"
></b-form-input> ></b-form-input>
</b-input-group> </b-input-group>
</div> </div>
<br /> <br />
<div> <div>
<b-col class="text-left p-3 p-sm-1"> <b-col class="text-left p-3 p-sm-1">Betrag</b-col>
Betrag
</b-col>
<b-col v-if="$store.state.user.balance == form.amount" class="text-right"> <b-col v-if="$store.state.user.balance == form.amount" class="text-right">
<b-badge variant="primary"> <b-badge variant="primary">maximale anzahl GDD zum versenden erreicht!</b-badge>
maximale anzahl GDD zum versenden erreicht!
</b-badge>
</b-col> </b-col>
<b-input-group <b-input-group
id="input-group-2" id="input-group-2"
@ -99,7 +93,7 @@
size="lg" size="lg"
class="mb-3" class="mb-3"
> >
<b-input-group-prepend class="p-2 d-none d-md-block "> <b-input-group-prepend class="p-2 d-none d-md-block">
<div class="h3 pt-3 pr-3">GDD</div> <div class="h3 pt-3 pr-3">GDD</div>
</b-input-group-prepend> </b-input-group-prepend>
<b-form-input <b-form-input
@ -110,22 +104,20 @@
step="0.01" step="0.01"
min="0.01" min="0.01"
:max="$store.state.user.balance" :max="$store.state.user.balance"
style="font-size: xx-large; padding-left:20px" style="font-size: xx-large; padding-left: 20px"
></b-form-input> ></b-form-input>
</b-input-group> </b-input-group>
<b-col class="text-left p-3 p-sm-1"> <b-col class="text-left p-3 p-sm-1">Nachricht für den Empfänger</b-col>
Nachricht für den Empfänger
</b-col>
<b-input-group> <b-input-group>
<b-input-group-prepend class="p-3 d-none d-md-block "> <b-input-group-prepend class="p-3 d-none d-md-block">
<b-icon icon="chat-right-text" class="display-3"></b-icon> <b-icon icon="chat-right-text" class="display-3"></b-icon>
</b-input-group-prepend> </b-input-group-prepend>
<b-form-textarea <b-form-textarea
rows="3" rows="3"
v-model="form.memo" v-model="form.memo"
class="pl-3" class="pl-3"
style="font-size: x-large;" style="font-size: x-large"
></b-form-textarea> ></b-form-textarea>
</b-input-group> </b-input-group>
</div> </div>

View File

@ -4,7 +4,7 @@
<b-list-group-item <b-list-group-item
v-for="item in filteredItems" v-for="item in filteredItems"
:key="item.id" :key="item.id"
style="background-color:#ebebeba3 !important;" style="background-color: #ebebeba3 !important"
> >
<div class="d-flex w-100 justify-content-between" @click="toogle(item)"> <div class="d-flex w-100 justify-content-between" @click="toogle(item)">
<b-icon <b-icon
@ -12,14 +12,14 @@
icon="box-arrow-left" icon="box-arrow-left"
class="m-1" class="m-1"
font-scale="2" font-scale="2"
style="color:red" style="color: red"
></b-icon> ></b-icon>
<b-icon <b-icon
v-else v-else
icon="box-arrow-right" icon="box-arrow-right"
class="m-1" class="m-1"
font-scale="2" font-scale="2"
style="color:green" style="color: green"
></b-icon> ></b-icon>
<h1 class="mb-1"> <h1 class="mb-1">
{{ $n(item.balance / 10000) }} {{ $n(item.balance / 10000) }}

View File

@ -8,9 +8,9 @@
icon="clock-history" icon="clock-history"
class="m-1" class="m-1"
font-scale="2" font-scale="2"
style="color:orange" style="color: orange"
></b-icon> ></b-icon>
<b-icon v-else icon="check2-all" class="m-1" font-scale="2" style="color:green"></b-icon> <b-icon v-else icon="check2-all" class="m-1" font-scale="2" style="color: green"></b-icon>
<h2 class="text-muted"> <h2 class="text-muted">
<small>{{ item.datel }}</small> <small>{{ item.datel }}</small>
- {{ item.text }} - {{ item.text }}

View File

@ -1,7 +1,5 @@
<template> <template>
<div> <div>default</div>
default
</div>
</template> </template>
<script> <script>

View File

@ -18,9 +18,7 @@
</b-col> </b-col>
</b-row> --> </b-row> -->
<hr /> <hr />
<p class="lead"> <p class="lead">Anmelden</p>
Anmelden
</p>
<b-row class="justify-content-center"> <b-row class="justify-content-center">
<b-col xl="5" lg="6" md="6" class="px-5"> <b-col xl="5" lg="6" md="6" class="px-5">
@ -65,25 +63,19 @@
</b-row> </b-row>
<hr /> <hr />
<p class="lead"> <p class="lead">neues Mitglied anlegen</p>
neues Mitglied anlegen
</p>
<b-row class="justify-content-center"> <b-row class="justify-content-center">
<b-col xl="5" lg="6" md="6" class="px-5"> <b-col xl="5" lg="6" md="6" class="px-5">
<form> <form>
<b-row class="form-group"> <b-row class="form-group">
<label class="col-md-2 col-form-label form-control-label"> <label class="col-md-2 col-form-label form-control-label">Vorname</label>
Vorname
</label>
<b-col md="10"> <b-col md="10">
<base-input placeholder="Jon " v-model="rfname"></base-input> <base-input placeholder="Jon " v-model="rfname"></base-input>
</b-col> </b-col>
</b-row> </b-row>
<b-row class="form-group"> <b-row class="form-group">
<label class="col-md-2 col-form-label form-control-label"> <label class="col-md-2 col-form-label form-control-label">Nachname</label>
Nachname
</label>
<b-col md="10"> <b-col md="10">
<base-input placeholder=" Snow" v-model="rlname"></base-input> <base-input placeholder=" Snow" v-model="rlname"></base-input>
</b-col> </b-col>
@ -122,9 +114,7 @@
</b-col> </b-col>
</b-row> </b-row>
</form> </form>
<b-button block type="submit" @click="createUser()"> <b-button block type="submit" @click="createUser()">Anmelden</b-button>
Anmelden
</b-button>
</b-col> </b-col>
</b-row> </b-row>
</div> </div>

View File

@ -51,9 +51,7 @@
</b-col> </b-col>
<b-col xl="6" class="col-xl-6"> <b-col xl="6" class="col-xl-6">
<b-nav class="nav-footer justify-content-center justify-content-lg-end"> <b-nav class="nav-footer justify-content-center justify-content-lg-end">
<b-nav-item ref="https://www.creative-tim.com" target="_blank"> <b-nav-item ref="https://www.creative-tim.com" target="_blank">Gradido</b-nav-item>
Gradido
</b-nav-item>
<b-nav-item href="https://www.creative-tim.com/presentation" target="_blank"> <b-nav-item href="https://www.creative-tim.com/presentation" target="_blank">
Impressum Impressum
</b-nav-item> </b-nav-item>
@ -136,7 +134,7 @@ export default {
watch: { watch: {
$route: { $route: {
immediate: true, immediate: true,
handler: function() { handler: function () {
this.updateBackground() this.updateBackground()
}, },
}, },

View File

@ -4,9 +4,7 @@
<b-col> <b-col>
<div class="copyright text-center text-lg-center text-muted"> <div class="copyright text-center text-lg-center text-muted">
© {{ year }} © {{ year }}
<a href="#!" to="/login" class="font-weight-bold ml-1"> <a href="#!" to="/login" class="font-weight-bold ml-1">Gradido-Akademie</a>
Gradido-Akademie
</a>
</div> </div>
</b-col> </b-col>
</b-row> </b-row>

View File

@ -34,7 +34,7 @@
{{ $store.state.email }} {{ $store.state.email }}
</span> </span>
<b-media-body class="ml-2 d-none d-lg-block"> <b-media-body class="ml-2 d-none d-lg-block">
<span class="avatar "> <span class="avatar">
<vue-qrcode :value="$store.state.email" type="image/png"></vue-qrcode> <vue-qrcode :value="$store.state.email" type="image/png"></vue-qrcode>
</span> </span>
</b-media-body> </b-media-body>

View File

@ -25,9 +25,7 @@
<div> <div>
<b-card> <b-card>
<b-card-body> <b-card-body>This is some text within a card body.</b-card-body>
This is some text within a card body.
</b-card-body>
</b-card> </b-card>
</div> </div>
</div> </div>

View File

@ -17,7 +17,7 @@
<b-container class="mt--8 p-1"> <b-container class="mt--8 p-1">
<b-row class="justify-content-center"> <b-row class="justify-content-center">
<b-col lg="5" md="7"> <b-col lg="5" md="7">
<b-card no-body class="border-0 mb-0" style="background-color: #ebebeba3 !important;"> <b-card no-body class="border-0 mb-0" style="background-color: #ebebeba3 !important">
<b-card-body class="py-lg-4 px-sm-0 px-0 px-md-2 px-lg-4"> <b-card-body class="py-lg-4 px-sm-0 px-0 px-md-2 px-lg-4">
<div class="text-center text-muted mb-4"> <div class="text-center text-muted mb-4">
<small>{{ $t('login') }}</small> <small>{{ $t('login') }}</small>

View File

@ -15,7 +15,7 @@
<b-container class="mt--8 p-1"> <b-container class="mt--8 p-1">
<b-row class="justify-content-center"> <b-row class="justify-content-center">
<b-col lg="6" md="8"> <b-col lg="6" md="8">
<b-card no-body class="border-0" style="background-color: #ebebeba3 !important;"> <b-card no-body class="border-0" style="background-color: #ebebeba3 !important">
<b-card-body class="px-lg-5 py-lg-5"> <b-card-body class="px-lg-5 py-lg-5">
<validation-observer v-slot="{ handleSubmit }" ref="formValidator"> <validation-observer v-slot="{ handleSubmit }" ref="formValidator">
<b-form role="form" @submit.prevent="handleSubmit(onSubmit)"> <b-form role="form" @submit.prevent="handleSubmit(onSubmit)">

View File

@ -18,7 +18,7 @@
<!-- Table --> <!-- Table -->
<b-row class="justify-content-center"> <b-row class="justify-content-center">
<b-col lg="6" md="8"> <b-col lg="6" md="8">
<b-card no-body class="border-0" style="background-color: #ebebeba3 !important;"> <b-card no-body class="border-0" style="background-color: #ebebeba3 !important">
<b-card-body class="py-lg-4 px-sm-0 px-0 px-md-2 px-lg-4"> <b-card-body class="py-lg-4 px-sm-0 px-0 px-md-2 px-lg-4">
<div class="text-center text-muted mb-4"> <div class="text-center text-muted mb-4">
<small>{{ $t('signup') }}</small> <small>{{ $t('signup') }}</small>
@ -72,7 +72,7 @@
</span> </span>
</small> </small>
</div> </div>
<b-row class=" my-4"> <b-row class="my-4">
<b-col cols="12"> <b-col cols="12">
<base-input <base-input
:rules="{ required: { allowFalse: false } }" :rules="{ required: { allowFalse: false } }"

View File

@ -2,7 +2,12 @@
<div> <div>
<div <div
class="header pb-8 pt-5 pt-lg-8 d-flex align-items-center profile-header" class="header pb-8 pt-5 pt-lg-8 d-flex align-items-center profile-header"
style="min-height: 600px; background-image: url(img/theme/profile-cover.jpg); background-size: cover; background-position: center top;" style="
min-height: 600px;
background-image: url(img/theme/profile-cover.jpg);
background-size: cover;
background-position: center top;
"
> >
<b-container fluid> <b-container fluid>
<b-container fluid class="d-flex align-items-center"> <b-container fluid class="d-flex align-items-center">

View File

@ -10,7 +10,7 @@
ref="file" ref="file"
:name="uploadFieldName" :name="uploadFieldName"
@change="onFileChange($event.target.name, $event.target.files)" @change="onFileChange($event.target.name, $event.target.files)"
style="display:none" style="display: none"
/> />
<!-- error dialog displays any potential errors --> <!-- error dialog displays any potential errors -->
<v-dialog v-model="errorDialog" max-width="300"> <v-dialog v-model="errorDialog" max-width="300">

View File

@ -2,7 +2,7 @@
<div> <div>
<div <div
class="header pb-8 pt-5 pt-lg-8 d-flex align-items-center profile-header" class="header pb-8 pt-5 pt-lg-8 d-flex align-items-center profile-header"
style="max-height:200px" style="max-height: 200px"
></div> ></div>
<b-container fluid class="mt--6"> <b-container fluid class="mt--6">

View File

@ -2,7 +2,7 @@
<div> <div>
<div <div
class="header pb-8 pt-5 pt-lg-8 d-flex align-items-center profile-header" class="header pb-8 pt-5 pt-lg-8 d-flex align-items-center profile-header"
style="max-height:200px" style="max-height: 200px"
></div> ></div>
<b-container fluid class="mt--6"> <b-container fluid class="mt--6">
<b-row> <b-row>

View File

@ -1,7 +1,5 @@
<template> <template>
<div> <div>default</div>
default
</div>
</template> </template>
<script> <script>

View File

@ -9417,6 +9417,11 @@ prettier@^1.15.2, prettier@^1.18.2:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
prettier@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
pretty-error@^2.0.2: pretty-error@^2.0.2:
version "2.1.2" version "2.1.2"
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6" resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6"