Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ test-results/

# Lighthouse
.lighthouseci

# generated files
shared/types/lexicons
3 changes: 2 additions & 1 deletion knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "https://unpkg.com/knip@5/schema.json",
"includeEntryExports": true,
"ignoreExportsUsedInFile": true,
"ignoreBinaries": ["simple-git-hooks", "lint-staged"],
"ignoreBinaries": ["simple-git-hooks", "lint-staged", "lex"],
"ignore": ["shared/types/lexicons/**"],
"workspaces": {
".": {
"entry": [
Expand Down
14 changes: 14 additions & 0 deletions lexicons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"lexicons": ["site.standard.document"],
"resolutions": {
"com.atproto.repo.strongRef": {
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.strongRef",
"cid": "bafyreifrkdbnkvfjujntdaeigolnrjj3srrs53tfixjhmacclps72qlov4"
},
"site.standard.document": {
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.document",
"cid": "bafyreigdukg62hmel4jbdvghdsoaphslhrdktmahzdyokomuka6yejetwa"
}
}
}
22 changes: 22 additions & 0 deletions lexicons/com/atproto/repo/strongRef.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "com.atproto.repo.strongRef",
"defs": {
"main": {
"type": "object",
"required": ["uri", "cid"],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"description": "A URI with a content-hash fingerprint."
}
79 changes: 79 additions & 0 deletions lexicons/site/standard/document.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"id": "site.standard.document",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": ["site", "title", "publishedAt"],
"properties": {
"path": {
"type": "string",
"description": "Combine with site or publication url to construct a canonical URL to the document. Prepend with a leading slash."
},
"site": {
"type": "string",
"format": "uri",
"description": "Points to a publication record (at://) or a publication url (https://) for loose documents. Avoid trailing slashes."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"maxLength": 1280,
"description": "Array of strings used to tag or categorize the document. Avoid prepending tags with hashtags.",
"maxGraphemes": 128
},
"title": {
"type": "string",
"maxLength": 5000,
"description": "Title of the document.",
"maxGraphemes": 500
},
"content": {
"refs": [],
"type": "union",
"closed": false,
"description": "Open union used to define the record's content. Each entry must specify a $type and may be extended with other lexicons to support additional content formats."
},
"updatedAt": {
"type": "string",
"format": "datetime",
"description": "Timestamp of the documents last edit."
},
"coverImage": {
"type": "blob",
"accept": ["image/*"],
"maxSize": 1000000,
"description": "Image to used for thumbnail or cover image. Less than 1MB is size."
},
"bskyPostRef": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "Strong reference to a Bluesky post. Useful to keep track of comments off-platform."
},
"description": {
"type": "string",
"maxLength": 30000,
"description": "A brief description or excerpt from the document.",
"maxGraphemes": 3000
},
"publishedAt": {
"type": "string",
"format": "datetime",
"description": "Timestamp of the documents publish time."
},
"textContent": {
"type": "string",
"description": "Plaintext representation of the documents contents. Should not contain markdown or other formatting."
}
}
},
"description": "A document record representing a published article, blog post, or other content. Documents can belong to a publication or exist independently."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
2 changes: 1 addition & 1 deletion lunaria/files/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
},
"contributors": {
"title": "Contributors",
"description": "npmx is fully open source, built by an amazing community of contributors.",
"description": "npmx is fully open source, built by an amazing community of contributors. Join us and let's build the npm browsing experience we always wanted, together.",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielroe hmm not sure how this was pulled in 🤔.

"loading": "Loading contributors...",
"error": "Failed to load contributors",
"view_profile": "View {name}'s GitHub profile"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"generate": "nuxt generate",
"npmx-connector": "pnpm --filter npmx-connector dev",
"preview": "nuxt preview",
"postinstall": "nuxt prepare && simple-git-hooks",
"postinstall": "nuxt prepare && simple-git-hooks && pnpm generate:lexicons",
"generate:lexicons": "lex build --lexicons lexicons --out shared/types/lexicons --clear",
"test": "vite test",
"test:browser": "playwright test",
"test:browser:ui": "playwright test --ui",
Expand All @@ -31,6 +32,7 @@
"test:unit": "vite test --project unit"
},
"dependencies": {
"@atproto/lex": "^0.0.13",
"@deno/doc": "jsr:^0.189.1",
"@iconify-json/simple-icons": "^1.2.67",
"@iconify-json/vscode-icons": "^1.2.40",
Expand Down
Loading