-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
195 additions
and
116 deletions.
There are no files selected for viewing
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,5 +1,5 @@ | ||
import { join } from "jsr:@std/path@^0.218.2"; | ||
import { assertEquals } from "jsr:@std/assert@^0.218.2"; | ||
import { assertEquals } from "@std/assert"; | ||
import { join } from "@std/path"; | ||
import { toSet } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { readDirRecursive } from "./fs.ts"; | ||
|
||
|
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,10 +1,7 @@ | ||
import { join } from "jsr:@std/path@^0.218.2"; | ||
import * as url from "jsr:@std/url@^0.218.2"; | ||
import { parse } from "jsr:@std/yaml@^0.218.2"; | ||
import { | ||
Schema as JsonSchema, | ||
Validator, | ||
} from "npm:@cfworker/[email protected]"; | ||
import { Schema as JsonSchema, Validator } from "@cfworker/json-schema"; | ||
import { join } from "@std/path"; | ||
import * as url from "@std/url"; | ||
import { parse } from "@std/yaml"; | ||
import { readDirRecursive } from "./fs.ts"; | ||
|
||
/** | ||
|
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 |
---|---|---|
|
@@ -2,12 +2,14 @@ | |
"lock": false, | ||
"tasks": { | ||
"fedify-codegen": "cat ../../vocab/vocab.ts > /dev/null || (deno run --allow-read --allow-write --check ../../codegen/main.ts ../../vocab/ ../runtime/ > ../../vocab/vocab.ts && deno fmt ../../vocab/vocab.ts && deno cache ../../vocab/vocab.ts && deno check ../../vocab/vocab.ts)", | ||
"check": "deno task fedify-codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", | ||
"cli": "deno task fedify-codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", | ||
"manifest": "deno task fedify-codegen && deno task cli manifest $(pwd)", | ||
"start": "deno task fedify-codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts", | ||
"build": "deno task fedify-codegen && deno run -A dev.ts build", | ||
"preview": "deno task fedify-codegen && deno run -A main.ts", | ||
"generate-import-map": "deno run --allow-read --allow-write generate_import_map.ts", | ||
"codegen": "deno task fedify-codegen && deno task generate-import-map", | ||
"check": "deno task codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", | ||
"cli": "deno task codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", | ||
"manifest": "deno task codegen && deno task cli manifest $(pwd)", | ||
"start": "deno task codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts", | ||
"build": "deno task codegen && deno run -A dev.ts build", | ||
"preview": "deno task codegen && deno run -A main.ts", | ||
"update": "deno run -A -r https://fresh.deno.dev/update ." | ||
}, | ||
"lint": { | ||
|
@@ -21,23 +23,7 @@ | |
"exclude": [ | ||
"**/_fresh/*" | ||
], | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"$std/": "https://deno.land/[email protected]/", | ||
"fedify": "../../mod.ts", | ||
"fedify/federation": "../../federation/mod.ts", | ||
"fedify/httpsig": "../../httpsig/mod.ts", | ||
"fedify/runtime": "../../runtime/mod.ts", | ||
"fedify/vocab": "../../vocab/mod.ts", | ||
"fedify/webfinger": "../../webfinger/mod.ts", | ||
"uuidv7": "npm:[email protected]", | ||
"markdown-it": "npm:[email protected]", | ||
"scrypt": "https://deno.land/x/[email protected]/mod.ts" | ||
}, | ||
"importMap": "./import_map.g.json", | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact" | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const fedifyImportMap = JSON.parse( | ||
await Deno.readTextFile(`${import.meta.dirname}/../../deno.json`), | ||
).imports; | ||
|
||
const blogImportMap = JSON.parse( | ||
await Deno.readTextFile(`${import.meta.dirname}/import_map.json`), | ||
).imports; | ||
|
||
const importMap = { ...fedifyImportMap, ...blogImportMap }; | ||
|
||
await Deno.writeTextFile( | ||
`${import.meta.dirname}/import_map.g.json`, | ||
JSON.stringify({ imports: importMap }, null, 2) + "\n", | ||
); |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"imports": { | ||
"@cfworker/json-schema": "npm:@cfworker/json-schema@^1.12.8", | ||
"@js-temporal/polyfill": "npm:@js-temporal/polyfill@^0.4.4", | ||
"@phensley/language-tag": "npm:@phensley/language-tag@^1.8.0", | ||
"@std/assert": "jsr:@std/assert@^0.219.1", | ||
"@std/bytes": "jsr:@std/bytes@^0.219.1", | ||
"@std/collections": "jsr:@std/collections@^0.219.1", | ||
"@std/encoding": "jsr:@std/encoding@^0.219.1", | ||
"@std/encoding/base64": "jsr:@std/encoding@^0.219.1/base64", | ||
"@std/http": "jsr:@std/http@^0.219.1", | ||
"@std/json": "jsr:@std/json@^0.219.1", | ||
"@std/path": "jsr:@std/path@^0.219.1", | ||
"@std/semver": "jsr:@std/semver@^0.219.1", | ||
"@std/testing": "jsr:@std/testing@^0.219.1", | ||
"@std/text": "jsr:@std/text@^0.219.1", | ||
"@std/url": "jsr:@std/url@^0.219.1", | ||
"@std/yaml": "jsr:@std/yaml@^0.219.1", | ||
"fast-check": "npm:fast-check@^3.16.0", | ||
"jose": "npm:jose@^5.2.3", | ||
"jsonld": "npm:jsonld@^8.3.2", | ||
"uri-template-router": "npm:uri-template-router@^0.0.16", | ||
"url-template": "npm:url-template@^3.1.1", | ||
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"@std/dotenv/load": "jsr:@std/dotenv@^0.219.1/load", | ||
"@fedify/fedify": "../../mod.ts", | ||
"@fedify/fedify/federation": "../../federation/mod.ts", | ||
"@fedify/fedify/httpsig": "../../httpsig/mod.ts", | ||
"@fedify/fedify/runtime": "../../runtime/mod.ts", | ||
"@fedify/fedify/vocab": "../../vocab/mod.ts", | ||
"@fedify/fedify/webfinger": "../../webfinger/mod.ts", | ||
"markdown-it": "npm:markdown-it@^14.0.0", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"scrypt": "https://deno.land/x/[email protected]/mod.ts", | ||
"sanitize-html": "npm:sanitize-html@^2.12.1", | ||
"uuidv7": "npm:uuidv7@^0.6.3" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"@js-temporal/polyfill": "npm:@js-temporal/polyfill@^0.4.4", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"@std/dotenv/load": "jsr:@std/dotenv@^0.219.1/load", | ||
"@std/path": "jsr:@std/path@^0.219.1", | ||
"@std/semver": "jsr:@std/semver@^0.219.1", | ||
"@fedify/fedify": "../../mod.ts", | ||
"@fedify/fedify/federation": "../../federation/mod.ts", | ||
"@fedify/fedify/httpsig": "../../httpsig/mod.ts", | ||
"@fedify/fedify/runtime": "../../runtime/mod.ts", | ||
"@fedify/fedify/vocab": "../../vocab/mod.ts", | ||
"@fedify/fedify/webfinger": "../../webfinger/mod.ts", | ||
"markdown-it": "npm:markdown-it@^14.0.0", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"scrypt": "https://deno.land/x/[email protected]/mod.ts", | ||
"sanitize-html": "npm:sanitize-html@^2.12.1", | ||
"uuidv7": "npm:uuidv7@^0.6.3" | ||
} | ||
} |
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
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,10 +1,10 @@ | ||
import * as mf from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { | ||
assertEquals, | ||
assertNotEquals, | ||
assertRejects, | ||
assertStrictEquals, | ||
} from "jsr:@std/assert@^0.218.2"; | ||
} from "@std/assert"; | ||
import * as mf from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { doesActorOwnKey, verify } from "../httpsig/mod.ts"; | ||
import { mockDocumentLoader } from "../testing/docloader.ts"; | ||
import { privateKey2, publicKey2 } from "../testing/keys.ts"; | ||
|
Oops, something went wrong.