Commit Graph

88 Commits

Author SHA1 Message Date
BobbyWibowo
1ddc8eeabd dist: rebuilt client assets and bumped v1 version string 2022-08-19 03:39:23 +00:00
BobbyWibowo
493d2a8df3 dist: rebuilt client assets and bumped v1 version string 2022-08-07 23:09:47 +00:00
BobbyWibowo
bdf6557368 dist: rebuilt client assets and bumped v1 version string 2022-08-04 16:49:25 +00:00
BobbyWibowo
238e6b9bc3 dist: rebuilt client assets and bumped v1 version string 2022-08-01 08:22:10 +00:00
BobbyWibowo
2b2a7c407d dist: rebuilt client assets and bumped v1 version string 2022-07-31 09:04:15 +00:00
BobbyWibowo
4add610864 dist: rebuilt client assets and bumped v1 version string 2022-07-31 08:56:32 +00:00
BobbyWibowo
8f46925352 dist: rebuilt client assets and bumped v1 version string 2022-07-25 00:43:06 +00:00
BobbyWibowo
6b8b1528e2 dist: rebuilt client assets and bumped v1 version string 2022-06-28 05:54:03 +00:00
BobbyWibowo
e79bb77a25 dist: rebuilt client assets and bumped v1 version string 2022-06-22 04:46:11 +00:00
BobbyWibowo
b3535969dd dist: rebuilt client assets and bumped v1 version string 2022-05-24 00:03:19 +00:00
BobbyWibowo
b17ea6c8bd dist: rebuilt client assets and bumped v1 version string 2022-05-06 14:59:37 +00:00
BobbyWibowo
3f900a1ac5 dist: rebuilt client assets and bumped v1 version string 2022-05-06 13:49:36 +00:00
BobbyWibowo
dbc0a82186 dist: rebuilt client assets and bumped v1 version string 2022-05-05 06:59:53 +00:00
BobbyWibowo
11030ff2f5 dist: rebuilt client assets and bumped v1 version string 2022-05-05 06:18:53 +00:00
BobbyWibowo
cf1475197e dist: rebuilt client assets and bumped v1 version string 2022-04-20 12:31:21 +00:00
BobbyWibowo
80e53da69c dist: rebuilt client assets and bumped v1 version string 2022-03-03 11:46:42 +00:00
BobbyWibowo
cf2fed6605 dist: rebuilt client assets and bumped v1 version string 2021-06-06 11:33:14 +00:00
BobbyWibowo
1e3bc5aef2 dist: rebuilt client assets and bumped v1 version string 2021-02-12 08:50:42 +00:00
BobbyWibowo
12d49b1d40 dist: rebuilt client assets and bumped v1 version string 2021-01-31 23:15:50 +00:00
BobbyWibowo
220ec14d83 dist: rebuilt client assets and bumped v1 version string 2021-01-27 17:07:46 +00:00
BobbyWibowo
0f1ba57737 dist: rebuilt client assets and bumped v1 version string 2021-01-27 16:52:31 +00:00
BobbyWibowo
9f9debae44 AUTO: Rebuilt client assets and bumped v1 version string 2021-01-08 19:52:23 +00:00
BobbyWibowo
1049f51248 AUTO: Rebuilt client assets and bumped v1 version string 2021-01-08 04:31:31 +00:00
BobbyWibowo
b4b4c08d1a AUTO: Rebuilt client assets and bumped v1 version string 2020-12-26 16:51:46 +00:00
BobbyWibowo
3d1374680a AUTO: Rebuilt client assets and bumped v1 version string 2020-12-26 12:55:39 +00:00
BobbyWibowo
1382afd8c8 AUTO: Rebuilt client assets and bumped v1 version string 2020-12-26 11:50:53 +00:00
BobbyWibowo
4530449a87 AUTO: Rebuilt client assets and bumped v1 version string 2020-12-25 14:07:36 +00:00
BobbyWibowo
0cfd3fe059 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-04 04:27:31 +00:00
BobbyWibowo
2626b03192 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 15:52:30 +00:00
BobbyWibowo
4cbf0c6fa5 AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 14:21:07 +00:00
BobbyWibowo
daa2a2f1fa AUTO: Rebuilt client assets and bumped v1 version string 2020-11-03 13:59:43 +00:00
BobbyWibowo
b7d3d496e7 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-30 18:13:11 +00:00
BobbyWibowo
a86967c251 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-30 15:55:14 +00:00
BobbyWibowo
90583e1f3b AUTO: Rebuilt client assets and bumped v1 version string 2020-10-02 16:53:22 +00:00
BobbyWibowo
b589e070d8 AUTO: Rebuilt client assets and bumped v1 version string 2020-10-01 21:36:08 +00:00
BobbyWibowo
8e5e6ce018 AUTO: Rebuilt client assets and bumped v1 version string 2020-09-08 12:05:04 +00:00
BobbyWibowo
0e9d5328e3 Rebuilt client assets and bumped v1 version string 2020-08-24 01:25:08 +00:00
BobbyWibowo
c08785dc5f Rebuilt client assets and bumped v1 version string 2020-08-24 01:09:31 +00:00
BobbyWibowo
1c7bff20d9 Rebuilt client assets and bumped v1 version string 2020-08-22 19:23:01 +00:00
BobbyWibowo
25fd9186c8 Rebuilt client assets and bumped v1 version string 2020-08-21 18:40:05 +00:00
BobbyWibowo
6fb234984a Rebuilt client assets and bumped v1 version string 2020-08-21 18:36:27 +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
24ed7c48bb
Updated dashboard.js
Bumped v1 version string
2020-07-19 18:26:44 +07:00
Bobby Wibowo
d29621d5ff
Make render.js standalone
Despite that, it still expects the existence of a so-called main script
in "page" variable, and also expects to be loaded by it instead,
with an internal check to load itself if the main script fails to call
itself within the expected conditions.

Improved button colors in SweetAlert prompts.

Refactored window.onload() to DOMContentLoaded's event listener.
This should essentially allow pages to have multiple scripts that listen
to that event.

Bumped v1 version string and rebuilt client assets.
2020-06-20 02:30:57 +07:00
Bobby Wibowo
c1d3b9724c
Fix auto page thingy breaking
Basically, when you're on the very last page of either uploads or users
lists, and then you decide to delete all uploads/users in the list, by
default it will automatically load the latest valid page (e.g. page - 1,
or more if it has to).
Unfortunately, that behavior will get cancelled out by "Something else
is still loading" warning. This fixed that.

Bumped v1 version string and rebuilt client assets.
2020-06-10 02:06:43 +07:00
Bobby Wibowo
8bcee712ac
A toggle button to show original file names
For admins, preference for your personal uploads list and Manage uploads
aren't shared, just like thumbs/lists toggle.

Non-keyed keywords for filtering will now apply to original names too.

Added a new fontello icon for this button.

Various other things I'm too lazy to write.
2020-06-07 12:29:17 +07:00
Bobby Wibowo
f305b08077
Disable some buttons on disabled albums
Also apply strikethrough to their public links.
Though similar with albums that have their public links explicitly
disabled, despite having strikethrough, they're still clickable.
Of course they'll just lead to 404 page regardless.
2020-06-03 09:20:40 +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
d666e278ec
Refactored "location" -> "window.location"
In client JS files, for readibility and consistency.

They'd work the same either way, but I'd think they'd be easier to
read and understand this way.
2020-05-26 02:39:28 +07:00
Bobby Wibowo
98b2f32ec5
Updated
Fixed browser's timezone offset not being sent with the proper header
name ("minOffset" -> "minoffset").

Server will now actually think client is on UTC timezone if "minoffset"
header is unset.

Stricter "all" header check for uploads list API endpoint.
It will now only accept the header if set to "1" (string).

Fixed server error when either date: or expiry: keys get parsed as
empty strings.

"minoffset" header when listing uploads will now only be sent if
date: or expiry: keys are properly used (i.e. match expected patterns).

Updated filters help message about wrapping with double quotes when
specifying both date and time (since there will be a space in between).

Filters input will now have some automatic clean ups other than trims.
- Replace all tabs with whitespaces.
- Remove whitespaces after "<key>:".

Bumped v1 version string and rebuilt client assets.
2020-05-24 08:28:54 +07:00