wisinfun / alfred-workflow-yuque Goto Github PK
View Code? Open in Web Editor NEW在 Alfred 中快速搜索语雀文档、浏览器打开文档、复制文档链接、切换文档的分享状态
在 Alfred 中快速搜索语雀文档、浏览器打开文档、复制文档链接、切换文档的分享状态
HTTPError: Response code 401 (Unauthorized)
at Request.<anonymous> (file:///Users/miotlink/Library/Application%20Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.10BC0773-BBC3-4B63-A4B8-F9116E04BA63/node_modules/got/dist/source/as-promise/index.js:86:42)
at Request._onResponseBase (file:///Users/miotlink/Library/Application%20Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.10BC0773-BBC3-4B63-A4B8-F9116E04BA63/node_modules/got/dist/source/core/index.js:704:22)
at async Request._onResponse (file:///Users/miotlink/Library/Application%20Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.10BC0773-BBC3-4B63-A4B8-F9116E04BA63/node_modules/got/dist/source/core/index.js:743:13)
语雀 1.6
Alfred 5.5
darwin 23.4.0
因为没有办法提到一个pr给你,就提个issues给你了
index.js
const scope = process.env.namespace || undefined
const params = new URLSearchParams({
q: alfy.input,
type: 'doc',
related: true,
scope
})
//请求语雀搜索
const data = await alfy
.fetch(`${urlBegin}/api/v2/search?${params}`, {
method: 'GET',
headers: headersList
})
.then(function (datas) {
return datas.data
})
info.plist
<dict>
<key>config</key>
<dict>
<key>default</key>
<string></string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string>知识库的路径</string>
<key>label</key>
<string>知识库路径</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>namespace</string>
</dict>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.