Commit Graph

52 Commits

Author SHA1 Message Date
BobbyWibowo
733300d36f dist: rebuilt client assets and bumped v1 version string 2023-12-17 13:46:56 +00:00
BobbyWibowo
2ca4b1918d dist: rebuilt client assets and bumped v1 version string 2023-12-05 23:36:03 +00:00
BobbyWibowo
350d26a98f dist: rebuilt client assets and bumped v1 version string 2023-09-06 09:56:57 +00:00
BobbyWibowo
8e54c79aa1 dist: rebuilt client assets and bumped v1 version string 2023-04-23 02:08:55 +00:00
BobbyWibowo
e587737ab4 dist: rebuilt client assets and bumped v1 version string 2023-02-25 11:36:46 +00:00
BobbyWibowo
126671eb77 dist: rebuilt client assets and bumped v1 version string 2022-10-08 11:13:14 +00:00
BobbyWibowo
073bb0e710 dist: rebuilt client assets and bumped v1 version string 2022-10-05 21:17:37 +00:00
BobbyWibowo
a43598c02e dist: rebuilt client assets and bumped v1 version string 2022-09-30 16:03:19 +00:00
BobbyWibowo
b78d43db5f dist: rebuilt client assets and bumped v1 version string 2022-09-29 21:21:01 +00:00
BobbyWibowo
e780444cb8 dist: rebuilt client assets and bumped v1 version string 2022-09-29 21:04:48 +00:00
BobbyWibowo
8f46925352 dist: rebuilt client assets and bumped v1 version string 2022-07-25 00:43:06 +00:00
BobbyWibowo
3b2174b018 dist: rebuilt client assets and bumped v1 version string 2022-07-15 20:03:40 +00:00
BobbyWibowo
4f2cf3123b dist: rebuilt client assets and bumped v1 version string 2022-06-28 06:03:46 +00:00
BobbyWibowo
6b8b1528e2 dist: rebuilt client assets and bumped v1 version string 2022-06-28 05:54:03 +00:00
BobbyWibowo
ac4ac73d50 dist: rebuilt client assets and bumped v1 version string 2022-06-24 03:01:52 +00:00
BobbyWibowo
4e08be96a9 dist: rebuilt client assets and bumped v1 version string 2022-06-24 02:58:38 +00:00
BobbyWibowo
a1dddac5f0 dist: rebuilt client assets and bumped v1 version string 2022-06-22 10:18:59 +00:00
BobbyWibowo
630d95be02 dist: rebuilt client assets and bumped v1 version string 2022-05-21 09:57:57 +00:00
BobbyWibowo
04d2dff0f6 dist: rebuilt client assets and bumped v1 version string 2022-05-06 19:18:39 +00:00
BobbyWibowo
b28e609c18 dist: rebuilt client assets and bumped v1 version string 2022-04-15 06:42:08 +00:00
BobbyWibowo
7388a37cee dist: rebuilt client assets and bumped v1 version string 2022-03-03 11:55:03 +00:00
BobbyWibowo
80e53da69c dist: rebuilt client assets and bumped v1 version string 2022-03-03 11:46:42 +00:00
BobbyWibowo
afc467b4ed dist: rebuilt client assets and bumped v1 version string 2021-01-27 16:26:37 +00:00
BobbyWibowo
e10d99bb6f dist: rebuilt client assets and bumped v1 version string 2021-01-27 16:21:45 +00:00
BobbyWibowo
98080204da AUTO: Rebuilt client assets and bumped v1 version string 2020-12-26 09:53:26 +00:00
BobbyWibowo
4530449a87 AUTO: Rebuilt client assets and bumped v1 version string 2020-12-25 14:07:36 +00:00
BobbyWibowo
c1472218bb AUTO: Rebuilt client assets and bumped v1 version string 2020-11-17 18:14:40 +00:00
BobbyWibowo
3129e8f5b7 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-11 10:33:49 +00:00
BobbyWibowo
2017b149da AUTO: Rebuilt client assets and bumped v1 version string 2020-10-02 16:55:35 +00:00
BobbyWibowo
90583e1f3b AUTO: Rebuilt client assets and bumped v1 version string 2020-10-02 16:53:22 +00:00
BobbyWibowo
0cac4a947f AUTO: Rebuilt client assets and bumped v1 version string 2020-09-07 16:10:09 +00:00
BobbyWibowo
855c76a792 Rebuilt client assets and bumped v1 version string 2020-07-29 22:12:17 +00:00
Bobby Wibowo
34d3601c30
Transitioned styling to Sass
Added new dev dependencies:
bulma, gulp-sass, node-sass

Updated some dependencies

Various other things related to styling

Bumped v1 version string and rebuilt client assets
2020-07-28 21:47:48 +07:00
Bobby Wibowo
3c2abcfadd
Improvements to newsfeed.js
Cleaned up some CSS

Bumped v1 version string and rebuilt client assets
2020-07-28 16:44:04 +07:00
Bobby Wibowo
5e5d5c5647
Manage albums admin page, and more!
Resolves #194.

Added pagination for Manage your albums page.

Albums sidebar will now only list 9 albums at most.
Use Manage your albums page to view the rest.
Albums in the list will now have View uploads button after all.

Delete album button for albums renamed to Disable album.
Since techincally the server would've always been disabling the albums
instead of deleting them.
It was something upstream dev's decided, and I haven't bothered changing
its behavior.

I'll work on actual Delete album feature some other days.

As the title says, added Manage albums admin page.

Viewing uploads of an album will hook into albumid: filter key.

I'll work on filter and bulk operations some other days.

Updated styling for disabled albums and users.
Instead of havine a line through them, they will be greyed out.
Disable public page of albums will still use line through however.

Links to album's disabled public page are now clickable.

Added a new button styling is-dangerish.
It'll be orange.

Renamed /api/albums/delete to /api/albums/disable.
For backwards compatibility, /api/albums/delete will still work
but automatically re-routed to /api/albums/disable.

/api/uploads/list will no longer print SQLite errors for moderators
or higher when encountering them.
It was originally used to inform moderators of non-existing colum names
when used for sorting.
But on one of the recent commits, I had added a check for allowed colum
names.

Improved some caching in dashboard page.

Added new entries to cookie policy.

Some other small things.

Bumped v1 version string and rebuilt client assets.
2020-06-01 11:44:16 +07:00
Bobby Wibowo
4c2157e7d2
Updated style.css
Fixed .is-wrappable having "wrong" height when empty.
2020-05-26 03:07:52 +07:00
Bobby Wibowo
64ab8e20b2
Updated auth page, amont other things
"Login or register" subtitle and Register button will no longer be shown
if enableUserAccounts are disabled in config.

Updated auth.js to continue working even when register and/or login
buttons cannot be found.

Added .is-wrappable support for .button elements.
This makes the text inside the buttons "wrappable" to next lines.
Do note that this will cause the buttons to get taller when they do need
to wrap their texts.

Updated "Log in to upload" button in homepage uploader use the new
.is-wrappable class.
Their texts will also now be split into two lines.
Anonymous upload warning specifically will now instead say
"Log in or register".

Bumped v1 version string and rebuilt client assets.
2020-05-26 03:04:26 +07:00
Bobby Wibowo
86b51fe5f5
Added Cookie Consent, among other things
This adds Cookie Consent library at public/libs/cookieconsent.

Added views/cookiepolicy.njk.

Added a new config option cookiePolicy. Disabled by default.

Updated views/faq.njk to use variables wherever applicable.
The variables are initiated at views/_globals.njk.
The said file also contains variables used at views/cookiepolicy.njk.

Restored messages about Cloudflare to FAQ.
They will be shown only if config.cloudflare.purgeCache is enabled.

Statistics will now capitalize first letters of the keys instead.

Updated background color of SweetAlert modals.

Moved table styling from dashboard.css to style.css (global),
since table will also be used in Cookie Policy page.

Bumped v1 version string and rebuilt client assets.
2020-05-17 03:35:54 +07:00
Bobby Wibowo
51c5a81b18
!!! RUN "yarn migrate" !!!
Added "yarn migrate" as alias for "node ./database/migration.js".
Updated README.md about it.

Added a new column to users database: registration.
It will be used to store user's registration timestamp.
Registration date will be displayed in Dashboard's Manage Users.
Since this is a new column,
existing users will not have registration dates.

Last token change date will now be displayed in Dashboard as well.

<code> elements will now properly have relative font size.

User ID will now be displayed in Edit user dialog for reference purpose.

Bumped v1 version string and rebuilt client assets.
2020-05-16 22:32:32 +07:00
Bobby Wibowo
1c260c87b0
Added feature to create new user from Manage Users
New admins-only API route: /api/users/create

Restored checkboxes and bulk buttons in Manage Users
Currently useless, as bulk operators are still WIP

Added filter input in Manage Users, currently WIP

Rebuilt client-side assets and bumped v1 version string
2020-04-17 14:25:18 +07:00
Bobby Wibowo
e3281a3300
Updated style.css: Color of bolded text in FAQ 2020-04-12 15:25:45 +07:00
Bobby Wibowo
2f0560ee1e
Updated FAQ
Removed extra margin from whitelist/blacklist extensions list
2020-04-12 15:22:07 +07:00
Bobby Wibowo
049b41f7ea
Improved FAQ page by a lot
Added categories
Added more questions (including link to my brand new Patreon)
Added a floating button to return to the homepage uploader
A bit of CSS prettifying (style.css)
2020-04-09 02:59:58 +07:00
Bobby Wibowo
d9ddfe8e9a
Implemented stripping tags from images
... and optionally videos using ffmpeg (still experimental).

Users can choose whether to strip tags of their uploads or not from
the home uploader's Config tab (safe.fiery.me will have it disabled
by default).

The behavior will also be applied to the downloadable ShareX config.

Server owners can choose to force either behavior.

Make sure to add the new config from config.sample.js.

---

Fixed all instances of "e.i." to "e.g.".
My English sucks okay.

Bumped v1 version string.
2019-11-29 20:42:53 +07:00
Bobby Wibowo
37266fb05b
Fixed chunk size message in FAQ
Updated background color of code HTML tag.

Bumped v1 version string.
2019-10-11 12:53:11 +07:00
Bobby Wibowo
0d51833bbc
Updated
Disable jump to page input when there is only 1 page.

Disable prev/next pagination buttons if applicable.

Updated styling of disabled inputs.

Bumped v1 version string.
2019-10-07 10:34:10 +07:00
Bobby Wibowo
e581edd5d7
Updated progress bar background color 2019-10-07 10:14:27 +07:00
Bobby Wibowo
510f686250
Updated styling 2019-10-06 05:33:38 +07:00
Bobby Wibowo
411d17e1fb
Updated
* Changed colorscheme to black (experimental).

* Fixed ClamAV failing to report names of dirty files.

* Removed built-in support for Google site verification (globals.njk).
Just use HTML verification with public directory,
or manually edit home.njk.

* Bumped v1 version string.
2019-10-06 05:20:59 +07:00
Bobby Wibowo
9e9b0d4439
Updated
Updated some dev dependencies.

---

Gulp will now build CSS/JS files during development into dist-dev
directory, to prevent IDE's Git from unnecessarily building diff's.

Added dist-dev to ignore files.

---

The entire config fille will now be passed to Nunjuck templates for ease
of access of config values.

Root domain for use in Nunjuck templates will now be parsed from config.

Better page titles.

Updated help message for "Uploads history order" option in
homepage's config tab.

Added "Load images for preview" option to homepage's config tab.
Setting this to false will now prevent image uploads from loading
themselves for previews.

Uploads' original names in homepage's uploads history are now
selectable.

Min/max length for user/pass are now enforced in auth's front-end.

Improved performance of album public pages.
Their generated HTML pages will now be cached into memory.
Unfortunately, No-JS version of their pages will be cached separately,
so each album may take up to double the memory space.

File names in thumbnails no longer have their full URLs as tooltips.
I saw no point in that behavior.

Added video icons.
Homepage's uploads history will now display video icons for videos.

"View thumbnail" button in Dashboard is now renamed to "Show preview".
Their icons will also be changed depending on their file types.

Added max length for albums' title & description.
These will be enforced both in front-end and back-end.
Existing albums that have surpassed the limits will not be enforced.

A few other small improvements.
2019-09-17 11:13:41 +07:00