The new make_serialiser function allows you to import things to a
separate script and still use the standard secret key when making
serialisers.
During the process, we also realised we weren't salting values
properly, so thankfully that's been fixed! :P
This is so that we can load subpaths like /r/something and still
have all the stylesheets and things load. (Otherwise it was always
expecting them to be in the same directory as the current file).
Otherwise, if someone puts a long message it'll come on one line
and make for a very loooong tile, and people being impatient will
soon get bored by it and not end up reaching (and getting tempted
by) the other pledges.
Because the other one was making the browser try to download the
page instead of just opening it. (We actually ran into this before,
but I guess I forgot 😛)
The former was working fine while testing, but on the website it
made the browser try to *download* the page instead of opening it
in a normal fashion. This change will (hopefully) stem the madness
;P
Parcel has been removed since we didn't need it anymore (Tailwind
does the purging by itself anyway). Instead, we've told Express
to serve all static assets from src/assets/ and use twig templates
from src/ directly.
Meanwhile, Nodemon now watches for changes in .css and .twig files
too!
We'll start sending out the email in the next step, when the setup
of nodemailer is complete. Right now, everything else works:
creating a verification link, processing it when clicked on, and
even updating (instead of appending) a pledge when the same email
submits multiple times. No pretty error messages though; that's
another thing to be worked on :P
WARNING: Don't deploy this commit live; people will be told about a
verification email but they won't actually get it yet!
This is so that we don't have to keep restarting the server every
time we make a change. Parcel was taking care of this for the
static files like HTML and CSS, but not for the Express server
itself: that required calling in Nodemon to do the job.