-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to use deco from JSR Signed-off-by: Marcos Candeia <[email protected]> Include usePartialSection on hooks and totally remove deco denopkg dep Signed-off-by: Marcos Candeia <[email protected]> Use deco from jsr on missing runtime.ts Signed-off-by: Marcos Candeia <[email protected]> Simplify deno.json Signed-off-by: Marcos Candeia <[email protected]> Use jsr Signed-off-by: Marcos Candeia <[email protected]> Add missing std/async Signed-off-by: Marcos Candeia <[email protected]> Migrating to jsr Signed-off-by: Marcos Candeia <[email protected]> run linter and formatter Signed-off-by: Marcos Candeia <[email protected]> Fix linter Signed-off-by: Marcos Candeia <[email protected]> Run linter and use deco from jsr Signed-off-by: Marcos Candeia <[email protected]> * Remove publish workflow Signed-off-by: Marcos Candeia <[email protected]> * Use imports from fresh Signed-off-by: Marcos Candeia <[email protected]> * Rebase with main Signed-off-by: Marcos Candeia <[email protected]> * Use deco web Signed-off-by: Marcos Candeia <[email protected]> * Update deco to alpha version Signed-off-by: Marcos Candeia <[email protected]> * Update to deco 1.97.0 Signed-off-by: Marcos Candeia <[email protected]> --------- Signed-off-by: Marcos Candeia <[email protected]>
- Loading branch information
Showing
299 changed files
with
674 additions
and
730 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
import type { App, AppContext as AC } from "@deco/deco"; | ||
import { | ||
AppManifest, | ||
asResolved, | ||
AvailableActions, | ||
AvailableLoaders, | ||
isDeferred, | ||
} from "@deco/deco"; | ||
import { isAwaitable } from "@deco/deco/utils"; | ||
import AWS from "https://esm.sh/[email protected]"; | ||
import { asResolved, isDeferred } from "deco/engine/core/resolver.ts"; | ||
import { isAwaitable } from "deco/engine/core/utils.ts"; | ||
import type { App, AppContext as AC } from "deco/mod.ts"; | ||
import { AvailableActions, AvailableLoaders } from "deco/utils/invoke.types.ts"; | ||
import { AppManifest } from "deco/types.ts"; | ||
import { deferred } from "std/async/deferred.ts"; | ||
import openai, { | ||
Props as OpenAIProps, | ||
State as OpenAIState, | ||
} from "../openai/mod.ts"; | ||
import { Secret } from "../website/loaders/secret.ts"; | ||
import { Assistant } from "./deps.ts"; | ||
import manifest, { Manifest } from "./manifest.gen.ts"; | ||
import { Secret } from "../website/loaders/secret.ts"; | ||
import { PreviewContainer } from "../utils/preview.tsx"; | ||
|
||
export type GPTModel = | ||
|
@@ -157,7 +160,7 @@ export default function App( | |
...openAIApp.state, | ||
assistants: (state.assistants ?? []).filter(Boolean).reduce( | ||
(acc, assistant) => { | ||
const assistantDeferred = deferred<AIAssistant>(); | ||
const assistantDeferred = Promise.withResolvers<AIAssistant>(); | ||
if (isDeferred<AIAssistant>(assistant)) { | ||
const aiAssistant = assistant(); | ||
if (isAwaitable(aiAssistant)) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { proxy } from "deco/clients/withManifest.ts"; | ||
import { proxy } from "@deco/deco/web"; | ||
import { Manifest } from "./manifest.gen.ts"; | ||
|
||
export const invoke = proxy<Manifest>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { App, AppContext as AC } from "deco/mod.ts"; | ||
import type { App, AppContext as AC } from "@deco/deco"; | ||
import algolia from "https://esm.sh/[email protected]"; | ||
import { createFetchRequester } from "npm:@algolia/[email protected]"; | ||
import { Markdown } from "../decohub/components/Markdown.tsx"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { SectionProps } from "deco/blocks/section.ts"; | ||
import { useScriptAsDataURI } from "deco/hooks/useScript.ts"; | ||
import { SectionProps } from "@deco/deco"; | ||
import { useScriptAsDataURI } from "@deco/deco/hooks"; | ||
import insights from "npm:[email protected]"; | ||
import { | ||
AddToCartEvent, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Author } from "../types.ts"; | ||
import type { Author } from "../types.ts"; | ||
|
||
/** | ||
* @title Author | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { BlogPost } from "../types.ts"; | ||
import type { BlogPost } from "../types.ts"; | ||
|
||
/** | ||
* @title Blogpost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Category } from "../types.ts"; | ||
import type { Category } from "../types.ts"; | ||
|
||
/** | ||
* @title Category | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.