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/hosts/host-form/host-form.component.html
<cd-modal [pageURL]="pageURL" [modalRef]="activeModal"> <span class="modal-title" i18n>{{ action | titlecase }} {{ resource | upperFirst }}</span> <ng-container class="modal-content"> <div *cdFormLoading="loading"> <form name="hostForm" #formDir="ngForm" [formGr...
4,270
38.183486
159
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-form/host-form.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveModal } from '@ng-bootstrap/...
5,259
30.12426
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-form/host-form.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import expand from 'brace-expansion'; import { HostService } from '~/app/shared/api/host.service'; import ...
5,940
33.34104
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-host.model.ts
import { InventoryDevice } from './inventory-devices/inventory-device.model'; export class InventoryHost { name: string; devices: InventoryDevice[]; }
156
21.428571
77
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.html
<cd-orchestrator-doc-panel *ngIf="showDocPanel"></cd-orchestrator-doc-panel> <ng-container *ngIf="orchStatus?.available"> <legend i18n>Physical Disks</legend> <div class="row"> <div class="col-md-12"> <cd-inventory-devices [devices]="devices" [hiddenColumns]="hostname === undef...
575
37.4
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/te...
2,490
35.632353
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.ts
import { Component, Input, NgZone, OnChanges, OnDestroy, OnInit } from '@angular/core'; import { Subscription, timer as observableTimer } from 'rxjs'; import { HostService } from '~/app/shared/api/host.service'; import { OrchestratorService } from '~/app/shared/api/orchestrator.service'; import { Icons } from '~/app/...
2,691
28.582418
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-device.model.ts
export class SysAPI { vendor: string; model: string; size: number; rotational: string; human_readable_size: string; } export class InventoryDevice { hostname: string; uid: string; path: string; sys_api: SysAPI; available: boolean; rejected_reasons: string[]; device_id: string; human_readable...
358
16.095238
30
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.html
<cd-table [data]="devices" [columns]="columns" identifier="uid" [forceIdentifier]="true" [selectionType]="selectionType" columnMode="flex" (fetchData)="getDevices()" [searchField]="false" (updateSelection)="updateSelection($event)" ...
596
34.117647
66
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import ...
6,518
32.430769
101
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.ts
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'; import _ from 'lodash'; import { Subscription } from 'rxjs'; import { HostService } from '~/app/shared/api/host.service'; import { OrchestratorService } from '~/app/shared/api/orchestrator.service'; imp...
7,928
28.696629
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.html
<div *ngIf="contentData"> <ng-container *ngTemplateOutlet="logFiltersTpl"></ng-container> <nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="logs"> <ng-container ngbNavItem="cluster-logs"> <a ngbNavLink i18n>Cluster Logs</a> <ng-template ngbNavContent> <...
6,308
32.737968
99
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { NgbDatepickerModule, NgbNavModule, NgbTimepickerModule } from '@ng-bootstrap/ng-bootstrap'; import { ToastrModule } from 'ngx...
5,192
29.547059
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.ts
import { DatePipe } from '@angular/common'; import { Component, NgZone, OnDestroy, OnInit } from '@angular/core'; import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { CephServiceService } from '~/app/shared/api/ceph-service.servi...
5,009
27.146067
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-modules.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { AppRoutingModule } from '~/app/app-routing.module'; import { SharedModule } from '~/app/shared/shared.modu...
827
45
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-details/mgr-module-details.component.html
<ng-container *ngIf="selection"> <cd-table-key-value [data]="module_config"> </cd-table-key-value> </ng-container>
119
23
45
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-details/mgr-module-details.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-test-helper'; import { MgrModuleDetailsComponent } from './mgr-module-de...
897
31.071429
75
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-details/mgr-module-details.component.ts
import { Component, Input, OnChanges } from '@angular/core'; import { MgrModuleService } from '~/app/shared/api/mgr-module.service'; @Component({ selector: 'cd-mgr-module-details', templateUrl: './mgr-module-details.component.html', styleUrls: ['./mgr-module-details.component.scss'] }) export class MgrModuleDet...
659
24.384615
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-form/mgr-module-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="mgrModuleForm" #frm="ngForm" [formGroup]="mgrModuleForm" novalidate> <div class="card"> <div class="card-header" i18n>Edit Manager module</div> <div class="card-body"> <div class="form-group ...
5,185
45.720721
120
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-form/mgr-module-form.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 { ToastrModule } from 'ngx-toastr'; import { LoadingPan...
2,660
31.851852
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-form/mgr-module-form.component.ts
import { Component, OnInit } from '@angular/core'; import { ValidatorFn, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import _ from 'lodash'; import { forkJoin as observableForkJoin } from 'rxjs'; import { MgrModuleService } from '~/app/shared/api/mgr-module.service'; ...
4,162
29.610294
81
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.html
<cd-table #table [autoReload]="false" [data]="modules" [columns]="columns" columnMode="flex" selectionType="single" [hasDetails]="true" (setExpandedRow)="setExpandedRow($event)" (updateSelection)="updateSelection($event)" identifi...
714
33.047619
53
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.spec.ts
import { HttpClientTestingModule } 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'; import { NgbNavModul...
6,020
37.596154
101
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.ts
import { Component, ViewChild } from '@angular/core'; import { BlockUI, NgBlockUI } from 'ng-block-ui'; import { timer as observableTimer } from 'rxjs'; import { MgrModuleService } from '~/app/shared/api/mgr-module.service'; import { ListWithDetails } from '~/app/shared/classes/list-with-details.class'; import { Tabl...
6,249
30.407035
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/monitor/monitor.component.html
<div class="row"> <div class="col-lg-4"> <fieldset> <legend class="cd-header" i18n>Status</legend> <table class="table table-striped" *ngIf="mon_status"> <tbody> <tr> <td i18n class="bold">Cluster ID</td> <td>{{ mon_s...
1,837
26.848485
68
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/monitor/monitor.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 { of } from 'rxjs'; import { MonitorService } from '~/app/shared/api/monitor.service'; import { SharedModule } from '~/app...
2,917
26.528302
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/monitor/monitor.component.ts
import { Component } from '@angular/core'; import _ from 'lodash'; import { MonitorService } from '~/app/shared/api/monitor.service'; import { CellTemplate } from '~/app/shared/enum/cell-template.enum'; @Component({ selector: 'cd-monitor', templateUrl: './monitor.component.html', styleUrls: ['./monitor.compone...
2,232
28.773333
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-creation-preview-modal/osd-creation-preview-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>OSD creation preview</ng-container> <ng-container class="modal-content"> <form #frm="ngForm" [formGroup]="formGroup" novalidate> <div class="modal-body"> <h4 i18n>DriveGroups</h4> ...
658
30.380952
87
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-creation-preview-modal/osd-creation-preview-modal.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'; im...
1,267
31.512821
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-creation-preview-modal/osd-creation-preview-modal.component.ts
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { OsdService } from '~/app/shared/api/osd.service'; import { ActionLabelsI18n, URLVerbs } from '~/app/shared/constants/app.constants'; import { CdFormBuil...
1,872
28.730159
82
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.html
<ng-container *ngIf="selection"> <nav ngbNav #nav="ngbNav" id="tabset-osd-details" class="nav-tabs" cdStatefulTab="osd-details"> <ng-container ngbNavItem="devices"> <a ngbNavLink i18n>Devices</a> <ng-template ngbNavContent> <cd-device-list [osdId]="osd?.id"...
2,524
33.589041
81
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { TablePerformanceCounterComponent } from '~/app/ceph/performance-counter/table-performance-counter/table-perform...
1,198
36.46875
144
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.ts
import { Component, Input, OnChanges } from '@angular/core'; import _ from 'lodash'; import { OsdService } from '~/app/shared/api/osd.service'; import { Permission } from '~/app/shared/models/permissions'; import { AuthStorageService } from '~/app/shared/services/auth-storage.service'; @Component({ selector: 'cd-o...
1,094
23.333333
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/devices-selection-change-event.interface.ts
import { CdTableColumnFiltersChange } from '~/app/shared/models/cd-table-column-filters-change'; export interface DevicesSelectionChangeEvent extends CdTableColumnFiltersChange { type: string; }
198
32.166667
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/devices-selection-clear-event.interface.ts
import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-device.model'; export interface DevicesSelectionClearEvent { type: string; clearedDevices: InventoryDevice[]; }
207
28.714286
104
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.html
<!-- button --> <div class="form-group row"> <label class="cd-col-form-label" for="createDeleteButton"> <ng-container i18n>{{ name }} devices</ng-container> <cd-helper> <span i18n *ngIf="type === 'data'">The primary storage devices. These devices contain all OSD data.</span> <...
2,360
44.403846
365
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/te...
4,189
32.253968
119
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.ts
import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core'; import { Router } from '@angular/router'; import _ from 'lodash'; import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-device.model'; import { OsdService } from '~/app/shared/api/osd.service...
4,575
31.453901
121
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>{{ deviceType }} devices</ng-container> <ng-container class="modal-content"> <form #frm="ngForm" [formGroup]="formGroup" novalidate> <div class="modal-body"> <cd-alert-panel *ngIf="!canS...
1,791
39.727273
110
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } fro...
3,638
32.081818
119
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.ts
import { AfterViewInit, ChangeDetectorRef, Component, EventEmitter, Output, ViewChild } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { TableColumnProp } from '@swimlane/ngx-datatable'; import _ from 'lodash'; import { InventoryDevice } from '~/app/ceph/cluster/...
3,243
30.495146
119
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-indiv-modal/osd-flags-indiv-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Individual OSD Flags</ng-container> <ng-container class="modal-content"> <form name="osdFlagsForm" #formDir="ngForm" [formGroup]="osdFlagsForm" novalidate> <div class="modal-body osd-m...
1,810
35.959184
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-indiv-modal/osd-flags-indiv-modal.component.spec.ts
import { HttpClientTestingModule, HttpTestingController } 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, NgbTooltipModul...
13,627
37.497175
113
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-indiv-modal/osd-flags-indiv-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { OsdService } from '~/app/shared/api/osd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import...
4,206
30.162963
116
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Cluster-wide OSD Flags</ng-container> <ng-container class="modal-content"> <form name="osdFlagsForm" #formDir="ngForm" [formGroup]="osdFlagsForm" novalidate cdFormScope="osd"> ...
1,484
34.357143
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.spec.ts
import { HttpClientTestingModule, HttpTestingController } 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-boot...
3,403
33.04
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { OsdService } from '~/app/shared/api/osd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import...
4,597
28.286624
115
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/drive-group.model.ts
import _ from 'lodash'; import { CdTableColumnFiltersChange } from '~/app/shared/models/cd-table-column-filters-change'; import { FormatterService } from '~/app/shared/services/formatter.service'; export class DriveGroup { spec: Object; // Map from filter column prop to device selection attribute name private ...
2,320
22.683673
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-feature.interface.ts
export interface OsdFeature { desc: string; key?: string; }
64
12
29
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.html
<cd-orchestrator-doc-panel *ngIf="!hasOrchestrator"></cd-orchestrator-doc-panel> <div class="card" *cdFormLoading="loading"> <div i18n="form title|Example: Create Pool@@formTitle" class="card-header" *ngIf="!hideTitle">{{ action | titlecase }} {{ resource | upperFirst }}</div> <div class="card-b...
10,052
44.90411
109
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } fro...
10,853
34.012903
124
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.ts
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Router } from '@angular/router'; import _ from 'lodash'; import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-device.model'; import { H...
9,835
33.271777
124
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html
<nav ngbNav #nav="ngbNav" class="nav-tabs"> <ng-container ngbNavItem> <a ngbNavLink i18n>OSDs List</a> <ng-template ngbNavContent> <cd-table [data]="osds" (fetchData)="getOsdList()" [columns]="columns" selectionType="multiClick" ...
5,469
34.290323
99
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-bro...
21,244
32.0919
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Router } from '@angular/router'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { forkJoin as observableForkJoin, Observable } from 'rxjs'; import ...
21,467
33.3488
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-pg-scrub-modal/osd-pg-scrub-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 #formDir="ngForm" [formGroup]="osdPgScrubForm" novalidate cdFormSc...
1,873
39.73913
103
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-pg-scrub-modal/osd-pg-scrub-modal.component.spec.ts
import { HttpClientTestingModule } 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'; import { NgbActiveMod...
2,254
33.692308
82
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-pg-scrub-modal/osd-pg-scrub-modal.component.ts
import { Component, ViewChild } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { forkJoin as observableForkJoin } from 'rxjs'; import { ConfigOptionComponent } from '~/app/shared/components/config-option/config-option.component'; import { ActionLabelsI18n } from '~/app/share...
2,359
33.202899
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-pg-scrub-modal/osd-pg-scrub-modal.options.ts
export class OsdPgScrubModalOptions { public static basicOptions: Array<string> = [ 'osd_scrub_during_recovery', 'osd_scrub_begin_hour', 'osd_scrub_end_hour', 'osd_scrub_begin_week_day', 'osd_scrub_end_week_day', 'osd_scrub_min_interval', 'osd_scrub_max_interval', 'osd_deep_scrub_inter...
1,165
28.897436
59
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>OSD Recovery Priority</ng-container> <ng-container class="modal-content"> <form #formDir="ngForm" [formGroup]="osdRecvSpeedForm" novalidate cdFormScope="osd"> <div class="modal-body"> ...
4,085
42.935484
115
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.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'; im...
11,202
34.22956
104
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { ConfigurationService } from '~/app/shared/api/configuration.service'; import { OsdService } from '~/app/shared/api/...
7,911
32.104603
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-reweight-modal/osd-reweight-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Reweight OSD: {{ osdId }}</ng-container> <ng-container class="modal-content"> <form [formGroup]="reweightForm"> <div class="modal-body"> <div class="row"> <label for="weight" clas...
1,367
34.076923
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-reweight-modal/osd-reweight-modal.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 { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbA...
2,078
35.473684
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-reweight-modal/osd-reweight-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { OsdService } from '~/app/shared/api/osd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import { CdFormBuilder } from...
1,241
27.227273
72
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-scrub-modal/osd-scrub-modal.component.html
<cd-modal [modalRef]="activeModal"> <span class="modal-title" i18n>OSDs {deep, select, true {Deep } other {}}Scrub</span> <ng-container class="modal-content"> <form name="scrubForm" #formDir="ngForm" [formGroup]="scrubForm" novalidate> <div class="modal-body"> ...
767
32.391304
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-scrub-modal/osd-scrub-modal.component.spec.ts
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { OsdService } from '~/app/shared/api/osd.service'; import { JoinPipe } from '~...
1,515
28.72549
81
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-scrub-modal/osd-scrub-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { forkJoin } from 'rxjs'; import { OsdService } from '~/app/shared/api/osd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants...
1,604
29.283019
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html
<cd-prometheus-tabs></cd-prometheus-tabs> <cd-alert-panel *ngIf="!isAlertmanagerConfigured" type="info" i18n>To see all active Prometheus alerts, please provide the URL to the API of Prometheus' Alertmanager as described in the <cd-doc section="prometheus"></cd-doc>.</cd-alert-panel...
1,501
34.761905
72
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-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...
3,389
31.596154
101
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts
import { Component, Inject, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { PrometheusService } from '~/app/shared/api/prometheus.service'; import { CellTemplate } from '~/app/shared/enum/cell-template.enum'; import { Icons } from '~/app/shared/enum/icons.enum'; import { PrometheusListHelper } from '~/...
3,838
32.675439
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.html
<ul class="nav nav-tabs"> <li class="nav-item"> <a class="nav-link" routerLink="/monitoring/active-alerts" routerLinkActive="active" ariaCurrentWhenActive="page" [routerLinkActiveOptions]="{exact: true}" i18n>Active Alerts <small *ngIf="prometheusAlertService.activeCriticalA...
1,087
34.096774
101
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service'; import { configureTestBed } from '~/test...
1,002
32.433333
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/prometheus-tabs/prometheus-tabs.component.ts
import { Component } from '@angular/core'; import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service'; @Component({ selector: 'cd-prometheus-tabs', templateUrl: './prometheus-tabs.component.html', styleUrls: ['./prometheus-tabs.component.scss'] }) export class PrometheusTabsComponen...
398
29.692308
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.html
<cd-prometheus-tabs></cd-prometheus-tabs> <cd-alert-panel *ngIf="!isPrometheusConfigured" type="info" i18n>To see all configured Prometheus alerts, please provide the URL to the API of Prometheus as described in the <cd-doc section="prometheus"></cd-doc>.</cd-alert-panel> <cd-table...
851
36.043478
68
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { ToastrModule } from 'ngx-toastr'; import { Prome...
1,379
32.658537
87
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.ts
import { Component, Inject, OnInit } from '@angular/core'; import _ from 'lodash'; import { PrometheusService } from '~/app/shared/api/prometheus.service'; import { CellTemplate } from '~/app/shared/enum/cell-template.enum'; import { PrometheusListHelper } from '~/app/shared/helpers/prometheus-list-helper'; import { ...
2,372
32.9
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.html
<ng-template #matcherTpl let-matcher="matcher" let-index="index"> <div class="input-group my-2"> <ng-container *ngFor="let config of matcherConfig"> <span class="input-group-text" *ngIf="config.attribute === 'isRegex'"> <i *ngIf="matcher[config.attribute]" ...
7,499
34.377358
123
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { ActivatedRoute, Router, Routes } from '@angular/router'; import { RouterTestingModule } from '@angular/rout...
21,066
34.46633
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.ts
import { Component } from '@angular/core'; import { Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import _ from 'lodash'; import moment from 'moment'; import { DashboardNotFoundError } from '~/app/core/error/error'; import { PrometheusService } from '~/app/shared/api/pr...
11,005
30.445714
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.html
<cd-prometheus-tabs></cd-prometheus-tabs> <cd-alert-panel *ngIf="!isAlertmanagerConfigured" type="info" i18n>To enable Silences, please provide the URL to the API of the Prometheus' Alertmanager as described in the <cd-doc section="prometheus"></cd-doc>.</cd-alert-panel> <cd-table ...
1,296
36.057143
66
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-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...
5,848
37.993333
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts
import { Component, Inject } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { SortDirection, SortPropDir } from '@swimlane/ngx-datatable'; import { Observable, Subscriber } from 'rxjs'; import { PrometheusListHelper } from '~/app/shared/helpers/prometheus-list-helper'; import {...
8,253
35.522124
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-matcher-modal/silence-matcher-modal.component.html
<cd-modal [modalRef]="activeModal"> <span class="modal-title" i18n>{editMode, select, true {Edit} other {Add}} Matcher</span> <ng-container class="modal-content"> <form class="form" #formDir="ngForm" [formGroup]="form" novalidate> <div class="modal-body"> <!-...
3,139
35.511628
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-matcher-modal/silence-matcher-modal.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, NgbTypeaheadModule } from '@ng-bootstr...
6,262
28.82381
91
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-matcher-modal/silence-matcher-modal.component.ts
import { Component, EventEmitter, Output, ViewChild } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { NgbActiveModal, NgbTypeahead } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { merge, Observable, Subject } from 'rxjs'; import { debounceTime, distinctUnti...
3,489
31.314815
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/placement.pipe.spec.ts
import { PlacementPipe } from './placement.pipe'; describe('PlacementPipe', () => { const pipe = new PlacementPipe(); it('create an instance', () => { expect(pipe).toBeTruthy(); }); it('transforms to no spec', () => { expect(pipe.transform(undefined)).toBe('no spec'); }); it('transforms to unman...
1,507
18.088608
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/placement.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; import _ from 'lodash'; @Pipe({ name: 'placement' }) export class PlacementPipe implements PipeTransform { /** * Convert the placement configuration into human readable form. * The output is equal to the column 'PLACEMENT' in 'ceph orch ls'. * @param s...
1,289
29.714286
77
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.html
<cd-orchestrator-doc-panel *ngIf="showDocPanel"></cd-orchestrator-doc-panel> <ng-container *ngIf="orchStatus?.available"> <cd-table [data]="services" [columns]="columns" identifier="service_name" forceIdentifier="true" columnMode="flex" selectionType="single...
1,419
34.5
94
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts
import { HttpHeaders } from '@angular/common/http'; 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/rou...
3,549
32.490566
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts
import { Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { delay } from 'rxjs/operators'; import { CephServiceService } from '~/app/shared/api/ceph-service.service'; import { ...
8,692
32.179389
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.html
<cd-orchestrator-doc-panel *ngIf="showDocPanel"></cd-orchestrator-doc-panel> <div *ngIf="flag === 'hostDetails'; else serviceDetailsTpl"> <ng-container *ngTemplateOutlet="serviceDaemonDetailsTpl"></ng-container> </div> <ng-template #serviceDetailsTpl> <ng-container> <nav ngbNav #nav="ngbNav" ...
3,227
30.339806
83
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.spec.ts
import { HttpHeaders } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import _ from 'lodash'; import { NgxPipeFunctionModule } from 'ngx-pipe-function'; import { ToastrModule } from 'ngx-toastr'; im...
8,949
32.773585
97
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.ts
import { HttpParams } from '@angular/common/http'; import { AfterViewInit, ChangeDetectorRef, Component, Input, OnChanges, OnDestroy, OnInit, QueryList, TemplateRef, ViewChild, ViewChildren } from '@angular/core'; import _ from 'lodash'; import { Observable, Subscription } from 'rxjs'; import { t...
9,692
26.151261
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-details/service-details.component.html
<ng-container *ngIf="selection"> <cd-service-daemon-list [serviceName]="selection['service_name']"> </cd-service-daemon-list> </ng-container>
146
28.4
68
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-details/service-details.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { NgxPipeFunctionModule } from 'ngx-pipe-function';...
1,604
35.477273
98
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-details/service-details.component.ts
import { Component, Input } from '@angular/core'; import { CdTableSelection } from '~/app/shared/models/cd-table-selection'; import { Permissions } from '~/app/shared/models/permissions'; @Component({ selector: 'cd-service-details', templateUrl: './service-details.component.html', styleUrls: ['./service-details...
464
24.833333
74
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html
<cd-modal [pageURL]="pageURL" [modalRef]="activeModal"> <span class="modal-title" i18n>{{ action | titlecase }} {{ resource | upperFirst }}</span> <ng-container class="modal-content"> <form #frm="ngForm" [formGroup]="serviceForm" novalidate> <div class="modal-body"> ...
36,861
43.681212
191
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbAct...
20,236
33.126476
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts
import { HttpParams } from '@angular/common/http'; import { Component, Input, OnInit, ViewChild } from '@angular/core'; import { AbstractControl, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { NgbActiveModal, NgbModalRef, NgbTypeahead } from '@ng-bootstrap/ng-boo...
30,588
34.038946
133
ts