Add Flash unpreviewable file type to embeds

This commit is contained in:
CenTdemeern1 2024-12-08 18:36:00 +01:00
parent 15ecc8f86d
commit eb4ca97c85
3 changed files with 6 additions and 0 deletions

4
locales/index.d.ts vendored
View file

@ -11004,6 +11004,10 @@ export interface Locale extends ILocale {
* Show warning when opening external URLs * Show warning when opening external URLs
*/ */
"warnExternalUrl": string; "warnExternalUrl": string;
/**
* Flash
*/
"flash": string;
"_flash": { "_flash": {
/** /**
* Flash Content Hidden * Flash Content Hidden

View file

@ -7,6 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<a :href="href" target="_blank" :class="$style.root"> <a :href="href" target="_blank" :class="$style.root">
<div :class="$style.label"> <div :class="$style.label">
<template v-if="media.type.startsWith('audio')"><i class="ti ti-music"></i> {{ i18n.ts.audio }}</template> <template v-if="media.type.startsWith('audio')"><i class="ti ti-music"></i> {{ i18n.ts.audio }}</template>
<template v-else-if="media.type.startsWith('application') && media.type.includes('flash')"><i class="ti ti-bolt"></i> {{ i18n.ts.flash }}</template>
<template v-else><i class="ti ti-file"></i> {{ i18n.ts.file }}</template> <template v-else><i class="ti ti-file"></i> {{ i18n.ts.file }}</template>
</div> </div>
<div :class="$style.go"> <div :class="$style.go">

View file

@ -156,6 +156,7 @@ allowClickingNotifications: "Allow clicking on pop-up notifications"
pinnedOnly: "Pinned" pinnedOnly: "Pinned"
blockingYou: "Blocking you" blockingYou: "Blocking you"
warnExternalUrl: "Show warning when opening external URLs" warnExternalUrl: "Show warning when opening external URLs"
flash: "Flash"
_flash: _flash:
contentHidden: "Flash Content Hidden" contentHidden: "Flash Content Hidden"
poweredByRuffle: "Powered by Ruffle." poweredByRuffle: "Powered by Ruffle."