Skip to content

Commit

Permalink
ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Newman authored and Joseph Newman committed Feb 7, 2024
1 parent 7903803 commit f9e8159
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 55 deletions.
Binary file modified build/ui-bundle.zip
Binary file not shown.
61 changes: 26 additions & 35 deletions src/partials/nav-explore.hbs
Original file line number Diff line number Diff line change
@@ -1,52 +1,24 @@
<div class="nav-panel-explore{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore">
{{#if page.component}}
<div class="context">
{{!--
<span class="title">{{page.component.title}}</span>
<span class="version">{{#unless (eq page.componentVersion.displayVersion 'default')}}{{page.componentVersion.displayVersion}}{{/unless}}</span>
--}}
</div>
{{/if}}
<ul class="components">
{{!--
{{#each (rearrange site.components 'name' page.attributes.component-order)}}
<li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}">
<a class="title" href="{{{relativize ./url}}}">{{{./title}}}</a>
{{#if (or ./versions.[1] (ne ./versions.[0].displayVersion 'default'))}}
<ul class="versions">
{{#each ./versions}}
<li class="version
{{~#if (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latest)}} is-latest{{/if}}">
<a href="{{{relativize ./url}}}">{{./displayVersion}}</a>>
</li>
{{/each}}
</ul>
{{/if}}
{{/each}}
<div class="dropdown-label">TigerGraph Suite</div>
<div class="dropdown-category">
<a class="category-item" href="{{relativize site.components.gui.url}}">GraphStudio</a>
<a class="category-item" href="{{relativize site.components.insights.url}}">{{site.components.insights.title}}</a>
</div>
<a class="category-item" href="{{relativize site.components.gui.modules.}}">Admin Portal</a>
<div class="title">TigerGraph Cloud</div>
<div class="dropdown-category">
<a class="category-item" href="{{relativize site.components.cloud.url}}">{{site.components.cloud.title}}</a>
</div>
--}}

{{!-- Below is new nav code after revamp--}}
<div class="title" style="font-weight: bold;">TigerGraph DB</div>
<div class="dropdown-category">
<a class="category-item" href="{{relativize site.components.tigergraph-server.url}}">{{site.components.tigergraph-server.title}}</a>
<a class="category-item" href="https://docs.tigergraph.com/tigergraph-server/current/getting-started/">Get Started</a>
<a class="category-item" href="https://staging--docs-tigergraph.netlify.app/tigergraph-server/current/getting-started/">Get Started</a>
</div>

<div class="title" style="font-weight: bold;">TigerGraph Cloud</div>
<div class="dropdown-category">
<a class="category-item" href="{{relativize site.components.cloud.url}}">{{site.components.cloud.title}}</a>
<a class="category-item" href="https://docs.tigergraph.com/cloud/start/get_started">Get Started</a>
<a class="category-item" href="https://staging--docs-tigergraph.netlify.app/tigergraph-server/current/getting-started/">Get Started</a>
</div>

<div class="title" style="font-weight: bold;">TigerGraph Suite</div>
Expand All @@ -59,7 +31,7 @@
<div class="title" style="font-weight: bold;">GSQL Language</div>
<div class="dropdown-category">
<a class="category-item" href="{{relativize site.components.gsql-ref.url}}">GSQL Language Reference</a>
<a class="category-item" href="https://docs.tigergraph.com/gsql-ref/current/tutorials/gsql-101/">GSQL 101</a>
<a class="category-item" href="https://staging--docs-tigergraph.netlify.app/gsql-ref/current/tutorials/gsql-101/">GSQL 101</a>
</div>

<div class="title" style="font-weight: bold;">Graph Data Science</div>
Expand All @@ -74,6 +46,25 @@
<a class="category-item" href="{{relativize site.components.graphql.url}}">GraphQL Service</a>
<a class="category-item" href="https://github.com/tigergraph/ecosys/tree/master/tools/etl/tg-jdbc-driver">JDBC Driver</a>
</div>

{{!-- Below is old nav code before revamp--}}
{{#each (rearrange site.components 'name' page.attributes.component-order)}}
{{!--
<li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}">
<a class="title" href="{{{relativize ./url}}}">{{{./title}}}</a>
--}}
{{#if (or ./versions.[1] (ne ./versions.[0].displayVersion 'default'))}}
<ul class="versions">
{{#each ./versions}}
{{!--
<li class="version
{{~#if (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latest)}} is-latest{{/if}}">
<a href="{{{relativize ./url}}}">{{./displayVersion}}</a>>
</li>
--}}
{{/each}}
</ul>
{{/if}}
{{/each}}
</ul>
</div>
40 changes: 20 additions & 20 deletions src/partials/page-versions.hbs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{{#with page.versions}}
<div class="page-versions">
{{!--
<button class="version-menu-toggle" title="Show other versions of page"><div class="button-text">{{@root.page.componentVersion.displayVersion}}</div>
<div class="button-arrow">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
</svg>
</div>
</button>
<ul class="version-menu">
{{#each this}}
<li class="version
{{~#if (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latest)}} is-latest{{/if}}">
<a href="{{{relativize ./url}}}">{{./displayVersion}}</a>
</li>
{{/each}}
</ul>
--}}
</div>
<div class="page-versions">
{{!--
<button class="version-menu-toggle" title="Show other versions of page"><div class="button-text">{{@root.page.componentVersion.displayVersion}}</div>
<div class="button-arrow">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
</svg>
</div>
</button>
--}}
<ul class="version-menu">
{{#each this}}
<li class="version
{{~#if (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latest)}} is-latest{{/if}}">
<a href="{{{relativize ./url}}}">{{./displayVersion}}</a>
</li>
{{/each}}
</ul>
</div>
{{/with}}

0 comments on commit f9e8159

Please sign in to comment.