lint
This commit is contained in:
parent
2d07671552
commit
105d047cdd
4 changed files with 5 additions and 5 deletions
|
|
@ -2,9 +2,9 @@ import { mapState } from 'pinia'
|
||||||
|
|
||||||
import nsfwImage from '../../assets/nsfw.png'
|
import nsfwImage from '../../assets/nsfw.png'
|
||||||
import Flash from '../flash/flash.vue'
|
import Flash from '../flash/flash.vue'
|
||||||
|
import Popover from '../popover/popover.vue'
|
||||||
import StillImage from '../still-image/still-image.vue'
|
import StillImage from '../still-image/still-image.vue'
|
||||||
import VideoAttachment from '../video_attachment/video_attachment.vue'
|
import VideoAttachment from '../video_attachment/video_attachment.vue'
|
||||||
import Popover from '../popover/popover.vue'
|
|
||||||
|
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
trigger="click"
|
trigger="click"
|
||||||
popover-class="popover popover-default description-popover"
|
popover-class="popover popover-default description-popover"
|
||||||
:trigger-attrs="{ 'class': 'button-default attachment-button -transparent', 'title': $t('status.attachment_description') }"
|
:trigger-attrs="{ 'class': 'button-default attachment-button -transparent', 'title': $t('status.attachment_description') }"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<FAIcon icon="align-right" />
|
<FAIcon icon="align-right" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -90,8 +90,8 @@
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<details
|
<details
|
||||||
open
|
|
||||||
v-if="description"
|
v-if="description"
|
||||||
|
open
|
||||||
class="description"
|
class="description"
|
||||||
>
|
>
|
||||||
<summary>{{ $t('status.attachment_description') }}</summary>
|
<summary>{{ $t('status.attachment_description') }}</summary>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { parseLinkHeader } from '@web3-storage/parse-link-header'
|
import { parseLinkHeader } from '@web3-storage/parse-link-header'
|
||||||
import escapeHtml from 'escape-html'
|
import escapeHtml from 'escape-html'
|
||||||
import { unescape } from 'lodash'
|
import { unescape as lodashUnescape } from 'lodash'
|
||||||
import punycode from 'punycode.js'
|
import punycode from 'punycode.js'
|
||||||
|
|
||||||
import fileTypeService from '../file_type/file_type.service.js'
|
import fileTypeService from '../file_type/file_type.service.js'
|
||||||
|
|
@ -308,7 +308,7 @@ export const parseAttachment = (data) => {
|
||||||
}
|
}
|
||||||
output.url = data.url
|
output.url = data.url
|
||||||
output.large_thumb_url = data.preview_url
|
output.large_thumb_url = data.preview_url
|
||||||
output.description = unescape(data.description)
|
output.description = lodashUnescape(data.description)
|
||||||
|
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue