Commit graph

11 commits

Author SHA1 Message Date
Gabriel Simmer 636ab32ead Tidy README, remove UPX requirement. 2021-05-29 22:32:38 +01:00
Gabriel Simmer 06dd0f6dec Implement new colour palette.
Pink #F06DF2
Black #02060D
Dark Blue #081226
Blue #04ADBF
Yellow #F2E307

Also fixed minor bug where first 512 bytes of files are sometimes cut
off when determining content type.
2021-05-23 21:04:24 +01:00
Gabriel Simmer 396c5914f6
Renaming application from "NAS" to "Sliproad". 2020-04-24 09:22:33 +01:00
Gabriel Simmer ce4ee64509
Minor linting fixes & move to CircleCI/UPX orb.
Some minor linting fixes and general style/scope changes, which should
have no impact on the overall application. Also moved to the offical
CircleCI UPX Orb, rather than my own (which is still maintained by me).
2020-04-24 09:01:53 +01:00
Gabriel Simmer a686cb8c53
Added 'SHELL' enviornment variable to Makefile.
This is a workaround for the CircleCI Docker image, and should be
removed soon-ish. Before patching, the `make_build_dir` Makefile command
would fail, producing a single directory rather than all 3.
2020-04-07 10:26:19 +01:00
Gabriel Simmer 10779b8000
Preparing for 2.0, improved dist command.
Packing binaries and files in a more sane manner, which should make
distributing releases easier moving forward. Will likely replace the
NAS_VERSION variable with something more dynamic moving forward.
2020-04-06 23:56:57 +01:00
Gabriel Simmer 5e345f11af
Tweaked spacing for file list, icons.
Icons! Finally, signifying type of link without relying on colours. Also
added some margin to help alleviate strain from contrasting colours.
Fixed background-color of "NAS" home link maintaining white background.
2020-04-05 19:32:35 +01:00
Gabriel Simmer a5494c8811
Fine-tuning UPX and CircleCI configuration. 2020-04-03 13:38:21 +01:00
Gabriel Simmer c28851fcc3
Tests & CI, io.Reader > Multipart file.
Making some improvements to the future maintainability of the project,
namely in the form of tests. Also implemented a new "dist" command to
the Makefile that packs up the binaries, and will eventually be expanded
to do more legwork when prepping for a release.

Updated file providers to use io.Reader over an explicit multipart file,
and removed the handler in favour of a plain filename, since that was
it's primary purpose.
2020-04-03 13:26:06 +01:00
Gabriel Simmer 58128a0e98
File upload progress and Makefile commands.
Implemented file upload progress to the frontend using XMLHttpRequests,
since fetch() doesn't offer this functionality right now. Bit of a
fragmented approach to requests in the codebase right now, but hope to
resolve this soon. Not styled at all either.

Also added some nifty commands to the Makefile for producing smaller
binaries using some compiler flags and upx, and requires upx to be
installed (make small and make small_pi).
2020-03-31 01:16:12 +01:00
Gabriel Simmer ea1075cb5b
Rewrite file provider to proxy data download (rather than redirect)
Reworked the fileprovider to proxy data directly from the provider
rather than attempt to funkily redirect when needed, since it was overly
complex and wouldn't work well in the long run. Temporarily added "file"
as constant return for determining the filetype through Backblaze.

Added a Makefile to make life easier as well, and rewrote the README to
reflect the refactor/rewrite and new approach to providers.
2020-03-15 23:49:00 +00:00