https://domlink.deployments.hotsocket.fyi/

I think we're up to speed now?

Changed files
+41 -20
src
support
windows
bluesky
test
support
+15 -12
deno.json
··· 1 1 { 2 - "compilerOptions": { 3 - "lib": [ 4 - "dom", 5 - "es2017", 6 - "dom.iterable", 7 - "deno.ns" 8 - ] 9 - }, 10 - "exclude": [ 11 - "node_modules", 12 - "out" 13 - ] 2 + "compilerOptions": { 3 + "lib": [ 4 + "dom", 5 + "es2017", 6 + "dom.iterable", 7 + "deno.ns" 8 + ] 9 + }, 10 + "imports": { 11 + "@/": "./src/" 12 + }, 13 + "exclude": [ 14 + "node_modules", 15 + "out" 16 + ] 14 17 }
+19 -1
src/desktop.ts
··· 3 3 import { getUriRecord, resolveMiniDoc } from "./support/slingshot.ts"; 4 4 import { Window } from "./windowing_mod.ts"; 5 5 import { Feed } from "./windows/bluesky/feed.ts"; 6 + import { IssueSearch } from "./windows/tangled/issuesearch.ts"; 6 7 7 8 const about = new Window("About", 150).with( 8 9 new Column().with( ··· 39 40 } 40 41 }) 41 42 ); 43 + const repoInput = new Input(); 44 + const tangledIssuesWindowCreator = new Row().with( 45 + repoInput, 46 + new Button("Get Issues", async () => { 47 + const search = new IssueSearch(); 48 + try { 49 + await search.getIssues(repoInput.value); 50 + } catch (e) { 51 + alert(e); 52 + } 53 + Body.with(new Window(`Issues in @${search.repoInfo.owner}/${search.repoInfo.name}`).with( 54 + search 55 + )); 56 + }) 57 + ); 58 + 42 59 const instantiator = new Column().with( 43 60 authorFeedWindowCreator, 44 - listFeedWindowCreator 61 + listFeedWindowCreator, 62 + tangledIssuesWindowCreator 45 63 ).style((x) => x.maxWidth = "100ch"); 46 64 47 65 Body.with(
+2 -2
src/support/constellation.ts
··· 1 - import { AtURI, DID, NSID, ValidateNSID } from "./atproto.ts"; 1 + import { AtURI, AtURIString, DID, NSID, ValidateNSID } from "./atproto.ts"; 2 2 3 3 const BASEURL = "https://constellation.microcosm.blue"; 4 4 ··· 16 16 cursor: string; 17 17 }; 18 18 19 - type Target = AtURI | DID; 19 + type Target = AtURIString | DID; 20 20 /** 21 21 * Retrieves an array of record references to records containing links to the specified target. 22 22 * @throws When the provided NSID is invalid.
+4 -4
src/windows/bluesky/feed.ts
··· 1 1 // formerly src/main.ts. how far we've come. 2 2 3 - import { Button, Column, Container, Image, Label, Row } from "../../domlink.ts"; 3 + import { Button, Column, Container, Image, Label, Row } from "@/domlink.ts"; 4 4 import { AppBskyFeedDefs, AppBskyFeedPost } from '@atcute/bluesky'; 5 - import { AtURI, XQuery } from "../../support/atproto.ts"; 6 - import { FeedResponse as RawFeedResponse } from "../../support/bluesky.ts"; 7 - import { displayAuthorFeed } from "../../desktop.ts"; 5 + import { AtURI, XQuery } from "@/support/atproto.ts"; 6 + import { FeedResponse as RawFeedResponse } from "@/support/bluesky.ts"; 7 + import { displayAuthorFeed } from "@/desktop.ts"; 8 8 9 9 class PostView extends Container { 10 10 constructor(fvp: AppBskyFeedDefs.FeedViewPost) {
+1 -1
test/support/atproto.ts
··· 1 - import { ValidateNSID, ValidateDID, AtURI } from "../../src/support/atproto.ts"; 1 + import { ValidateNSID, ValidateDID, AtURI } from "@/support/atproto.ts"; 2 2 import { assertEquals } from "https://deno.land/std@0.224.0/assert/mod.ts"; 3 3 4 4 Deno.test("ValidateNSID returns NSID for valid input", () => {