-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from mulesoft/connectors-article-page
Hook connector article pages to UI model
- Loading branch information
Showing
10 changed files
with
102 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
= Salesforce Connector Release Notes | ||
:page-component-name: general | ||
|
||
This page contains the release notes for the Salesforce Connector. | ||
It's just a placeholder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict' | ||
|
||
// NOTE override built-in resolvePageUrl to fix bug | ||
module.exports = function (spec, { data: { root }, hash: context }) { | ||
const page = root.site.contentCatalog.resolvePage(spec, context) | ||
if (page) return page.pub.url | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<header class="header-connectors"> | ||
<div class="flex align-center header-connectors-title"> | ||
<a class="flex align-center link" href="#"> | ||
<a class="flex align-center link" href="{{relativize site.components.connectors.url}}"> | ||
<svg class="icon icon-md icon-back-arrow"><use xlink:href="#icon-forward-arrow"/></svg> | ||
All Connectors | ||
</a> | ||
</div> | ||
<div class="flex align-center"> | ||
<div class="flex align-center justify-center connector-avatar"> | ||
<img | ||
alt="Salesforce logo" | ||
alt="{{{page.attributes.vendor-title}}} logo" | ||
class="connector-avatar-img" | ||
src="{{uiRootPath}}/img/logos/salesforce.png" | ||
src="{{uiRootPath}}/img/logos/{{page.attributes.vendor-name}}.png" | ||
width="75" | ||
> | ||
</div> | ||
<h1 class="h1">Salesforce Connector</h1> | ||
</div> | ||
<h1 class="h1">{{{page.title}}}</h1> | ||
</div> | ||
</header> | ||
{{> article}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,42 @@ | ||
<div class="connector-sidebar"> | ||
<div class="flex align-center justify-justified row"> | ||
<div class="col">Version</div> | ||
<div class="col">Versions</div> | ||
{{!-- | ||
<div class="col"> | ||
{{> connectors-version-menu}} | ||
</div> | ||
--}} | ||
<div class="col">{{#with page.attributes.connector-versions}}{{this}}{{else}}{{page.version}}.x{{/with}}</div> | ||
</div> | ||
<div class="flex align-center justify-justified row"> | ||
<div class="col">Runtime</div> | ||
<div class="col">Mule 4</div> | ||
{{#with page.attributes.mule-runtime-version}} | ||
<div class="col">Mule {{this}} or later</div> | ||
{{else}} | ||
<div class="col">{{#if (eq page.version '0')}}Mule 3{{else}}Mule 4{{/if}}</div> | ||
{{/with}} | ||
</div> | ||
<div class="flex align-center justify-justified row"> | ||
<div class="col">Tier</div> | ||
<div class="col"> | ||
<div class="flex align-center"> | ||
Select | ||
<div class="flex align-center justify-center tier-help js-connector-tier-trigger" data-tier="select"> | ||
{{{page.attributes.connector-tier}}} | ||
<div class="flex align-center justify-center tier-help js-connector-tier-trigger" data-tier="{{{page.attributes.connector-tier}}}"> | ||
<svg class="icon icon-help"><use xlink:href="#icon-help"/></svg> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<section class="flex col connector-sidebar-categories"> | ||
<header class="row categories-header">Links</header> | ||
<a class="flex align-center link" href="//docs.mulesoft.com/connectors/amazon/amazon-dynamodb-connector">Release notes</a> | ||
<a class="flex align-center link" href="//docs.mulesoft.com/connectors/amazon/amazon-dynamodb-connector" target="_blank">View in Exchange | ||
{{#with (resolvePageUrl page.attributes.release-notes-page)}} | ||
<a class="flex align-center link" href="{{relativize this}}">Release notes</a> | ||
{{else}} | ||
{{/with}} | ||
{{#if page.attributes.exchange-asset-id}} | ||
<a class="flex align-center link" href="https://www.anypoint.mulesoft.com/exchange/{{page.attributes.exchange-group-id}}/{{page.attributes.exchange-asset-id}}" target="_blank">View in Exchange | ||
<svg class="icon icon-md icon-external"><use xlink:href="#icon-external"/></svg> | ||
</a> | ||
{{/if}} | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
<div class="select-wrapper"> | ||
<span class="select js-connector-version-trigger">v5.4.0–4.0.1</span> | ||
<span class="select js-connector-version-trigger">9.2.0 to 9.8.1</span> | ||
</div> | ||
<div class="js-connector-version" style="display: none;"> | ||
<div class="popover popover-connector-version"> | ||
<header class="flex header"> | ||
<div class="col">Runtime</div> | ||
<div class="col">Connector version</div> | ||
<div class="col">Mule Runtime</div> | ||
<div class="col">Connector</div> | ||
</header> | ||
<ol class="list"> | ||
<li> | ||
<a class="link" href="#"> | ||
<div class="col">4.0.0 and later</div> | ||
<div class="col">3.4.0 and later</div> | ||
<div class="col">≥ 4.1.1</div> | ||
<div class="col">9.2.0 to 9.8.1</div> | ||
</a> | ||
</li> | ||
<li> | ||
<a class="link" href="#"> | ||
<div class="col">4.0.1 to 5.4.0</div> | ||
<div class="col">2.7.0 to 4.3.4</div> | ||
<div class="col">≥ 4.1.0</div> | ||
<div class="col">9.1.0 to 9.1.2</div> | ||
</a> | ||
</li> | ||
<li> | ||
<a class="link" href="#"> | ||
<div class="col">≥ 3.5.0</div> | ||
<div class="col">5.4.10 to 8.9.0</div> | ||
</a> | ||
</li> | ||
</ol> | ||
</div> | ||
</div> |