Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
d25fa033
Commit
d25fa033
authored
Sep 19, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test version ui
parent
96f47689
Pipeline
#20964
failed with stages
in 1 minute and 55 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
04-page-versions.js
src/js/04-page-versions.js
+0
-1
nav.hbs
src/partials/nav.hbs
+2
-2
page-versions.hbs
src/partials/page-versions.hbs
+0
-2
No files found.
src/js/04-page-versions.js
View file @
d25fa033
...
...
@@ -10,7 +10,6 @@
var
versions
=
versionMenu
?.
querySelectorAll
(
'.version'
)
const
componentsData
=
document
.
querySelector
(
'[data-components]'
).
dataset
.
component
const
componentData
=
document
.
querySelector
(
'[data-component]'
).
dataset
.
component
console
.
log
(
JSON
.
parse
(
componentsData
),
componentData
)
toggle
.
addEventListener
(
'click'
,
function
(
e
)
{
if
(
!
versions
.
length
)
return
...
...
src/partials/nav.hbs
View file @
d25fa033
<div
class=
"nav-container"
{{#if
page
.
component
}}
data-component=
"
{{
page
.
component
.
name
}}
"
data-version=
"
{{
page
.
version
}}
"
{{/if}}
>
<aside
class=
"nav"
>
<div
class=
"panels"
>
{{
>
page-versions
}}
{{
!-- {{> page-versions}} --
}}
{{>
nav-menu
}}
{{
!-- {{> nav-explore}} --
}}
{{
>
nav-explore
}}
</div>
</aside>
</div>
src/partials/page-versions.hbs
View file @
d25fa033
...
...
@@ -4,8 +4,6 @@
<div
class=
"backdrop"
></div>
<h2
class=
"title"
><a
href=
"
{{{
relativize
./
url
}}}
"
>
{{
page
.
component
.
title
}}
</a></h2>
<button
class=
"version-menu-toggle"
title=
"Show other versions of page"
>
{{#if
(
or
page
.
componentVersion
.
version
(
ne
page
.
componentVersion
.
displayVersion
'default'
))
}}
v
{{
page
.
componentVersion
.
displayVersion
}}{{/if}}
</button>
<div
data-components=
"
{{
site
.
components
}}
"
></div>
<div
data-component=
"
{{
site
.
components
.[
0
]
}}
"
></div>
{{#
with
site
.
components
.[
0
]
}}
<div
class=
"version-menu"
>
{{#
each
./
versions
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment