Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 1, 2023
1 parent 0c5aad2 commit 3114524
Show file tree
Hide file tree
Showing 16 changed files with 137 additions and 116 deletions.
2 changes: 1 addition & 1 deletion packages/renderer/src/components/InitialiserCompte.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
(comptesEnLigne.length
? t('accueil.initialiserCompte.indiceComptePasVu')
: t('accueil.initialiserCompte.indiceRechercheComptes')) +
t('accueil.initialiserCompte.indiceEssaieDeConnecter')
t('accueil.initialiserCompte.indiceEssaieDeConnecter')
}}
</p>
</div>
Expand Down
4 changes: 3 additions & 1 deletion packages/renderer/src/components/accueil/ServeurWS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ watchEffect(async () => {
<v-card-title>
{{ t('accueil.nœud.titre') }}Nœud WS local
<v-tooltip
:text="t('accueil.nœud.indice: Ouvrir un nœud local pour connecter d\'autres applications.')"
:text="
t('accueil.nœud.indice: Ouvrir un nœud local pour connecter d\'autres applications.')
"
location="bottom"
>
<template #activator="{props}">
Expand Down
19 changes: 9 additions & 10 deletions packages/renderer/src/components/accueil/infos/Infos.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<script lang="ts" setup>
import {ref, inject, watchEffect} from 'vue';
import { storeToRefs } from 'pinia';
import {storeToRefs} from 'pinia';
import { utiliserÉtatInfos } from "/@/état/infos";
import {utiliserÉtatInfos} from '/@/état/infos';
import ItemInfo from './ItemInfo.vue';
const étatInfos = utiliserÉtatInfos();
const {infos } = storeToRefstatInfos);
const {infos} = storeToRefstatInfos);
</script>

<template>
Expand All @@ -22,15 +21,15 @@ const {infos } = storeToRefs(étatInfos);
</v-card-title>
</v-card-item>
<v-card-text>
<v-list
style="overflow-y: auto"
<v-list
style="overflow-y: auto"
max-height="300"
>
<item-info
v-for="info in infos"
:key="info.id"
:info="info"
@fermer="()=>étatInfos.effacerInfo(info.id)"
v-for="info in infos"
:key="info.id"
:info="info"
@fermer="() => étatInfos.effacerInfo(info.id)"
/>
</v-list>
</v-card-text>
Expand Down
11 changes: 5 additions & 6 deletions packages/renderer/src/components/accueil/infos/ItemInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<v-btn
icon="mdi-close"
variant="flat"
@click="()=>émettre('fermer')"
@click="() => émettre('fermer')"
/>
</item-info-telecharger>
<item-info-mettre-a-jour
Expand All @@ -16,7 +16,7 @@
<v-btn
icon="mdi-close"
variant="flat"
@click="()=>émettre('fermer')"
@click="() => émettre('fermer')"
/>
</item-info-mettre-a-jour>
</template>
Expand All @@ -26,11 +26,10 @@ import ItemInfoTelecharger from './ItemInfoTélécharger.vue';
import ItemInfoMettreAJour from './ItemInfoMettreÀJour.vue';
defineProps<{
info: InfoAvecId
info: InfoAvecId;
}>();
const émettre = defineEmits<{
: 'fermer'): void;
: 'fermer'): void;
}>();
</script>
</script>
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<template>
<v-list-item>
<v-list-item-title>

</v-list-item-title>
<v-list-item-action>
<v-slot />
</v-list-item-action>
</v-list-item>
<v-list-item>
<v-list-item-title> </v-list-item-title>
<v-list-item-action>
<v-slot />
</v-list-item-action>
</v-list-item>
</template>
<script setup lang="ts">
import type {InfoAvecId, InfoMettreÀJour} from "/@/état/infos";
import type {InfoAvecId, InfoMettreÀJour} from '/@/état/infos';
defineProps<{
info: InfoAvecId<InfoMettreÀJour>
info: InfoAvecId<InfoMettreÀJour>;
}>();
</script>
</script>
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<template>
<v-list-item>
<v-list-item-title>

</v-list-item-title>
<v-list-item-action>
<v-slot />
</v-list-item-action>
</v-list-item>
<v-list-item>
<v-list-item-title> </v-list-item-title>
<v-list-item-action>
<v-slot />
</v-list-item-action>
</v-list-item>
</template>
<script setup lang="ts">
import type {InfoAvecId, InfoInstaller} from "/@/état/infos";
import type {InfoAvecId, InfoInstaller} from '/@/état/infos';
defineProps<{
info: InfoAvecId<InfoInstaller>
info: InfoAvecId<InfoInstaller>;
}>();
</script>
</script>
4 changes: 2 additions & 2 deletions packages/renderer/src/components/bds/NouvelleBd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ const retour = () => {
cheminement.value === 'bd'
? 'gabaritBd'
: cheminement.value === 'nuée'
? 'gabaritNuée'
: 'motsClefs',
? 'gabaritNuée'
: 'motsClefs',
);
break;
Expand Down
8 changes: 4 additions & 4 deletions packages/renderer/src/components/communs/GererAuteurs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ enregistrerRecherche({
a.résultatObjectif.score > b.résultatObjectif.score
? -1
: a.résultatObjectif.score < b.résultatObjectif.score
? 1
: 0,
? 1
: 0,
)),
}),
fRechercheDéfaut: async ({
Expand All @@ -162,8 +162,8 @@ enregistrerRecherche({
a.résultatObjectif.score > b.résultatObjectif.score
? -1
: a.résultatObjectif.score < b.résultatObjectif.score
? 1
: 0,
? 1
: 0,
)),
}),
});
Expand Down
72 changes: 46 additions & 26 deletions packages/renderer/src/components/compte/InviterDispositif.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
v-bind="{props: propsActivateur}"
/>
</template>
<v-card
<v-card
class="mx-auto"
:max-width="mdAndUp ? 500 : 300"
>
Expand All @@ -26,35 +26,47 @@
</v-card-subtitle>
</v-card-item>
<v-card-text>
<v-window
v-model="étape"
<v-window
v-model="étape"
style="overflow-y: scroll"
>
<v-window-item :value="0">
<v-list>
<v-list-item
:title="t('dispositifs.inviter.manuellement')"
:append-icon="isRtl ? 'mdi-chevron-left': 'mdi-chevron-right'"
:append-icon="isRtl ? 'mdi-chevron-left' : 'mdi-chevron-right'"
prepend-icon="mdi-pencil"
@click="() => suivreCheminementManuel()"
></v-list-item>
<v-list-item
:title="t('dispositifs.inviter.codeR2')"
:append-icon="isRtl ? 'mdi-chevron-left': 'mdi-chevron-right'"
:append-icon="isRtl ? 'mdi-chevron-left' : 'mdi-chevron-right'"
prepend-icon="mdi-qrcode"
@click="() => suivreCheminementCodeR2()"
></v-list-item>
</v-list>
</v-window-item>
<v-window-item :value="1" class="text-center">
<div class="mx-auto"
style="display: flex; justify-content: center;align-items: center;
border-radius: 15px;
border: 2px solid #1867c0;
width: 250px;
height: 50px; "
<v-window-item
:value="1"
class="text-center"
>
<div
class="mx-auto"
style="
display: flex;
justify-content: center;
align-items: center;
border-radius: 15px;
border: 2px solid #1867c0;
width: 250px;
height: 50px;
"
>
<p class="text-h3" style="color: #1867c0;">{{ (invitation?.codeSecret || '---').slice(2, 9) }}</p>
<p
class="text-h3"
style="color: #1867c0"
>{{ (invitation?.codeSecret || '---').slice(2, 9) }}</p
>
</div>
<v-btn
v-if="!invitationTexte"
Expand All @@ -74,16 +86,25 @@
@click="() => révoquerInvitation()"
/>
</v-window-item>
<v-window-item :value="2" class="text-center">
<div class="mx-auto mb-2" style="display: flex; align-items: center; justify-content: center;">
<v-window-item
:value="2"
class="text-center"
>
<div
class="mx-auto mb-2"
style="display: flex; align-items: center; justify-content: center"
>
<qrcode-vue
:value="invitationTexte"
:size="200"
level="H"
/>
<div :class="{
fond: !invitationTexte
}" style="position: fixed; height: 200px; width: 200px;" />
<div
:class="{
fond: !invitationTexte,
}"
style="position: fixed; height: 200px; width: 200px"
/>
</div>
<v-btn
v-if="!invitationTexte"
Expand Down Expand Up @@ -124,7 +145,6 @@
>
{{ t('communs.suivant') }}
</v-btn>

</v-card-actions>
</v-card>
</v-dialog>
Expand All @@ -136,8 +156,8 @@ import {computed, inject, ref} from 'vue';
import QrcodeVue from 'qrcode.vue';
import {கிளிமூக்கை_உபயோகி} from '/@/plugins/kilimukku/kilimukku-vue';
import { useDisplay, useRtl } from 'vuetify/lib/framework.mjs';
import { watchEffect } from 'vue';
import {useDisplay, useRtl} from 'vuetify/lib/framework.mjs';
import {watchEffect} from 'vue';
const constl = inject<client.ClientConstellation>('constl');
Expand All @@ -150,11 +170,11 @@ const {isRtl} = useRtl();
const dialogue = ref(false);
// Pour la sécurité, automatiquement révoquer l'invitation si l'on ferme le dialogue
watchEffect(async ()=>{
watchEffect(async () => {
if (!dialogue.value) {
await révoquerInvitation();
}
})
});
const étape = ref(0);
const listeÉtapes = ['cheminement', 'manuelle', 'codeR2'] as const;
Expand Down Expand Up @@ -261,10 +281,10 @@ const invitationTexte = computed(() => {
const révoquerInvitation = async () => {
invitation.value = undefined;
// await constl.révoquerInvitation()
}
};
</script>
<style scoped>
.fond {
background-color: rgba(255,255,255,0.95);
background-color: rgba(255, 255, 255, 0.95);
}
</style>
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ const retour = () => {
cheminementAjouterAutomatisation.value
? 'dispositif'
: cheminement.value === 'importation'
? 'correspondancesImportation'
: 'formatDocExportation',
? 'correspondancesImportation'
: 'formatDocExportation',
);
break;
Expand Down
Loading

0 comments on commit 3114524

Please sign in to comment.