-
Notifications
You must be signed in to change notification settings - Fork 94
FLPATH-3243 | [UI] Plugin skeleton - App shell and navigation #2425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
asmasarw
wants to merge
6
commits into
redhat-developer:main
Choose a base branch
from
asmasarw:feature/dcm-nav
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,208
−306
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
794f11a
Create Adminstrator Sidebar Menu
asmasarw d245065
Fix CI
asmasarw 1af8f9f
Fix CI
asmasarw 1153ad2
Fix CI
asmasarw 085b4ef
Merge branch 'redhat-developer:main' into feature/dcm-nav
asmasarw 889ad9a
Merge branch 'redhat-developer:main' into feature/dcm-nav
asmasarw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,41 @@ | ||
| --- | ||
| # https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: System | ||
| metadata: | ||
| name: examples | ||
| spec: | ||
| owner: guests | ||
| --- | ||
| # https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: Component | ||
| metadata: | ||
| name: example-website | ||
| spec: | ||
| type: website | ||
| lifecycle: experimental | ||
| owner: guests | ||
| system: examples | ||
| providesApis: [example-grpc-api] | ||
| --- | ||
| # https://backstage.io/docs/features/software-catalog/descriptor-format#kind-api | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: API | ||
| metadata: | ||
| name: example-grpc-api | ||
| spec: | ||
| type: grpc | ||
| lifecycle: experimental | ||
| owner: guests | ||
| system: examples | ||
| definition: | | ||
| syntax = "proto3"; | ||
|
|
||
| service Exampler { | ||
| rpc Example (ExampleMessage) returns (ExampleMessage) {}; | ||
| } | ||
|
|
||
| message ExampleMessage { | ||
| string example = 1; | ||
| }; |
This file contains hidden or 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,17 @@ | ||
| --- | ||
| # https://backstage.io/docs/features/software-catalog/descriptor-format#kind-user | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: User | ||
| metadata: | ||
| name: guest | ||
| spec: | ||
| memberOf: [guests] | ||
| --- | ||
| # https://backstage.io/docs/features/software-catalog/descriptor-format#kind-group | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: Group | ||
| metadata: | ||
| name: guests | ||
| spec: | ||
| type: team | ||
| children: [] |
This file contains hidden or 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,8 @@ | ||
| apiVersion: backstage.io/v1alpha1 | ||
| kind: Component | ||
| metadata: | ||
| name: ${{ values.name | dump }} | ||
| spec: | ||
| type: service | ||
| owner: user:guest | ||
| lifecycle: experimental |
This file contains hidden or 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,17 @@ | ||
| /* | ||
| * Copyright Red Hat, Inc. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| console.log('Hello from ${{ values.name }}!'); |
This file contains hidden or 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,5 @@ | ||
| { | ||
| "name": "${{ values.name }}", | ||
| "private": true, | ||
| "dependencies": {} | ||
| } |
This file contains hidden or 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,74 @@ | ||
| apiVersion: scaffolder.backstage.io/v1beta3 | ||
| # https://backstage.io/docs/features/software-catalog/descriptor-format#kind-template | ||
| kind: Template | ||
| metadata: | ||
| name: example-nodejs-template | ||
| title: Example Node.js Template | ||
| description: An example template for the scaffolder that creates a simple Node.js service | ||
| spec: | ||
| owner: user:guest | ||
| type: service | ||
|
|
||
| # These parameters are used to generate the input form in the frontend, and are | ||
| # used to gather input data for the execution of the template. | ||
| parameters: | ||
| - title: Fill in some steps | ||
| required: | ||
| - name | ||
| properties: | ||
| name: | ||
| title: Name | ||
| type: string | ||
| description: Unique name of the component | ||
| ui:autofocus: true | ||
| ui:options: | ||
| rows: 5 | ||
| - title: Choose a location | ||
| required: | ||
| - repoUrl | ||
| properties: | ||
| repoUrl: | ||
| title: Repository Location | ||
| type: string | ||
| ui:field: RepoUrlPicker | ||
| ui:options: | ||
| allowedHosts: | ||
| - github.com | ||
|
|
||
| # These steps are executed in the scaffolder backend, using data that we gathered | ||
| # via the parameters above. | ||
| steps: | ||
| # Each step executes an action, in this case one templates files into the working directory. | ||
| - id: fetch-base | ||
| name: Fetch Base | ||
| action: fetch:template | ||
| input: | ||
| url: ./content | ||
| values: | ||
| name: ${{ parameters.name }} | ||
|
|
||
| # This step publishes the contents of the working directory to GitHub. | ||
| - id: publish | ||
| name: Publish | ||
| action: publish:github | ||
| input: | ||
| allowedHosts: ['github.com'] | ||
| description: This is ${{ parameters.name }} | ||
| repoUrl: ${{ parameters.repoUrl }} | ||
|
|
||
| # The final step is to register our new component in the catalog. | ||
| - id: register | ||
| name: Register | ||
| action: catalog:register | ||
| input: | ||
| repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }} | ||
| catalogInfoPath: '/catalog-info.yaml' | ||
|
|
||
| # Outputs are displayed to the user after a successful execution of the template. | ||
| output: | ||
| links: | ||
| - title: Repository | ||
| url: ${{ steps['publish'].output.remoteUrl }} | ||
| - title: Open in catalog | ||
| icon: catalog | ||
| entityRef: ${{ steps['register'].output.entityRef }} |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Guest rbac superuser
🐞 Bug⛨ SecurityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools