Add option for timeline button header full screen width

main
Bob Mottram 2020-10-24 18:44:41 +01:00
parent 54b88204b7
commit 67a3ef538f
4 changed files with 136 additions and 51 deletions

View File

@ -6431,6 +6431,8 @@ class PubServer(BaseHTTPRequestHandler):
GETtimings, GETtimings,
'show status done', 'show status done',
'show inbox page') 'show inbox page')
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = htmlInbox(defaultTimeline, msg = htmlInbox(defaultTimeline,
recentPostsCache, recentPostsCache,
maxRecentPosts, maxRecentPosts,
@ -6452,7 +6454,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
if GETstartTime: if GETstartTime:
self._benchmarkGETtimings(GETstartTime, GETtimings, self._benchmarkGETtimings(GETstartTime, GETtimings,
'show status done', 'show status done',
@ -6545,6 +6548,8 @@ class PubServer(BaseHTTPRequestHandler):
0, 0,
self.server.positiveVoting, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlInboxDMs(self.server.defaultTimeline, htmlInboxDMs(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -6567,7 +6572,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -6653,6 +6659,8 @@ class PubServer(BaseHTTPRequestHandler):
True, True,
0, self.server.positiveVoting, 0, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlInboxReplies(self.server.defaultTimeline, htmlInboxReplies(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -6675,7 +6683,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -6761,6 +6770,8 @@ class PubServer(BaseHTTPRequestHandler):
True, True,
0, self.server.positiveVoting, 0, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlInboxMedia(self.server.defaultTimeline, htmlInboxMedia(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -6783,7 +6794,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -6869,6 +6881,8 @@ class PubServer(BaseHTTPRequestHandler):
True, True,
0, self.server.positiveVoting, 0, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlInboxBlogs(self.server.defaultTimeline, htmlInboxBlogs(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -6891,7 +6905,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -6985,6 +7000,8 @@ class PubServer(BaseHTTPRequestHandler):
currNickname = currNickname.split('/')[0] currNickname = currNickname.split('/')[0]
moderator = isModerator(baseDir, currNickname) moderator = isModerator(baseDir, currNickname)
editor = isEditor(baseDir, currNickname) editor = isEditor(baseDir, currNickname)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlInboxNews(self.server.defaultTimeline, htmlInboxNews(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -7008,7 +7025,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.newswire, self.server.newswire,
moderator, editor, moderator, editor,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -7086,7 +7104,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
self.server.fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -7156,6 +7175,8 @@ class PubServer(BaseHTTPRequestHandler):
authorized, authorized,
0, self.server.positiveVoting, 0, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlBookmarks(self.server.defaultTimeline, htmlBookmarks(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -7178,7 +7199,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -7267,6 +7289,8 @@ class PubServer(BaseHTTPRequestHandler):
authorized, authorized,
0, self.server.positiveVoting, 0, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlEvents(self.server.defaultTimeline, htmlEvents(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -7289,7 +7313,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -7370,6 +7395,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.newswireVotesThreshold, self.server.newswireVotesThreshold,
self.server.positiveVoting, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlOutbox(self.server.defaultTimeline, htmlOutbox(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -7392,7 +7419,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -7464,6 +7492,8 @@ class PubServer(BaseHTTPRequestHandler):
True, True,
0, self.server.positiveVoting, 0, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
msg = \ msg = \
htmlModeration(self.server.defaultTimeline, htmlModeration(self.server.defaultTimeline,
self.server.recentPostsCache, self.server.recentPostsCache,
@ -7485,7 +7515,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.showPublishedDateOnly, self.server.showPublishedDateOnly,
self.server.newswire, self.server.newswire,
self.server.positiveVoting, self.server.positiveVoting,
self.server.showPublishAsIcon) self.server.showPublishAsIcon,
fullWidthTimelineButtonHeader)
msg = msg.encode('utf-8') msg = msg.encode('utf-8')
self._set_headers('text/html', len(msg), self._set_headers('text/html', len(msg),
cookie, callingDomain) cookie, callingDomain)
@ -12001,7 +12032,8 @@ def loadTokens(baseDir: str, tokensDict: {}, tokensLookup: {}) -> None:
tokensLookup[token] = nickname tokensLookup[token] = nickname
def runDaemon(showPublishAsIcon: bool, def runDaemon(fullWidthTimelineButtonHeader: bool,
showPublishAsIcon: bool,
maxFollowers: int, maxFollowers: int,
allowNewsFollowers: bool, allowNewsFollowers: bool,
maxNewsPosts: int, maxNewsPosts: int,
@ -12161,6 +12193,10 @@ def runDaemon(showPublishAsIcon: bool,
# newswire, or a 'Publish' button # newswire, or a 'Publish' button
httpd.showPublishAsIcon = showPublishAsIcon httpd.showPublishAsIcon = showPublishAsIcon
# Whether to show the timeline header containing inbox, outbox
# calendar, etc as the full width of the screen or not
httpd.fullWidthTimelineButtonHeader = fullWidthTimelineButtonHeader
if registration == 'open': if registration == 'open':
httpd.registration = True httpd.registration = True
else: else:

View File

@ -215,6 +215,13 @@ parser.add_argument("--showPublishAsIcon",
const=True, default=True, const=True, default=True,
help="Whether to show newswire publish " + help="Whether to show newswire publish " +
"as an icon or a button") "as an icon or a button")
parser.add_argument("--fullWidthTimelineButtonHeader",
dest='fullWidthTimelineButtonHeader',
type=str2bool, nargs='?',
const=True, default=False,
help="Whether to show the timeline " +
"button header containing inbox and outbox " +
"as the full width of the screen")
parser.add_argument("--allowNewsFollowers", parser.add_argument("--allowNewsFollowers",
dest='allowNewsFollowers', dest='allowNewsFollowers',
type=str2bool, nargs='?', type=str2bool, nargs='?',
@ -1996,6 +2003,11 @@ showPublishAsIcon = \
if showPublishAsIcon is not None: if showPublishAsIcon is not None:
args.showPublishAsIcon = bool(showPublishAsIcon) args.showPublishAsIcon = bool(showPublishAsIcon)
fullWidthTimelineButtonHeader = \
getConfigParam(baseDir, 'fullWidthTimelineButtonHeader')
if fullWidthTimelineButtonHeader is not None:
args.fullWidthTimelineButtonHeader = bool(fullWidthTimelineButtonHeader)
YTDomain = getConfigParam(baseDir, 'youtubedomain') YTDomain = getConfigParam(baseDir, 'youtubedomain')
if YTDomain: if YTDomain:
if '://' in YTDomain: if '://' in YTDomain:
@ -2009,7 +2021,8 @@ if setTheme(baseDir, themeName, domain):
print('Theme set to ' + themeName) print('Theme set to ' + themeName)
if __name__ == "__main__": if __name__ == "__main__":
runDaemon(args.showPublishAsIcon, runDaemon(args.fullWidthTimelineButtonHeader,
args.showPublishAsIcon,
args.maxFollowers, args.maxFollowers,
args.allowNewsFollowers, args.allowNewsFollowers,
args.maxNewsPosts, args.maxNewsPosts,

View File

@ -290,7 +290,7 @@ def createServerAlice(path: str, domain: str, port: int,
onionDomain = None onionDomain = None
i2pDomain = None i2pDomain = None
print('Server running: Alice') print('Server running: Alice')
runDaemon(True, 10, False, 0, 100, 1024, 5, False, runDaemon(False, True, 10, False, 0, 100, 1024, 5, False,
0, False, 1, False, False, False, 0, False, 1, False, False, False,
5, True, True, 'en', __version__, 5, True, True, 'en', __version__,
"instanceId", False, path, domain, "instanceId", False, path, domain,
@ -354,7 +354,7 @@ def createServerBob(path: str, domain: str, port: int,
onionDomain = None onionDomain = None
i2pDomain = None i2pDomain = None
print('Server running: Bob') print('Server running: Bob')
runDaemon(True, 10, False, 0, 100, 1024, 5, False, 0, runDaemon(False, True, 10, False, 0, 100, 1024, 5, False, 0,
False, 1, False, False, False, False, 1, False, False, False,
5, True, True, 'en', __version__, 5, True, True, 'en', __version__,
"instanceId", False, path, domain, "instanceId", False, path, domain,
@ -392,7 +392,7 @@ def createServerEve(path: str, domain: str, port: int, federationList: [],
onionDomain = None onionDomain = None
i2pDomain = None i2pDomain = None
print('Server running: Eve') print('Server running: Eve')
runDaemon(True, 10, False, 0, 100, 1024, 5, False, 0, runDaemon(False, True, 10, False, 0, 100, 1024, 5, False, 0,
False, 1, False, False, False, False, 1, False, False, False,
5, True, True, 'en', __version__, 5, True, True, 'en', __version__,
"instanceId", False, path, domain, "instanceId", False, path, domain,

View File

@ -6144,7 +6144,8 @@ def htmlTimeline(defaultTimeline: str,
newswire: {}, moderator: bool, newswire: {}, moderator: bool,
editor: bool, editor: bool,
positiveVoting: bool, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the timeline as html """Show the timeline as html
""" """
timelineStartTime = time.time() timelineStartTime = time.time()
@ -6418,6 +6419,20 @@ def htmlTimeline(defaultTimeline: str,
tlStr += '<div class="timeline-banner">' tlStr += '<div class="timeline-banner">'
tlStr += '</div>\n</a>\n' tlStr += '</div>\n</a>\n'
if fullWidthTimelineButtonHeader:
tlStr += \
getTimelineButtonHeader(defaultTimeline, boxName, pageNumber,
translate, usersPath, mediaButton,
blogsButton, newsButton, inboxButton,
dmButton, newDM, repliesButton,
newReply, minimal, sentButton,
sharesButtonStr, bookmarksButtonStr,
eventsButtonStr, moderationButtonStr,
newPostButtonStr, baseDir, nickname,
domain, iconsDir, timelineStartTime,
newCalendarEvent, calendarPath,
calendarImage, followApprovals)
# start the timeline # start the timeline
tlStr += '<table class="timeline">\n' tlStr += '<table class="timeline">\n'
tlStr += ' <colgroup>\n' tlStr += ' <colgroup>\n'
@ -6443,18 +6458,19 @@ def htmlTimeline(defaultTimeline: str,
# center column containing posts # center column containing posts
tlStr += ' <td valign="top" class="col-center">\n' tlStr += ' <td valign="top" class="col-center">\n'
tlStr += \ if not fullWidthTimelineButtonHeader:
getTimelineButtonHeader(defaultTimeline, boxName, pageNumber, tlStr += \
translate, usersPath, mediaButton, getTimelineButtonHeader(defaultTimeline, boxName, pageNumber,
blogsButton, newsButton, inboxButton, translate, usersPath, mediaButton,
dmButton, newDM, repliesButton, blogsButton, newsButton, inboxButton,
newReply, minimal, sentButton, dmButton, newDM, repliesButton,
sharesButtonStr, bookmarksButtonStr, newReply, minimal, sentButton,
eventsButtonStr, moderationButtonStr, sharesButtonStr, bookmarksButtonStr,
newPostButtonStr, baseDir, nickname, eventsButtonStr, moderationButtonStr,
domain, iconsDir, timelineStartTime, newPostButtonStr, baseDir, nickname,
newCalendarEvent, calendarPath, domain, iconsDir, timelineStartTime,
calendarImage, followApprovals) newCalendarEvent, calendarPath,
calendarImage, followApprovals)
# second row of buttons for moderator actions # second row of buttons for moderator actions
if moderator and boxName == 'moderation': if moderator and boxName == 'moderation':
@ -6666,7 +6682,8 @@ def htmlShares(defaultTimeline: str,
YTReplacementDomain: str, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the shares timeline as html """Show the shares timeline as html
""" """
manuallyApproveFollowers = \ manuallyApproveFollowers = \
@ -6681,7 +6698,8 @@ def htmlShares(defaultTimeline: str,
False, YTReplacementDomain, False, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlInbox(defaultTimeline: str, def htmlInbox(defaultTimeline: str,
@ -6694,7 +6712,8 @@ def htmlInbox(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the inbox as html """Show the inbox as html
""" """
manuallyApproveFollowers = \ manuallyApproveFollowers = \
@ -6709,7 +6728,8 @@ def htmlInbox(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlBookmarks(defaultTimeline: str, def htmlBookmarks(defaultTimeline: str,
@ -6722,7 +6742,8 @@ def htmlBookmarks(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the bookmarks as html """Show the bookmarks as html
""" """
manuallyApproveFollowers = \ manuallyApproveFollowers = \
@ -6737,7 +6758,8 @@ def htmlBookmarks(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlEvents(defaultTimeline: str, def htmlEvents(defaultTimeline: str,
@ -6750,7 +6772,8 @@ def htmlEvents(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the events as html """Show the events as html
""" """
manuallyApproveFollowers = \ manuallyApproveFollowers = \
@ -6765,7 +6788,8 @@ def htmlEvents(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlInboxDMs(defaultTimeline: str, def htmlInboxDMs(defaultTimeline: str,
@ -6778,7 +6802,8 @@ def htmlInboxDMs(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the DM timeline as html """Show the DM timeline as html
""" """
return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts, return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts,
@ -6788,7 +6813,8 @@ def htmlInboxDMs(defaultTimeline: str,
httpPrefix, projectVersion, False, minimal, httpPrefix, projectVersion, False, minimal,
YTReplacementDomain, showPublishedDateOnly, YTReplacementDomain, showPublishedDateOnly,
newswire, False, False, positiveVoting, newswire, False, False, positiveVoting,
showPublishAsIcon) showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlInboxReplies(defaultTimeline: str, def htmlInboxReplies(defaultTimeline: str,
@ -6801,7 +6827,8 @@ def htmlInboxReplies(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the replies timeline as html """Show the replies timeline as html
""" """
return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts, return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts,
@ -6812,7 +6839,8 @@ def htmlInboxReplies(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlInboxMedia(defaultTimeline: str, def htmlInboxMedia(defaultTimeline: str,
@ -6825,7 +6853,8 @@ def htmlInboxMedia(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the media timeline as html """Show the media timeline as html
""" """
return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts, return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts,
@ -6836,7 +6865,8 @@ def htmlInboxMedia(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlInboxBlogs(defaultTimeline: str, def htmlInboxBlogs(defaultTimeline: str,
@ -6849,7 +6879,8 @@ def htmlInboxBlogs(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the blogs timeline as html """Show the blogs timeline as html
""" """
return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts, return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts,
@ -6860,7 +6891,8 @@ def htmlInboxBlogs(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, False, False, newswire, False, False,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlInboxNews(defaultTimeline: str, def htmlInboxNews(defaultTimeline: str,
@ -6873,7 +6905,8 @@ def htmlInboxNews(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, moderator: bool, editor: bool, newswire: {}, moderator: bool, editor: bool,
positiveVoting: bool, showPublishAsIcon: bool) -> str: positiveVoting: bool, showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the news timeline as html """Show the news timeline as html
""" """
return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts, return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts,
@ -6884,7 +6917,8 @@ def htmlInboxNews(defaultTimeline: str,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
newswire, moderator, editor, newswire, moderator, editor,
positiveVoting, showPublishAsIcon) positiveVoting, showPublishAsIcon,
fullWidthTimelineButtonHeader)
def htmlModeration(defaultTimeline: str, def htmlModeration(defaultTimeline: str,
@ -6897,7 +6931,8 @@ def htmlModeration(defaultTimeline: str,
YTReplacementDomain: str, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the moderation feed as html """Show the moderation feed as html
""" """
return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts, return htmlTimeline(defaultTimeline, recentPostsCache, maxRecentPosts,
@ -6907,7 +6942,7 @@ def htmlModeration(defaultTimeline: str,
allowDeletion, httpPrefix, projectVersion, True, False, allowDeletion, httpPrefix, projectVersion, True, False,
YTReplacementDomain, showPublishedDateOnly, YTReplacementDomain, showPublishedDateOnly,
newswire, False, False, positiveVoting, newswire, False, False, positiveVoting,
showPublishAsIcon) showPublishAsIcon, fullWidthTimelineButtonHeader)
def htmlOutbox(defaultTimeline: str, def htmlOutbox(defaultTimeline: str,
@ -6920,7 +6955,8 @@ def htmlOutbox(defaultTimeline: str,
minimal: bool, YTReplacementDomain: str, minimal: bool, YTReplacementDomain: str,
showPublishedDateOnly: bool, showPublishedDateOnly: bool,
newswire: {}, positiveVoting: bool, newswire: {}, positiveVoting: bool,
showPublishAsIcon: bool) -> str: showPublishAsIcon: bool,
fullWidthTimelineButtonHeader: bool) -> str:
"""Show the Outbox as html """Show the Outbox as html
""" """
manuallyApproveFollowers = \ manuallyApproveFollowers = \
@ -6933,7 +6969,7 @@ def htmlOutbox(defaultTimeline: str,
manuallyApproveFollowers, minimal, manuallyApproveFollowers, minimal,
YTReplacementDomain, showPublishedDateOnly, YTReplacementDomain, showPublishedDateOnly,
newswire, False, False, positiveVoting, newswire, False, False, positiveVoting,
showPublishAsIcon) showPublishAsIcon, fullWidthTimelineButtonHeader)
def htmlIndividualPost(recentPostsCache: {}, maxRecentPosts: int, def htmlIndividualPost(recentPostsCache: {}, maxRecentPosts: int,