Skip to content

Commit 227925c

Browse files
refactor(desktop): keep app helpers private
1 parent eca58d0 commit 227925c

16 files changed

Lines changed: 18 additions & 4 deletions

‎apps/desktop/src/app/DesktopAppActivation.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export class DesktopAppActivation extends Context.Service<
213213

214214
const { logWarning } = makeComponentLogger("desktop-app-activation");
215215

216+
/** @public Service construction is part of the canonical Effect module API. */
216217
export const make = Effect.gen(function* () {
217218
const desktopEnvironment = yield* DesktopEnvironment.DesktopEnvironment;
218219
const desktopWindow = yield* DesktopWindow.DesktopWindow;

‎apps/desktop/src/app/DesktopAppIdentity.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const resolveUserDataPath = Effect.gen(function* () {
6666
: environment.path.join(environment.appDataDirectory, environment.userDataDirName);
6767
}).pipe(Effect.withSpan("desktop.appIdentity.resolveUserDataPath"));
6868

69+
/** @public Service construction is part of the canonical Effect module API. */
6970
export const make = Effect.gen(function* () {
7071
const assets = yield* DesktopAssets.DesktopAssets;
7172
const electronApp = yield* ElectronApp.ElectronApp;

‎apps/desktop/src/app/DesktopAssets.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ const resolveIconPath = Effect.fn("desktop.assets.resolveIconPath")(function* (
119119
return yield* resolveResourcePath(`icon.${ext}`);
120120
});
121121

122+
/** @public Service construction is part of the canonical Effect module API. */
122123
export const make = Effect.gen(function* () {
123124
const context = yield* Effect.context<
124125
FileSystem.FileSystem | DesktopEnvironment.DesktopEnvironment

‎apps/desktop/src/app/DesktopClerk.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export function createDesktopClerkBridge(stateDir: string, isDevelopment: boolea
8383
});
8484
}
8585

86+
/** @public Service construction is part of the canonical Effect module API. */
8687
export const make = Effect.gen(function* () {
8788
const environment = yield* DesktopEnvironment.DesktopEnvironment;
8889
const electronApp = yield* ElectronApp.ElectronApp;

‎apps/desktop/src/app/DesktopConnectionCatalogStore.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ const migrateSavedEnvironmentRecords = Effect.fn(
375375
};
376376
});
377377

378+
/** @public Service construction is part of the canonical Effect module API. */
378379
export const make = Effect.gen(function* () {
379380
const environment = yield* DesktopEnvironment.DesktopEnvironment;
380381
const fileSystem = yield* FileSystem.FileSystem;

‎apps/desktop/src/app/DesktopLifecycle.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ function quitFromSignal(
159159
);
160160
}
161161

162+
/** @public Service construction is part of the canonical Effect module API. */
162163
export const make = DesktopLifecycle.of({
163164
relaunch: Effect.fn("desktop.lifecycle.relaunch")(function* (reason) {
164165
const electronApp = yield* ElectronApp.ElectronApp;

‎apps/desktop/src/app/DesktopLinuxUrlHandler.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { makeComponentLogger } from "./DesktopObservability.ts";
2020
// our own handler entry pointing at the current AppImage and claim the
2121
// scheme default via xdg-mime, exactly what the file manager's "set as
2222
// default" checkbox would record in mimeapps.list.
23-
export const URL_HANDLER_DESKTOP_ENTRY_NAME = "t3code-url-handler.desktop";
23+
const URL_HANDLER_DESKTOP_ENTRY_NAME = "t3code-url-handler.desktop";
2424

2525
const { logInfo, logWarning } = makeComponentLogger("desktop-linux-url-handler");
2626

@@ -92,6 +92,7 @@ export class DesktopLinuxUrlHandler extends Context.Service<
9292
}
9393
>()("@t3tools/desktop/app/DesktopLinuxUrlHandler") {}
9494

95+
/** @public Service construction is part of the canonical Effect module API. */
9596
export const make = Effect.gen(function* () {
9697
const environment = yield* DesktopEnvironment.DesktopEnvironment;
9798
const fileSystem = yield* FileSystem.FileSystem;

‎apps/desktop/src/app/DesktopPreReadyPlatform.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class DesktopPreReadyElectronOptions extends Context.Service<
4646
}
4747
>()("@t3tools/desktop/app/DesktopPreReadyPlatform/DesktopPreReadyElectronOptions") {}
4848

49+
/** @public Service construction is part of the canonical Effect module API. */
4950
export const make = Effect.gen(function* () {
5051
const platform = yield* HostProcessPlatform;
5152
return yield* Effect.sync((): DesktopPreReadyElectronOptions["Service"] => {

‎apps/desktop/src/shell/DesktopShellEnvironment.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ const installShellEnvironment = (
533533
return Effect.void;
534534
};
535535

536+
/** @public Service construction is part of the canonical Effect module API. */
536537
export const make = Effect.gen(function* () {
537538
const environment = yield* DesktopEnvironment.DesktopEnvironment;
538539
const fileSystem = yield* FileSystem.FileSystem;

‎apps/desktop/src/ssh/DesktopSshEnvironment.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ const makePasswordPrompt = (
128128
prompts.request(request).pipe(Effect.mapError(toSshPasswordPromptError)),
129129
});
130130

131+
/** @public Service construction is part of the canonical Effect module API. */
131132
export const make = Effect.gen(function* () {
132133
const manager = yield* SshTunnel.SshEnvironmentManager;
133134
const prompts = yield* DesktopSshPasswordPrompts.DesktopSshPasswordPrompts;

0 commit comments

Comments
 (0)