Skip to content

Commit

Permalink
updated package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lennessyy committed Jan 7, 2022
1 parent e273bdd commit a69c2d7
Show file tree
Hide file tree
Showing 69 changed files with 11,155 additions and 4,459 deletions.
3 changes: 3 additions & 0 deletions build/ui-bundle/css/site.css

Large diffs are not rendered by default.

Binary file added build/ui-bundle/font/roboto-latin-400.woff
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-400.woff2
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-400italic.woff
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-400italic.woff2
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-500.woff
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-500.woff2
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-500italic.woff
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-latin-500italic.woff2
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-mono-latin-400.woff
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-mono-latin-400.woff2
Binary file not shown.
Binary file added build/ui-bundle/font/roboto-mono-latin-500.woff
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions build/ui-bundle/helpers/and.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict'

module.exports = (...args) => {
const numArgs = args.length
if (numArgs === 3) return args[0] && args[1]
if (numArgs < 3) throw new Error('{{and}} helper expects at least 2 arguments')
args.pop()
return args.every((it) => it)
}
5 changes: 5 additions & 0 deletions build/ui-bundle/helpers/detag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

const TAG_ALL_RX = /<[^>]+>/g

module.exports = (html) => html && html.replace(TAG_ALL_RX, '')
3 changes: 3 additions & 0 deletions build/ui-bundle/helpers/eq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = (a, b) => a === b
3 changes: 3 additions & 0 deletions build/ui-bundle/helpers/increment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = (value) => (value || 0) + 1
3 changes: 3 additions & 0 deletions build/ui-bundle/helpers/ne.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = (a, b) => a !== b
3 changes: 3 additions & 0 deletions build/ui-bundle/helpers/not.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = (val) => !val
9 changes: 9 additions & 0 deletions build/ui-bundle/helpers/or.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict'

module.exports = (...args) => {
const numArgs = args.length
if (numArgs === 3) return args[0] || args[1]
if (numArgs < 3) throw new Error('{{or}} helper expects at least 2 arguments')
args.pop()
return args.some((it) => it)
}
24 changes: 24 additions & 0 deletions build/ui-bundle/helpers/rearrange.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict'

module.exports = (collection, property, orderSpec) => {
if (orderSpec == null || orderSpec === '*') return Object.values(collection)
const sourceCollection = Object.values(collection).reduce((accum, it) => accum.set(it[property], it), new Map())
const order = orderSpec
.split(',')
.map((it) => it.trim())
.filter((it) => {
if (it.charAt() !== '!') return true
sourceCollection.delete(it.substr(1))
})
const restIdx = order.indexOf('*')
if (~restIdx) order.splice(restIdx, 1)
const targetCollection = order.reduce((accum, key) => {
if (sourceCollection.has(key)) {
accum.push(sourceCollection.get(key))
sourceCollection.delete(key)
}
return accum
}, [])
if (~restIdx) targetCollection.splice(restIdx, 0, ...sourceCollection.values())
return targetCollection
}
24 changes: 24 additions & 0 deletions build/ui-bundle/helpers/relativize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict'

const { posix: path } = require('path')

module.exports = (to, from, ctx) => {
if (!to) return '#'
// NOTE only legacy invocation provides both to and from
if (!ctx) from = (ctx = from).data.root.page.url
if (to.charAt() !== '/') return to
if (!from) return (ctx.data.root.site.path || '') + to
let hash = ''
const hashIdx = to.indexOf('#')
if (~hashIdx) {
hash = to.substr(hashIdx)
to = to.substr(0, hashIdx)
}
return to === from
? hash || (isDir(to) ? './' : path.basename(to))
: (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash)
}

function isDir (str) {
return str.charAt(str.length - 1) === '/'
}
3 changes: 3 additions & 0 deletions build/ui-bundle/helpers/year.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = () => new Date().getFullYear().toString()
1 change: 1 addition & 0 deletions build/ui-bundle/img/back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/ui-bundle/img/caret.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/ui-bundle/img/chevron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/ui-bundle/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/ui-bundle/img/home-o.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/ui-bundle/img/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/ui-bundle/img/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/ui-bundle/img/octicons-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/ui-bundle/img/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions build/ui-bundle/js/site.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/ui-bundle/js/vendor/highlight.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions build/ui-bundle/layouts/404.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{> head defaultPageTitle='Page Not Found'}}
</head>
<body class="status-404">
{{> header}}
{{> body}}
{{> footer}}
</body>
</html>
11 changes: 11 additions & 0 deletions build/ui-bundle/layouts/default.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{> head defaultPageTitle='Untitled'}}
</head>
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
{{> header}}
{{> body}}
{{> footer}}
</body>
</html>
28 changes: 28 additions & 0 deletions build/ui-bundle/partials/article-404.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<article class="doc">
<h1 class="page">{{{or page.title 'Page Not Found'}}}</h1>
<div class="paragraph">
<p>The page you&#8217;re looking for does not exist. It may have been moved. You can{{#with site.homeUrl}} return to the <a href="{{{this}}}">start page</a>, or{{/with}} follow one of the links in the navigation to the left.</p>
</div>
<div class="paragraph">
<p>If you arrived on this page by clicking on a link, please notify the owner of the site that the link is broken.
If you typed the URL of this page manually, please double check that you entered the address correctly.</p>
</div>

<div class="admonitionblock warning">
<table>
<tbody><tr>
<td class="icon">
<i class="fa icon-warning" title="Warning"></i>
</td>
<td class="content">
<div class="paragraph">
<p>On Nov 29th, 2021, we migrated our documentation from our previous publishing platform to a self-managed solution.
It may take a few weeks for search engines to reindex our documentation site.
We apologize for any inconvenience if you followed a broken link from a search engine in the meantime.
Please type in the search box located at the top of the page to find what you are looking for. </p>
</div>
</td>
</tr>
</tbody></table>
</div>
</article>
7 changes: 7 additions & 0 deletions build/ui-bundle/partials/article.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<article class="doc">
{{#with page.title}}
<h1 class="page">{{{this}}}</h1>
{{/with}}
{{{page.contents}}}
{{> pagination}}
</article>
4 changes: 4 additions & 0 deletions build/ui-bundle/partials/body.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="body">
{{> nav}}
{{> main}}
</div>
20 changes: 20 additions & 0 deletions build/ui-bundle/partials/breadcrumbs.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<nav class="breadcrumbs" aria-label="breadcrumbs">
{{#if page.breadcrumbs}}
<ul>
{{#with page.componentVersion}}
{{#if (and ./title (ne ./title @root.page.breadcrumbs.0.content))}}
<li><a href="{{{relativize ./url}}}">{{{./title}}}</a></li>
{{/if}}
{{/with}}
{{#each page.breadcrumbs}}
<li>
{{~#if (and ./url (eq ./urlType 'internal'))~}}
<a href="{{{relativize ./url}}}">{{{./content}}}</a>
{{~else~}}
{{{./content}}}
{{~/if~}}
</li>
{{/each}}
</ul>
{{/if}}
</nav>
Loading

0 comments on commit a69c2d7

Please sign in to comment.