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
!85
Resolve "Add UI for viewing and managing Resources"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add UI for viewing and managing Resources"
feature/88-add-ui-for-viewing-and-managing-resources
into
main
Overview
0
Commits
13
Pipelines
0
Changes
130
Merged
Daniel Göbel
requested to merge
feature/88-add-ui-for-viewing-and-managing-resources
into
main
1 year ago
Overview
0
Commits
13
Pipelines
0
Changes
29
Expand
Closes
#88 (closed)
0
0
Merge request reports
Compare
version 7
version 12
42339a48
1 year ago
version 11
7e30aae7
1 year ago
version 10
5b061e98
1 year ago
version 9
a4f7ad06
1 year ago
version 8
7f52f44d
1 year ago
version 7
cc4fd30e
1 year ago
version 6
7675fe35
1 year ago
version 5
b2a4f374
1 year ago
version 4
a73d2ca1
1 year ago
version 3
adcfd484
1 year ago
version 2
ef04796d
1 year ago
version 1
1bd797d5
1 year ago
main (base)
and
version 8
latest version
cf520d15
13 commits,
1 year ago
version 12
42339a48
12 commits,
1 year ago
version 11
7e30aae7
11 commits,
1 year ago
version 10
5b061e98
10 commits,
1 year ago
version 9
a4f7ad06
9 commits,
1 year ago
version 8
7f52f44d
8 commits,
1 year ago
version 7
cc4fd30e
7 commits,
1 year ago
version 6
7675fe35
6 commits,
1 year ago
version 5
b2a4f374
5 commits,
1 year ago
version 4
a73d2ca1
4 commits,
1 year ago
version 3
adcfd484
3 commits,
1 year ago
version 2
ef04796d
2 commits,
1 year ago
version 1
1bd797d5
1 commit,
1 year ago
Show latest version
29 files
+
636
−
87
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
29
Search (e.g. *.vue) (Ctrl+P)
src/components/admin/ResourceVersionInfoModal.vue
0 → 100644
+
262
−
0
Options
<
script
setup
lang=
"ts"
>
import
BootstrapModal
from
"
@/components/modals/BootstrapModal.vue
"
;
import
type
{
ResourceVersionOut
,
ResourceOut
}
from
"
@/client/resource
"
;
import
CopyToClipboardIcon
from
"
@/components/CopyToClipboardIcon.vue
"
;
import
dayjs
from
"
dayjs
"
;
import
{
computed
}
from
"
vue
"
;
import
{
useNameStore
}
from
"
@/stores/names
"
;
const
props
=
defineProps
<
{
modalId
:
string
;
resourceVersionIndex
:
number
;
resource
?:
ResourceOut
;
}
>
();
const
nameRepository
=
useNameStore
();
const
resourceVersion
=
computed
<
ResourceVersionOut
|
undefined
>
(
()
=>
props
.
resource
?.
versions
[
props
.
resourceVersionIndex
],
);
</
script
>
<
template
>
<bootstrap-modal
:modal-id=
"props.modalId"
modal-label=
"Resource Version Info Modal"
size-modifier=
"lg"
>
<template
#header
>
Resource Version
<span
v-if=
"resourceVersion"
>
{{
resourceVersion
.
release
}}
</span>
</
template
>
<
template
#body
>
<h5>
Resource
</h5>
<div
class=
"mb-3 row"
>
<div
class=
"col-8"
>
<label
for=
"resource-version-info-modal-resource-id"
class=
"form-label"
>
ID
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-id"
readonly
:value=
"props.resource?.resource_id"
/>
<span
class=
"input-group-text"
><copy-to-clipboard-icon
:text=
"props.resource?.resource_id ?? ''"
/></span>
</div>
</div>
<div
class=
"col-4"
>
<label
for=
"resource-version-info-modal-resource-name"
class=
"form-label"
>
Name
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-name"
readonly
:value=
"props.resource?.name"
/>
</div>
</div>
</div>
<div
class=
"mb-3 row"
>
<div
class=
"col-8"
>
<label
for=
"resource-version-info-modal-maintainer-id"
class=
"form-label"
>
Maintainer ID
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-maintainer-id"
readonly
:value=
"props.resource?.maintainer_id"
/>
<span
class=
"input-group-text"
><copy-to-clipboard-icon
:text=
"props.resource?.maintainer_id ?? ''"
/></span>
</div>
</div>
<div
class=
"col-4"
>
<label
for=
"resource-version-info-modal-maintainer-name"
class=
"form-label"
>
Maintainer Name
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-maintainer-name"
readonly
:value=
"nameRepository.getName(props.resource?.maintainer_id)"
/>
</div>
</div>
</div>
<div
class=
"mb-3"
>
<label
for=
"resource-version-info-modal-resource-description"
class=
"form-label"
>
Description
</label
>
<div
class=
"input-group"
>
<textarea
class=
"form-control"
id=
"resource-version-info-modal-resource-description"
readonly
rows=
"2"
:value=
"props.resource?.description"
/>
</div>
</div>
<div
class=
"mb-5"
>
<label
for=
"resource-version-info-modal-resource-source"
class=
"form-label"
>
Source
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-source"
readonly
:value=
"props.resource?.source"
/>
</div>
</div>
<h5>
Resource Version
</h5>
<div
class=
"mb-3 row"
>
<div
class=
"col-8"
>
<label
for=
"resource-version-info-modal-resource-version-id"
class=
"form-label"
>
Resource Version ID
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-version-id"
readonly
:value=
"resourceVersion?.resource_version_id"
/>
<span
class=
"input-group-text"
><copy-to-clipboard-icon
:text=
"resourceVersion?.resource_version_id ?? ''"
/></span>
</div>
</div>
<div
class=
"col-4"
>
<label
for=
"resource-version-info-modal-resource-version-release"
class=
"form-label"
>
Resource Version Release
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-version-release"
readonly
:value=
"resourceVersion?.release"
/>
</div>
</div>
</div>
<div
class=
"mb-3 row"
>
<div
class=
"col-4"
>
<label
for=
"resource-version-info-modal-resource-version-status"
class=
"form-label"
>
Status
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-version-status"
readonly
:value=
"resourceVersion?.status"
/>
</div>
</div>
<div
class=
"col-4"
>
<label
for=
"resource-version-info-modal-resource-version-timestamp"
class=
"form-label"
>
Created At
</label
>
<div
class=
"input-group"
>
<input
type=
"datetime-local"
class=
"form-control"
id=
"resource-version-info-modal-resource-version-timestamp"
readonly
:value=
"
dayjs
.unix(resourceVersion?.created_at ?? 0)
.format('YYYY-MM-DDTHH:mm')
"
/>
</div>
</div>
</div>
<div
class=
"mb-3"
>
<label
for=
"resource-version-info-modal-resource-version-s3-path"
class=
"form-label"
>
S3 Path
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-version-s3-path"
readonly
:value=
"resourceVersion?.s3_path"
/>
<span
class=
"input-group-text"
><copy-to-clipboard-icon
:text=
"resourceVersion?.s3_path ?? ''"
/></span>
</div>
</div>
<div
class=
"mb-3"
>
<label
for=
"resource-version-info-modal-resource-version-cluster-path"
class=
"form-label"
>
Cluster Path
</label
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"resource-version-info-modal-resource-version-cluster-path"
readonly
:value=
"resourceVersion?.cluster_path"
/>
<span
class=
"input-group-text"
><copy-to-clipboard-icon
:text=
"resourceVersion?.cluster_path ?? ''"
/></span>
</div>
</div>
</
template
>
</bootstrap-modal>
</template>
<
style
scoped
></
style
>
Loading