Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM UI
Merge requests
!12
Add direct S3 interaction
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add direct S3 interaction
feature/s3-interaction
into
development
Overview
0
Commits
13
Pipelines
0
Changes
2
Merged
Daniel Göbel
requested to merge
feature/s3-interaction
into
development
2 years ago
Overview
0
Commits
13
Pipelines
0
Changes
2
Expand
Closes
#15 (closed)
Edited
2 years ago
by
Daniel Göbel
0
0
Merge request reports
Viewing commit
c4d12133
Prev
Next
Show latest version
2 files
+
92
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
c4d12133
Add view object details modal
· c4d12133
Daniel Göbel
authored
2 years ago
#15
src/components/Modals/ObjectDetailModal.vue
0 → 100644
+
70
−
0
Options
<
script
setup
lang=
"ts"
>
import
BootstrapModal
from
"
@/components/Modals/BootstrapModal.vue
"
;
import
type
{
S3ObjectMetaInformation
}
from
"
@/client
"
;
import
dayjs
from
"
dayjs
"
;
import
fileSize
from
"
filesize
"
;
const
props
=
defineProps
<
{
modalID
:
string
;
modalLabel
:
string
;
s3Object
:
S3ObjectMetaInformation
;
}
>
();
</
script
>
<
template
>
<bootstrap-modal
:modalID=
"modalID"
:static-backdrop=
"true"
:modal-label=
"modalLabel"
>
<template
v-slot:header
>
<h4>
Object Details
</h4>
</
template
>
<
template
v-slot:body
>
<div
class=
"container-fluid"
>
<table
class=
"table table-hover table-sm table-borderless"
>
<tbody>
<tr>
<th
scope=
"row"
class=
"col-4"
>
Bucket
</th>
<td
class=
"col-8"
>
{{
props
.
s3Object
.
bucket
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Name
</th>
<td>
{{
props
.
s3Object
.
key
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Content Type
</th>
<td>
text/plain
</td>
</tr>
<tr>
<th
scope=
"row"
>
Timestamp
</th>
<td>
{{
dayjs
(
props
.
s3Object
.
last_modified
).
format
(
"
YYYY-MM-DD HH:mm:ss
"
)
}}
</td>
</tr>
<tr>
<th
scope=
"row"
>
Size
</th>
<td>
{{
fileSize
(
props
.
s3Object
.
size
)
}}
</td>
</tr>
</tbody>
</table>
</div>
</
template
>
<
template
v-slot:footer
>
<button
type=
"button"
class=
"btn btn-secondary"
data-bs-dismiss=
"modal"
>
Close
</button>
</
template
>
</bootstrap-modal>
</template>
<
style
scoped
>
th
{
font-weight
:
bold
;
text-align
:
end
;
}
</
style
>
Loading