Files
baserow/web-frontend/modules/database/components/card/RowCardFieldFile.vue
Jonathan Adeline e5c3aa4353 Nuxt3 migration continue (#4595)
* Refactor store registration to use SSR methods across multiple plugins for improved state management

* fix database file field drag and drop

* fix storybook dependencies warning.

* refactor: Replace `useAsyncData` with a direct `watch` and `renderMarkdown` function for markdown content.

* fix workspace hydratation warning

* replace direct `role.isBillable` access with `roleIsBillable` computed property

* fix auth settings form

* fix alert slot usage

* please linter

* please prettier

* fix SSR rendering

* refactor: simplify relay state URL generation by directly passing the user source object.

* refactor: Replace `registerModuleSSR` with `registerModuleNuxtSafe` for Vuex module registration across all plugins.

* please linter

* fix: add retry logic for Firefox NS_BINDING_ABORTED navigation errors in E2E tests

* test: reload page and assert link visibility using getByRole after setting parameters.

* refactor: simplify `goto` navigation by removing retry logic and adding a fixed delay.

* refactor: trigger initial markdown rendering via immediate watcher option

* update snapshots
2026-02-09 17:32:12 +04:00

43 lines
863 B
Vue

<template>
<div class="card-file__list-wrapper">
<ul class="card-file__list">
<li
v-for="(file, index) in value"
:key="file.name + index"
class="card-file__item"
>
<img
v-if="file.is_image && file.thumbnails?.tiny?.url"
class="card-file__image"
:src="file.thumbnails.tiny.url"
/>
<i
v-else
class="card-file__icon"
:class="getIconClass(file.mime_type)"
></i>
</li>
</ul>
</div>
</template>
<script>
import { mimetype2icon } from '@baserow/modules/core/utils/fileTypeToIcon'
export default {
height: 22,
name: 'RowCardFieldFile',
props: {
value: {
type: Array,
default: () => [],
},
},
methods: {
getIconClass(mimeType) {
return mimetype2icon(mimeType)
},
},
}
</script>