X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;h=36c7b44a5cacdcd4f1f7c2fccff7d8bfd8e3d847;hb=HEAD;hp=8797564e54e93b1ef816de4c4e4b6e01269e3b7c;hpb=f92c90e92ded661ddd957580e7fbde8aaa24224d;p=websub-hub diff --git a/src/template/root-html.js b/src/template/root-html.js index 8797564..aa5ceba 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

@@ -9,7 +31,7 @@ function aboutSection() { This is a WebSub Hub service.

- It facilitates the timely distribution of new content from publishers to subscribers. + It facilitates the timely distribution of new content from publishers to subscribers.

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

Public Hub

@@ -78,11 +106,11 @@ 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):