Skip to content

Commit 45d6f5b

Browse files
CissiBotjackwener
andauthored
feat(uiverse): add Uiverse code and preview adapters (#1000)
* feat(uiverse): add code and preview adapters * fix(manifest): register uiverse commands * docs(uiverse): add usage examples --------- Co-authored-by: jackwener <jakevingoo@gmail.com>
1 parent 3ebc46f commit 45d6f5b

11 files changed

Lines changed: 686 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ To load the source Browser Bridge extension:
204204
| **xianyu** | `search` `item` `chat` |
205205
| **xiaoe** | `courses` `detail` `catalog` `play-url` `content` |
206206
| **quark** | `ls` `mkdir` `mv` `rename` `rm` `save` `share-tree` |
207+
| **uiverse** | `code` `preview` |
207208

208209
87+ adapters in total — **[→ see all supported sites & commands](./docs/adapters/index.md)**
209210

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ npm link
206206
| **xiaohongshu** | `search` `notifications` `feed` `user` `download` `publish` `creator-notes` `creator-note-detail` `creator-notes-summary` `creator-profile` `creator-stats` | 浏览器 |
207207
| **xiaoe** | `courses` `detail` `catalog` `play-url` `content` | 浏览器 |
208208
| **quark** | `ls` `mkdir` `mv` `rename` `rm` `save` `share-tree` | 浏览器 |
209+
| **uiverse** | `code` `preview` | 浏览器 |
209210
| **apple-podcasts** | `search` `episodes` `top` | 公开 |
210211
| **xiaoyuzhou** | `podcast` `podcast-episodes` `episode` | 公开 |
211212
| **zhihu** | `hot` `search` `question` `download` `follow` `like` `favorite` `comment` `answer` | 浏览器 |

cli-manifest.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13852,6 +13852,85 @@
1385213852
"modulePath": "twitter/unfollow.js",
1385313853
"sourceFile": "twitter/unfollow.js"
1385413854
},
13855+
{
13856+
"site": "uiverse",
13857+
"name": "code",
13858+
"description": "Export Uiverse component code (HTML, CSS, React, or Vue)",
13859+
"domain": "uiverse.io",
13860+
"strategy": "public",
13861+
"browser": true,
13862+
"args": [
13863+
{
13864+
"name": "input",
13865+
"type": "str",
13866+
"required": true,
13867+
"positional": true,
13868+
"help": "Uiverse URL or author/slug identifier"
13869+
},
13870+
{
13871+
"name": "target",
13872+
"type": "str",
13873+
"required": true,
13874+
"help": "Code target to export",
13875+
"choices": [
13876+
"html",
13877+
"css",
13878+
"react",
13879+
"vue"
13880+
]
13881+
}
13882+
],
13883+
"columns": [
13884+
"target",
13885+
"username",
13886+
"slug",
13887+
"language",
13888+
"length"
13889+
],
13890+
"type": "js",
13891+
"modulePath": "uiverse/code.js",
13892+
"sourceFile": "uiverse/code.js"
13893+
},
13894+
{
13895+
"site": "uiverse",
13896+
"name": "preview",
13897+
"description": "Capture a screenshot of the Uiverse preview element",
13898+
"domain": "uiverse.io",
13899+
"strategy": "public",
13900+
"browser": true,
13901+
"args": [
13902+
{
13903+
"name": "input",
13904+
"type": "str",
13905+
"required": true,
13906+
"positional": true,
13907+
"help": "Uiverse URL or author/slug identifier"
13908+
},
13909+
{
13910+
"name": "output",
13911+
"type": "str",
13912+
"required": false,
13913+
"help": "Output image path (defaults to a temp file)"
13914+
},
13915+
{
13916+
"name": "padding",
13917+
"type": "int",
13918+
"required": false,
13919+
"default": 8,
13920+
"help": "Extra padding around the captured preview in pixels"
13921+
}
13922+
],
13923+
"columns": [
13924+
"username",
13925+
"slug",
13926+
"width",
13927+
"height",
13928+
"output"
13929+
],
13930+
"type": "js",
13931+
"modulePath": "uiverse/preview.js",
13932+
"sourceFile": "uiverse/preview.js"
13933+
},
1385513934
{
1385613935
"site": "v2ex",
1385713936
"name": "daily",

0 commit comments

Comments
 (0)