Feat: new config

This commit is contained in:
Bertrand Benjamin 2021-06-10 21:56:51 +02:00
parent 0493816dbe
commit 494f302cc5
3 changed files with 100 additions and 13 deletions

View File

@ -36,23 +36,17 @@ tags:
color: '#78e08f'
words:
- RETRAIT
- PAIEMENT CB 2404 ALIXAN CASH BIO CARTE 74142381
- PAIEMENT CB 2404 SAINT MARCEL PRIMEUR DU CHANT CARTE 74142381
virements:
name: Virements
variant: info
icon: directions
invert: true
color: '#fc69e6'
color: '#b0afaf'
words:
- PAIEMENT
- RETRAIT
autoroute:
name: Autoroute
variant: danger
icon: road
color: '#eb2f06'
words:
- AUTOROUTE
- APRR
essence:
name: Essence
variant: danger
@ -67,6 +61,14 @@ tags:
- ESSO
- BELLEGARDE SU CARREFOUR
- ST CLAUDE CASINOCARB
- RUNGIS MAGASIN U
- LES ROUSSES DAC ANGEDI
- LES ROUSSES MARKET DAC
- COMMUNAY RELAIS COMMUNAY
- DORLISHEIM CORA
- ALIXAN 838782 ELF
- TENCE CLEAT DIS DAC
- VALSERHONE CARREFOUR
train:
name: Train
variant: danger
@ -91,6 +93,16 @@ tags:
- INTERMARCHE
- LA FERME DU COIN
- ARBENT GEANT
- CHATILLON EN BIO VALSERINE
- ST LAURENT EN BIO COOP GRANDVA
- ST CLAUDE MAISON VIAL
- OYONNAX OYONNAXIENNE
- BOURG DE PEAG GEANT CG839
- CHATILLON EN LE TRAM PAYSAN
- BELLEGARDE SU PTIT CHEZ VILLE
- VALSERHONE LE PETIT CHEZERY
- VALSERHONE L'AIR DU LARGE
- ST GERMAIN DE EPICERIE FAURAX
vacances:
color: '#ff8a00'
icon: map-marked
@ -98,6 +110,9 @@ tags:
variant: ''
words:
- VACANCES
- PRALOGNAN LA PETIT CASINO
- PRALOGNAN LA AUGUSTE
- PRALOGNAN LA CASINO SHOP
resto-bar:
color: '#6ea5fc'
icon: utensils
@ -106,12 +121,76 @@ tags:
words:
- ALVEOLES
- LYON FRITE ALORS !
- OYONNAX CAFES PAT
- BELLECOMBE LA GUIENETTE
- MOUTIERS TARE LA PETITE FABRIQ
- BELLEGARDE SU L'AIR DU LARGE
- LYON ENGIMONO
- OBERNAI LE CHEVAL BLANC
- LA PESSE REFUGE BERBOIS
- LA PESSE AUB LES ERABLES
- LA PESSE LES TAVAILLONS
- LEUTENHEIM BOEUF ROUGE
voiture:
color: '#0077c8'
icon: car
name: Voiture
variant: ''
words:
- VOITURE
- ARBENT A84 OYONNAX
- ST CLAUDE ALAIN PNEU
- VALEN2931212/ VALENHOTEVILAUTO
- AUTOROUTE
- APRR
- MORBIER PE
- DORLISHEIM EU VERT 067
- 'ANNECY SUD A R E A '
- '69 BRON CEDEX A R E A '
culture:
color: '#199c00'
icon: book
name: Culture
variant: ''
words:
- LYON MOMIE MANGAS
- ROMANS SUR IS LIBRAIRIE LA MAU
- PREMANON ESP MONDES POL
- VALSERHONE LIBR PAP BIGUET
- BELLEGARDE SU LES ARTS FRONTIE
enfant:
color: '#fc00d5'
icon: child
name: Enfant
variant: ''
words:
- Baby
- ST MARCEL LES GEKA TISSUS
- ST SAUVEUR DE ARDELAINE
- LEZIGNAN CORB LES BABILLEUSES
- NORTHAMPTON BAMBINO MIO LTD
- PARIS PAYPLUG COM
- PARIS HAMAC PARIS
- ERGUE GABERIC JEUJOUETHIQUE
- CHATILLON EN CHAUSS'EXPO
- LONDON GLOBALE /FRUGI
- NANTUA OPTIQUE PHOTO
- LA PESSE SYLVAIN BOULARD
- BOULOGNE-BILL AIGLE INTERNATIO
- TROYES PETIT BATEAU
- ST PIERREVILL ARDELAINE
maison:
color: '#f5ad61'
icon: home
name: Maison
variant: ''
words:
- BRICOLAGE
- CHATILLON EN BRICOMARCHE
- VALSERHONE GAMM VERT
- ROMANS SUR IS HOME COOK ROMANS
- CHATILLON EN KILOUTOU
- FR 34MONTPELL PG RIPATON
- OSTHOFEN PROFOLIO GMBH
- CHATILLON EN MR SAUSSAC J P
- CHABEUIL WWW MATERIAUX-NA
- 75017 PARIS MANOMANO

View File

@ -9,7 +9,7 @@ export default {
namespaced: true,
state: {
csv: {},
month: moment()
month: ''
},
getters: {
csvs: (state) => {
@ -48,9 +48,13 @@ export default {
// return data with negatives 'Montant'
return getters.rows.filter(x => x.Montant < 0)
},
month: (state) => {
month: (state, getters) => {
// month date
return state.month
if (state.month){
return state.month
} else {
return moment(getters.months.slice(-1)[0], "MMMM YYYY")
}
},
date_filter_rows: (state, getters) => {
// return rows filtered by date
@ -214,6 +218,9 @@ export default {
prev_month (context) {
var prev = moment(context.getters.month).subtract(1, 'months')
context.commit('SET_MONTH', { month: prev })
},
set_month (context, month) {
context.commit('SET_MONTH', { month: month })
}
}
}

View File

@ -121,6 +121,7 @@ export default {
'categorie_filter_rows': 'datas/categorie_filter_rows',
'datas_present': 'datas/present',
'month': 'datas/month',
'months': 'datas/months',
'tags': 'config/tags',
'categories': 'config/categories'
}),