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
23f9d649
Commit
23f9d649
authored
Sep 19, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check components data keys
parent
2a8122c6
Pipeline
#20999
passed with stages
in 3 minutes and 48 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
json.js
src/helpers/json.js
+5
-0
page-versions.hbs
src/partials/page-versions.hbs
+1
-1
No files found.
src/helpers/json.js
0 → 100644
View file @
23f9d649
'use strict'
module
.
exports
=
(
context
)
=>
{
return
JSON
.
stringify
(
context
,
null
,
2
)
}
src/partials/page-versions.hbs
View file @
23f9d649
...
...
@@ -5,7 +5,7 @@
<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>
<!-- Version data:
{{
site
.
components
}}
-->
<!-- Version data:
{{
json
site
.
components
}}
-->
{{#
with
site
.
components
.[
0
]
}}
<!-- Version data:
{{
versions
}}
-->
<!-- Version data:
{{
./
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