Skip to content
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

[4.6.x] refactor: refactor api score rulesets module #10151

Open
wants to merge 1 commit into
base: 4.6.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ import { DateAgoPipe } from '../../../shared/pipes/date-ago.pipe';
MatButtonModule,
MatTooltipModule,
MatIconModule,
DateAgoPipe,
GioLoaderModule,
GioCardEmptyStateModule,
DateAgoPipe,
],
})
export class ApiScoreDashboardModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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.
*/

import { NgModule } from '@angular/core';
import { MatCardModule } from '@angular/material/card';
import { MatButtonModule } from '@angular/material/button';
import { MatExpansionModule } from '@angular/material/expansion';
import { AsyncPipe, NgIf } from '@angular/common';
import { MatMenuModule } from '@angular/material/menu';
import { MatIconModule } from '@angular/material/icon';
import { RouterLink } from '@angular/router';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import {
GioBannerModule,
GioCardEmptyStateModule,
GioFormFilePickerModule,
GioFormSelectionInlineModule,
GioLoaderModule,
GioSaveBarModule,
} from '@gravitee/ui-particles-angular';
import { MatTooltipModule } from '@angular/material/tooltip';

import { ApiScoreRulesetsComponent } from './api-score-rulesets.component';
import { ImportApiScoreRulesetComponent } from './import/import-api-score-ruleset.component';
import { EditApiScoreRulesetComponent } from './edit/edit-api-score-ruleset.component';
import { ImportScoringFunctionComponent } from './import-function/import-scoring-function.component';
import { RulesetFormatPipe } from './ruleset-format-mapper.pipe';

import { ApiImportFilePickerComponent } from '../../api/component/api-import-file-picker/api-import-file-picker.component';
import { GioPermissionModule } from '../../../shared/components/gio-permission/gio-permission.module';
import { FilePreviewComponent } from '../../../shared/components/file-preview/file-preview.component';

@NgModule({
declarations: [ApiScoreRulesetsComponent, ImportApiScoreRulesetComponent, EditApiScoreRulesetComponent, ImportScoringFunctionComponent],
imports: [
ReactiveFormsModule,
RouterLink,
AsyncPipe,
NgIf,

MatCardModule,
MatButtonModule,
MatMenuModule,
MatExpansionModule,
MatIconModule,
MatFormFieldModule,
MatInputModule,
MatTooltipModule,

GioFormFilePickerModule,
GioFormSelectionInlineModule,
GioCardEmptyStateModule,
GioBannerModule,
GioSaveBarModule,
GioLoaderModule,
GioPermissionModule,

FilePreviewComponent,
ApiImportFilePickerComponent,

RulesetFormatPipe,
],
exports: [ApiScoreRulesetsComponent, ImportApiScoreRulesetComponent, EditApiScoreRulesetComponent, ImportScoringFunctionComponent],
})
export class ApiScoreRulesetsModule {}