mirror of
https://github.com/outline/outline.git
synced 2026-11-27 07:58:51 +03:00
feat: Figma integration (#11044)
* 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>
This commit is contained in:
1 parent
bffd11b593
commit
5584089441
33 files changed
+944
-112
No files matched your search
@@ -20,6 +20,9 @@ export const GitHubCallbackSchema = BaseSchema.extend({
|
||||
.refine((req) => !(isEmpty(req.code) && isEmpty(req.error)), {
|
||||
message: "one of code or error is required",
|
||||
})
|
||||
.refine((req) => isEmpty(req.code) || isEmpty(req.error), {
|
||||
message: "code and error cannot both be present",
|
||||
})
|
||||
.refine(
|
||||
(req) =>
|
||||
!(
|
||||
|
||||
@@ -226,11 +226,10 @@ export class GitHub {
|
||||
* @param actor User attempting to unfurl resource url
|
||||
* @returns An object containing resource details e.g, a GitHub Pull Request details
|
||||
*/
|
||||
public static unfurl: UnfurlSignature = async (url: string, actor: User) => {
|
||||
// Early return if URL doesn't match GitHub pattern (before any DB queries)
|
||||
public static unfurl: UnfurlSignature = async (url: string, actor?: User) => {
|
||||
const resource = GitHub.parseUrl(url);
|
||||
|
||||
if (!resource) {
|
||||
if (!resource || !actor) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user