Wykres commitów

276 Commity (main)

Autor SHA1 Wiadomość Data
Matteo Cargnelutti 3fbfcc8411 Update package.json 2022-11-29 16:36:13 -05:00
Matteo Cargnelutti 82290114da
Merge pull request #16 from harvard-lil/ip-rate-limit
v0.0.3
2022-11-29 16:19:36 -05:00
Matteo Cargnelutti 5a02797a10 Typo 2022-11-29 16:08:20 -05:00
Matteo Cargnelutti fd6cd6ab0f Docs 2022-11-29 16:02:23 -05:00
Matteo Cargnelutti 65315dcaa6 Version bump, nunjucks envs 2022-11-29 16:00:38 -05:00
Matteo Cargnelutti 8e30fe2350 Hybrid ip + access key system 2022-11-29 15:39:08 -05:00
Matteo Cargnelutti e0c6134119 First implementation of IP rate limiting 2022-11-29 14:31:06 -05:00
Matteo Cargnelutti 63e677a3ec
Merge pull request #15 from harvard-lil/readme-fix
Update README.md
2022-11-28 13:38:43 -05:00
Matteo Cargnelutti defd6b128f
Update README.md
Trailing coma on example for `access-keys.json`.
2022-11-28 13:10:19 -05:00
Matteo Cargnelutti 74d6c1a74d
Merge pull request #13 from harvard-lil/v0.0.2
v0.0.2
2022-11-28 11:07:33 -05:00
Matteo Cargnelutti 8edd844cf9
Update app/templates/index.njk
Co-authored-by: Ben Steinberg <bsteinberg@law.harvard.edu>
2022-11-27 20:05:21 -05:00
Matteo Cargnelutti 6b6420fc98 Update const.js
Forgot a console.log (of course)
2022-11-27 20:04:10 -05:00
Matteo Cargnelutti db5efeb862 Update tests.yml
CI fix?
2022-11-27 19:31:13 -05:00
Matteo Cargnelutti a565fd4d05 Doc update 2022-11-27 19:14:11 -05:00
Matteo Cargnelutti de8d6f1038 v0.0.2
New features:
- `t.co` urls resolution map as attachment (CSV file)
- PDF filenames based on twitter url and creation date

Dev "quality of life" updates:
- Basic integration tests and GitHub CI
- HTML 404s
- PDF "producer" field now contains the app's version number
- Better checkbox field name
- Documentation edits
2022-11-27 19:04:54 -05:00
Matteo Cargnelutti c6443035cc
Merge pull request #12 from bensteinberg/update-20221123
Update fastify
2022-11-23 10:33:36 -05:00
bensteinberg ca24970dac Update fastify 2022-11-23 09:59:38 -05:00
Matteo Cargnelutti 47e24f51ef
Merge pull request #9 from harvard-lil/post-migration-edits
Post-migration edits
2022-11-22 14:37:43 -05:00
Matteo Cargnelutti aaeb7f523d Post-migration edits 2022-11-22 14:35:18 -05:00
Matteo Cargnelutti 39e704b557
Merge pull request #8 from harvard-lil/nov22-migration
Migration to `thread-keeper`
2022-11-22 14:21:01 -05:00
Matteo Cargnelutti a81fb51fbd Merge branch 'nov22-migration' of https://github.com/harvard-lil/archive.social into nov22-migration 2022-11-22 14:18:11 -05:00
Matteo Cargnelutti fdd3503278 🥑 2022-11-22 14:17:59 -05:00
Matteo Cargnelutti 8e6a3b7d2b
Update app/templates/index.njk
Co-authored-by: Ben Steinberg <bsteinberg@law.harvard.edu>
2022-11-22 14:15:49 -05:00
Matteo Cargnelutti b0a98452d9 Migration to `thread-keeper` 2022-11-22 14:08:28 -05:00
Matteo Cargnelutti 5184207301
Merge pull request #7 from edsu/create-a-key
Create an access key
2022-11-22 11:58:25 -05:00
Ed Summers 9a30a902a3
added info about how to create a key 2022-11-22 08:40:21 -05:00
Ben Steinberg 3310efc4a7
Merge pull request #6 from harvard-lil/minor-html-edits
Linting, typography adjustments, meta tags edit for clarity.
2022-11-22 06:42:29 -05:00
Matteo Cargnelutti f177022a22 Linting, typography adjustments, meta tags edit for clarity. 2022-11-21 23:53:47 -05:00
Matteo Cargnelutti 56b674a791 Typo 2022-11-21 18:35:37 -05:00
Matteo Cargnelutti e2793b307e "Save Your Threads!" 2022-11-21 17:25:50 -05:00
Matteo Cargnelutti 94c6b2beb0
Merge pull request #5 from harvard-lil/access-key-request-link
Access key request link in main form
2022-11-21 16:12:02 -05:00
Matteo Cargnelutti 9a441315b2 Access key request link in main form 2022-11-21 16:09:10 -05:00
Matteo Cargnelutti e4b6d50132
Merge pull request #4 from harvard-lil/check-pdf-fix
Check PDF fix + copy edits
2022-11-21 14:40:44 -05:00
Matteo Cargnelutti b02efb5435 Check PDF fix + copy edits 2022-11-21 14:38:24 -05:00
Matteo Cargnelutti f8c0cd67c2
Merge pull request #3 from harvard-lil/docs
Cleanup and docs
2022-11-21 13:50:28 -05:00
Matteo Cargnelutti 7f701ca6ab Update SuccessLog.md 2022-11-21 13:31:31 -05:00
Matteo Cargnelutti 36beda7b40 Update SuccessLog.js 2022-11-21 13:31:21 -05:00
Matteo Cargnelutti 6d8090dd4b Clean up 2022-11-21 13:27:47 -05:00
Matteo Cargnelutti f74605ab82 Update README.md 2022-11-21 13:21:25 -05:00
Matteo Cargnelutti fa7651271f Clean up and documentation 2022-11-21 13:20:25 -05:00
Matteo Cargnelutti 3a4e51cca9
Merge pull request #2 from harvard-lil/verify-hashes
"Check PDF" feature
2022-11-21 09:29:30 -05:00
Matteo Cargnelutti 5c6ae14245 Typo 2022-11-21 09:28:07 -05:00
Matteo Cargnelutti 675fd11dcf
Update app/utils/SuccessLog.js
Co-authored-by: Ben Steinberg <bsteinberg@law.harvard.edu>
2022-11-21 09:27:31 -05:00
Matteo Cargnelutti 1a5b78dfe1
Update app/server.js
Co-authored-by: Ben Steinberg <bsteinberg@law.harvard.edu>
2022-11-21 09:26:47 -05:00
Matteo Cargnelutti 10cd4613a1
Update app/static/index.js
Co-authored-by: Ben Steinberg <bsteinberg@law.harvard.edu>
2022-11-21 09:26:33 -05:00
Matteo Cargnelutti f5ca37d831 Implements a "check PDF" feature
Adds a "Check PDF" dialog allowing to compare a client-side generated SHA-512 hash of a file against archive.social's logs.

It is primitive, but SuccessLog loads all available hashes from success-log.tsv on app boot into a hashmap, which gets updated as new entries get created.

Other quality-of-life updates include some minor CSS tweaks and refactoring of AccessKeys.js to match SuccessLog.js.
2022-11-21 01:34:56 -05:00
Matteo Cargnelutti 1101d0a8a8 Make "Unfold thread" disabled by default (?)
To discuss: Might be a good default in most cases + may prevent unnecessary resources consumption when folks try out `archive.social` for the first time.
2022-11-19 20:39:48 -05:00
Matteo Cargnelutti 405518ffaa Copy edits 2022-11-19 11:30:03 -05:00
Matteo Cargnelutti 4a42f921f7 Update TwitterCapture.js 2022-11-19 02:35:38 -05:00
Matteo Cargnelutti bb3c37bed4 Attachments issue: workaround (see notes)
I finally found it!

The problem comes from the fact that `ghostscript` behaves differently on Mac OS and Linux: on the latter, it strips existing attachments.

I was able to confirm this is not just version related, unfortunately, and might be hard to fix.

`pdf-crop-margins` is also affected by this issue, since it uses `ghostscript` behind the scenes (at least for what we want it to do).

I therefore put together a quickfix / workaround, resizing the PDF manually to try and get most of the trailing whitespace out, and skipping compression.

The cropping is much less consistent but!
- It's much _much_ faster
- I _think_ this should fix attachments on prod
- We can revisit when time allows

I suspect I will need to make further adjustments to the cropping logic once this has been tested on the production server.

This commit also adds an "Unfold thread" checkbox on the homepage form, allowing to skip browser behaviors (which some times gives better results).
2022-11-19 02:27:11 -05:00