[Refactor] (Huge Refactoring) ReceiveRoutes: change the way define endpoints, hooks and methods.
Remove 'multi language translation enable/disable' related methods that is no longer in use from quite ago.
This commit is contained in:
@@ -2,16 +2,26 @@ import { useStdoutToPython } from "@useStdoutToPython";
|
||||
|
||||
export const useOpenFolder = () => {
|
||||
const { asyncStdoutToPython } = useStdoutToPython();
|
||||
|
||||
const openFolder_MessageLogs = () => {
|
||||
asyncStdoutToPython("/run/open_filepath_logs");
|
||||
};
|
||||
const openedFolder_MessageLogs = () => {
|
||||
console.log("Opened Directory, Message Logs");
|
||||
};
|
||||
|
||||
const openFolder_ConfigFile = () => {
|
||||
asyncStdoutToPython("/run/open_filepath_config_file");
|
||||
};
|
||||
const openedFolder_ConfigFile = () => {
|
||||
console.log("Opened Directory, Config File");
|
||||
};
|
||||
|
||||
return {
|
||||
openFolder_MessageLogs,
|
||||
openFolder_ConfigFile,
|
||||
|
||||
openedFolder_MessageLogs,
|
||||
openedFolder_ConfigFile,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user