X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;h=575d4bcbdf439c0287f1bc565e15fb4d10834ab0;hb=3ca7fccb306d0b23626befc3791ffa360b3db1e7;hp=8797564e54e93b1ef816de4c4e4b6e01269e3b7c;hpb=f92c90e92ded661ddd957580e7fbde8aaa24224d;p=websub-hub diff --git a/src/template/root-html.js b/src/template/root-html.js index 8797564..575d4bc 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -1,7 +1,29 @@ 'use strict'; const th = require('./template-helper'); +const { sessionNavLinks } = require('@squeep/authentication-module'); +/** + * + * @param {string} pageTitle page title + * @param {string} logoUrl logo url + * @returns {string} element + */ +function hAppSection(pageTitle, logoUrl) { + return ` `; +} + +/** + * @returns {string} element + */ function aboutSection() { return `

What

@@ -17,6 +39,12 @@ function aboutSection() {
`; } +/** + * + * @param {boolean} isPublicHub is public hub + * @param {string} hubURL hub url + * @returns {string} html + */ function usageSection(isPublicHub, hubURL) { const usageContent = isPublicHub ? `

Public Hub

@@ -82,7 +110,7 @@ function usageSection(isPublicHub, hubURL) {

Publishing Updates

- To notify the Hub that a topic's content has been updated and should be distributed to subscribers, send a POST request with Form Data (application/x-www-form-urlencoded): + To notify the Hub either of a new topic to syndicate, or that a topic's content has been updated and should be distributed to subscribers, send a POST request with Form Data (application/x-www-form-urlencoded):