Skip to content

Commit

Permalink
refactor(plugin-store): Standardize create and edit of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger authored and Paula-Kli committed Aug 30, 2023
1 parent 4f839af commit f0a1f34
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 309 deletions.
182 changes: 59 additions & 123 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"buffer": "^6.0.3",
"file-saver": "^2.0.5",
"http-status-codes": "^2.2.0",
"js-yaml": "^4.1.0",
"ngx-cookie": "^6.0.1",
"ngx-skeleton-loader": "^8.0.0",
"ngx-toastr": "^17.0.2",
Expand All @@ -53,6 +54,7 @@
"@playwright/test": "^1.36.2",
"@types/file-saver": "^2.0.5",
"@types/jasmine": "~4.3.5",
"@types/js-yaml": "^4.0.5",
"@types/node": "^20.4.4",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const routes: Routes = [
children: [
{
path: '',
data: { breadcrumb: "overview" },
data: { breadcrumb: 'overview' },
component: PluginStoreOverviewComponent,
},
{
Expand All @@ -97,7 +97,8 @@ const routes: Routes = [
{
path: ':plugin',
data: {
breadcrumb: (data: Data) => data.plugin?.content.metadata.displayName,
breadcrumb: (data: Data) =>
data.plugin?.content.metadata.displayName,
redirect: (data: Data) => `/plugin/${data.plugin?.id}`,
},
component: PluginWrapperComponent,
Expand All @@ -109,8 +110,8 @@ const routes: Routes = [
redirect: (data: Data) => `/plugin/${data.plugin?.id}`,
},
component: PluginDetailsComponent,
}
]
},
],
},
],
},
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ import { PipelineGitInputComponent } from './projects/models/backup-settings/cre
import { PipelineT4CInputComponent } from './projects/models/backup-settings/create-pipeline/pipeline-input/pipeline-t4c-input/pipeline-t4c-input.component';
import { PluginWrapperComponent } from './plugins/store/plugin-wrapper/plugin-wrapper.component';
import { PluginDetailsComponent } from './plugins/store/plugin-detail/plugin-details.component';
import { EditPluginComponent } from './plugins/store/edit-plugin/edit-plugin.component';

@NgModule({
declarations: [
Expand Down Expand Up @@ -197,6 +198,7 @@ import { PluginDetailsComponent } from './plugins/store/plugin-detail/plugin-det
PluginStoreOverviewComponent,
PluginWrapperComponent,
PluginDetailsComponent,
EditPluginComponent,
ProjectDetailsComponent,
ProjectMetadataComponent,
ProjectOverviewComponent,
Expand Down
Loading

0 comments on commit f0a1f34

Please sign in to comment.