-
Notifications
You must be signed in to change notification settings - Fork 92
feat: add standard site lexicons to project #297
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
Merged
+547
−19
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9e1b579
feat: generate lexicons on postinstall & log out marshalling to stand…
jonathanyeong 9fba72d
feat: commit lexicons
jonathanyeong 2cbd92a
fix: add atproto/lex package (missed when cherry picking)
jonathanyeong 5c1a074
fix: add nuxt prepare step inst postinstall & ignore lexicon types in…
danielroe 4204a04
chore: restore full script
danielroe 37400af
refactor: generate lexicons
danielroe 563cc39
Merge remote-tracking branch 'origin/main' into feat/add-lexicons
danielroe 257d3e9
[autofix.ci] apply automated fixes
autofix-ci[bot] 5bc8260
Merge branch 'main' into feat/add-lexicons
jonathanyeong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -36,3 +36,6 @@ test-results/ | |
|
|
||
| # Lighthouse | ||
| .lighthouseci | ||
|
|
||
| # generated files | ||
| shared/types/lexicons | ||
This file contains hidden or 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 hidden or 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 @@ | ||
| { | ||
| "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" | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,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." | ||
| } |
This file contains hidden or 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,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 | ||
| } |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 🤔.