Git Product home page Git Product logo

alfred-workflow-yuque's Issues

node 报错

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>

增加指定知识库搜索

在实际应用中,一个企业会有多个团队,这样就开了很多的一些知识库。但是常用的话其实只有自己的团队知识库,所以能不能只搜索某个知识库,或者某几个
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.