39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
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.");
|
|
},
|
|
updateOnlyFiles: () => {
|
|
throw new Error("Function not implemented.");
|
|
},
|
|
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.");
|
|
},
|
|
getTorrentStreamUrl: () => {
|
|
throw new Error("Function not implemented.");
|
|
},
|
|
getStreamLogsUrl: function (): string | null {
|
|
throw new Error("Function not implemented.");
|
|
},
|
|
});
|
|
export const RefreshTorrentStatsContext = createContext({ refresh: () => {} });
|