more warnings fixed

This commit is contained in:
Henry Jameson 2024-12-23 04:38:43 +02:00
parent 33c9236e45
commit 300f73331a
16 changed files with 42 additions and 18 deletions

View file

@ -86,6 +86,7 @@
<i18n-t <i18n-t
keypath="user_card.block_confirm" keypath="user_card.block_confirm"
tag="span" tag="span"
scope="global"
> >
<template #user> <template #user>
<span <span
@ -107,6 +108,7 @@
<i18n-t <i18n-t
keypath="user_card.remove_follower_confirm" keypath="user_card.remove_follower_confirm"
tag="span" tag="span"
scope="global"
> >
<template #user> <template #user>
<span <span

View file

@ -17,6 +17,7 @@
<i18n-t <i18n-t
v-if="id" v-if="id"
keypath="bookmark_folders.editing_folder" keypath="bookmark_folders.editing_folder"
scope="global"
> >
<template #folderName> <template #folderName>
{{ name }} {{ name }}
@ -25,6 +26,7 @@
<i18n-t <i18n-t
v-else v-else
keypath="bookmark_folders.creating_folder" keypath="bookmark_folders.creating_folder"
scope="global"
/> />
</h1> </h1>
</div> </div>

View file

@ -56,6 +56,7 @@
tag="span" tag="span"
class="notification tip extra-notification" class="notification tip extra-notification"
keypath="notifications.configuration_tip" keypath="notifications.configuration_tip"
scope="global"
> >
<template #theSettings> <template #theSettings>
<button <button

View file

@ -17,6 +17,7 @@
@cancelled="hideConfirmUnfollow" @cancelled="hideConfirmUnfollow"
> >
<i18n-t <i18n-t
scope="global"
keypath="user_card.unfollow_confirm" keypath="user_card.unfollow_confirm"
tag="span" tag="span"
> >

View file

@ -1,11 +1,8 @@
<template> <template>
<div <div class="font-control">
class="font-control"
:class="{ custom: isCustom }"
>
<label <label
:id="name + '-label'" :id="name + '-label'"
:for="preset === 'custom' ? name : name + '-font-switcher'" :for="manualEntry ? name : name + '-font-switcher'"
class="label" class="label"
> >
{{ label }} {{ label }}
@ -23,12 +20,13 @@
<label <label
v-if="manualEntry" v-if="manualEntry"
:id="name + '-label'" :id="name + '-label'"
:for="preset === 'custom' ? name : name + '-font-switcher'" :for="manualEntry ? name : name + '-font-switcher'"
class="label" class="label"
> >
<i18n-t <i18n-t
keypath="settings.style.themes3.font.entry" keypath="settings.style.themes3.font.entry"
tag="span" tag="span"
scope="global"
> >
<template #fontFamily> <template #fontFamily>
<code>font-family</code> <code>font-family</code>
@ -38,7 +36,7 @@
<label <label
v-else v-else
:id="name + '-label'" :id="name + '-label'"
:for="preset === 'custom' ? name : name + '-font-switcher'" :for="manualEntry ? name : name + '-font-switcher'"
class="label" class="label"
> >
{{ $t('settings.style.themes3.font.select') }} {{ $t('settings.style.themes3.font.select') }}

View file

@ -32,7 +32,6 @@
:description="descriptions && descriptions[attachment.id]" :description="descriptions && descriptions[attachment.id]"
:hide-description="size === 'small' || tooManyAttachments && hidingLong" :hide-description="size === 'small' || tooManyAttachments && hidingLong"
:style="itemStyle(attachment.id, row.items)" :style="itemStyle(attachment.id, row.items)"
@setMedia="onMedia"
@naturalSizeLoad="onNaturalSizeLoad" @naturalSizeLoad="onNaturalSizeLoad"
/> />
</div> </div>

View file

@ -17,6 +17,7 @@
<i18n-t <i18n-t
v-if="id" v-if="id"
keypath="lists.editing_list" keypath="lists.editing_list"
scope="global"
> >
<template #listTitle> <template #listTitle>
{{ title }} {{ title }}
@ -25,6 +26,7 @@
<i18n-t <i18n-t
v-else v-else
keypath="lists.creating_list" keypath="lists.creating_list"
scope="global"
/> />
</div> </div>
</div> </div>

View file

@ -6,6 +6,7 @@
<ColorInput <ColorInput
v-for="key in paletteKeys" v-for="key in paletteKeys"
:key="key" :key="key"
:name="key"
:model-value="props.modelValue[key]" :model-value="props.modelValue[key]"
:fallback="fallback(key)" :fallback="fallback(key)"
:label="$t('settings.style.themes3.palette.' + key)" :label="$t('settings.style.themes3.palette.' + key)"

View file

@ -49,11 +49,13 @@
<span v-if="adminDraft && adminDraft[':pleroma'][':frontends'][':primary']?.name === frontend.name"> <span v-if="adminDraft && adminDraft[':pleroma'][':frontends'][':primary']?.name === frontend.name">
<i18n-t <i18n-t
v-if="adminDraft && adminDraft[':pleroma'][':frontends'][':primary']?.ref === frontend.refs[0]" v-if="adminDraft && adminDraft[':pleroma'][':frontends'][':primary']?.ref === frontend.refs[0]"
scope="global"
keypath="admin_dash.frontend.is_default" keypath="admin_dash.frontend.is_default"
/> />
<i18n-t <i18n-t
v-else v-else
keypath="admin_dash.frontend.is_default_custom" keypath="admin_dash.frontend.is_default_custom"
scope="global"
> >
<template #version> <template #version>
<code>{{ adminDraft && adminDraft[':pleroma'][':frontends'][':primary'].ref }}</code> <code>{{ adminDraft && adminDraft[':pleroma'][':frontends'][':primary'].ref }}</code>
@ -120,7 +122,10 @@
@click.prevent="update(frontend, ref)" @click.prevent="update(frontend, ref)"
@click="close" @click="close"
> >
<i18n-t keypath="admin_dash.frontend.install_version"> <i18n-t
keypath="admin_dash.frontend.install_version"
scope="global"
>
<template #version> <template #version>
<code>{{ ref }}</code> <code>{{ ref }}</code>
</template> </template>
@ -177,7 +182,10 @@
@click.prevent="setDefault(frontend, ref)" @click.prevent="setDefault(frontend, ref)"
@click="close" @click="close"
> >
<i18n-t keypath="admin_dash.frontend.set_default_version"> <i18n-t
keypath="admin_dash.frontend.set_default_version"
scope="global"
>
<template #version> <template #version>
<code>{{ ref }}</code> <code>{{ ref }}</code>
</template> </template>

View file

@ -14,7 +14,6 @@ library.add(
) )
const LimitsTab = { const LimitsTab = {
data () {},
components: { components: {
BooleanSetting, BooleanSetting,
ChoiceSetting, ChoiceSetting,

View file

@ -48,18 +48,14 @@
:attachment="attachment" :attachment="attachment"
size="small" size="small"
hide-description hide-description
@setMedia="onMedia"
@naturalSizeLoad="onNaturalSizeLoad"
/> />
<div class="controls control-upload"> <div class="controls control-upload">
<MediaUpload <MediaUpload
ref="mediaUpload" ref="mediaUpload"
class="media-upload-icon" class="media-upload-icon"
:drop-files="dropFiles"
normal-button normal-button
:accept-types="acceptTypes" :accept-types="acceptTypes"
@uploaded="setMediaFile" @uploaded="setMediaFile"
@upload-failed="uploadFailed"
/> />
</div> </div>
</div> </div>

View file

@ -110,7 +110,10 @@
{{ $t("settings.expert_mode") }} {{ $t("settings.expert_mode") }}
</Checkbox> </Checkbox>
<span v-if="modalMode === 'admin'"> <span v-if="modalMode === 'admin'">
<i18n-t keypath="admin_dash.wip_notice"> <i18n-t
scope="global"
keypath="admin_dash.wip_notice"
>
<template #adminFeLink> <template #adminFeLink>
<a <a
href="/pleroma/admin/#/login-pleroma" href="/pleroma/admin/#/login-pleroma"

View file

@ -149,6 +149,7 @@
</div> </div>
<div> <div>
<i18n-t <i18n-t
scope="global"
keypath="settings.new_alias_target" keypath="settings.new_alias_target"
tag="p" tag="p"
> >
@ -184,6 +185,7 @@
<i18n-t <i18n-t
keypath="settings.move_account_target" keypath="settings.move_account_target"
tag="p" tag="p"
scope="global"
> >
<template #example> <template #example>
<code> <code>

View file

@ -186,6 +186,7 @@
> >
<ColorInput <ColorInput
v-model="editedBackgroundColor" v-model="editedBackgroundColor"
name="component-background-color"
:fallback="computeColor(editedBackgroundColor) ?? previewColors.background" :fallback="computeColor(editedBackgroundColor) ?? previewColors.background"
:disabled="!isBackgroundColorPresent" :disabled="!isBackgroundColorPresent"
:label="$t('settings.style.themes3.editor.background')" :label="$t('settings.style.themes3.editor.background')"
@ -197,6 +198,7 @@
<ColorInput <ColorInput
v-if="componentHas('Text')" v-if="componentHas('Text')"
v-model="editedTextColor" v-model="editedTextColor"
name="component-text-color"
:fallback="computeColor(editedTextColor) ?? previewColors.text" :fallback="computeColor(editedTextColor) ?? previewColors.text"
:label="$t('settings.style.themes3.editor.text_color')" :label="$t('settings.style.themes3.editor.text_color')"
:disabled="!isTextColorPresent" :disabled="!isTextColorPresent"
@ -257,6 +259,7 @@
<ColorInput <ColorInput
v-if="componentHas('Link')" v-if="componentHas('Link')"
v-model="editedLinkColor" v-model="editedLinkColor"
name="component-link-color"
:fallback="computeColor(editedLinkColor) ?? previewColors.link" :fallback="computeColor(editedLinkColor) ?? previewColors.link"
:label="$t('settings.style.themes3.editor.link_color')" :label="$t('settings.style.themes3.editor.link_color')"
:disabled="!isLinkColorPresent" :disabled="!isLinkColorPresent"
@ -271,6 +274,7 @@
<ColorInput <ColorInput
v-if="componentHas('Icon')" v-if="componentHas('Icon')"
v-model="editedIconColor" v-model="editedIconColor"
name="component-icon-color"
:fallback="computeColor(editedIconColor) ?? previewColors.icon" :fallback="computeColor(editedIconColor) ?? previewColors.icon"
:label="$t('settings.style.themes3.editor.icon_color')" :label="$t('settings.style.themes3.editor.icon_color')"
:disabled="!isIconColorPresent" :disabled="!isIconColorPresent"
@ -285,6 +289,7 @@
<ColorInput <ColorInput
v-if="componentHas('Border')" v-if="componentHas('Border')"
v-model="editedBorderColor" v-model="editedBorderColor"
name="component-border-color"
:fallback="computeColor(editedBorderColor) ?? previewColors.border" :fallback="computeColor(editedBorderColor) ?? previewColors.border"
:label="$t('settings.style.themes3.editor.border_color')" :label="$t('settings.style.themes3.editor.border_color')"
:disabled="!isBorderColorPresent" :disabled="!isBorderColorPresent"
@ -298,6 +303,7 @@
</Tooltip> </Tooltip>
<OpacityInput <OpacityInput
v-model="editedOpacity" v-model="editedOpacity"
name="component-opacity"
:disabled="!isOpacityPresent" :disabled="!isOpacityPresent"
:label="$t('settings.style.themes3.editor.opacity')" :label="$t('settings.style.themes3.editor.opacity')"
/> />
@ -306,6 +312,7 @@
</Tooltip> </Tooltip>
<RoundnessInput <RoundnessInput
v-model="editedRoundness" v-model="editedRoundness"
name="component-roundness"
:disabled="!isRoundnessPresent" :disabled="!isRoundnessPresent"
:label="$t('settings.style.themes3.editor.roundness')" :label="$t('settings.style.themes3.editor.roundness')"
/> />
@ -386,7 +393,6 @@
key="variables" key="variables"
:label="$t('settings.style.themes3.editor.variables_tab')" :label="$t('settings.style.themes3.editor.variables_tab')"
:model-value="virtualDirectives" :model-value="virtualDirectives"
:normalize-shadows="normalizeShadows"
@update:modelValue="updateVirtualDirectives" @update:modelValue="updateVirtualDirectives"
/> />
</tab-switcher> </tab-switcher>

View file

@ -72,6 +72,7 @@
:compact="true" :compact="true"
/> />
<ColorInput <ColorInput
name="virtual-directive-color"
v-if="selectedVirtualDirectiveValType === 'color'" v-if="selectedVirtualDirectiveValType === 'color'"
v-model="draftVirtualDirective" v-model="draftVirtualDirective"
:fallback="computeColor(draftVirtualDirective)" :fallback="computeColor(draftVirtualDirective)"

View file

@ -444,7 +444,10 @@
v-else-if="hasInvisibleQuote" v-else-if="hasInvisibleQuote"
class="quoted-status -unavailable-prompt" class="quoted-status -unavailable-prompt"
> >
<i18n-t keypath="status.invisible_quote"> <i18n-t
scope="global"
keypath="status.invisible_quote"
>
<template #link> <template #link>
<bdi> <bdi>
<a <a