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/block/rbd-configuration-form/rbd-configuration-form.component.ts
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import _ from 'lodash'; import { ReplaySubject } from 'rxjs'; import { Icons } from '~/app/shared/enum/icons.enum'; import { CdFormGroup } from '~/app/shared/forms/cd-form-group'; ...
5,671
32.964072
120
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.html
<cd-table #poolConfTable [data]="data" [columns]="poolConfigurationColumns" identifier="name"> </cd-table> <ng-template #configurationSourceTpl let-value="value"> <div [ngSwitch]="value"> <span *ngSwitchCase="'global'" i18n>Global</span> <strong *ngSwitch...
887
28.6
83
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbDropdownModule, NgbTooltipModule } from '@ng-bootst...
3,213
31.14
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.ts
import { Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { TableComponent } from '~/app/shared/datatable/table/table.component'; import { CdTableColumn } from '~/app/shared/models/cd-table-column'; import { RbdConfigurationEntry, RbdConfigurationSourceField, RbdConfigur...
2,288
33.681818
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.html
<ng-template #usageNotAvailableTooltipTpl> <ng-container i18n>Only available for RBD images with <strong>fast-diff</strong> enabled</ng-container> </ng-template> <ng-container *ngIf="selection && selection.source !== 'REMOVING'"> <nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="rbd-de...
6,689
35.162162
183
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbNavModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-tes...
1,172
36.83871
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.ts
import { Component, Input, OnChanges, TemplateRef, ViewChild } from '@angular/core'; import { NgbNav } from '@ng-bootstrap/ng-bootstrap'; import { RbdFormModel } from '../rbd-form/rbd-form.model'; @Component({ selector: 'cd-rbd-details', templateUrl: './rbd-details.component.html', styleUrls: ['./rbd-details.c...
829
24.9375
119
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-feature.interface.ts
export interface RbdImageFeature { desc: string; allowEnable: boolean; allowDisable: boolean; requires?: string; interlockedWith?: string; key?: string; initDisabled?: boolean; }
193
18.4
34
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-clone-request.model.ts
import { RbdConfigurationEntry } from '~/app/shared/models/configuration'; export class RbdFormCloneRequestModel { child_pool_name: string; child_namespace: string; child_image_name: string; obj_size: number; features: Array<string> = []; stripe_unit: number; stripe_count: number; data_pool: string; ...
363
25
74
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-copy-request.model.ts
import { RbdConfigurationEntry } from '~/app/shared/models/configuration'; export class RbdFormCopyRequestModel { dest_pool_name: string; dest_namespace: string; dest_image_name: string; snapshot_name: string; obj_size: number; features: Array<string> = []; stripe_unit: number; stripe_count: number; ...
383
24.6
74
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-create-request.model.ts
import { RbdFormModel } from './rbd-form.model'; export class RbdFormCreateRequestModel extends RbdFormModel { features: Array<string> = []; }
146
23.5
61
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-edit-request.model.ts
import { RbdConfigurationEntry } from '~/app/shared/models/configuration'; export class RbdFormEditRequestModel { name: string; size: number; features: Array<string> = []; configuration: RbdConfigurationEntry[]; enable_mirror?: boolean; mirror_mode?: string; primary?: boolean; force?: boolean; sched...
374
22.4375
74
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-mode.enum.ts
export enum RbdFormMode { editing = 'editing', cloning = 'cloning', copying = 'copying' }
96
15.166667
25
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-response.model.ts
import { RbdFormModel } from './rbd-form.model'; import { RbdParentModel } from './rbd-parent.model'; export class RbdFormResponseModel extends RbdFormModel { features_name: string[]; parent: RbdParentModel; }
215
26
56
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="rbdForm" #formDir="ngForm" [formGroup]="rbdForm" novalidate> <div class="card"> <div i18n="form title" class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div> <div class="card-...
17,893
44.186869
348
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-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 { By } from '@angular/platform-browser'; import { ActivatedRoute, Router } from '@angular/router'; impo...
18,003
36.045267
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl, ValidatorFn, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import _ from 'lodash'; import { forkJoin, Observable, ReplaySubject } from 'rxjs'; import { first, switchMap } from 'rxjs/operators'; imp...
28,594
33.660606
137
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.model.ts
import { RbdConfigurationEntry } from '~/app/shared/models/configuration'; export class RbdFormModel { name: string; pool_name: string; namespace: string; data_pool: string; size: number; /* Striping */ obj_size: number; stripe_unit: number; stripe_count: number; /* Configuration */ configurati...
500
17.555556
74
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-parent.model.ts
export class RbdParentModel { image_name: string; pool_name: string; pool_namespace: string; snap_name: string; }
122
16.571429
29
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html
<cd-rbd-tabs></cd-rbd-tabs> <cd-table #table [data]="images" columnMode="flex" [columns]="columns" identifier="unique_id" [searchableObjects]="true" [serverSide]="true" [count]="count" forceIdentifier="true" selectionType="single...
4,692
31.365517
125
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-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 { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/rou...
13,913
30.694761
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { Observable, Subscriber } from 'rxjs'; import { RbdService } from '~/app/shared/api/rbd.service'; import { ListWithDetails } from '~/app/shared/classes/l...
22,381
32.158519
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-model.ts
export class RbdModel { id: string; unique_id: string; name: string; pool_name: string; namespace: string; image_format: RBDImageFormat; cdExecuting: string; } export enum RBDImageFormat { V1 = 1, V2 = 2 }
226
13.1875
31
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-form/rbd-namespace-form-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Create Namespace</ng-container> <ng-container class="modal-content"> <form name="namespaceForm" #formDir="ngForm" [formGroup]="namespaceForm" novalidate> <div class="modal-body"> ...
3,012
36.6625
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-form/rbd-namespace-form-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,377
33.45
86
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-form/rbd-namespace-form-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { AbstractControl, AsyncValidatorFn, FormControl, ValidationErrors, ValidatorFn } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { Subject } from 'rxjs'; import { Pool } from '~/app/ceph/pool/pool'; import ...
4,442
29.641379
91
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.html
<cd-rbd-tabs></cd-rbd-tabs> <cd-table [data]="namespaces" (fetchData)="refresh()" columnMode="flex" [columns]="columns" identifier="id" forceIdentifier="true" selectionType="single" (updateSelection)="updateSelection($event)"> <div class="table-ac...
572
29.157895
54
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-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...
1,426
32.97619
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.ts
import { Component, OnInit } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { forkJoin, Observable } from 'rxjs'; import { PoolService } from '~/app/shared/api/pool.service'; import { RbdService } from '~/app/shared/api/rbd.service'; import { CriticalConfirmationModalComponent ...
5,283
32.443038
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-performance/rbd-performance.component.html
<cd-rbd-tabs></cd-rbd-tabs> <cd-grafana i18n-title title="RBD overview" [grafanaPath]="'rbd-overview?'" [type]="'metrics'" uid="41FrpeUiz" grafanaStyle="two"> </cd-grafana>
234
22.5
43
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-performance/rbd-performance.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 { SharedModule } from '~/app/shared/shared.module'...
1,088
34.129032
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-performance/rbd-performance.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'cd-rbd-performance', templateUrl: './rbd-performance.component.html', styleUrls: ['./rbd-performance.component.scss'] }) export class RbdPerformanceComponent {}
235
25.222222
50
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-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 name="snapshotForm" #formDir="ngForm" [formGroup]="snapshotForm" n...
2,896
45.725806
151
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-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...
3,189
36.529412
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { Observable, Subject } from 'rxjs'; import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service'; import { RbdService } from...
4,923
30.974026
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-actions.model.ts
import { RbdService } from '~/app/shared/api/rbd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import { Icons } from '~/app/shared/enum/icons.enum'; import { CdTableAction } from '~/app/shared/models/cd-table-action'; import { CdTableSelection } from '~/app/shared/models/cd-table-se...
4,170
30.126866
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.html
<cd-table [data]="data" columnMode="flex" selectionType="single" (updateSelection)="updateSelection($event)" [columns]="columns"> <cd-table-actions class="table-actions" [permission]="permission" [selection]="selection" ...
557
30
61
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-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 { NgbModalMod...
11,277
35.736156
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import moment from 'moment'; import { of } from 'rxjs'; import { RbdService } from '~/app/shared/api/rbd.se...
11,651
33.371681
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot.model.ts
export class RbdSnapshotModel { id: number; name: string; size: number; timestamp: string; is_protected: boolean; cdExecuting: string; }
150
14.1
31
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-tabs/rbd-tabs.component.html
<ul class="nav nav-tabs"> <li class="nav-item"> <a class="nav-link" routerLink="/block/rbd" routerLinkActive="active" ariaCurrentWhenActive="page" [routerLinkActiveOptions]="{exact: true}" i18n>Images</a> </li> <li class="nav-item"> <a class="nav-link" routerLink=...
1,026
27.527778
48
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-tabs/rbd-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 { configureTestBed } from '~/testing/unit-test-helper'; import { RbdTabsComponent } from './rbd-tabs.component'; describe...
784
27.035714
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-tabs/rbd-tabs.component.ts
import { Component } from '@angular/core'; import { Permission } from '~/app/shared/models/permissions'; import { AuthStorageService } from '~/app/shared/services/auth-storage.service'; @Component({ selector: 'cd-rbd-tabs', templateUrl: './rbd-tabs.component.html', styleUrls: ['./rbd-tabs.component.scss'] }) ex...
548
27.894737
80
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.html
<cd-rbd-tabs></cd-rbd-tabs> <cd-table [data]="images" columnMode="flex" [columns]="columns" identifier="id" forceIdentifier="true" selectionType="single" [status]="tableStatus" [autoReload]="-1" (fetchData)="taskListService.fetch()" ...
1,558
28.415094
95
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.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 { RouterTestingModule } from '@angular/router/...
5,541
31.034682
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import moment from 'moment'; import { RbdService } from '~/app/shared/api/rbd.service'; import { TableStatusViewCache } from '~/app/shared/classes/table-status-v...
7,443
31.938053
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-move-modal/rbd-trash-move-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Move an image to trash</ng-container> <ng-container class="modal-content"> <form name="moveForm" class="form" #formDir="ngForm" [formGroup]="moveForm" novalidate> <div class=...
2,134
35.810345
104
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-move-modal/rbd-trash-move-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, NgbPopoverModul...
3,140
32.063158
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-move-modal/rbd-trash-move-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import moment from 'moment'; import { RbdService } from '~/app/shared/api/rbd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import { CdFormBuilder } from '~/app/shared/f...
2,744
27.894737
98
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Purge Trash</ng-container> <ng-container class="modal-content"> <form name="purgeForm" class="form" #formDir="ngForm" [formGroup]="purgeForm" novalidate> <div class="modal-bo...
1,525
31.468085
87
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.spec.ts
import { HttpClientTestingModule, HttpTestingController, TestRequest } 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'; impo...
3,364
30.745283
87
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { Pool } from '~/app/ceph/pool/pool'; import { PoolService } from '~/app/shared/api/pool.service'; import { RbdService } from '~/app/shared/api/rbd.service'; import { ActionLabelsI18n } from '~/app/s...
2,360
30.48
83
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-restore-modal/rbd-trash-restore-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Restore Image</ng-container> <ng-container class="modal-content"> <form name="restoreForm" class="form" #formDir="ngForm" [formGroup]="restoreForm" novalidate> <div class="mo...
1,364
31.5
89
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-restore-modal/rbd-trash-restore-modal.component.spec.ts
import { HttpClientTestingModule, HttpTestingController, TestRequest } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveMod...
2,646
31.280488
86
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-restore-modal/rbd-trash-restore-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { RbdService } from '~/app/shared/api/rbd.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import { CdFormBuilder } from '~/app/shared/forms/cd-form-builder'; import...
2,080
30.530303
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { TreeModule } from '@circlon/angular-tree-component'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import { ChartsModule } from 'ng2-charts'; import { AppRoutingModule } from '~/app/app-routing.module'; imp...
1,193
40.172414
98
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.html
<div class="chart-container"> <canvas baseChart #chartCanvas [datasets]="chart.datasets" [options]="chart.options" [chartType]="chart.chartType"> </canvas> <div class="chartjs-tooltip" #chartTooltip> <table></table> </div> </div>
289
21.307692
40
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ChartsModule } from 'ng2-charts'; import { configureTestBed } from '~/testing/unit-test-helper'; import { CephfsChartComponent } from './cephfs-chart.component'; describe('CephfsChartComponent', () => { let component: CephfsChartComponent;...
1,795
20.902439
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts
import { Component, ElementRef, Input, OnChanges, OnInit, ViewChild } from '@angular/core'; import { ChartDataSets, ChartOptions, ChartPoint, ChartType } from 'chart.js'; import _ from 'lodash'; import moment from 'moment'; import { ChartTooltip } from '~/app/shared/models/chart-tooltip'; @Component({ selector: 'c...
4,703
22.878173
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.html
<cd-table [data]="clients.data" [columns]="columns" [status]="clients.status" [autoReload]="-1" (fetchData)="triggerApiUpdate.emit()" selectionType="single" (updateSelection)="updateSelection($event)"> <cd-table-actions class="table-actions" ...
479
33.285714
54
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.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 { ToastrModule } from 'ngx-toastr'; import { TableStatusViewCache } from '~/app/shared/class...
2,859
33.047619
101
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.ts
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { CephfsService } from '~/app/shared/api/cephfs.service'; import { TableStatusViewCache } from '~/app/shared/classes/table-status-view-cache'; import { CriticalConfirmationM...
3,374
31.76699
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html
<div class="row"> <div class="col-sm-6"> <legend i18n>Ranks</legend> <cd-table [data]="data.ranks" [columns]="columns.ranks" [toolHeader]="false"> </cd-table> <legend i18n>Standbys</legend> <cd-table-key-value [data]="standbys"> </cd-table-key-value> </div> <d...
1,172
25.659091
83
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.spec.ts
import { Component, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-test-helper'; import { CephfsDetailComponent } from './cephfs-detail.component'; @Component({...
1,450
24.910714
82
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.ts
import { Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { CdTableColumn } from '~/app/shared/models/cd-table-column'; import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe'; import { DimlessPipe } from '~/app/shared/pipes/dimless.pipe'; @Component({ se...
2,569
26.934783
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.html
<div class="row"> <div class="col-sm-4 pe-0"> <div class="card"> <div class="card-header"> <button type="button" [class.disabled]="loadingIndicator" class="btn btn-light pull-right" (click)="refreshAllDirectories()"> <i [ngClass]="[icons.larg...
2,652
33.907895
71
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { Type } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { Validators } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { TreeComp...
38,629
33.739209
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.ts
import { Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { AbstractControl, Validators } from '@angular/forms'; import { ITreeOptions, TreeComponent, TreeModel, TreeNode, TREE_ACTIONS } from '@circlon/angular-tree-component'; import { NgbModalRef } from '@ng-bootstr...
23,415
30.901907
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.html
<cd-table [data]="filesystems" columnMode="flex" [columns]="columns" (fetchData)="loadFilesystems($event)" identifier="id" forceIdentifier="true" selectionType="single" [hasDetails]="true" (setExpandedRow)="setExpandedRow($event)" ...
475
30.733333
54
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { Component, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { CdTableSelection } from '~/app/shared/mod...
1,206
32.527778
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
import { Component, OnInit } from '@angular/core'; import { CephfsService } from '~/app/shared/api/cephfs.service'; import { ListWithDetails } from '~/app/shared/classes/list-with-details.class'; import { CellTemplate } from '~/app/shared/enum/cell-template.enum'; import { CdTableColumn } from '~/app/shared/models/cd-...
1,720
26.758065
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.html
<ng-container *ngIf="selection"> <nav ngbNav #nav="ngbNav" (navChange)="softRefresh()" class="nav-tabs" cdStatefulTab="cephfs-tabs"> <ng-container ngbNavItem="details"> <a ngbNavLink i18n>Details</a> <ng-template ngbNavContent> <cd-cephfs-detail [data]="det...
1,639
31.156863
86
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { Component, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TreeModule } from '@circlon/angular-tree-component'; import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; import _ ...
6,457
28.898148
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts
import { Component, Input, NgZone, OnChanges, OnDestroy } from '@angular/core'; import _ from 'lodash'; import { Subscription, timer } from 'rxjs'; import { CephfsService } from '~/app/shared/api/cephfs.service'; import { TableStatusViewCache } from '~/app/shared/classes/table-status-view-cache'; import { ViewCacheSt...
3,252
23.832061
87
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/cluster.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { TreeModule } from '@circlon/angular-tree-component'; import { NgbActiveModal, NgbDatepickerModule, ...
5,776
44.849206
127
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.html
<cd-table [data]="data" (fetchData)="getConfigurationList($event)" [columns]="columns" [extraFilterableColumns]="filters" selectionType="single" [hasDetails]="true" (setExpandedRow)="setExpandedRow($event)" (updateSelection)="updateSelection($event)"...
911
32.777778
72
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.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 ...
1,619
33.468085
104
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { ConfigurationService } from '~/app/shared/api/configuration.service'; import { ListWithDetails } from '~/app/shared/classes/list-with-details.class'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import { Cel...
4,498
28.993333
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-details/configuration-details.component.html
<ng-container *ngIf="selection"> <table class="table table-striped table-bordered"> <tbody> <tr> <td i18n class="bold w-25">Name</td> <td class="w-75">{{ selection.name }}</td> </tr> <tr> <td i18n class="bold">Description</td> <td>{{ select...
2,727
24.735849
79
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-details/configuration-details.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { DataTableModule } from '~/app/shared/datatable/datatable.module'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-test-helper'; import { ConfigurationDetailsComponent } from './config...
882
31.703704
82
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-details/configuration-details.component.ts
import { Component, Input, OnChanges } from '@angular/core'; import _ from 'lodash'; @Component({ selector: 'cd-configuration-details', templateUrl: './configuration-details.component.html', styleUrls: ['./configuration-details.component.scss'] }) export class ConfigurationDetailsComponent implements OnChanges ...
1,014
32.833333
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form-create-request.model.ts
export class ConfigFormCreateRequestModel { name: string; value: Array<any> = []; }
88
16.8
43
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="configForm" #formDir="ngForm" [formGroup]="configForm" novalidate> <div class="card"> <div class="card-header"> <ng-container i18>Edit</ng-container> {{ configForm.getValue('name') }} </div> <div...
5,920
35.776398
108
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-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 { ConfigForm...
3,194
30.633663
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup, ValidatorFn } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import _ from 'lodash'; import { ConfigurationService } from '~/app/shared/api/configuration.service'; import { ConfigFormModel } from '~/a...
5,715
32.040462
95
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster-review.component.html
<div class="row"> <div class="col-lg-3"> <fieldset> <legend class="cd-header" i18n>Cluster Resources</legend> <table class="table table-striped"> <tr> <td i18n class="bold">Hosts</td> <td>{{ hostsCount }}</td> </tr> <tr> ...
1,314
23.811321
56
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster-review.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import _ from 'lodash'; import { ToastrModule } from 'ngx-toastr'; import { CephModule } from '~/app/ceph/ceph.module'; import { CoreModule } from '~/app/core/core.module'; import...
1,024
33.166667
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster-review.component.ts
import { Component, OnInit } from '@angular/core'; import _ from 'lodash'; import { CephServiceService } from '~/app/shared/api/ceph-service.service'; import { HostService } from '~/app/shared/api/host.service'; import { OsdService } from '~/app/shared/api/osd.service'; import { CephServiceSpec } from '~/app/shared/m...
2,551
33.958904
83
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.html
<div class="container h-75" *ngIf="!startClusterCreation"> <div class="row h-100 justify-content-center align-items-center"> <div class="blank-page"> <!-- htmllint img-req-src="false" --> <img [src]="projectConstants.cephLogo" alt="Ceph" class="img-fluid mx-auto d-block"> ...
3,799
35.538462
104
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { RouterTestingModule } from '@angular/router/testing'; import { ToastrModule } from 'ngx-toastr'; import { CephModule } fro...
6,659
36.206704
117
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts
import { Component, EventEmitter, OnDestroy, OnInit, Output, TemplateRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { forkJoin, Subscription } from 'rxjs'; import { finalize } from '...
8,136
31.94332
117
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.html
<div class="row"> <div class="col-sm-12 col-lg-12"> <div class="card"> <div class="card-header" i18n>CRUSH map viewer</div> <div class="card-body"> <div class="row"> <div class="col-sm-6 col-lg-6 tree-container"> <i *ngIf="loadingIndicator" [ngCl...
1,534
35.547619
166
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { DebugElement } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { TreeModule } from '@circlon/angular-tree-component'; import { of } from 'rxjs'; import { CrushRuleService }...
4,440
31.181159
86
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.ts
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { ITreeOptions, TreeComponent, TreeModel, TreeNode, TREE_ACTIONS } from '@circlon/angular-tree-component'; import { Observable, Subscription } from 'rxjs'; import { CrushRuleService } from '~/app/shared/api/crush-rule.service'; ...
3,080
24.04878
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html
<nav ngbNav #nav="ngbNav" class="nav-tabs"> <ng-container ngbNavItem> <a ngbNavLink i18n>Hosts List</a> <ng-template ngbNavContent> <cd-table #table [data]="hosts" [columns]="columns" columnMode="flex" (fetchData)="getHosts...
2,920
29.113402
89
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.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 { ToastrModule } from 'ngx-toa...
14,129
31.186788
113
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts
import { Component, Input, OnDestroy, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { Subscription } from 'rxjs'; import { mergeMap } from 'rxjs/operators'; import { HostService ...
17,014
31.911025
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.html
<ng-container *ngIf="selection"> <nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="host-details"> <ng-container ngbNavItem="devices"> <a ngbNavLink i18n>Devices</a> <ng-template ngbNavContent> <cd-device-list [hostname]="selection['hostname']"></cd-device-...
2,108
32.47619
85
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.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 { ToastrModule } from 'ngx-toa...
2,051
28.73913
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.ts
import { Component, Input } from '@angular/core'; import { Permissions } from '~/app/shared/models/permissions'; @Component({ selector: 'cd-host-details', templateUrl: './host-details.component.html', styleUrls: ['./host-details.component.scss'] }) export class HostDetailsComponent { @Input() permissions: P...
481
21.952381
76
ts