Commit 0b529a5b authored by tykayn's avatar tykayn

minimal config displaying most toots

parent b6281082
......@@ -7,19 +7,19 @@ const express = require('express');
const pug = require('pug');
const app = express();
var fs = require('fs');
var listenPort = 8088;
var listenPort = 8080;
var jsonParsedLikes, jsonParsedOutbox;
/**
* export configuration.
* You can filter the export in the following vars
*/
const min_length = 1; // minmum character length of toots to display
const min_length = 0; // minmum character length of toots to display
const max_toots = Infinity; // maximum length
const filterBiggerTootsBeforeSlicing = false; // filter only long toots
const filterOnlyHavingMedias = true; // filter only toots having medias
const filterOnlyHavingMedias = false; // filter only toots having medias
const displayMedias = false; // filter only toots having medias
const writeStatsJson = false; // filter only toots having medias
const showMostRecentTootsOnTop = true; // filter only toots having medias
const writeStatsJson = false; // write json export file about statistics
const showMostRecentTootsOnTop = true; // sorting order
const TemplateVars = {
pageTitle : 'Mastodon export converter to HTML',
likes : jsonParsedLikes,
......
{
"scripts": {
"start": "nodemon main.js"
"start": "node main.js"
},
"dependencies": {
"axios": "^0.19.2",
......
......@@ -9,6 +9,7 @@ html(lang="en")
i.fa.fa-world
h2 Statistics
include partials/contacts.pug
include partials/hashtags.pug
include partials/config.pug
......
h2 Configuration of this page
div.config
h1 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 filter bigger toots: #{filterBiggerTottsBeforeSlicing}
p write statistics in output folder #{writeStatsJson}
......
......@@ -2,7 +2,7 @@
img.header(src='/header.jpg')
div.container
div.column
div.item-list
each oredredItem in outbox
......
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