mirror of
https://github.com/makeplane/plane.git
synced 2026-07-14 14:31:37 +02:00
* chore: gitlab integration add project and group APIs * entity connection schema changes + gitlab integration UI and store changes * gitlab integration UI + APIs for entity connections * Merge branch 'preview' into chore-gitlab_integration_ui * Merge branch 'preview' into chore-gitlab_integration_ui * gitlab webhook * sharedwithgroups key in gitlab merge request type * chore: gitlab update issue based on project connection * chore: gitlab integration * merged with preview * merged with preview * yarn fix
39 lines
1014 B
TypeScript
39 lines
1014 B
TypeScript
// stores
|
|
import { makeObservable } from "mobx";
|
|
// plane web store
|
|
import {
|
|
IIntegrationBaseStore,
|
|
IntegrationBaseStore,
|
|
IGitlabAuthStore,
|
|
GitlabAuthStore,
|
|
IGitlabDataStore,
|
|
GitlabDataStore,
|
|
IGitlabEntityConnectionStore,
|
|
GitlabEntityStore,
|
|
} from "@/plane-web/store/integrations";
|
|
import { RootStore } from "@/plane-web/store/root.store";
|
|
|
|
export interface IGitlabStore extends IIntegrationBaseStore {
|
|
// store instances
|
|
auth: IGitlabAuthStore;
|
|
data: IGitlabDataStore;
|
|
entityConnection: IGitlabEntityConnectionStore;
|
|
}
|
|
|
|
export class GitlabStore extends IntegrationBaseStore implements IGitlabStore {
|
|
// store instances
|
|
auth: IGitlabAuthStore;
|
|
data: IGitlabDataStore;
|
|
entityConnection: IGitlabEntityConnectionStore;
|
|
|
|
constructor(protected store: RootStore) {
|
|
super(store);
|
|
makeObservable(this, {});
|
|
|
|
// store instances
|
|
this.auth = new GitlabAuthStore(this);
|
|
this.data = new GitlabDataStore(this);
|
|
this.entityConnection = new GitlabEntityStore(this);
|
|
}
|
|
}
|