mirror of
https://github.com/outline/outline.git
synced 2026-12-06 11:12:32 +03:00
Fix code formatting issues to pass CI checks
This commit is contained in:
1 parent
7ea308a52c
commit
c02bc22cce
11 files changed
+14
-16
No files matched your search
@@ -43,7 +43,8 @@ export const isURLMentionable = ({
|
||||
|
||||
return (
|
||||
hostname === "gitlab.com" &&
|
||||
settings.gitlab?.project.path_with_namespace === pathParts.slice(1, -2).join("/") // ensure installed project path matches with the provided url.
|
||||
settings.gitlab?.project.path_with_namespace ===
|
||||
pathParts.slice(1, -2).join("/") // ensure installed project path matches with the provided url.
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,4 +48,3 @@ export default function Icon({ size = 24, fill = "currentColor" }: Props) {
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ function GitLab() {
|
||||
<>
|
||||
<Text as="p">
|
||||
<Trans>
|
||||
Enable previews of GitLab issues and merge requests in documents by connecting a
|
||||
GitLab project to {appName}.
|
||||
Enable previews of GitLab issues and merge requests in documents
|
||||
by connecting a GitLab project to {appName}.
|
||||
</Trans>
|
||||
</Text>
|
||||
{integrations.gitlab.length ? (
|
||||
@@ -73,8 +73,7 @@ function GitLab() {
|
||||
</Heading>
|
||||
<List>
|
||||
{integrations.gitlab.map((integration) => {
|
||||
const gitlabProject =
|
||||
integration.settings?.gitlab?.project;
|
||||
const gitlabProject = integration.settings?.gitlab?.project;
|
||||
const integrationCreatedBy = integration.user
|
||||
? integration.user.name
|
||||
: undefined;
|
||||
@@ -138,4 +137,3 @@ function GitLab() {
|
||||
}
|
||||
|
||||
export default observer(GitLab);
|
||||
|
||||
@@ -21,4 +21,3 @@ export function GitLabConnectButton(props: Props<HTMLButtonElement>) {
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,4 +14,3 @@ PluginManager.add([
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -5,4 +5,3 @@
|
||||
"description": "Adds a GitLab integration for link unfurling and converting links to mentions.",
|
||||
"after": "linear"
|
||||
}
|
||||
|
||||
@@ -97,4 +97,3 @@ router.get(
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
||||
@@ -15,4 +15,3 @@ export const GitLabCallbackSchema = BaseSchema.extend({
|
||||
});
|
||||
|
||||
export type GitLabCallbackReq = z.infer<typeof GitLabCallbackSchema>;
|
||||
|
||||
@@ -4,4 +4,3 @@ export default {
|
||||
GITLAB_CLIENT_ID: env.GITLAB_CLIENT_ID,
|
||||
GITLAB_CLIENT_SECRET: env.GITLAB_CLIENT_SECRET,
|
||||
};
|
||||
|
||||
@@ -49,4 +49,3 @@ export class GitLabUtils {
|
||||
return `${this.authBaseUrl}?${queryString.stringify(params)}`;
|
||||
}
|
||||
}
|
||||
|
||||
+9
-2
@@ -141,7 +141,9 @@ export const ImportableIntegrationService = {
|
||||
|
||||
export type IssueTrackerIntegrationService = Extract<
|
||||
IntegrationService,
|
||||
IntegrationService.GitHub | IntegrationService.Linear | IntegrationService.GitLab
|
||||
| IntegrationService.GitHub
|
||||
| IntegrationService.Linear
|
||||
| IntegrationService.GitLab
|
||||
>;
|
||||
|
||||
export const IssueTrackerIntegrationService = {
|
||||
@@ -192,7 +194,12 @@ export type IntegrationSettings<T> = T extends IntegrationType.Embed
|
||||
workspace: { id: string; name: string; key: string; logoUrl?: string };
|
||||
};
|
||||
gitlab?: {
|
||||
project: { id: string; name: string; path_with_namespace: string; avatar_url?: string };
|
||||
project: {
|
||||
id: string;
|
||||
name: string;
|
||||
path_with_namespace: string;
|
||||
avatar_url?: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
: T extends IntegrationType.Analytics
|
||||
|
||||
Reference in new issue
Block a user