2023-12-07 16:33:37 +00:00
|
|
|
import { createContext } from "react";
|
|
|
|
|
import { RqbitAPI } from "./api-types";
|
|
|
|
|
|
|
|
|
|
export const APIContext = createContext<RqbitAPI>({
|
|
|
|
|
listTorrents: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
|
|
|
|
getTorrentDetails: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
|
|
|
|
getTorrentStats: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
|
|
|
|
uploadTorrent: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
2024-03-30 20:05:12 +00:00
|
|
|
updateOnlyFiles: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
2023-12-07 16:33:37 +00:00
|
|
|
pause: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
|
|
|
|
start: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
|
|
|
|
forget: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
|
|
|
|
delete: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
2024-04-24 22:55:56 +01:00
|
|
|
getTorrentStreamUrl: () => {
|
|
|
|
|
throw new Error("Function not implemented.");
|
2023-12-09 00:26:14 +00:00
|
|
|
},
|
2024-04-29 18:40:02 +01:00
|
|
|
getStreamLogsUrl: function (): string | null {
|
|
|
|
|
throw new Error("Function not implemented.");
|
|
|
|
|
},
|
2023-12-07 16:33:37 +00:00
|
|
|
});
|
|
|
|
|
export const RefreshTorrentStatsContext = createContext({ refresh: () => {} });
|