Content-Length: 562897 | pFad | http://github.com/PHS-TSA/webmaster-23-24/pull/59/commits/820ad7e186b7d7f34beb39e49dd26d299d16d1c7

C8 Effect.TS by lishaduck · Pull Request #59 · PHS-TSA/webmaster-23-24 · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effect.TS #59

Merged
merged 12 commits into from
Nov 7, 2024
Prev Previous commit
Next Next commit
refactor: use schema from effect core
Schema is stable as of Effect 3.10!
  • Loading branch information
lishaduck committed Nov 6, 2024
commit 820ad7e186b7d7f34beb39e49dd26d299d16d1c7
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
},
"imports": {
"$fresh/": "https://deno.land/x/fresh@1.7.3/",
"@effect/schema": "npm:@effect/schema@^0.75.5",
"@headlessui/react": "https://esm.sh/v135/*@headlessui/react@2.1.10",
"@mdx-js/mdx": "npm:@mdx-js/mdx@3.1.0",
"@preact/signals": "npm:@preact/signals@1.3.0",
Expand All @@ -38,7 +37,7 @@
"@types/hast": "npm:@types/hast@3.0.4",
"@vendor/": "./vendor/",
"clsx": "npm:clsx@2.1.1",
"effect": "npm:effect@3.9.2",
"effect": "npm:effect@3.10.2",
"idb-keyval": "npm:idb-keyval@6.2.1",
"openai": "https://deno.land/x/openai@v4.50.0/mod.ts",
"openai/": "https://deno.land/x/openai@v4.50.0/",
Expand Down
3 changes: 1 addition & 2 deletions src/routes/calculator/results.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Head } from "$fresh/runtime.ts";
import type { Handlers, PageProps, RouteConfig } from "$fresh/server.ts";
import { Schema } from "@effect/schema";
import { IconCheck } from "@tabler/icons-preact";
import { Either } from "effect";
import { Either, Schema } from "effect";
import type { ComponentChildren, JSX } from "preact";
import CalculatorScaffold from "../../components/CalculatorScaffold.tsx";
import { Cover } from "../../components/Cover.tsx";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/solutions/[category]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Head } from "$fresh/runtime.ts";
import type { Handlers, PageProps, RouteConfig } from "$fresh/server.ts";
import { Schema } from "@effect/schema";
import { IconBolt, IconLink } from "@tabler/icons-preact";
import { Schema } from "effect";
import type { ComponentType, JSX } from "preact";
import { Fragment } from "preact";
import { Carousel } from "../../../components/Carousel.tsx";
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/chat/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "@effect/schema";
import { Schema } from "effect";
import {
type ChatThread,
ChatThreadSchema,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/chat/references.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "@effect/schema";
import { Schema } from "effect";
import {
type FileObject,
FileObjectSchema,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/chat/thread.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "@effect/schema";
import { Schema } from "effect";
import { type Thread, ThreadSchema } from "../../utils/openai/schemas.ts";

export async function getThread(): Promise<Thread | undefined> {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/calc/geo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "@effect/schema";
import { Schema } from "effect";

export type GeoType = typeof GeothermalLoopTypeSchema.Type;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/calc/solar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "@effect/schema";
import { Schema } from "effect";

export interface StateData {
/** In years */
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @module
*/

import { Schema } from "@effect/schema";
import { join } from "@std/path";
import { Schema } from "effect";
import { RegionSchema } from "./calc/solar.ts";

export type Geo = typeof GeoSchema.Type;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/openai/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema } from "@effect/schema";
import { Schema } from "effect";
import type { Message } from "openai/resources/beta/threads/messages.ts";
import type { Thread as OThread } from "openai/resources/beta/threads/threads.ts";
import type { FileObject as OFileObject } from "openai/resources/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/utils/solutions.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ParseResult, Schema } from "@effect/schema";
import { assertEquals, assertThrows } from "@std/assert";
import { ParseResult, Schema } from "effect";
import { SolutionPagesSchema } from "./solutions.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/utils/solutions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema } from "@effect/schema";
import { icons } from "@tabler/icons-preact";
import { Schema } from "effect";

/**
* The metadata for a solution.
Expand Down
2 changes: 1 addition & 1 deletion tool/compile-mdx.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type ParseResult, Schema } from "@effect/schema";
import { type CompileOptions, compile } from "@mdx-js/mdx";
import { dirname, fromFileUrl, join, relative, resolve } from "@std/path";
import { type ParseResult, Schema } from "effect";
import { Cause, Chunk, Console, Effect, Either, Order, Stream } from "effect";
import rehypeMathjax from "rehype-mathjax";
import remarkFrontmatter from "remark-frontmatter";
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/PHS-TSA/webmaster-23-24/pull/59/commits/820ad7e186b7d7f34beb39e49dd26d299d16d1c7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy