Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Nov 23, 2024
2 parents 1fbdc9c + 0c98b3d commit 1043e41
Show file tree
Hide file tree
Showing 33 changed files with 1,557 additions and 36 deletions.
33 changes: 33 additions & 0 deletions lexicons/frontpage/post.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"lexicon": 1,
"id": "fyi.unravel.frontpage.post",
"defs": {
"main": {
"type": "record",
"description": "Record containing a Frontpage post.",
"key": "tid",
"record": {
"type": "object",
"required": ["title", "url", "createdAt"],
"properties": {
"title": {
"type": "string",
"maxLength": 3000,
"maxGraphemes": 300,
"description": "The title of the post."
},
"url": {
"type": "string",
"format": "uri",
"description": "The URL of the post."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp when this post was originally created."
}
}
}
}
}
}
42 changes: 42 additions & 0 deletions lexicons/linkat/board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"lexicon": 1,
"id": "blue.linkat.board",
"defs": {
"main": {
"type": "record",
"description": "Record containing a cards of your profile.",
"key": "literal:self",
"record": {
"type": "object",
"required": ["cards"],
"properties": {
"cards": {
"type": "array",
"description": "List of cards in the board.",
"items": {
"type": "ref",
"ref": "#card"
}
}
}
}
},
"card": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL of the link"
},
"text": {
"type": "string",
"description": "Text of the card"
},
"emoji": {
"type": "string",
"description": "Emoji of the card"
}
}
}
}
}
63 changes: 63 additions & 0 deletions lexicons/whiteWind/defs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"lexicon": 1,
"id": "com.whtwnd.blog.defs",
"defs": {
"blogEntry": {
"type": "object",
"required": ["content"],
"properties": {
"content": {
"type": "string",
"maxLength": 100000
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
},
"comment": {
"type": "object",
"required": ["content", "entryUri"],
"properties": {
"content": {
"type": "string",
"maxLength": 1000
},
"entryUri": {
"type": "string",
"format": "at-uri"
}
}
},
"ogp": {
"type": "object",
"required": ["url"],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"blobMetadata": {
"type": "object",
"required": ["blobref"],
"properties": {
"blobref": {
"type": "blob",
"accept": ["*/*"]
},
"name": {
"type": "string"
}
}
}
}
}
54 changes: 54 additions & 0 deletions lexicons/whiteWind/entry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"lexicon": 1,
"id": "com.whtwnd.blog.entry",
"defs": {
"main": {
"type": "record",
"description": "A declaration of a post.",
"key": "tid",
"record": {
"type": "object",
"required": ["content"],
"properties": {
"content": {
"type": "string",
"maxLength": 100000
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"title": {
"type": "string",
"maxLength": 1000
},
"ogp": {
"type": "ref",
"ref": "com.whtwnd.blog.defs#ogp"
},
"theme": {
"type": "string",
"enum": ["github-light"]
},
"blobs": {
"type": "array",
"items": {
"type": "ref",
"ref": "com.whtwnd.blog.defs#blobMetadata"
}
},
"isDraft": {
"type": "boolean",
"description": "(DEPRECATED) Marks this entry as draft to tell AppViews not to show it to anyone except for the author"
},
"visibility": {
"type": "string",
"enum": ["public", "url", "author"],
"default": "public",
"description": "Tells the visibility of the article to AppView."
}
}
}
}
}
}
Loading

0 comments on commit 1043e41

Please sign in to comment.