Use <template #slotName> form instead of v-slot

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-08-12 16:42:40 +02:00
parent 9d00aff619
commit e893f3f089
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
15 changed files with 28 additions and 29 deletions

View File

@ -21,7 +21,7 @@
<i18n-t
keypath="This instance, {instanceName}, hosts your profile, so remember its name."
>
<template v-slot:instanceName>
<template #instanceName>
<b>{{
t("{instanceName} ({domain})", {
domain,

View File

@ -35,10 +35,10 @@
tag="span"
keypath="{instanceName} is an instance of {mobilizon_link}, a free software built with the community."
>
<template v-slot:instanceName>
<template #instanceName>
<b>{{ config?.name }}</b>
</template>
<template v-slot:mobilizon_link>
<template #mobilizon_link>
<a href="https://joinmobilizon.org">{{ t("Mobilizon") }}</a>
</template>
</i18n-t>

View File

@ -7,7 +7,7 @@
tag="p"
keypath="You have been invited by {invitedBy} to the following group:"
>
<template v-slot:invitedBy>
<template #invitedBy>
<b>{{ member?.invitedBy?.name }}</b>
</template>
</i18n-t>

View File

@ -42,7 +42,7 @@
<p class="flex gap-1" v-if="isCurrentActorMember">
<AccountEdit />
<i18n-t keypath="Published by {name}">
<template v-slot:name>
<template #name>
<b class="">{{ displayName(post.author) }}</b>
</template>
</i18n-t>

View File

@ -10,22 +10,22 @@
>
<div class="statistics flex-1 min-w-[20rem]">
<i18n-t tag="p" keypath="Home to {number} users">
<template v-slot:number>
<template #number>
<strong>{{ statistics.numberOfUsers }}</strong>
</template>
</i18n-t>
<i18n-t tag="p" keypath="and {number} groups">
<template v-slot:number>
<template #number>
<strong>{{ statistics.numberOfLocalGroups }}</strong>
</template>
</i18n-t>
<i18n-t tag="p" keypath="Who published {number} events">
<template v-slot:number>
<template #number>
<strong>{{ statistics.numberOfLocalEvents }}</strong>
</template>
</i18n-t>
<i18n-t tag="p" keypath="And {number} comments">
<template v-slot:number>
<template #number>
<strong>{{ statistics.numberOfLocalComments }}</strong>
</template>
</i18n-t>

View File

@ -54,7 +54,7 @@
tag="dd"
keypath="SSL and it's successor TLS are encryption technologies to secure data communications when using the service. You can recognize an encrypted connection in your browser's address line when the URL begins with {https} and the lock icon is displayed in your browser's address bar."
>
<template v-slot:https><code>https://</code></template>
<template #https><code>https://</code></template>
</i18n-t>
<dt>{{ t("Cookies and Local storage") }}</dt>
<dd>

View File

@ -51,7 +51,7 @@
icon="magnify"
/>
</template>
<template v-slot:default="props">
<template #default="props">
<router-link
class="profile"
:to="{
@ -91,7 +91,7 @@
icon="magnify"
/>
</template>
<template v-slot:default="props">
<template #default="props">
{{ props.row.domain }}
</template>
</o-table-column>

View File

@ -42,7 +42,7 @@
icon="magnify"
/>
</template>
<template v-slot:default="props">
<template #default="props">
<router-link
class="profile"
:to="{
@ -81,7 +81,7 @@
icon="magnify"
/>
</template>
<template v-slot:default="props">
<template #default="props">
{{ props.row.domain }}
</template>
</o-table-column>

View File

@ -45,7 +45,7 @@
{{ props.row.id }}
</o-table-column>
<o-table-column field="email" :label="$t('Email')">
<template v-slot:default="props">
<template #default="props">
<router-link
:to="{
name: RouteName.ADMIN_USER_PROFILE,

View File

@ -399,7 +399,7 @@
:close-button-aria-label="t('Close')"
>
<identity-picker v-model="identity">
<template v-slot:footer>
<template #footer>
<footer class="modal-card-foot">
<button
class="button"

View File

@ -147,12 +147,12 @@
keypath="Do you wish to {create_event} or {explore_events}?"
tag="p"
>
<template v-slot:create_event>
<template #create_event>
<router-link :to="{ name: RouteName.CREATE_EVENT }">{{
t("create an event")
}}</router-link>
</template>
<template v-slot:explore_events>
<template #explore_events>
<router-link :to="{ name: RouteName.SEARCH }">{{
t("explore the events")
}}</router-link>

View File

@ -516,10 +516,9 @@
<template #desc>
<template v-if="isCurrentActorFollowing">
<i18n-t
class="has-text-grey-dark"
keypath="You will receive notifications about this group's public activity depending on %{notification_settings}."
>
<template v-slot:notification_settings>
<template #notification_settings>
<router-link :to="{ name: RouteName.NOTIFICATIONS }">{{
t("your notification settings")
}}</router-link>

View File

@ -46,7 +46,7 @@
tag="span"
keypath="On {instance} and other federated instances"
>
<template v-slot:instance>
<template #instance>
<b>{{ config.name }}</b>
</template>
</i18n-t>
@ -252,7 +252,7 @@
tag="span"
keypath="On {instance} and other federated instances"
>
<template v-slot:instance>
<template #instance>
<b>{{ config.name }}</b>
</template>
</i18n-t>

View File

@ -3,7 +3,7 @@
<h1 class="">{{ $t("Explore") }}</h1>
<section v-if="tag">
<i18n-t keypath="Events tagged with {tag}">
<template v-slot:tag>
<template #tag>
<b-tag variant="light">{{ $t("#{tag}", { tag }) }}</b-tag>
</template>
</i18n-t>

View File

@ -12,10 +12,10 @@
tag="p"
keypath="{instanceName} is an instance of the {mobilizon} software."
>
<template v-slot:instanceName>
<template #instanceName>
<b>{{ config?.name }}</b>
</template>
<template v-slot:mobilizon>
<template #mobilizon>
<a href="https://joinmobilizon.org" target="_blank" class="out">{{
t("Mobilizon")
}}</a>
@ -73,12 +73,12 @@
<i18n-t
keypath="Please read the {fullRules} published by {instance}'s administrators."
tag="p"
><template v-slot:fullRules>
><template #fullRules>
<router-link class="out" :to="{ name: RouteName.RULES }">{{
t("full rules")
}}</router-link>
</template>
<template v-slot:instance>
<template #instance>
<b>{{ config?.name }}</b>
</template>
</i18n-t>
@ -141,12 +141,12 @@
tag="span"
keypath="I agree to the {instanceRules} and {termsOfService}"
>
<template v-slot:instanceRules>
<template #instanceRules>
<router-link class="out" :to="{ name: RouteName.RULES }">{{
t("instance rules")
}}</router-link>
</template>
<template v-slot:termsOfService>
<template #termsOfService>
<router-link class="out" :to="{ name: RouteName.TERMS }">{{
t("terms of service")
}}</router-link>