alfred-outline
Advanced tools
Comparing version 1.0.0-1 to 1.0.0
10
index.js
const path = require('path'); | ||
const alfy = require('alfy'); | ||
const results = await alfy.fetch(`https://www.getoutline.com/api/documents.search`, { | ||
const protocolAndHost = `https://${process.env.domain || "app.getoutline.com"}`; | ||
const results = await alfy.fetch(`${protocolAndHost}/api/documents.search`, { | ||
method: "POST", | ||
@@ -18,3 +20,3 @@ headers: { | ||
subtitle: result.context.replace(/\<\/?b\>/g, ''), | ||
arg: `https://${process.env.subdomain || "www"}.getoutline.com${result.document.url}`, | ||
arg: `${protocolAndHost}${result.document.url}`, | ||
icon: { | ||
@@ -28,6 +30,6 @@ path: path.join(__dirname, "document.png") | ||
title: "No results - go to Outline homepage", | ||
arg: `https://${process.env.subdomain || "www"}.getoutline.com/home` | ||
arg: `${protocolAndHost}/home` | ||
}]; | ||
} | ||
alfy.output(items); | ||
alfy.output(items); |
{ | ||
"name": "alfred-outline", | ||
"version": "1.0.0-1", | ||
"version": "1.0.0", | ||
"description": "Search your team knowledgebase from the comfort of Alfred", | ||
@@ -5,0 +5,0 @@ "author": { |
# alfred-outline | ||
An Alfred workflow to search your team Outline from the comfort of your desktop. | ||
An Alfred workflow to search your team Outline from the comfort of your desktop. | ||
@@ -23,4 +23,4 @@ Simply type your keyword into Alfred (default: ou) to see instant search results from your Outline knowledge base. Selecting a search result takes you directly to that Outline document in your default web browser. | ||
- `apiToken`: Grab a personal API token from the settings page in Outline: https://www.getoutline.com/settings/tokens | ||
- `subdomain`: This should be your just your teams Outline subdomain, whatever is listed between the protocol and getoutline.com in your browsers address bar: https://\<SUBDOMAIN\>.getoutline.com | ||
- `apiToken`: Grab a personal API token from the settings page in Outline: `https://www.getoutline.com/settings/tokens` or `https://<DOMAIN>/settings/tokens` | ||
- `domain`: This should be your just your teams Outline domain (`<TEAM-SUBDOMAIN>.getoutline.com`) for getoutline.com managed instances and the fully qualified domain without protocol (eg `wiki.mycompany.com`) for self-hosted instances. | ||
@@ -27,0 +27,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30959
28
1
3