mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
* OAuth * store logo * unfurl support * refresh token * support for list * embed list * mention menu for all embeds in a list * multi-level list * logo * account level connection * tsc * Update Icon.tsx * coderabbit feedback * RFC 6749 suggestion --------- Co-authored-by: Tom Moor <tom@getoutline.com>
23 lines
548 B
TypeScript
23 lines
548 B
TypeScript
import { Hook, PluginManager } from "@server/utils/PluginManager";
|
|
import config from "../plugin.json";
|
|
import router from "./api/figma";
|
|
import env from "./env";
|
|
import { Figma } from "./figma";
|
|
import { Minute } from "@shared/utils/time";
|
|
|
|
const enabled = !!env.FIGMA_CLIENT_ID && !!env.FIGMA_CLIENT_SECRET;
|
|
|
|
if (enabled) {
|
|
PluginManager.add([
|
|
{
|
|
...config,
|
|
type: Hook.API,
|
|
value: router,
|
|
},
|
|
{
|
|
type: Hook.UnfurlProvider,
|
|
value: { unfurl: Figma.unfurl, cacheExpiry: 10 * Minute.seconds },
|
|
},
|
|
]);
|
|
}
|