142 Commits

Author SHA1 Message Date
p00rt
2d145a0585
Fix the web interface & update the Dockerfile (#378)
* fix: update paths

* fix: change path

* fix: build the full image in one step

---------

Co-authored-by: knoflook <knoflook@disroot.org>
2023-10-24 17:07:58 +02:00
Dexter Gaon-Shatford
8a1202bad3
fix(web): fix response to periodic POST requests (#344)
The reason POST requests were being responded to with 400 is that in the
assignment of payload, the request.json member is used if request.form
evaluates as false, but accessing request.json results in an error for
some requests, even though flask docs claim that the value will simply
be `None`.

resolves #339
2022-11-02 20:38:49 +01:00
Terry Geng
a0eb5b39c3 fix(config): Define all fallback in configuration.default.ini. 2022-02-01 21:08:15 -05:00
Terry Geng
81b78fa8e3 feat(config): Moved delete_allowed to [bot] section,
Now it works for both command and web interface.

Implemented #293.
2022-01-21 23:22:43 -05:00
Terry Geng
6e3b1cb673 fix(web): Random mode was broken.
Fixes #307.
2022-01-17 21:39:49 -05:00
Terry Geng
101391fe57
fix: template path resolve 2020-12-31 18:06:26 +08:00
Terry Geng
8870667064
fix: absolute path bug 2020-12-31 11:06:44 +08:00
Terry Geng
2d1430e397
feat: Web Interface: Support HTTP 1.1 Payload for POST requests. 2020-11-30 12:47:36 +08:00
Terry Geng
312599e8b3
feat: Allow deletion of music files to be disabled in the config file. Implement #202. 2020-10-24 22:17:55 +08:00
Terry Geng
8472604fdc
feat: Return a valid json if playlist/library query result is empty, implement #175. 2020-07-14 19:44:24 +08:00
Terry Geng
97309599f1
feat: Add translation populating procedure for the web interface. 2020-07-12 16:05:11 +08:00
Terry Geng
4e541a7622
refactor: Separate backend and frontend, avoid template-filling on the fly. Resolve #158. 2020-07-12 11:41:27 +08:00
Terry Geng
dbe25cec8e
fix: add "video" into supported MIME types when uploading files 2020-06-30 17:15:00 +08:00
Terry Geng
a6f8c459d0
refactor: move volume part into a helper 2020-06-15 20:36:52 +08:00
Terry Geng
5f67517dc3
feat: use a function to convert volume set by the user to a scale of -60~0 dB. Then convert dB to a factor from 0 to 1 used as the real volume factor. 2020-06-08 17:30:37 +08:00
Terry Geng
92b3a3c7be
fix: wrong play bar behavior when dragging or clicking, #166. 2020-06-05 14:08:36 +08:00
Terry Geng
3330017586
fix: password auth error 2020-05-27 08:52:27 +08:00
Terry Geng
e61f791c82
feat: 'password' auth method: support user addition 2020-05-23 14:46:27 +08:00
Terry Geng
c8f0ccf706
feat: ban a user after too many failed attempts 2020-05-19 09:53:01 +08:00
Terry Geng
fae93d99e0
feat: add config item for maximum upload file size 2020-05-19 09:12:52 +08:00
Azlux
f8011bc506 webpage for token
+ fix
2020-05-18 17:53:51 +02:00
Azlux
23a7022bdf Improvement of #154 2020-05-18 16:59:01 +02:00
Terry Geng
174ec3e7ec
fix: bad token message 2020-05-18 14:53:35 +08:00
Terry Geng
62a115b56e
feat: record IP. refresh cookie if new token is provided 2020-05-18 13:52:04 +08:00
Terry Geng
edf5495fe5
feat: several improvements to azlux's token auth scheme #154
1. 'auth_method' in config, where users can select between
   'password' and 'token'.
2. create index for token, avoid iterating the entire user
   section when validating tokens.
3. only generate token for a user when there's no token for
   him in the db, avoid tokens fill the db.
2020-05-18 10:17:08 +08:00
Azlux
4017e7bff0 add webinterface token
#154
2020-05-17 20:28:27 +02:00
Terry Geng
0b7d0b8465
feat: huge feature: a floating player, with a movable playhead 2020-05-17 11:54:05 +08:00
Terry Geng
1a7691cd1c
fix: secure_filename not working, progress bar typo 2020-05-16 16:02:44 +08:00
Terry Geng
257fff3e92
feat: upload progress bar and error message display for each file, #146 2020-05-16 15:48:11 +08:00
Terry Geng
71e0ede51e
feat: optimized play/resume logic, add fast-forward support within song.
fix #153.
2020-05-15 10:22:44 +08:00
Terry Geng
7f8b9eab5e feat: add interface action 'next', mentioned in #130. 2020-04-24 09:25:05 +08:00
Terry Geng
d35e564681
Merge branch 'master' into master 2020-04-18 23:28:31 +08:00
Daniel Gunzinger
08c76aab9d fix typeerror when setting volume; fix processing of volume updates in client-side webinterface 2020-04-18 10:18:43 +08:00
Daniel Gunzinger
f95e07c9af implement trivial volume control slider and reporting of current volume to webinterface 2020-04-18 10:18:43 +08:00
Daniel Gunzinger
788383f65c change where we get the current volume from in the status method; adjust html input range from 0-100 to 0-1, thus remove need for scaling in javascript 2020-04-17 17:12:26 +02:00
Daniel Gunzinger
9e1f2d605d fix typeerror when setting volume; fix processing of volume updates in client-side webinterface 2020-04-16 19:36:14 +02:00
Daniel Gunzinger
82af558e5a implement trivial volume control slider and reporting of current volume to webinterface 2020-04-16 19:09:24 +02:00
Terry Geng
e86b5ca659 refactor: rewrite confusing part 2020-04-08 08:55:58 +08:00
Terry Geng
b18c70c146 fixed: playlist update problem in web interface 2020-03-28 10:45:32 +08:00
Terry Geng
732c698408 feat: fold playlist to avoid displaying too many items 2020-03-25 21:35:59 +08:00
Terry Geng
b2e5efec93 refactor: optimized playlist logic 2020-03-25 21:35:59 +08:00
Terry Geng
30dc612825 fix: 204 is not an error 2020-03-23 23:42:45 +08:00
Terry Geng
f93ac890a2 fix: 404 -> 204 2020-03-23 21:14:19 +08:00
Terry Geng
55370e1ba9 fix: strange web interface behavior, and fix attempt for #111 2020-03-23 13:04:43 +08:00
Terry Geng
d24f1095a3 fix: typo 2020-03-23 09:18:47 +08:00
Terry Geng
f65ef64a77 feat: sort library files by date 2020-03-22 22:06:32 +08:00
Terry Geng
e256d50c5c refactor: removed useless files path cache 2020-03-22 21:59:05 +08:00
Terry Geng
3fb10905b7 refactor: database logic, add type hints 2020-03-22 14:30:56 +08:00
Terry Geng
a6991943c5 fix: add svg files 2020-03-21 01:07:38 +08:00
Terry Geng
bfa64547e8 fix: button confusion 2020-03-20 21:28:00 +08:00