mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
5584089441
* 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>
26 lines
779 B
TypeScript
26 lines
779 B
TypeScript
import { Environment } from "@server/env";
|
|
import { Public } from "@server/utils/decorators/Public";
|
|
import environment from "@server/utils/environment";
|
|
import { CannotUseWithout } from "@server/utils/validators";
|
|
import { IsOptional } from "class-validator";
|
|
|
|
class FigmaPluginEnvironment extends Environment {
|
|
/**
|
|
* Figma OAuth2 app client id. To enable integration with Figma.
|
|
*/
|
|
@Public
|
|
@IsOptional()
|
|
public FIGMA_CLIENT_ID = this.toOptionalString(environment.FIGMA_CLIENT_ID);
|
|
|
|
/**
|
|
* Figma OAuth2 app client secret. To enable integration with Figma.
|
|
*/
|
|
@IsOptional()
|
|
@CannotUseWithout("FIGMA_CLIENT_ID")
|
|
public FIGMA_CLIENT_SECRET = this.toOptionalString(
|
|
environment.FIGMA_CLIENT_SECRET
|
|
);
|
|
}
|
|
|
|
export default new FigmaPluginEnvironment();
|