- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
import * as internal from "./internal/managedRuntime.js";
|
|
import * as circular from "./internal/managedRuntime/circular.js";
|
|
/**
|
|
* @since 3.9.0
|
|
* @category symbol
|
|
*/
|
|
export const TypeId = circular.TypeId;
|
|
/**
|
|
* Checks if the provided argument is a `ManagedRuntime`.
|
|
*
|
|
* @since 3.9.0
|
|
* @category guards
|
|
*/
|
|
export const isManagedRuntime = internal.isManagedRuntime;
|
|
/**
|
|
* Convert a Layer into an ManagedRuntime, that can be used to run Effect's using
|
|
* your services.
|
|
*
|
|
* @since 2.0.0
|
|
* @category runtime class
|
|
* @example
|
|
* ```ts
|
|
* import { Console, Effect, Layer, ManagedRuntime } from "effect"
|
|
*
|
|
* class Notifications extends Effect.Tag("Notifications")<
|
|
* Notifications,
|
|
* { readonly notify: (message: string) => Effect.Effect<void> }
|
|
* >() {
|
|
* static Live = Layer.succeed(this, { notify: (message) => Console.log(message) })
|
|
* }
|
|
*
|
|
* async function main() {
|
|
* const runtime = ManagedRuntime.make(Notifications.Live)
|
|
* await runtime.runPromise(Notifications.notify("Hello, world!"))
|
|
* await runtime.dispose()
|
|
* }
|
|
*
|
|
* main()
|
|
* ```
|
|
*/
|
|
export const make = internal.make;
|
|
//# sourceMappingURL=ManagedRuntime.js.map
|