Commit b9a34c87 authored by ty kayn's avatar ty kayn

refacto files

parent 1bb45099
......@@ -3,3 +3,7 @@ source_data/*.json
node_modules
output/*.html
output/*.json
output/*.jpg
output/*.j*
output/*.mp4
output/*.gif
......@@ -161,6 +161,11 @@ class Conversion {
});
}
userAvatars= {};
fetchUserAvatar(user){
}
}
exports.conversion = new Conversion();
......@@ -5,6 +5,7 @@
"dependencies": {
"bulma": "^0.9.0",
"express": "^4.17.1",
"flaticon": "^0.1.0",
"nodemon": "^2.0.4",
"pug": "^3.0.0"
}
......
......@@ -2,75 +2,17 @@ doctype html
html(lang="en")
head
title= pageTitle
link(rel='stylesheet', href='//mastodon.cipherbliss.com/packs/css/common-f88705a5.css', type='text/css')
link(rel='stylesheet', href='//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', type='text/css')
link(rel='stylesheet', href='stylesheets/main.css', type='text/css')
body
h1=pageTitle
i.fa.fa-world
h2 Statistics
fieldset.stats.stats-hashtags
h3 You used these HashTags
table
thead
tr
th= "search"
th= "hashtag"
th= "occurences"
tbody
each hashtag in outboxStatistics.hashtags
tr
td.search
a(href= 'https://duckduckgo.com/?q='+hashtag.name)
='search'
td.name
a(href=hashtag.href)=hashtag.name
td.counter=hashtag.counter
td.counter=hashtag.counterContentLength
include partials/contacts.pug
include partials/hashtags.pug
include partials/config.pug
include partials/toots.pug
fieldset.stats.stats-recievers
h3 You sent messages to these people
table
thead
tr
th= "search"
th= "name"
th= "times"
th= "toots lengh sum"
tbody
each someone in outboxStatistics.recievers
tr
td.search
a(href= 'https://duckduckgo.com/?q='+someone.user.username)
='search'
td.name
a(href=someone.name)=someone.user.username
td.counter=someone.counter
td.counter=someone.counterContentLength
h2 #{outbox.length} of Messages #{outboxTotalLength} in your outbox.First #{max_toots} toots, filtered by a minimal length of #{min_length} characters of content.
.columns-area__panels__main
div.column
div.item-list
each oredredItem in outbox
article
div.status.status-public
a(href=oredredItem['object'].url)="see"
div.date-published=oredredItem['object'].published
blockquote.published(escaped!=oredredItem['object'].content)
if oredredItem['object'].attachment && oredredItem['object'].attachment.length
each media in oredredItem['object'].attachment
div.media-gallery
div.counter.hidden #{oredredItem['object'].attachment.length}
if(media.mediaType.search('video') != -1)
figure.media-media-displayed.media-image
a(href=media.href)
span Media vidéo
video(src=media.href,controls=controls)
if(media.mediaType.search('audio') != -1)
a(href=media.href)
span Media audio
if(media.mediaType.search('image') != -1)
figure.media-media-displayed.media-image
a(href=media.href)
img(src=media.href,alt=media.href)
h2 #{outbox.length} of Messages #{outboxTotalLength} in your outbox.First #{max_toots} toots, filtered by a minimal length of #{min_length} characters of content.
fieldset.stats.stats-recievers
h3 You sent messages to these people
table
thead
tr
th= "search"
th= "name"
th= "times"
th= "toots lengh sum"
tbody
each someone in outboxStatistics.recievers
tr
td.search
a(href= 'https://duckduckgo.com/?q='+someone.user.username)
='search'
td.name
a(href=someone.name)=someone.user.username
td.counter=someone.counter
td.counter=someone.counterContentLength
fieldset.stats.stats-hashtags
h3 You used these HashTags
table
thead
tr
th= "search"
th= "hashtag"
th= "occurences"
tbody
each hashtag in outboxStatistics.hashtags
tr
td.search
a(href= 'https://duckduckgo.com/?q='+hashtag.name)
='search'
td.name
a(href=hashtag.href)=hashtag.name
td.counter=hashtag.counter
td.counter=hashtag.counterContentLength
div.media-gallery
div.counter.hidden #{oredredItem['object'].attachment.length}
if(media.mediaType.search('video') != -1)
figure.media-media-displayed.media-video
a(href=media.href)
span Media vidéo
video(src=media.href,controls=controls)
if(media.mediaType.search('audio') != -1)
figure.media-media-displayed.media-video
a(href=media.href)
span Media audio
audio(src=media.href,controls=controls)
if(media.mediaType.search('image') != -1)
figure.media-media-displayed.media-image
a(href=media.href)
img(src=media.href,alt=media.href)
.columns-area__panels__main
img.header(src='/header.jpg')
div.column
div.item-list
each oredredItem in outbox
article
div.status.status-public
a(href=oredredItem['object'].url)="see"
i.fa.fa-paperplane-o
img.header(src='/avatar.gif')
div.date-published=oredredItem['object'].published
blockquote.published(escaped!=oredredItem['object'].content)
if oredredItem['object'].attachment && oredredItem['object'].attachment.length
each media in oredredItem['object'].attachment
include medias.pug
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment