mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Feature: Slskd Service Widget (#5045)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
7fd5e6ccb1
commit
d853bbfe44
7 changed files with 116 additions and 0 deletions
21
src/widgets/slskd/widget.js
Normal file
21
src/widgets/slskd/widget.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||
import { asJson } from "utils/proxy/api-helpers";
|
||||
|
||||
const widget = {
|
||||
api: `{url}/api/v0/{endpoint}`,
|
||||
proxyHandler: credentialedProxyHandler,
|
||||
|
||||
mappings: {
|
||||
application: {
|
||||
endpoint: "application",
|
||||
},
|
||||
downloads: {
|
||||
endpoint: "transfers/downloads",
|
||||
},
|
||||
uploads: {
|
||||
endpoint: "transfers/uploads",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
Loading…
Add table
Add a link
Reference in a new issue