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/cypress/e2e/rgw/daemons.e2e-spec.ts
import { DaemonsPageHelper } from './daemons.po'; describe('RGW daemons page', () => { const daemons = new DaemonsPageHelper(); beforeEach(() => { cy.login(); daemons.navigateTo(); }); describe('breadcrumb and tab tests', () => { it('should open and show breadcrumb', () => { daemons.expectB...
933
25.685714
98
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/daemons.po.ts
import { PageHelper } from '../page-helper.po'; export class DaemonsPageHelper extends PageHelper { pages = { index: { url: '#/rgw/daemon', id: 'cd-rgw-daemon-list' } }; getTableCell() { return cy .get('.tab-content') .its(1) .find('cd-table') .should('have.length', 1) // Only 1 ...
1,047
28.942857
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/roles.e2e-spec.ts
import { RolesPageHelper } from './roles.po'; describe('RGW roles page', () => { const roles = new RolesPageHelper(); beforeEach(() => { cy.login(); roles.navigateTo(); }); describe('Create, Edit & Delete rgw roles', () => { it('should create rgw roles', () => { roles.navigateTo('create'); ...
449
21.5
53
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/roles.po.ts
import { PageHelper } from '../page-helper.po'; const pages = { index: { url: '#/rgw/roles', id: 'cd-crud-table' }, create: { url: '#/rgw/roles/create', id: 'cd-crud-form' } }; export class RolesPageHelper extends PageHelper { pages = pages; columnIndex = { roleName: 2, path: 3, arn: 4 }; @P...
1,111
28.263158
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.e2e-spec.ts
import { UsersPageHelper } from './users.po'; describe('RGW users page', () => { const users = new UsersPageHelper(); const tenant = 'e2e_000tenant'; const user_id = 'e2e_000user_create_edit_delete'; const user_name = tenant + '$' + user_id; beforeEach(() => { cy.login(); users.navigateTo(); }); ...
1,310
27.5
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.po.ts
import { PageHelper } from '../page-helper.po'; const pages = { index: { url: '#/rgw/user', id: 'cd-rgw-user-list' }, create: { url: '#/rgw/user/create', id: 'cd-rgw-user-form' } }; export class UsersPageHelper extends PageHelper { pages = pages; @PageHelper.restrictTo(pages.create.url) create(tenant: stri...
5,271
36.657143
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/api-docs.e2e-spec.ts
import { ApiDocsPageHelper } from '../ui/api-docs.po'; describe('Api Docs Page', () => { const apiDocs = new ApiDocsPageHelper(); beforeEach(() => { cy.login(); apiDocs.navigateTo(); }); it('should show the API Docs description', () => { cy.get('.renderedMarkdown').first().contains('This is the o...
355
22.733333
87
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/api-docs.po.ts
import { PageHelper } from '../page-helper.po'; export class ApiDocsPageHelper extends PageHelper { pages = { index: { url: '#/api-docs', id: 'cd-api-docs' } }; }
166
26.833333
62
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts
import { ManagerModulesPageHelper } from '../cluster/mgr-modules.po'; import { DashboardV3PageHelper } from './dashboard-v3.po'; describe('Dashboard-v3 Main Page', () => { const dashboard = new DashboardV3PageHelper(); const mgrmodules = new ManagerModulesPageHelper(); before(() => { cy.login(); mgrmodu...
1,716
33.34
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.po.ts
import { PageHelper } from '../page-helper.po'; export class DashboardV3PageHelper extends PageHelper { pages = { index: { url: '#/dashboard', id: 'cd-dashboard-v3' } }; cardTitle(index: number) { return cy.get('.card-title').its(index).text(); } clickInventoryCardLink(link: string) { console.log(lin...
523
23.952381
73
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts
import { IscsiPageHelper } from '../block/iscsi.po'; import { HostsPageHelper } from '../cluster/hosts.po'; import { ManagerModulesPageHelper } from '../cluster/mgr-modules.po'; import { MonitorsPageHelper } from '../cluster/monitors.po'; import { OSDsPageHelper } from '../cluster/osds.po'; import { PageHelper } from '...
4,959
33.929577
106
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.po.ts
import { PageHelper } from '../page-helper.po'; export class DashboardPageHelper extends PageHelper { pages = { index: { url: '#/dashboard', id: 'cd-dashboard' } }; infoGroupTitle(index: number) { return cy.get('.info-group-title').its(index).text(); } clickInfoCardLink(cardName: string) { cy.get(`cd...
902
27.21875
93
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/language.e2e-spec.ts
import { LanguagePageHelper } from './language.po'; describe('Shared pages', () => { const language = new LanguagePageHelper(); beforeEach(() => { cy.login(); language.navigateTo(); }); it('should check default language', () => { language.getLanguageBtn().should('contain.text', 'English'); }); ...
514
24.75
90
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/language.po.ts
import { PageHelper } from '../page-helper.po'; export class LanguagePageHelper extends PageHelper { pages = { index: { url: '#/dashboard', id: 'cd-dashboard' } }; getLanguageBtn() { return cy.get('cd-language-selector a').first(); } getAllLanguages() { return cy.get('cd-language-selector butto...
331
19.75
53
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/login.e2e-spec.ts
import { LoginPageHelper } from './login.po'; describe('Login page', () => { const login = new LoginPageHelper(); it('should login and navigate to dashboard page', () => { login.navigateTo(); login.doLogin(); }); it('should logout when clicking the button', () => { login.navigateTo(); login.d...
490
19.458333
59
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/login.po.ts
import { PageHelper } from '../page-helper.po'; export class LoginPageHelper extends PageHelper { pages = { index: { url: '#/login', id: 'cd-login' }, dashboard: { url: '#/dashboard', id: 'cd-dashboard' } }; doLogin() { cy.get('[name=username]').type('admin'); cy.get('#password').type('admin'); ...
610
25.565217
57
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.e2e-spec.ts
import { NavigationPageHelper } from './navigation.po'; describe('Shared pages', () => { const shared = new NavigationPageHelper(); beforeEach(() => { cy.login(); shared.navigateTo(); }); it('should display the vertical menu by default', () => { shared.getVerticalMenu().should('not.have.class', '...
599
24
64
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/navigation.po.ts
import { PageHelper } from '../page-helper.po'; export class NavigationPageHelper extends PageHelper { pages = { index: { url: '#/dashboard', id: 'cd-dashboard' } }; navigations = [ { menu: 'NFS', component: 'cd-error' }, { menu: 'Object Gateway', submenus: [ { menu: 'Gateways', ...
2,619
32.164557
109
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts
import { PoolPageHelper } from '../pools/pools.po'; import { NotificationSidebarPageHelper } from './notification.po'; describe('Notification page', () => { const notification = new NotificationSidebarPageHelper(); const pools = new PoolPageHelper(); const poolName = 'e2e_notification_pool'; before(() => { ...
1,625
27.526316
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.po.ts
import { PageHelper } from '../page-helper.po'; export class NotificationSidebarPageHelper extends PageHelper { getNotificatinoIcon() { return cy.get('cd-notifications a'); } getSidebar() { return cy.get('cd-notifications-sidebar'); } getTasks() { return this.getSidebar().find('.card.tc_task');...
1,125
23.478261
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/role-mgmt.e2e-spec.ts
import { RoleMgmtPageHelper } from './role-mgmt.po'; describe('Role Management page', () => { const roleMgmt = new RoleMgmtPageHelper(); const role_name = 'e2e_role_mgmt_role'; beforeEach(() => { cy.login(); roleMgmt.navigateTo(); }); describe('breadcrumb tests', () => { it('should check breadc...
963
25.054054
78
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/role-mgmt.po.ts
import { PageHelper } from '../page-helper.po'; export class RoleMgmtPageHelper extends PageHelper { pages = { index: { url: '#/user-management/roles', id: 'cd-role-list' }, create: { url: '#/user-management/roles/create', id: 'cd-role-form' } }; create(name: string, description: string) { this.navi...
1,254
29.609756
73
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/user-mgmt.e2e-spec.ts
import { UserMgmtPageHelper } from './user-mgmt.po'; describe('User Management page', () => { const userMgmt = new UserMgmtPageHelper(); const user_name = 'e2e_user_mgmt_user'; beforeEach(() => { cy.login(); userMgmt.navigateTo(); }); describe('breadcrumb tests', () => { it('should check breadc...
991
25.810811
87
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/user-mgmt.po.ts
import { PageHelper } from '../page-helper.po'; export class UserMgmtPageHelper extends PageHelper { pages = { index: { url: '#/user-management/users', id: 'cd-user-list' }, create: { url: '#/user-management/users/create', id: 'cd-user-form' } }; create(username: string, password: string, name: string, ...
1,335
32.4
75
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/visualTests/dashboard.vrt-spec.ts
import { LoginPageHelper } from '../ui/login.po'; describe('Dashboard Landing Page', () => { const login = new LoginPageHelper(); beforeEach(() => { cy.eyesOpen({ testName: 'Dashboard Component' }); }); afterEach(() => { cy.eyesClose(); }); it('should take screenshot of dashboard landi...
657
25.32
75
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/e2e/visualTests/login.vrt-spec.ts
describe('Login Page', () => { beforeEach(() => { cy.visit('#/login'); cy.eyesOpen({ appName: 'Ceph', testName: 'Login Component Check' }); }); afterEach(() => { cy.eyesClose(); }); it('types login credentials and takes screenshot', () => { cy.get('[name=username]').type('adm...
447
21.4
71
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/support/commands.ts
declare global { namespace Cypress { interface Chainable<Subject> { login(username?: string, password?: string): void; logToConsole(message: string, optional?: any): void; text(): Chainable<string>; ceph2Login(username?: string, password?: string): Chainable<any>; checkAccessibility(...
4,383
34.072
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/support/e2e.ts
import '@applitools/eyes-cypress/commands'; import 'cypress-axe'; import './commands'; afterEach(() => { cy.visit('#/403'); }); Cypress.on('uncaught:exception', (err: Error) => { if ( err.message.includes('ResizeObserver loop limit exceeded') || err.message.includes('api/prometheus/rules') || err.mes...
436
20.85
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/cypress/support/eyes-index.d.ts
import '@applitools/eyes-cypress';
35
17
34
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Ceph</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" type="image/x-icon" id="cdFavicon" href="favicon.ico"> </head> <body> <noscript> <div class="noscript container" ...
734
28.4
129
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts
Object.defineProperty(window, 'getComputedStyle', { value: () => ({ getPropertyValue: () => { return ''; } }) });
132
15.625
51
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/main.ts
import { ApplicationRef, enableProdMode, isDevMode } from '@angular/core'; import { enableDebugTools } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; i...
880
35.708333
98
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/polyfills.ts
/*************************************************************************************************** * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates. */ import '@angular/localize/init'; /** * This file includes polyfills needed by Angular and is loaded before the app. * You ...
1,773
37.565217
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/setupJest.ts
import '@angular/localize/init'; import 'jest-preset-angular/setup-jest'; import './jestGlobalMocks'; process.on('unhandledRejection', (error) => { const stack = error['stack'] || ''; // Avoid potential hang on test failure when running tests in parallel. throw `WARNING: unhandled rejection: ${error} ${stack}`...
326
26.25
73
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/typings.d.ts
/* SystemJS module definition */ declare var module: NodeModule; interface NodeModule { id: string; }
104
16.5
32
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts
import { Injectable, NgModule } from '@angular/core'; import { ActivatedRouteSnapshot, PreloadAllModules, RouterModule, Routes } from '@angular/router'; import _ from 'lodash'; import { CephfsListComponent } from './ceph/cephfs/cephfs-list/cephfs-list.component'; import { ConfigurationFormComponent } from './ceph/clu...
14,900
33.413395
123
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/app.component.html
<router-outlet></router-outlet>
32
15.5
31
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/app.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { configureTestBed } from '~/testing/unit-test-helper'; import { AppComponent } from './app.component'; describe('AppComponent', () => { let component: AppComponent; let fixture...
681
25.230769
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/app.component.ts
import { Component } from '@angular/core'; import { NgbPopoverConfig, NgbTooltipConfig } from '@ng-bootstrap/ng-bootstrap'; @Component({ selector: 'cd-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { constructor(popoverConfig: NgbPopoverConfig, too...
516
26.210526
81
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
import { APP_BASE_HREF } from '@angular/common'; import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { ErrorHandler, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; ...
1,511
28.076923
82
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/ceph.module.ts
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { SharedModule } from '../shared/shared.module'; import { CephfsModule } from './cephfs/cephfs.module'; import { ClusterModule } from './cluster/cluster.module'; import { DashboardModule } from './dashboard/dashboard.modul...
681
27.416667
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/block.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 { TreeModule } from '@circlon/angular-tree-component'; import { NgbNavModule, NgbPopoverModule, Ngb...
7,991
37.423077
137
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-setting/iscsi-setting.component.html
<div class="form-group" [formGroup]="settingsForm"> <label class="col-form-label" for="{{ setting }}">{{ setting }}</label> <select id="{{ setting }}" name="{{ setting }}" *ngIf="limits['type'] === 'enum'" class="form-control" [formControlName]="setting"> <o...
2,016
33.775862
91
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-setting/iscsi-setting.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormControl, NgForm, ReactiveFormsModule } from '@angular/forms'; import { CdFormGroup } from '~/app/shared/forms/cd-form-group'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-test-...
1,160
29.552632
74
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-setting/iscsi-setting.component.ts
import { Component, Input, OnInit } from '@angular/core'; import { NgForm, ValidatorFn, Validators } from '@angular/forms'; import { CdFormGroup } from '~/app/shared/forms/cd-form-group'; @Component({ selector: 'cd-iscsi-setting', templateUrl: './iscsi-setting.component.html', styleUrls: ['./iscsi-setting.compo...
844
25.40625
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-tabs/iscsi-tabs.component.html
<ul class="nav nav-tabs"> <li class="nav-item"> <a class="nav-link" routerLink="/block/iscsi/overview" routerLinkActive="active" ariaCurrentWhenActive="page" i18n>Overview</a> </li> <li class="nav-item"> <a class="nav-link" routerLink="/block/iscsi/targets" router...
414
23.411765
41
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-tabs/iscsi-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 { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testing/unit-test-helper'; import ...
871
29.068966
66
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-tabs/iscsi-tabs.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'cd-iscsi-tabs', templateUrl: './iscsi-tabs.component.html', styleUrls: ['./iscsi-tabs.component.scss'] }) export class IscsiTabsComponent {}
215
23
45
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.html
<div class="row"> <div class="col-6"> <legend i18n>iSCSI Topology</legend> <tree-root #tree [nodes]="nodes" [options]="treeOptions" (updateData)="onUpdateData()"> <ng-template #treeNodeTemplate let-node let-index="index"...
1,248
28.738095
145
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { TreeModel, TreeModule } from '@circlon/angular-tree-component'; import { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/tes...
6,432
29.927885
98
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.ts
import { Component, Input, OnChanges, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { ITreeOptions, TreeComponent, TreeModel, TreeNode, TREE_ACTIONS } from '@circlon/angular-tree-component'; import _ from 'lodash'; import { TableComponent } from '~/app/shared/datatable/table/table.component'...
9,658
26.835735
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Discovery Authentication</ng-container> <ng-container class="modal-content"> <form name="discoveryForm" #formDir="ngForm" [formGroup]="discoveryForm" novalidate> <div class="modal-body...
5,101
38.550388
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-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 { By } from '@angular/platform-browser'; import { RouterTestingModule } from '...
4,545
32.925373
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { IscsiService } from '~/app/shared/api/iscsi.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; import { Not...
4,161
32.564516
84
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="targetForm" #formDir="ngForm" [formGroup]="targetForm" novalidate> <div class="card"> <div i18n="form title" class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div> <div class...
28,650
41.698957
122
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-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...
18,774
30.607744
102
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.ts
import { Component, OnInit } from '@angular/core'; import { FormArray, FormControl, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { forkJoin } from 'rxjs'; import { IscsiService } f...
27,540
32.464156
138
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title"> <ng-container i18n>Configure</ng-container>&nbsp; <small>{{ image }}</small> </ng-container> <ng-container class="modal-content"> <form name="settingsForm" class="form" #formDir="ngForm" [formGroup]="...
3,275
34.225806
102
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormControl, ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveModal } from '@ng-bootstrap/ng-b...
2,806
27.353535
103
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { AbstractControl, FormControl } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { IscsiService } from '~/app/shared/api/iscsi.service'; import { ActionLabelsI18n } from '~/app/shared/constants...
3,152
34.829545
96
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-iqn-settings-modal/iscsi-target-iqn-settings-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Advanced Settings</ng-container> <ng-container class="modal-content"> <form name="settingsForm" #formDir="ngForm" [formGroup]="settingsForm" novalidate> <div class="modal-body"> ...
1,182
34.848485
97
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-iqn-settings-modal/iscsi-target-iqn-settings-modal.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormControl, ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { NgbActiveModal } from '@ng-bootstrap/ng-b...
2,317
31.194444
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-iqn-settings-modal/iscsi-target-iqn-settings-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { IscsiService } from '~/app/shared/api/iscsi.service'; import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; ...
1,782
28.229508
72
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.html
<cd-iscsi-tabs></cd-iscsi-tabs> <cd-alert-panel type="info" *ngIf="available === false" title="iSCSI Targets not available" i18n-title> <ng-container i18n>Please consult the <cd-doc section="iscsi"></cd-doc> on how to configure and enable the iSCSI Targets manageme...
1,812
32.574074
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-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 { TreeModule } from '@circlon/...
9,946
31.087097
101
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.ts
import { Component, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { Subscription } from 'rxjs'; import { IscsiService } from '~/app/shared/api/iscsi.service'; import { ListWithDetails } from '~/app/shared/classes/l...
7,330
29.168724
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.html
<cd-iscsi-tabs></cd-iscsi-tabs> <legend i18n>Gateways</legend> <div> <cd-table [data]="gateways" (fetchData)="refresh()" [columns]="gatewaysColumns"> </cd-table> </div> <legend i18n>Images</legend> <div> <cd-table [data]="images" [columns]="imagesColumns"> </cd-table> </div...
1,247
22.111111
61
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { of } from 'rxjs'; import { IscsiService } from '~/app/shared/api/iscsi.service'; import { CephShortVersionPipe }...
2,519
29
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.ts
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { IscsiService } from '~/app/shared/api/iscsi.service'; import { CellTemplate } from '~/app/shared/enum/cell-template.enum'; import { DimlessPipe } from '~/app/shared/pipes/dimless.pipe'; import { IscsiBackstorePipe } from '~/app/shared/...
3,157
25.762712
92
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirror-health-color.pipe.spec.ts
import { MirrorHealthColorPipe } from './mirror-health-color.pipe'; describe('MirrorHealthColorPipe', () => { const pipe = new MirrorHealthColorPipe(); it('create an instance', () => { expect(pipe).toBeTruthy(); }); it('transforms "warning"', () => { expect(pipe.transform('warning')).toBe('badge badg...
661
24.461538
67
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirror-health-color.pipe.ts
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'mirrorHealthColor' }) export class MirrorHealthColorPipe implements PipeTransform { transform(value: any): any { if (value === 'warning') { return 'badge badge-warning'; } else if (value === 'error') { return 'badge badge-dange...
441
23.555556
61
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirroring.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, NgbProgressbarModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import { Share...
1,666
36.886364
106
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-create-modal/bootstrap-create-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Create Bootstrap Token</ng-container> <ng-container class="modal-content"> <form name="createBootstrapForm" class="form" #formDir="ngForm" [formGroup]="createBootstrapForm" novalid...
3,171
35.045455
86
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-create-modal/bootstrap-create-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...
4,091
34.894737
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-create-modal/bootstrap-create-modal.component.ts
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { concat, forkJoin, Subscription } from 'rxjs'; import { last, tap } from 'rxjs/ope...
4,646
29.175325
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-import-modal/bootstrap-import-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Import Bootstrap Token</ng-container> <ng-container class="modal-content"> <form name="importBootstrapForm" class="form" #formDir="ngForm" [formGroup]="importBootstrapForm" novalid...
3,686
37.010309
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-import-modal/bootstrap-import-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...
4,552
33.492424
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-import-modal/bootstrap-import-modal.component.ts
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; import { concat, forkJoin, Observable, Subscription } from 'rxjs'; import { last } from 'r...
5,447
27.978723
99
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.html
<cd-table [data]="data" columnMode="flex" [columns]="columns" [autoReload]="-1" (fetchData)="refresh()" [status]="tableStatus"> </cd-table> <ng-template #healthTmpl let-row="row" let-value="value"> <span [ngClass]="row.health_color | mirrorH...
366
25.214286
75
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-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 { SharedModule } from '~/app/shared/shared.module'; import { configureTestBed } from '~/testi...
1,014
34
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.ts
import { Component, OnDestroy, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { Subscription } from 'rxjs'; import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service'; import { TableStatusViewCache } from '~/app/shared/classes/table-status-view-cache'; import { CephShortVersionPipe } ...
1,712
26.190476
85
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.html
<nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="image-list"> <ng-container ngbNavItem="issues"> <a ngbNavLink i18n>Issues ({{ image_error.data.length }})</a> <ng-template ngbNavContent> <cd-table [data]="image_error.data" columnMode="flex" ...
2,070
29.910448
76
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-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 { NgbNavModule, NgbProgressbarModule } from '@ng-bootstrap/ng-bootstrap'; import { SharedMod...
1,161
30.405405
80
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.ts
import { Component, OnDestroy, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { Subscription } from 'rxjs'; import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service'; import { TableStatusViewCache } from '~/app/shared/classes/table-status-view-cache'; @Component({ selector: 'cd-mi...
2,910
28.11
94
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
<form name="rbdmirroringForm" #formDir="ngForm" [formGroup]="rbdmirroringForm" novalidate> <div class="row mb-3"> <div class="col-md-auto"> <label class="col-form-label" for="siteName" i18n>Site Name</label></div> <div class="col-sm-4 d-flex"> <input ty...
1,756
24.463768
55
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/r...
2,709
32.875
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.ts
import { Component, OnDestroy, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { Subscription } from 'rxjs'; import { Pool } from '~/app/ceph/pool/pool'; import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.se...
4,151
33.032787
107
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.html
<cd-modal [modalRef]="activeModal" pageURL="mirroring"> <ng-container i18n class="modal-title">Edit pool mirror mode</ng-container> <ng-container class="modal-content"> <form name="editModeForm" class="form" #formDir="ngForm" [formGroup]="editModeForm" ...
1,598
34.533333
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.spec.ts
import { HttpClientTestingModule } 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/testing'; import { NgbA...
2,965
33.091954
81
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.ts
import { Location } from '@angular/common'; import { Component, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl, FormControl, Validators } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { Subscription } fro...
3,482
30.098214
100
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-response.model.ts
export class PoolEditModeResponseModel { mirror_mode: string; }
66
15.75
40
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-modal.component.html
<cd-modal [modalRef]="activeModal"> <span class="modal-title" i18n>{mode, select, edit {Edit} other {Add}} pool mirror peer</span> <ng-container class="modal-content"> <form name="editPeerForm" class="form" #formDir="ngForm" [formGroup]="editPeerForm" novalidate>...
3,722
35.861386
92
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-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...
4,848
31.543624
91
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-modal.component.ts
import { Component, OnInit } from '@angular/core'; import { AbstractControl, FormControl, Validators } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service'; import { ActionLabelsI18n } from '~/app/shared/consta...
4,343
29.591549
88
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-response.model.ts
export class PoolEditPeerResponseModel { cluster_name: string; client_id: string; mon_host: string; key: string; uuid: string; }
139
16.5
40
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.html
<cd-table [data]="data" columnMode="flex" [columns]="columns" identifier="name" forceIdentifier="true" [autoReload]="-1" (fetchData)="refresh()" selectionType="single" (updateSelection)="updateSelection($event)" [status]="tableSta...
1,029
29.294118
75
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/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 { ToastrModule } from 'ngx-toa...
1,188
30.289474
79
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.ts
import { Component, OnDestroy, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { Observable, Subscriber, Subscription } from 'rxjs'; import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.ser...
6,112
31.343915
143
ts
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.html
<fieldset #cfgFormGroup [formGroup]="form.get('configuration')"> <legend i18n>RBD Configuration</legend> <div *ngFor="let section of rbdConfigurationService.sections" class="col-12"> <h4 class="cd-header"> <span (click)="toggleSectionVisibility(section.class)" class="collapsi...
3,075
41.136986
132
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.spec.ts
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { ReplaySubject } from 'rxjs'; import { DirectivesModule } from '~/app/shared/directives/directives.module'; import { CdFormGroup } from '~/ap...
10,069
33.135593
97
ts