Skip to content
Snippets Groups Projects
Commit e6b30fc6 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

ajout de la page des paramètres

parent 5ba4436f
No related branches found
No related tags found
No related merge requests found
......@@ -219,4 +219,14 @@ fragment attr on Identity {
__typename
limit
}
}`
// Pour la page parametres
export const PARAMS = gql`query getParams{
allParameters {
name
par_type
value
comment
}
}`
\ No newline at end of file
......@@ -7,9 +7,11 @@
"recues" : "Certificates received "
},
"chargement" : "Loading",
"description": "Description",
"dev": "In development",
"expire": "Expires",
"futuremembers": "Future members",
"infos": "Informations",
"inout": "Entries and exits of the web of trust for the last 2 days",
"inpreparation": "In preparation",
"membre": {
......@@ -25,8 +27,11 @@
"referent": "Referent"
},
"membres": "Members",
"nom": "Name",
"non": "No",
"oui": "Yes",
"params": "Parameters",
"params_blockchain": "Blockchain parameters",
"previsions" : {
"certificationsinternes": "No internal certification | 1 internal certification | {n} internal certifications",
"dossiersattente": "No pending files | 1 pending file | {n} pending files",
......@@ -57,5 +62,7 @@
"pardate": "Sort by date",
"parmembres": "Sort by members"
},
"type": "Type",
"valeur": "Value",
"wot": "Web of trust"
}
\ No newline at end of file
......@@ -7,9 +7,11 @@
"recues" : "Certificaciones recibidas "
},
"chargement" : "Cargando",
"description": "Descripción",
"dev": "En desarrollo",
"expire": "Expira el",
"futuremembers": "Futuros miembros",
"infos": "Informaciones",
"inout": "Entradas y salidas de la red de confianza en los últimos 2 días",
"inpreparation": "En preparación",
"membre": {
......@@ -25,8 +27,11 @@
"referent": "Referente o de control"
},
"membres": "Miembros",
"nom": "Nombre",
"non": "No",
"oui": "Sí",
"params": "Parámetros",
"params_blockchain": "Parámetros de la blockchain",
"previsions" : {
"certificationsinternes": "Sin certificación interna | 1 certificación interna | {n} certificaciones internas",
"dossiersattente": "No hay candidaturas pendientes | 1 candidatura pendiente | {n} candidaturas pendientes",
......@@ -57,5 +62,7 @@
"pardate": "Ordenar por fecha",
"parmembres": "Clasificar por miembros"
},
"type": "Tipo",
"valeur": "Valor",
"wot": "Red de confianza"
}
......@@ -7,9 +7,11 @@
"recues" : "Certifications reçues "
},
"chargement" : "Chargement",
"description": "Description",
"dev": "En Développement",
"expire": "Expire le",
"futuremembers": "Futurs membres",
"infos": "Informations",
"inout": "Entrées et sorties de la toile de confiance des 2 derniers jours",
"inpreparation": "En préparation",
"membre": {
......@@ -25,8 +27,11 @@
"referent": "Référent"
},
"membres": "Membres",
"nom": "Nom",
"non": "Non",
"oui": "Oui",
"params": "Paramètres",
"params_blockchain": "Paramètres de la blockchain",
"previsions" : {
"certificationsinternes": "Aucune certification interne | 1 certification interne | {n} certifications internes",
"dossiersattente": "Aucun dossier en attente | 1 dossier en attente | {n} dossiers en attente",
......@@ -57,5 +62,7 @@
"pardate": "Tri par date",
"parmembres": "Tri par membres"
},
"type": "Type",
"valeur": "Valeur",
"wot": "Toile de confiance"
}
\ No newline at end of file
......@@ -23,6 +23,12 @@ export default {
items : [
{path: '/previsions/futurs_membres',title: 'futuremembers'}
]
},
{
title: 'infos',
items : [
{path: '/parametres',title: 'params_blockchain'}
]
}
]
}
......
<template>
<main class="container">
<h2 class="text-center mb-5 font-weight-light">{{ $t('params_blockchain') }}</h2>
<NavigationLoader :isLoading="$apollo.queries.allParameters.loading" />
<transition name="fade">
<div class="alert alert-danger" v-if="error">{{ error }}</div>
</transition>
<transition name="fade">
<div class="table-responsive" v-if="allParameters">
<table class="table table-striped">
<thead>
<th>{{ $t('nom') }}</th>
<th class="d-none d-sm-table-cell">{{ $t('type') }}</th>
<th>{{ $t('valeur') }}</th>
<th class="d-none d-md-table-cell">{{ $t('description') }}</th>
</thead>
<tbody>
<tr v-for="param in allParameters" :key="param.name">
<th scope="row">{{ param.name }}</th>
<td scope="row" class="d-none d-sm-table-cell">{{ param.par_type }}</td>
<td scope="row">{{ param.value }}</td>
<td scope="row" class="d-none d-md-table-cell">{{ param.comment }}</td>
</tr>
</tbody>
</table>
</div>
</transition>
</main>
</template>
<script>
import {PARAMS} from '@/graphql/queries.js'
export default {
data() {
return {
breadcrumb: [
{
text: this.$t('accueil'),
to: '/'
},
{
text: this.$t('params'),
active: true
}
],
error: null
}
},
// methods: {
// myFunction() {
// }
// },
// computed: {
// myComputedValue : function() {
// return this.var * 3
// }
// },
apollo: {
// Use {{ myresponse }} in the template. If update is omitted, this name should correspond to the Query Type !
allParameters : {
query: PARAMS,
// Optional : this is for parametered queries
// variables() {return {param1:value1,param2:value2}},
// Optional : treat the response before display. If omitted, the query name must correspond to the Query Type !
// update (data) {
// return data
// },
error (err) {this.error = err.message}
}
},
nuxtI18n: {
paths: {
fr: '/parametres',
en: '/parameters',
es: '/parametros'
}
},
mounted () {
$nuxt.$emit('changeRoute',this.breadcrumb)
}
}
</script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment