Loading...
Loading...
Compare original and translation side by side
apps/desktop/src/mainsrc/apps/desktop/src/preloadapps/desktop/src/mainsrc/apps/desktop/src/preloadapps/desktop/src/main/controllers/import { ControllerModule, IpcMethod } from '@/controllers';
export default class NewFeatureCtr extends ControllerModule {
static override readonly groupName = 'newFeature';
@IpcMethod()
async doSomething(params: SomeParams): Promise<SomeResult> {
// Implementation
return { success: true };
}
}apps/desktop/src/main/controllers/registry.tsapps/desktop/src/main/controllers/import { ControllerModule, IpcMethod } from '@/controllers';
export default class NewFeatureCtr extends ControllerModule {
static override readonly groupName = 'newFeature';
@IpcMethod()
async doSomething(params: SomeParams): Promise<SomeResult> {
// Implementation
return { success: true };
}
}apps/desktop/src/main/controllers/registry.tspackages/electron-client-ipc/src/types.tsexport interface SomeParams { /* ... */ }
export interface SomeResult { success: boolean; error?: string }packages/electron-client-ipc/src/types.tsexport interface SomeParams { /* ... */ }
export interface SomeResult { success: boolean; error?: string }src/services/electron/import { ensureElectronIpc } from '@/utils/electron/ipc';
const ipc = ensureElectronIpc();
export const newFeatureService = async (params: SomeParams) => {
return ipc.newFeature.doSomething(params);
};src/services/electron/import { ensureElectronIpc } from '@/utils/electron/ipc';
const ipc = ensureElectronIpc();
export const newFeatureService = async (params: SomeParams) => {
return ipc.newFeature.doSomething(params);
};src/store/src/store/apps/desktop/src/main/controllers/__tests__/apps/desktop/src/main/controllers/__tests__/references/references/feature-implementation.mdreferences/local-tools.mdreferences/menu-config.mdreferences/window-management.mdreferences/references/feature-implementation.mdreferences/local-tools.mdreferences/menu-config.mdreferences/window-management.md