Commit Graph

855 Commits

Author SHA1 Message Date
Bobby Wibowo
8c3fb78135
Upates
* Added Statistics menu to Administration items in dashboard.

* Added /api/stats route.

Imo, my implementation of this whole thing is rather dirty-ish, but hey
as long as it works.

I'll be using lolisafe2 for future devs tbh.
2019-04-06 00:32:52 +07:00
Bobby Wibowo
5180005625
Updated faq.njk 2019-04-05 09:27:10 +07:00
Bobby Wibowo
e765b8d896
Updated package.json 2019-04-05 06:46:47 +07:00
Bobby Wibowo
458584d681
Updated _globals.njk
Forgot to bump v1 version string.
2019-03-28 03:49:03 +07:00
Bobby Wibowo
3791c95ac2
Updated README.md 2019-03-28 03:44:30 +07:00
Bobby Wibowo
2b8f52ff72
Merge branch 'master' into safe.fiery.me 2019-03-28 03:42:27 +07:00
Bobby Wibowo
28f1e691bc
Updated renders 2019-03-28 03:33:38 +07:00
Kana
94bc88191e
Update issue templates 2019-03-12 17:24:36 +09:00
Kana
28bca3b195
Update README.md 2019-03-12 12:57:56 +09:00
Pitu
4d6cc7460d Added support links 2019-03-12 03:43:42 +00:00
Kana
3fe0b274b7
Merge pull request #184 from natnat-mc/up-to-date
updated deps to make it work with node 10.x
2019-02-20 23:55:42 +09:00
Nathan DECHER
69e3c6e5f5 updated deps to make it work with node 10.x 2019-02-18 22:46:12 +01:00
Bobby Wibowo
57c17d3157
Updates
Updated utilsController.bulkDeleteFiles() to chunk opeartion by a max of
999 values (which is SQLite's default var limit).
However, there's a risk of hitting SQLITE_BUSY since we attempt to
delete chunks all at once (as can be seen by how we use Promise.all
instead of patiently waiting the chunks one by one).
However, I'm not really sure why, but the operations will still
be finished eventually, so I'll let that be for now (?).

Fixed a silly concat in albumsController.js.
2019-02-05 10:36:14 +07:00
Bobby Wibowo
8aa29bcd81
Updated README.md 2019-02-05 08:44:51 +07:00
Bobby Wibowo
7170e73ca5
Updated README.md 2019-02-05 08:43:41 +07:00
Bobby Wibowo
99687942bc
Merge branch 'master' into safe.fiery.me 2019-02-05 08:33:40 +07:00
Kana
c9fd7acf39
Merge pull request #182 from hyperdefined/master
removed my site (fixed)
2019-02-04 13:34:25 -03:00
hyperdefined
cc8948eb7e
removed my site 2019-02-03 21:29:49 -05:00
Bobby Wibowo
ad0a7958e5
Merge branch 'master' into safe.fiery.me 2019-01-31 16:52:37 +07:00
Bobby Wibowo
aab62b6bfe
Updated cfpurge.js and thumbs.js
Sigh.
2019-01-31 16:49:14 +07:00
Bobby Wibowo
1c23a8a6eb
Updated cfpurge.js
This will now intended for manually purging uploads only.
2019-01-31 16:44:04 +07:00
Bobby Wibowo
e74fb3811f
Updated lolisafe.js
Goddamn, I screwed up so bad.
2019-01-31 16:38:43 +07:00
Bobby Wibowo
4f60b01676
Updated utilsController.js
Whoops.
2019-01-31 16:37:50 +07:00
Bobby Wibowo
e479ac53ff
Updated lolisafe.js
Forgot to update this to take into account the changes in Cloudflare's
cache purge utility.
2019-01-31 16:36:16 +07:00
Bobby Wibowo
d5c24165cf
Updates
Updated Cloudfalre's cache purge utility.
It will now split URLs into chunks of 30 URLs which then will be purged
one chunk at a time.
I just found out Cloudflare's API have a limit of 30 URLs for the API.
2019-01-31 16:29:34 +07:00
Bobby Wibowo
8140ff4d71
Updates
Rewritten function to generate video thumbnails with ffmpeg.
This should be much faster than ever.
This should also solve an issue where potrait videos could have their
thumbnails be taller than 200px, since it was only forcing width to be
no larger than 200px.

Updated dashboard's styling to make sure potrait thumbnails (only matter
for video thumbnails) not going out of its container.

Updated thumbs.js (yarn thumbs) script to display elapsed time for each
operation in seconds.

Bumped v1 version string (for dashboard.css).
2019-01-30 02:50:45 +07:00
Kana
5b697fd4e6
Merge pull request #179 from WeebDev/RyoshiKayo-remove-inactive-sites
Removed inactive sites
2019-01-28 21:05:41 -03:00
Kana
b5e2f09a1d
Merge branch 'master' into RyoshiKayo-remove-inactive-sites 2019-01-28 21:05:32 -03:00
Kana
436cbe4009
Merge pull request #180 from kawaaii/patch-2
Update README.md
2019-01-28 21:04:01 -03:00
天使アシュリー
11881780d7
Update README.md 2019-01-28 00:42:37 +01:00
天使アシュリー
87b7a2b50a
Update README.md
Added my own lolisafe clone with edited looks. 
Not SSL secured yet due my certificate is not for Wildcards yet!
2019-01-27 23:54:01 +01:00
Kayo
fe1f0ed65e
Removed inactive sites
Removed:
- safe.waliant.pw
- vortex.64i.de
2019-01-23 23:09:47 -08:00
Bobby Wibowo
e38037e660
Updates
Updated thumbs.js script to allow purging CF's cache of succeeded files

Updated utils.purgeCloudflareCache() function accordingly
2019-01-18 10:40:15 +07:00
Bobby Wibowo
8482049584
Updates
Removed .bmp from list of allowed image extensions for thumbs gen
Sharp doesn't support BMP format

Increased seek timestamp for video thumbs gen from 1% to 20%
2019-01-18 10:25:30 +07:00
Bobby Wibowo
209f5429cd
Updates
Added .tiff, .tif, and .svg to allowed image extensions for thumbs gen

Added .svg to allowed image extensions for preview in uploads result
2019-01-18 08:15:53 +07:00
Bobby Wibowo
f2a6daea46
Updated album.js and dashboard.js
Updated getPrettyBytes() function.
Previously it was doing something wrong with size under 1024 bytes.
2019-01-14 20:06:57 +07:00
Bobby Wibowo
fe24198517
Updated dashboard.css
Break-all extension name in thumbs view.
2019-01-14 20:00:08 +07:00
Bobby Wibowo
907ba3960a
Updated render.js
Version string for random renders will now use globals.v4 (new variable)
instead of globals.v1, since globals.v1 changes a lot more often.
Hence to allow this to happen, data-version attribute will now be added
to <script> tag of render.js in home.njk.
2019-01-14 19:44:09 +07:00
Bobby Wibowo
a71b06df2b
Updated dashboard.css
Better styling for thumbs view.
This ensures that extension names won't be cropped with certain fonts.

Increased non-hover opacity of checkboxes in thumbs view.
2019-01-14 19:33:53 +07:00
Bobby Wibowo
b2ed4deda8
Reinstall dependencies
Dependencies of dependencies (dependency-ception) were mostly outdated,
so we reinstalled them all to get all the latest versions available.
2019-01-10 16:06:28 +07:00
Bobby Wibowo
e5457d9dba
Updated dependencies 2019-01-10 15:56:09 +07:00
Bobby Wibowo
8780d6429b
Updates
NoJS uploader will now display the original file names in the results.

lolisafe.js will now automaticaly purge Cloudflare's cache of frontend
pages everytime it launches.
Of course this only applies when cacheControl is on in config file.
This sorta makes scripts/cfpurge.js script obsolete.
2019-01-09 17:11:45 +07:00
Bobby Wibowo
20912a6dff
Updated dashboard
Display thumbnail feature in dashboard will now contain images smaller
than 200x200 in a 200x200 container and align them in the center.
2019-01-09 12:04:21 +07:00
Bobby Wibowo
244b327e19
Updated dashboard.js
Added loading animation to pagination buttons.
2019-01-08 05:54:12 +07:00
Bobby Wibowo
b431d11eba
Updates
I think proper Cache-Control for frontend now.

Fixed the way it handles "home" when purging frontend cache.
2019-01-06 15:26:43 +07:00
Bobby Wibowo
d503d65c22
Updated package.json
Added "yarn cfpurge" as a shortcut to "node ./scripts/cfpurge.js".

"yarn pm2restart" will now call "yarn cfpurge" after restarting PM2.
2019-01-06 13:28:54 +07:00
Bobby Wibowo
e55a04c156
Updates
Added cfpurge.js to scripts directory.
This can be used to purge cache of frontend pages and uploads.
Do "node scripts/cfpurge.js --help" for usage.

Removed "randver" from package.js/scripts.
I've installed randomstring globally instead and just simply do:
randomstring n
Back then I didn't know it could be used that way.
2019-01-06 13:27:17 +07:00
Bobby Wibowo
3c49d81b3a
Updated dashboard.js
Fix checkboxes
2019-01-06 05:53:08 +07:00
Bobby Wibowo
72f32988ea
Invalidate existing cache of public assets 2019-01-06 04:38:29 +07:00
Bobby Wibowo
f166a70d71
Updated lolisafe.js
Updated cache control
2019-01-06 04:16:19 +07:00