[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:
Sakamoto Shiina
2025-06-14 01:07:12 +09:00
parent 1fcb765ca0
commit fb2b224231
22 changed files with 510 additions and 609 deletions

View File

@@ -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,
};
};