1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 12:32:42 +00:00

Changed tweet entity layout to match the way it presents on Twitter

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-10-28 11:19:27 -07:00
parent 22aedc33ee
commit bc4419d22a
3 changed files with 41 additions and 4 deletions

21
thread.js Normal file
View File

@@ -0,0 +1,21 @@
/* eslint no-console:0, no-process-exit:0 */
const argv = require('minimist')(process.argv.slice(2));
const thread = require('./build/twitter-thread');
const [ tweet ] = argv._;
thread(tweet).then(
([ embeds, dependencies ]) => {
console.log(dependencies.map((id) => `\n - '${id}'`).join(''));
console.log(`
{!{
{{import '~/tweet' ids=[${embeds.map((id) => `\n '${id}'`).join('')}
] tweets=meta.tweets className="oneblock card span2 left" }}
}!}
`);
process.exit(0);
}, (err) => {
console.error(err);
process.exit(1);
},
);