|
|
@ -9,6 +9,14 @@ const css = csjs` |
|
|
|
} |
|
|
|
} |
|
|
|
.swapitTitle { |
|
|
|
.swapitTitle { |
|
|
|
text-transform: uppercase; |
|
|
|
text-transform: uppercase; |
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.swapitTitle a{ |
|
|
|
|
|
|
|
cursor: help; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.swapitTitle i{ |
|
|
|
|
|
|
|
padding-left:4px; |
|
|
|
|
|
|
|
font-size:10px; |
|
|
|
} |
|
|
|
} |
|
|
|
.swapitHeader { |
|
|
|
.swapitHeader { |
|
|
|
height: 35px; |
|
|
|
height: 35px; |
|
|
@ -54,13 +62,17 @@ export class SwapPanel extends AbstractPanel { |
|
|
|
/** The header of the swap panel */ |
|
|
|
/** The header of the swap panel */ |
|
|
|
renderHeader () { |
|
|
|
renderHeader () { |
|
|
|
let name = ' - ' |
|
|
|
let name = ' - ' |
|
|
|
|
|
|
|
let docLink = '' |
|
|
|
if (this.active) { |
|
|
|
if (this.active) { |
|
|
|
const { profile } = this.store.getOne(this.active) |
|
|
|
const { profile } = this.store.getOne(this.active) |
|
|
|
name = profile.displayName ? profile.displayName : profile.name |
|
|
|
name = profile.displayName ? profile.displayName : profile.name |
|
|
|
|
|
|
|
const docsRoot = 'https://remix.readthedocs.io/en/latest/' |
|
|
|
|
|
|
|
docLink = profile.documentation ? yo`<a href="${docsRoot}${profile.documentation}" title="link to documentation" target="_blank"><sup><i aria-hidden="true" class="fas fa-book"></i></sup></a>` : '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return yo` |
|
|
|
return yo` |
|
|
|
<header class="${css.swapitHeader}"> |
|
|
|
<header class="${css.swapitHeader}"> |
|
|
|
<h6 class="${css.swapitTitle}">${name}</h6> |
|
|
|
<h6 class="${css.swapitTitle}">${name}${docLink}</h6> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</header>` |
|
|
|
</header>` |
|
|
|
} |
|
|
|
} |
|
|
|