Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uhepp.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Frank Sauerburger
uhepp.org
Commits
58712a98
Verified
Commit
58712a98
authored
3 years ago
by
Frank Sauerburger
Browse files
Options
Downloads
Patches
Plain Diff
Add empty access button group
parent
5f8f4593
No related branches found
No related tags found
1 merge request
!33
Draft: Resolve "UI redesign"
Pipeline
#7984
waiting for manual action
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
uhepp-js/src/components/AccessButtonGroup.jsx
+43
-0
43 additions, 0 deletions
uhepp-js/src/components/AccessButtonGroup.jsx
uhepp-js/src/components/Dashboard.jsx
+4
-2
4 additions, 2 deletions
uhepp-js/src/components/Dashboard.jsx
with
47 additions
and
2 deletions
uhepp-js/src/components/AccessButtonGroup.jsx
0 → 100644
+
43
−
0
View file @
58712a98
import
React
from
"
react
"
/**
* The AccessButtonGroup component provides quick access to the plot
*
* The AccessButtonGroup renders as a Bootstrap button group with different
* access methods, e.g., direct download as an image or as json, API access
* snippets or command-line tool shippets. The component is reactive and
* reduces to a burger menu on small screens.
*/
const
AccessButtonGroup
=
({
uuid
,
collection_id
})
=>
(
<
div
className
=
"ml-auto btn-group btn-group-sm access-menu"
>
<
div
className
=
"btn-group btn-group-sm dropdown"
>
<
button
className
=
"btn btn-secondary dropdown-toggle"
type
=
"button"
data-toggle
=
"dropdown"
>
Direct download
</
button
>
<
div
className
=
"dropdown-menu dropdown-menu-right p-4 shadow"
>
</
div
>
</
div
>
<
div
className
=
"btn-group btn-group-sm dropdown"
>
<
button
className
=
"btn btn-primary dropdown-toggle"
type
=
"button"
data-toggle
=
"dropdown"
>
API Access
</
button
>
<
div
className
=
"dropdown-menu dropdown-menu-right p-4 shadow"
>
</
div
>
</
div
>
<
div
className
=
"btn-group btn-group-sm dropdown"
>
<
button
className
=
"btn btn-secondary dropdown-toggle"
type
=
"button"
data-toggle
=
"dropdown"
>
CLI tool
</
button
>
<
div
className
=
"dropdown-menu dropdown-menu-right p-4 shadow"
>
</
div
>
</
div
>
</
div
>
)
export
default
AccessButtonGroup
This diff is collapsed.
Click to expand it.
uhepp-js/src/components/Dashboard.jsx
+
4
−
2
View file @
58712a98
import
React
from
"
react
"
import
VisibilityIcon
from
"
./VisibilityIcon.jsx
"
import
AccessButtonGroup
from
"
./AccessButtonGroup.jsx
"
import
Breadcrumbs
from
"
./Breadcrumbs.jsx
"
import
ViewDate
from
"
./ViewDate.jsx
"
import
Uhepp
from
"
./Uhepp.jsx
"
...
...
@@ -23,8 +24,9 @@ const Dashboard = ({title, visibility, breadcrumbs, viewdate, uuid}) => (
<
div
className
=
"col-md-6 col-lg-7"
>
<
Breadcrumbs
content
=
{
breadcrumbs
}
/>
<
h1
className
=
"mb-0"
>
{
title
}
<
VisibilityIcon
level
=
{
visibility
}
/>
<
h1
className
=
"mb-0 controls-head"
>
<
span
>
{
title
}
<
VisibilityIcon
level
=
{
visibility
}
/></
span
>
<
span
><
AccessButtonGroup
/></
span
>
</
h1
>
<
ViewDate
data
=
{
viewdate
}
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment