mirror of
https://github.com/outline/outline.git
synced 2026-01-24 20:29:18 -06:00
* linear settings and oauth * unfurl * unfurl impl fix for recent merge from main * fetch labels * state icon * linear icon * uninstall hook * lint * i18n * cleanup * use workspace key, reduce icon size * determine completion percentage * extract completionPercentage to separate method
26 lines
790 B
TypeScript
26 lines
790 B
TypeScript
import { IsOptional } from "class-validator";
|
|
import { Environment } from "@server/env";
|
|
import { Public } from "@server/utils/decorators/Public";
|
|
import environment from "@server/utils/environment";
|
|
import { CannotUseWithout } from "@server/utils/validators";
|
|
|
|
class LinearPluginEnvironment extends Environment {
|
|
/**
|
|
* Linear OAuth2 app client id. To enable integration with Linear.
|
|
*/
|
|
@Public
|
|
@IsOptional()
|
|
public LINEAR_CLIENT_ID = this.toOptionalString(environment.LINEAR_CLIENT_ID);
|
|
|
|
/**
|
|
* Linear OAuth2 app client secret. To enable integration with Linear.
|
|
*/
|
|
@IsOptional()
|
|
@CannotUseWithout("LINEAR_CLIENT_ID")
|
|
public LINEAR_CLIENT_SECRET = this.toOptionalString(
|
|
environment.LINEAR_CLIENT_SECRET
|
|
);
|
|
}
|
|
|
|
export default new LinearPluginEnvironment();
|