style outputs

This commit is contained in:
Baptiste Lemoine 2020-10-18 17:57:32 +02:00
parent 497e80b17c
commit 804d714eea
5 changed files with 46 additions and 32 deletions

View File

@ -6,15 +6,22 @@ html(lang="en")
link(rel='stylesheet', href='stylesheets/main.css', type='text/css') link(rel='stylesheet', href='stylesheets/main.css', type='text/css')
link(rel='stylesheet', href='stylesheets/tailwind.css', type='text/css') link(rel='stylesheet', href='stylesheets/tailwind.css', type='text/css')
body body
h1=pageTitle h1.text-xl=pageTitle
i.fa.fa-world i.fa.fa-world
h2 Statistics
section.bg-white.rounded-lg.shadow-xl.text-gray-900.grid-cols-2
include partials/contacts.pug div.p-6
include partials/hashtags.pug include partials/stats.pug
include partials/config.pug div.p-6
include partials/toots.pug include partials/contacts.pug
div.p-6
include partials/hashtags.pug
div.p-6
include partials/config.pug
div.p-6
include partials/likes.pug
div.p-6
include partials/toots.pug

View File

@ -1,10 +1,16 @@
h2 Configuration of this page div.config.p-6.card.bg-blue-100
div.config h1.text-xl.text-gray-500
h1 Configuration i.fa.fa-gears
span Configuration
p Showing #{outbox.length} of Messages #{outboxTotalLength} in your outbox.First #{max_toots} toots, filtered by a minimal length of #{min_length} characters of content. p Showing #{outbox.length} of Messages #{outboxTotalLength} in your outbox.First #{max_toots} toots, filtered by a minimal length of #{min_length} characters of content.
p filter bigger toots: #{filterBiggerTottsBeforeSlicing} i.fa.fa-slice
p write statistics in output folder #{writeStatsJson} p filter bigger toots before slicing: #{filterBiggerTottsBeforeSlicing? "yes":"no"}
p showing only toots with medias attached to them #{filterOnlyHavingMedias} p write statistics in output folder : #{writeStatsJson? "yes":"no"}
p show most recent toot first #{showMostRecentTootsOnTop} if(filterOnlyHavingMedias)
i.fa.fa-img
p.text-orange-500 showing only toots with medias attached to them
p show most recent toot first: #{showMostRecentTootsOnTop? "yes":"no"}
if(!displayMedias) if(!displayMedias)
p.no-media Medias are not displayed p.no-media
i.fa.fa-img
span.text-orange-500 Medias are not displayed

View File

@ -1,20 +1,20 @@
fieldset.stats.stats-recievers fieldset.stats.stats-recievers
h3 You sent messages to these #{outboxStatistics.recievers.length} people h3 You sent messages to these #{outboxStatistics.recievers.length} people
table table.table-auto.table-
thead thead
tr tr.bg-gray-100
th= "search" th.border.p-4= "search"
th= "cover" th.border.p-4= "cover"
th= "avatar" th.border.p-4= "avatar"
th= "name" th.border.p-4= "name"
th= "times" th.border.p-4= "times"
th= "toots lengh sum" th.border.p-4= "toots lengh sum"
tbody tbody
each someone in outboxStatistics.recievers each someone in outboxStatistics.recievers
tr tr.border
td.search td.search.p-4.bg-blue-100
a(href= 'https://duckduckgo.com/?q='+someone.user.username) a.button.is-block(href= 'https://duckduckgo.com/?q='+someone.user.username)
='search' i.fa.fa-search
td.cover td.cover
if(someone.infos && someone.infos.image) if(someone.infos && someone.infos.image)
a(href=someone.infos.image.url) a(href=someone.infos.image.url)
@ -24,6 +24,6 @@ fieldset.stats.stats-recievers
a(href=someone.infos.icon.url) a(href=someone.infos.icon.url)
img(src=someone.infos.icon.url) img(src=someone.infos.icon.url)
td.name td.name
a(href=someone.name)=someone.user.username a.font-medium(href=someone.name)=someone.user.username
td.counter=someone.counter td.counter=someone.counter
td.counter=someone.counterContentLength td.counter=someone.counterContentLength

3
views/partials/stats.pug Normal file
View File

@ -0,0 +1,3 @@
div
h2.text-l.text-gray-900.leading-tight.font-medium Statistics
p TODO

View File

@ -11,16 +11,14 @@ div.container
div.status.status-public div.status.status-public
p.toot_counter= toot_counter-=1 p.toot_counter= toot_counter-=1
a(href=oredredItem['object'].url)="see" a(href=oredredItem['object'].url)
i.fa.fa-paperplane-o i.fa.fa-paperplane-o
img.header(src='/avatar.gif') img.header(src='/avatar.gif')
div.date-published=oredredItem['object'].published div.date-published=oredredItem['object'].published
blockquote.published(unescaped!=oredredItem['object'].content)
br
blockquote.published(!=oredredItem['object'].content) blockquote.published(!=oredredItem['object'].content)
if oredredItem['object'].attachment && oredredItem['object'].attachment.length if oredredItem['object'].attachment && oredredItem['object'].attachment.length
if(!displayMedias) if(!displayMedias)
sub.no-media Medias are not displayed sub.font-medium.no-media Medias are not displayed
if(displayMedias) if(displayMedias)
each media in oredredItem['object'].attachment each media in oredredItem['object'].attachment
include medias.pug include medias.pug