forked from eclipse-sirius/sirius-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3557] Add ProjectSettings tab extension point
Bug: eclipse-sirius#3557 Signed-off-by: William Piers <[email protected]>
- Loading branch information
1 parent
baef1d6
commit b82afb2
Showing
7 changed files
with
255 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...b/frontend/sirius-web-application/src/views/project-settings/ProjectSettingsView.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Obeo. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
export interface ProjectSettingsParams { | ||
projectId: string; | ||
} | ||
|
||
export interface ProjectSettingTabContribution { | ||
id: string; | ||
title: string; | ||
icon: React.ReactElement; | ||
component: (props: ProjectSettingTabProps) => JSX.Element | null; | ||
} | ||
|
||
export interface ProjectSettingTabProps {} | ||
|
||
export interface ProjectSettingsViewState { | ||
selectedTabId: string | null; | ||
} | ||
|
||
export interface GQLGetProjectVariables { | ||
projectId: string; | ||
} | ||
|
||
export interface GQLGetProjectData { | ||
viewer: GQLViewer; | ||
} | ||
|
||
export interface GQLViewer { | ||
project: GQLProject | null; | ||
} | ||
|
||
export interface GQLProject { | ||
id: string; | ||
name: string; | ||
} |
20 changes: 20 additions & 0 deletions
20
.../sirius-web-application/src/views/project-settings/ProjectSettingsViewExtensionPoints.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021, 2024 Obeo. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
import { DataExtensionPoint } from '@eclipse-sirius/sirius-components-core'; | ||
import { ProjectSettingTabContribution } from './ProjectSettingsView.types'; | ||
|
||
export const projectSettingsTabExtensionPoint: DataExtensionPoint<Array<ProjectSettingTabContribution>> = { | ||
identifier: 'projectSettings#tabContribution', | ||
fallback: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters