Commit d25fa033 authored by 박민석's avatar 박민석

test version ui

parent 96f47689
Pipeline #20964 failed with stages
in 1 minute and 55 seconds
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
var versions = versionMenu?.querySelectorAll('.version') var versions = versionMenu?.querySelectorAll('.version')
const componentsData = document.querySelector('[data-components]').dataset.component const componentsData = document.querySelector('[data-components]').dataset.component
const componentData = document.querySelector('[data-component]').dataset.component const componentData = document.querySelector('[data-component]').dataset.component
console.log(JSON.parse(componentsData), componentData)
toggle.addEventListener('click', function (e) { toggle.addEventListener('click', function (e) {
if (!versions.length) return if (!versions.length) return
......
<div class="nav-container"{{#if page.component}} data-component="{{page.component.name}}" data-version="{{page.version}}"{{/if}}> <div class="nav-container"{{#if page.component}} data-component="{{page.component.name}}" data-version="{{page.version}}"{{/if}}>
<aside class="nav"> <aside class="nav">
<div class="panels"> <div class="panels">
{{> page-versions}} {{!-- {{> page-versions}} --}}
{{> nav-menu}} {{> nav-menu}}
{{!-- {{> nav-explore}} --}} {{> nav-explore}}
</div> </div>
</aside> </aside>
</div> </div>
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
<div class="backdrop"></div> <div class="backdrop"></div>
<h2 class="title"><a href="{{{relativize ./url}}}">{{page.component.title}}</a></h2> <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> <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]}} {{#with site.components.[0]}}
<div class="version-menu"> <div class="version-menu">
{{#each ./versions}} {{#each ./versions}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment