Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <ng-container [ngSwitch]="step"> <!-- Configuration step --> <div *ngSwitchCase="1"> <form name="form" #formDir="ngForm" [formGroup]="configForm" novalidate> <div class="card"> <div class="card-...
15,628
44.17052
192
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.spec.ts
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { Router } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing';...
9,011
26.900929
108
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts
import { Component, OnInit } from '@angular/core'; import { ValidatorFn, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import _ from 'lodash'; import { forkJoin as observableForkJoin } from 'rxjs'; import { MgrModuleService } from '~/app/shared/api/mgr-module.service'; import { Telemet...
9,037
28.344156
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/upgrade/upgrade.component.html
<ng-container *ngIf="{upgradeInfo: upgradeInfo$ | async, error: upgradeInfoError$ } as upgrade"> <div class="row h-25 ms-1" *ngIf="!upgrade.upgradeInfoError && upgrade.upgradeInfo as upgradeInfo; else checkUpgrade"> <ng-container *ngIf="healthData$ | async as healthData"> <div class="col-lg-3 h-50 d-...
3,993
38.156863
128
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/upgrade/upgrade.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { UpgradeComponent } from './upgrade.component'; import { configureTestBed } from '~/testing/unit-test-helper'; import { SummaryService } from '~/app/shared/services/summary.service'; import { BehaviorSubject, of } from 'rxjs'; import { UpgradeS...
5,272
34.153333
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/upgrade/upgrade.component.ts
import { Component, OnInit } from '@angular/core'; import { Observable, of } from 'rxjs'; import { catchError, ignoreElements } from 'rxjs/operators'; import { HealthService } from '~/app/shared/api/health.service'; import { UpgradeService } from '~/app/shared/api/upgrade.service'; import { Icons } from '~/app/shared/e...
1,787
34.76
80
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-v3.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { NgbNavModule, NgbPopoverModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import { ChartsModu...
1,601
32.375
109
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/pg-summary.pipe.spec.ts
import { TestBed } from '@angular/core/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { PgCategoryService } from '../shared/pg-category.service'; import { PgSummaryPipe } from './pg-summary.pipe'; describe('OsdSummaryPipe', () => { let pipe: PgSummaryPipe; configureTestBed({ ...
786
20.27027
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/pg-summary.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import _ from 'lodash'; import { PgCategoryService } from '~/app/ceph/shared/pg-category.service'; @Pipe({ name: 'pgSummary' }) export class PgSummaryPipe implements PipeTransform { constructor(private pgCategoryService: PgCategoryService) {} transform(value:...
806
27.821429
80
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card-row/card-row.component.html
<div class="d-flex pl-1 pb-2 pt-2"> <div class="ms-2 me-auto"> <a [routerLink]="link" *ngIf="link && total > 0; else noLinkTitle" [ngPlural]="total" i18n> {{ total }} <ng-template ngPluralCase="=0">{{ title }}</ng-template> <ng-template ngPluralCase="=1">{{ title }}</ng-te...
4,450
25.494048
105
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card-row/card-row.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CardRowComponent } from './card-row.component'; describe('CardRowComponent', () => { let component: CardRowComponent; let fixture: ComponentFixture<CardRowComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ ...
598
23.958333
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card-row/card-row.component.ts
import { Component, Input, OnChanges } from '@angular/core'; import { Icons } from '~/app/shared/enum/icons.enum'; @Component({ selector: 'cd-card-row', templateUrl: './card-row.component.html', styleUrls: ['./card-row.component.scss'] }) export class CardRowComponent implements OnChanges { @Input() title: s...
724
19.714286
60
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.html
<div class="card shadow-sm flex-fill"> <h4 class="card-title mt-4 ms-4 mb-0"> {{ cardTitle }} </h4> <div class="card-body ps-0 pe-0"> <ng-content></ng-content> </div> </div>
190
20.222222
40
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { CardComponent } from './card.component'; describe('CardComponent', () => { let component: CardComponent; let fix...
954
27.088235
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/card/card.component.ts
import { Component, Input } from '@angular/core'; @Component({ selector: 'cd-card', templateUrl: './card.component.html', styleUrls: ['./card.component.scss'] }) export class CardComponent { @Input() cardTitle: string; }
232
18.416667
49
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-area-chart/dashboard-area-chart.component.html
<div class="row"> <div class="col-3 center-text"> <br> <b class="chartTitle" i18n>{{ chartTitle }}</b> <br> <span [ngbTooltip]="label" i18n>{{currentData}} {{ currentDataUnits }}</span> <br> <span [ngbTooltip]="label2" i18n>{{currentData2}} {{ currentDataUnits2 }}</s...
610
24.458333
62
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-area-chart/dashboard-area-chart.component.spec.ts
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CssHelper } from '~/app/shared/classes/css-helper'; import { DimlessBinaryPerSecondPipe } from '~/app/shared/pipes/dimless-binary-per-second.pipe'; import { DimlessBinaryPipe } from '~/app/shar...
1,257
33
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-area-chart/dashboard-area-chart.component.ts
import { AfterViewInit, Component, Input, OnChanges, ViewChild } from '@angular/core'; import { CssHelper } from '~/app/shared/classes/css-helper'; import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe'; import { DimlessBinaryPerSecondPipe } from '~/app/shared/pipes/dimless-binary-per-second.pipe';...
8,586
28.010135
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-pie/dashboard-pie.component.html
<div class="chart-container"> <canvas baseChart #chartCanvas [datasets]="chartConfig.dataset" [chartType]="chartConfig.chartType" [options]="chartConfig.options" [labels]="chartConfig.labels" [colors]="chartConfig.colors" [plugins]="doughnutChartPl...
460
26.117647
45
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-pie/dashboard-pie.component.spec.ts
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CssHelper } from '~/app/shared/classes/css-helper'; import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe'; import { configureTestBed } from '~/testing/unit-test-helper'; im...
884
30.607143
75
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-pie/dashboard-pie.component.ts
import { Component, Input, OnChanges, OnInit } from '@angular/core'; import * as Chart from 'chart.js'; import _ from 'lodash'; import { PluginServiceGlobalRegistrationAndOptions } from 'ng2-charts'; import { CssHelper } from '~/app/shared/classes/css-helper'; import { DimlessBinaryPipe } from '~/app/shared/pipes/dim...
6,071
30.957895
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-time-selector/dashboard-time-selector.component.html
<div class="timeSelector"> <select id="timepicker" name="timepicker" [(ngModel)]="time" (ngModelChange)="emitTime()" class="form-select"> <option *ngFor="let key of times" [ngValue]="key.value">{{ key.name }} </option> </select> </div>
300
24.083333
48
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-time-selector/dashboard-time-selector.component.spec.ts
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { DashboardTimeSelectorComponent } from './dashboard-time-selector.component'; describe('DashboardTimeSelectorComponent', () => { ...
764
29.6
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard-time-selector/dashboard-time-selector.component.ts
import { Component, EventEmitter, Output } from '@angular/core'; import moment from 'moment'; @Component({ selector: 'cd-dashboard-time-selector', templateUrl: './dashboard-time-selector.component.html', styleUrls: ['./dashboard-time-selector.component.scss'] }) export class DashboardTimeSelectorComponent { @...
1,905
23.435897
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html
<div class="container-fluid" *ngIf="healthData && enabledFeature$ | async as enabledFeature"> <div class="row mx-0"> <cd-card cardTitle="Details" i18n-title class="col-sm-3 px-3" [ngClass]="{'d-flex': flexHeight}" aria-label="Details card"> <dl class=...
11,511
39.251748
143
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { RouterTestingModule } from '@angular/router/testing'; import _ from 'loda...
11,780
34.167164
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts
import { Component, OnDestroy, OnInit } from '@angular/core'; import _ from 'lodash'; import { Observable, Subscription, timer } from 'rxjs'; import { take } from 'rxjs/operators'; import moment from 'moment'; import { HealthService } from '~/app/shared/api/health.service'; import { OsdService } from '~/app/shared/ap...
7,153
31.666667
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { NgbNavModule, NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap'; import { ChartsModule } from 'ng2-cha...
1,660
31.568627
76
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mds-summary.pipe.spec.ts
import { TestBed } from '@angular/core/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { MdsSummaryPipe } from './mds-summary.pipe'; describe('MdsSummaryPipe', () => { let pipe: MdsSummaryPipe; configureTestBed({ providers: [MdsSummaryPipe] }); beforeEach(() => { pipe...
2,297
30.479452
91
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mds-summary.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import _ from 'lodash'; @Pipe({ name: 'mdsSummary' }) export class MdsSummaryPipe implements PipeTransform { transform(value: any): any { if (!value) { return ''; } let contentLine1 = ''; let contentLine2 = ''; let standbys = 0; l...
2,297
28.088608
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mgr-summary.pipe.spec.ts
import { TestBed } from '@angular/core/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { MgrSummaryPipe } from './mgr-summary.pipe'; describe('MgrSummaryPipe', () => { let pipe: MgrSummaryPipe; configureTestBed({ providers: [MgrSummaryPipe] }); beforeEach(() => { pipe...
1,482
26.981132
89
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mgr-summary.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import _ from 'lodash'; @Pipe({ name: 'mgrSummary' }) export class MgrSummaryPipe implements PipeTransform { transform(value: any): any { if (!value) { return ''; } let activeCount = $localize`n/a`; const activeTitleText = _.isUndefined(v...
1,280
25.142857
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mon-summary.pipe.spec.ts
import { TestBed } from '@angular/core/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { MonSummaryPipe } from './mon-summary.pipe'; describe('MonSummaryPipe', () => { let pipe: MonSummaryPipe; configureTestBed({ providers: [MonSummaryPipe] }); beforeEach(() => { pipe...
938
21.902439
62
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/mon-summary.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'monSummary' }) export class MonSummaryPipe implements PipeTransform { transform(value: any): any { if (!value) { return ''; } const result = $localize`${value.monmap.mons.length.toString()} (quorum \ ${value.quorum.join(', ')})`...
348
18.388889
77
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/osd-summary.pipe.spec.ts
import { TestBed } from '@angular/core/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { OsdSummaryPipe } from './osd-summary.pipe'; describe('OsdSummaryPipe', () => { let pipe: OsdSummaryPipe; configureTestBed({ providers: [OsdSummaryPipe] }); beforeEach(() => { pipe...
4,206
20.685567
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/osd-summary.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import _ from 'lodash'; @Pipe({ name: 'osdSummary' }) export class OsdSummaryPipe implements PipeTransform { transform(value: any): any { if (!value) { return ''; } let inCount = 0; let upCount = 0; let nearFullCount = 0; let full...
2,067
21.478261
78
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.html
<main aria-label="Dashboard"> <a href="#main" class="sr-only">skip to content</a> <ng-container *ngIf="(enabledFeature$ | async)?.dashboard === false; else dashboardV3" class="main-padding"> <cd-refresh-selector></cd-refresh-selector> <cd-health id="main"></cd-health> </ng-container...
417
25.125
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { FeatureTogglesService } from '~/app/shared/services/feature-to...
1,020
30.90625
86
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.ts
import { Component } from '@angular/core'; import { Observable } from 'rxjs'; import { FeatureTogglesService } from '~/app/shared/services/feature-toggles.service'; @Component({ selector: 'cd-dashboard', templateUrl: './dashboard.component.html', styleUrls: ['./dashboard.component.scss'] }) export class Dashboar...
496
28.235294
86
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.html
<div class="chart-container"> <canvas baseChart #chartCanvas [datasets]="chartConfig.dataset" [chartType]="chartConfig.chartType" [options]="chartConfig.options" [labels]="chartConfig.labels" [colors]="chartConfig.colors" [plugins]="doughnutChartPl...
440
26.5625
45
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.spec.ts
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CssHelper } from '~/app/shared/classes/css-helper'; import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe'; import { DimlessPipe } from '~/app/shared/pipes/dimless.pipe'; im...
2,695
34.473684
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts
import { Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core'; import * as Chart from 'chart.js'; import _ from 'lodash'; import { PluginServiceGlobalRegistrationAndOptions } from 'ng2-charts'; import { CssHelper } from '~/app/shared/classes/css-helpe...
5,367
25.974874
89
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
<div *ngIf="healthData && enabledFeature$ | async as enabledFeature" class="container-fluid"> <cd-info-group groupTitle="Status" i18n-groupTitle *ngIf="healthData.health?.status || healthData.mon_status || healthData.osd_map || ...
9,536
38.572614
115
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import _ from 'lodash'; import { of } from 'rxjs'; import { PgCategoryService } f...
11,713
32.56447
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
import { Component, OnDestroy, OnInit } from '@angular/core'; import _ from 'lodash'; import { Subscription } from 'rxjs'; import { take } from 'rxjs/operators'; import { PgCategoryService } from '~/app/ceph/shared/pg-category.service'; import { HealthService } from '~/app/shared/api/health.service'; import { OsdServ...
9,069
31.508961
97
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.html
<div class="card shadow-sm" [ngClass]="cardClass"> <div class="card-body d-flex align-items-center justify-content-center"> <h4 class="card-title m-4"> <a *ngIf="link; else noLinkTitle" [routerLink]="link">{{ cardTitle }}</a> <ng-template #noLinkTitle> {{ cardTitle }} </ng...
475
24.052632
74
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { InfoCardComponent } from './info-card.component'; describe('InfoCardComponent', () => { let component: InfoCardCom...
2,036
29.863636
97
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.ts
import { Component, Input } from '@angular/core'; @Component({ selector: 'cd-info-card', templateUrl: './info-card.component.html', styleUrls: ['./info-card.component.scss'] }) export class InfoCardComponent { @Input() cardTitle: string; @Input() link: string; @Input() cardClass = ''; @Input() co...
342
18.055556
49
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-group/info-group.component.html
<div class="row"> <div class="info-group-title"> <span>{{ groupTitle }}</span> <cd-helper iconClass="fa fa-info-circle fa-2xs"> <div class="text-center" i18n>For an overview of {{ groupTitle|lowercase }} widgets click <cd-doc section="dashboard-landing-page-{{ groupTitle|lowercase }}"...
491
26.333333
75
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-group/info-group.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-test-hel...
1,180
30.918919
91
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-group/info-group.component.ts
import { Component, Input } from '@angular/core'; import { Icons } from '~/app/shared/enum/icons.enum'; @Component({ selector: 'cd-info-group', templateUrl: './info-group.component.html', styleUrls: ['./info-group.component.scss'] }) export class InfoGroupComponent { icons = Icons; @Input() groupTitle: st...
328
20.933333
53
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { NgbNavModule, NgbTooltipModule, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap'; import { SharedModule } from ...
943
33.962963
97
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/models/nfs.fsal.ts
export interface NfsFSAbstractionLayer { value: string; descr: string; disabled: boolean; }
98
15.5
40
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.html
<ng-container *ngIf="selection"> <nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="nfs-details"> <ng-container ngbNavItem="details"> <a ngbNavLink i18n>Details</a> <ng-template ngbNavContent> <cd-table-key-value [data]="data"> </cd-table-key-value>...
887
25.909091
48
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgbNavModule } from '@ng-bootstrap/ng-boots...
2,933
27.485437
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.ts
import { Component, Input, OnChanges } from '@angular/core'; import { CdTableColumn } from '~/app/shared/models/cd-table-column'; @Component({ selector: 'cd-nfs-details', templateUrl: './nfs-details.component.html', styleUrls: ['./nfs-details.component.scss'] }) export class NfsDetailsComponent implements OnCha...
2,052
28.753623
86
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form-client/nfs-form-client.component.html
<div class="form-group row"> <label class="cd-col-form-label" i18n>Clients</label> <div class="cd-col-form-input" [formGroup]="form" #formDir="ngForm"> <span *ngIf="form.get('clients').value.length === 0" class="no-border text-muted"> <span class="form-text text-muted" ...
4,119
36.454545
101
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form-client/nfs-form-client.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormControl, ReactiveFormsModule } from '@angular/forms'; import { CdFormBuilder } from '~/app/shared/forms/cd-form-builder'; import { CdFormGroup } from '~/app/shared/for...
2,410
32.486111
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form-client/nfs-form-client.component.ts
import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core'; import { FormArray, FormControl, NgForm, Validators } from '@angular/forms'; import _ from 'lodash'; import { NfsService } from '~/app/shared/api/nfs.service'; import { Icons } from '~/app/shared/enum/icons.enum'; import { CdFormGrou...
3,050
30.78125
109
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="nfsForm" #formDir="ngForm" [formGroup]="nfsForm" novalidate> <div class="card"> <div i18n="form title" class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div> <div class="card...
17,215
41.932668
147
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { RouterTestingModule } from '@angular/router/t...
7,819
31.719665
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts
import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core'; import { AbstractControl, AsyncValidatorFn, FormControl, ValidationErrors, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import _ from 'lodash'; import { forkJoin, Observable, of }...
15,995
28.843284
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.html
<cd-table #table [data]="exports" columnMode="flex" [columns]="columns" identifier="id" forceIdentifier="true" selectionType="single" [hasDetails]="true" (setExpandedRow)="setExpandedRow($event)" (updateSelection)="updateSelection...
954
29.806452
54
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'...
6,608
32.719388
101
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.ts
import { Component, OnDestroy, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { Subscription } from 'rxjs'; import { NfsService } from '~/app/shared/api/nfs.service'; import { ListWithDetails } from '~/app/shared/classes/...
6,066
29.335
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { SharedModule } from '~/app/shared/shared.module'; import { PerformanceCounterComponent } from './performance-counter/performance-counter.component'; import { TablePerforman...
652
42.533333
115
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.html
<legend>{{ serviceType }}.{{ serviceId }}</legend> <cd-table-performance-counter [serviceType]="serviceType" [serviceId]="serviceId"> </cd-table-performance-counter>
196
38.4
57
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { SharedModule } from '~/app/s...
1,213
39.466667
116
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.ts
import { Component } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @Component({ selector: 'cd-performance-counter', templateUrl: './performance-counter.component.html', styleUrls: ['./performance-counter.component.scss'] }) export class PerformanceCounterComponent { static defaultFrom...
799
29.769231
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.html
<cd-table *ngIf="counters; else warning" [data]="counters" [columns]="columns" columnMode="flex" [autoSave]="false" (fetchData)="getCounters($event)"> <ng-template #valueTpl let-row="row"> {{ row.value | dimless }} {{ row.unit }} </ng-template> </...
476
28.8125
74
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.spec.ts
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AppModule } from '~/app/app.module'; import { CdTableFetchDataContext } from '~/app/shared/models/cd-table-fetch-data-context'; import { configureTe...
2,150
33.142857
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.ts
import { Component, Input, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { PerformanceCounterService } from '~/app/shared/api/performance-counter.service'; import { CdTableColumn } from '~/app/shared/models/cd-table-column'; import { CdTableFetchDataContext } from '~/app/shared/models/cd-table-fetch-da...
1,813
23.849315
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-stat.ts
export class PoolStat { latest: number; rate: number; rates: number[]; } export class PoolStats { bytes_used?: PoolStat; max_avail?: PoolStat; avail_raw?: PoolStat; percent_used?: PoolStat; rd_bytes?: PoolStat; wr_bytes?: PoolStat; rd?: PoolStat; wr?: PoolStat; }
287
15.941176
26
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; import { NgbNavModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import { ActionLabels, URLVerbs } from '~...
1,836
30.672414
125
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool.ts
import { ExecutingTask } from '~/app/shared/models/executing-task'; import { PoolStats } from './pool-stat'; export class Pool { cache_target_full_ratio_micro: number; fast_read: boolean; stripe_width: number; flags_names: string; tier_of: number; hit_set_grade_decay_rate: number; use_gmt_hitset: boolean...
1,931
25.108108
67
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/crush-rule-form-modal/crush-rule-form-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n="form title" class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container> <ng-container class="modal-content"> <form #frm="ngForm" [formGroup]="form" novalidate> <div class="modal-body"> ...
4,708
36.975806
121
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/crush-rule-form-modal/crush-rule-form-modal.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { ToastrModule } from 'ngx-toastr'; import { of }...
7,849
36.203791
118
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/crush-rule-form-modal/crush-rule-form-modal.component.ts
import { Component, EventEmitter, OnInit, Output } from '@angular/core'; import { Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { CrushRuleService } from '~/app/shared/api/crush-rule.service'; import { CrushNodeSelectionClass } from '~/...
3,338
29.633028
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n="form title" class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container> <ng-container class="modal-content"> <form #frm="ngForm" [formGroup]="form" novalidate> <div class="modal-body"> ...
16,589
38.594272
121
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { ToastrModule } from 'ngx-toastr'; import { of }...
23,142
32.58926
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.ts
import { Component, EventEmitter, OnInit, Output } from '@angular/core'; import { Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { ErasureCodeProfileService } from '~/app/shared/api/erasure-code-profile.service'; import { CrushNodeSelectionClass } from '~/app/s...
14,256
29.993478
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.html
<ng-container *ngIf="selection" cdTableDetail> <nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="pool-details"> <ng-container ngbNavItem="details"> <a ngbNavLink i18n>Details</a> <ng-template ngbNavContent> <cd-table-key-value [renderObjects]...
1,848
32.618182
100
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ChangeDetectorRef } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/rout...
5,809
32.77907
121
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-details/pool-details.component.ts
import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core'; import _ from 'lodash'; import { PoolService } from '~/app/shared/api/pool.service'; import { CdHelperClass } from '~/app/shared/classes/cd-helper.class'; import { CdTableColumn } from '~/app/shared/models/cd-table-column'; import {...
2,330
27.777778
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts
import { Validators } from '@angular/forms'; import { SelectMessages } from '~/app/shared/components/select/select-messages.model'; import { Pool } from '../pool'; export class PoolFormData { poolTypes: string[]; erasureInfo = false; crushInfo = false; applications: any; constructor() { this.poolTypes ...
1,179
30.052632
87
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="form" #formDir="ngForm" [formGroup]="form" novalidate> <div class="card"> <div i18n="form title|Example: Create Pool@@formTitle" class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</di...
26,023
41.662295
113
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AbstractControl } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; imp...
48,478
32.783275
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
import { Component, OnInit, Type, ViewChild } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { NgbNav, NgbTooltip } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { Observable, ReplaySubject, Subscripti...
29,391
31.052345
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.html
<nav ngbNav #nav="ngbNav" class="nav-tabs"> <ng-container ngbNavItem> <a ngbNavLink i18n>Pools List</a> <ng-template ngbNavContent> <cd-table #table id="pool-list" [data]="pools" [columns]="columns" selectionType="single" ...
2,055
32.16129
82
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbNavModule } from '@ng-boo...
17,491
32.703276
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import _ from 'lodash'; import { mergeMap } from 'rxjs/operators'; import { PgCategoryService } from '~/app/ceph/shared/pg-category.service'; import { ConfigurationService } from '~/app/shared/api/configuration.service'; import { ErasureCodePr...
11,016
32.084084
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; import { NgbNavModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import { NgxPipeFunctionModul...
7,514
37.737113
156
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/create-rgw-service-entities/create-rgw-service-entities.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n="form title" class="modal-title">Create Realm/Zonegroup/Zone </ng-container> <ng-container class="modal-content"> <form name="createMultisiteEntitiesForm" #formDir="ngForm" [formGroup]="createMultisiteEntitiesForm" ...
2,708
37.15493
109
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/create-rgw-service-entities/create-rgw-service-entities.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; imp...
1,305
32.487179
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/create-rgw-service-entities/create-rgw-service-entities.component.ts
import { Component, EventEmitter, Output } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { RgwMultisiteService } from '~/app/shared/api/rgw-multisite.service'; import { RgwRealmService } from '~/app/shared/api/rgw-real...
3,621
35.22
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-bucket-encryption.ts
export class RgwBucketEncryptionModel { kmsProviders = ['vault']; authMethods = ['token', 'agent']; secretEngines = ['kv', 'transit']; sse_s3 = 'AES256'; sse_kms = 'aws:kms'; }
187
22.5
39
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-bucket-mfa-delete.ts
export enum RgwBucketMfaDelete { ENABLED = 'Enabled', DISABLED = 'Disabled' }
82
15.6
32
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-bucket-versioning.ts
export enum RgwBucketVersioning { ENABLED = 'Enabled', SUSPENDED = 'Suspended' }
85
16.2
33
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-daemon.ts
export class RgwDaemon { id: string; service_map_id: string; version: string; server_hostname: string; realm_name: string; zonegroup_name: string; zone_name: string; default: boolean; port: number; }
218
17.25
26
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-multisite.ts
export class RgwRealm { id: string; name: string; current_period: string; epoch: number; } export class RgwZonegroup { id: string; name: string; api_name: string; is_master: boolean; endpoints: string; hostnames: string[]; hostnames_s3website: string[]; master_zone: string; zones: RgwZone[]; ...
1,023
18.320755
32
ts