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.
[3591] Add EditProject subtitle extension point
Bug: eclipse-sirius#3591 Signed-off-by: William Piers <[email protected]>
- Loading branch information
1 parent
bc1844c
commit a41d5eb
Showing
6 changed files
with
90 additions
and
17 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
20 changes: 20 additions & 0 deletions
20
...application/src/views/edit-project/EditProjectNavbar/EditProjectNavbarExtensionPoints.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 { ComponentExtensionPoint } from '@eclipse-sirius/sirius-components-core'; | ||
import { EditProjectNavbarSubtitleProps } from './EditProjectNavbar.types'; | ||
|
||
export const editProjectNavbarSubtitleExtensionPoint: ComponentExtensionPoint<EditProjectNavbarSubtitleProps> = { | ||
identifier: 'editProjectNavbar#subtitle', | ||
FallbackComponent: () => null, | ||
}; |
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,36 @@ | ||
/******************************************************************************* | ||
* 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 | ||
*******************************************************************************/ | ||
const fetch = require("node-fetch"); | ||
|
||
const accessToken = process.env.GITHUB_TOKEN; | ||
const query = ` | ||
query { | ||
repository(owner: "eclipse-sirius", name:"sirius-web") { | ||
issues(states:CLOSED) { | ||
totalCount | ||
} | ||
} | ||
}`; | ||
const variables = {}; | ||
|
||
const response = await fetch("https://api.github.com/graphql", { | ||
method: "POST", | ||
body: JSON.stringify({ query, variables }), | ||
headers: { | ||
Authorization: `Bearer ${accessToken}`, | ||
"Content-type": "application/json; charset=UTF-8", | ||
}, | ||
}); | ||
|
||
const body = await response.json(); | ||
console.log(body); |