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/core/auth/role-details/role-details.component.ts | import { Component, Input, OnChanges, OnInit } from '@angular/core';
import _ from 'lodash';
import { CellTemplate } from '~/app/shared/enum/cell-template.enum';
import { CdTableColumn } from '~/app/shared/models/cd-table-column';
@Component({
selector: 'cd-role-details',
templateUrl: './role-details.component.h... | 2,175 | 26.2 | 99 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-form/role-form-mode.enum.ts | export enum RoleFormMode {
editing = 'editing'
}
| 51 | 12 | 26 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-form/role-form.component.html | <div class="cd-col-form"
*cdFormLoading="loading">
<form name="roleForm"
#formDir="ngForm"
[formGroup]="roleForm"
novalidate>
<div class="card">
<div i18n="form title"
class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div>
<div class="car... | 4,381 | 34.918033 | 97 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-form/role-form.component.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { Component } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { Router, Routes } from '@angular/router';
import { Ro... | 8,104 | 35.345291 | 102 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-form/role-form.component.ts | import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { FormControl, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import _ from 'lodash';
import { forkJoin as observableForkJoin } from 'rxjs';
import { RoleService } from '~/app/shared/api/ro... | 10,599 | 32.544304 | 99 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-form/role-form.model.ts | export class RoleFormModel {
name: string;
description: string;
scopes_permissions: any;
}
| 97 | 15.333333 | 28 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.html | <cd-user-tabs></cd-user-tabs>
<cd-table [data]="roles"
columnMode="flex"
[columns]="columns"
identifier="name"
selectionType="single"
[hasDetails]="true"
(setExpandedRow)="setExpandedRow($event)"
(fetchData)="getRoles()"
(updateSelection)=... | 701 | 30.909091 | 54 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-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,065 | 35.5 | 101 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.ts | import { Component, OnInit } from '@angular/core';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { forkJoin } from 'rxjs';
import { RoleService } from '~/app/shared/api/role.service';
import { ScopeService } from '~/app/shared/api/scope.service';
import { ListWithDetails } from '~/app/shared/classe... | 5,720 | 32.652941 | 143 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form-mode.enum.ts | export enum UserFormMode {
editing = 'editing'
}
| 51 | 12 | 26 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form-role.model.ts | import { SelectOption } from '~/app/shared/components/select/select-option.model';
export class UserFormRoleModel implements SelectOption {
name: string;
description: string;
selected = false;
scopes_permissions: object;
enabled = true;
constructor(name: string, description: string) {
this.name = name... | 364 | 23.333333 | 82 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.html | <div class="cd-col-form"
*cdFormLoading="loading">
<form name="userForm"
#formDir="ngForm"
[formGroup]="userForm"
novalidate>
<div class="card">
<div i18n="form title"
class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div>
<div class="car... | 10,135 | 38.286822 | 107 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { Component } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { Router, Routes } from '@angular/router';
import { Ro... | 8,831 | 33.100386 | 102 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts | import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import _ from 'lodash';
import moment from 'moment';
import { forkJoin as observabl... | 10,530 | 33.415033 | 117 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.model.ts | export class UserFormModel {
username: string;
password: string;
pwdExpirationDate: number;
name: string;
email: string;
roles: Array<string>;
enabled: boolean;
pwdUpdateRequired: boolean;
}
| 207 | 17.909091 | 29 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.html | <cd-user-tabs></cd-user-tabs>
<cd-table [data]="users"
columnMode="flex"
[columns]="columns"
identifier="username"
selectionType="single"
(fetchData)="getUsers()"
(updateSelection)="updateSelection($event)">
<cd-table-actions class="table-actions"
... | 1,707 | 35.340426 | 132 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-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,610 | 35.846939 | 101 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts | import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { SettingsService } from '~/app/shared/api/settings.service';
import { UserService } from '~/app/shared/api/user.service';
import { CriticalConfirmationModalComponent } from '~/a... | 7,360 | 31.427313 | 143 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-password-form/user-password-form.component.html | <div class="cd-col-form">
<form #frm="ngForm"
[formGroup]="userForm"
novalidate>
<div class="card">
<div i18n="form title"
class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div>
<div class="card-body">
<!-- Old password -->
<div class... | 4,719 | 39.689655 | 97 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-password-form/user-password-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 { Router } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';... | 3,004 | 34.77381 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-password-form/user-password-form.component.ts | import { Component } from '@angular/core';
import { Validators } from '@angular/forms';
import { Router } from '@angular/router';
import _ from 'lodash';
import { UserService } from '~/app/shared/api/user.service';
import { ActionLabelsI18n } from '~/app/shared/constants/app.constants';
import { Icons } from '~/app/s... | 3,999 | 32.333333 | 98 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-tabs/user-tabs.component.html | <ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link"
routerLink="/user-management/users"
routerLinkActive="active"
ariaCurrentWhenActive="page"
[routerLinkActiveOptions]="{exact: true}"
i18n>Users</a>
</li>
<li class="nav-item">
<a class="nav-link"
... | 510 | 25.894737 | 48 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-tabs/user-tabs.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'... | 961 | 31.066667 | 88 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-tabs/user-tabs.component.ts | import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'cd-user-tabs',
templateUrl: './user-tabs.component.html',
styleUrls: ['./user-tabs.component.scss']
})
export class UserTabsComponent {
url: string;
constructor(public router: Router) {}
}
| 310 | 21.214286 | 44 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.html | <ng-container *ngIf="{ ftMap: featureToggleMap$ | async, daemons: rgwDaemonService.daemons$ | async, selectedDaemon: rgwDaemonService.selectedDaemon$ | async } as data">
<ng-container *ngIf="data.ftMap && data.ftMap.rgw && permissions.rgw.read && isRgwRoute && data.daemons.length > 1">
<div class="cd-context-bar ... | 1,211 | 42.285714 | 169 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { Router } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { of } from 'rxjs';
import ... | 3,741 | 36.049505 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/context/context.component.ts | import { Component, OnDestroy, OnInit } from '@angular/core';
import { Event, NavigationEnd, Router } from '@angular/router';
import { NEVER, Subscription } from 'rxjs';
import { filter } from 'rxjs/operators';
import { RgwDaemon } from '~/app/ceph/rgw/models/rgw-daemon';
import { RgwDaemonService } from '~/app/share... | 2,628 | 31.8625 | 99 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.html | <head>
<title>Error Page</title>
<base target="_blank">
</head>
<div class="container h-75">
<div class="row h-100 justify-content-center align-items-center">
<div class="blank-page">
<div *ngIf="header && message; else elseBlock">
<i [ngClass]="icon"
class="mx-auto d-block"></i>
... | 2,147 | 30.588235 | 109 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { ToastrModule } from 'ngx-toastr';
import { SharedModule } from '~/app/shared/shared.module';
import { confi... | 1,927 | 37.56 | 97 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.ts | import { HttpClient } from '@angular/common/http';
import { Component, HostListener, OnDestroy, OnInit } from '@angular/core';
import { NavigationEnd, Router, RouterEvent } from '@angular/router';
import { Subscription } from 'rxjs';
import { filter } from 'rxjs/operators';
import { NotificationType } from '~/app/sha... | 3,252 | 30.582524 | 98 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/error/error.ts | import { Icons } from '~/app/shared/enum/icons.enum';
export class DashboardError extends Error {
header: string;
message: string;
icon: string;
}
export class DashboardNotFoundError extends DashboardError {
header = $localize`Page Not Found`;
message = $localize`Sorry, we couldn’t find what you were lookin... | 889 | 30.785714 | 87 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.html | <router-outlet></router-outlet>
| 32 | 15.5 | 31 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.spec.ts | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { BlankLayoutComponent } from './blank-layout.component';
describe('DefaultLayoutComponent', () => {
let component: ... | 740 | 27.5 | 66 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.ts | import { Component } from '@angular/core';
@Component({
selector: 'cd-blank-layout',
templateUrl: './blank-layout.component.html',
styleUrls: ['./blank-layout.component.scss']
})
export class BlankLayoutComponent {}
| 223 | 23.888889 | 47 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.html | <main class="login full-height">
<header>
<nav class="navbar p-4">
<a class="navbar-brand"></a>
<div class="form-inline">
<cd-language-selector></cd-language-selector>
</div>
</nav>
</header>
<section>
<div class="container">
<div class="row full-height">
<div c... | 1,095 | 30.314286 | 65 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.spec.ts | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { SharedModule } from '~/app/s... | 1,013 | 33.965517 | 98 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.ts | import { Component } from '@angular/core';
@Component({
selector: 'cd-login-layout',
templateUrl: './login-layout.component.html',
styleUrls: ['./login-layout.component.scss']
})
export class LoginLayoutComponent {
docItems: any[] = [
{ section: 'help', text: $localize`Help` },
{ section: 'security', t... | 414 | 26.666667 | 58 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.html | <block-ui>
<cd-navigation>
<div class="container-fluid h-100"
[ngClass]="{'dashboard': (router.url == '/dashboard' || router.url == '/dashboard_3')}">
<cd-context></cd-context>
<cd-breadcrumbs></cd-breadcrumbs>
<router-outlet></router-outlet>
</div>
</cd-navigation>
</block-ui>
| 316 | 27.818182 | 97 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.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 { RouterTestingModule } from '@angular/router/testing';
import { ToastrModule } from 'ngx-toastr';
import { RbdService } f... | 1,351 | 36.555556 | 97 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.ts | import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Subscription } from 'rxjs';
import { FaviconService } from '~/app/shared/services/favicon.service';
import { SummaryService } from '~/app/shared/services/summary.service';
import { TaskManagerService } fro... | 1,080 | 29.027778 | 80 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
import { SimplebarAngularModule } from 'simplebar-angular';
import { AppRoutingModule } from '~/a... | 1,554 | 34.340909 | 84 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/about/about.component.html | <div class="about-container">
<div class="modal-header">
<button type="button"
class="btn-close float-end"
aria-label="Close"
(click)="activeModal.close()">
</button>
</div>
<div class="modal-body">
<img src="assets/Ceph_Ceph_Logo_with_text_red_white.svg"
c... | 1,246 | 25.531915 | 60 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/about/about.component.spec.ts | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { BehaviorSubject } from 'rxjs';
import { SummaryService } from '~/app/shared/services/summary.service';
import... | 1,968 | 31.278689 | 90 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/about/about.component.ts | import { Component, OnDestroy, OnInit } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { detect } from 'detect-browser';
import { Subscription } from 'rxjs';
import { UserService } from '~/app/shared/api/user.service';
import { AppConstants } from '~/app/shared/constants/app... | 2,427 | 33.197183 | 91 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.html | <div ngbDropdown
placement="bottom-right"
*ngIf="userPermission.read">
<a ngbDropdownToggle
class="dropdown-toggle"
i18n-title
title="Dashboard Settings"
role="button">
<i [ngClass]="[icons.deepCheck]"></i>
<span i18n
class="d-md-none">Dashboard Settings</span>
</a>
... | 670 | 26.958333 | 53 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.spec.ts | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SharedModule } from '~/app/shared/shared.module';
import { configureTestBed } from '~/testing/unit-test-helper';
import { AdministrationComponent } from './administration.component';
describe('AdministrationComponent', () => {
let component... | 747 | 27.769231 | 69 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/administration/administration.component.ts | import { Component } from '@angular/core';
import { Icons } from '~/app/shared/enum/icons.enum';
import { Permission } from '~/app/shared/models/permissions';
import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
@Component({
selector: 'cd-administration',
templateUrl: './administration... | 746 | 31.478261 | 80 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/api-docs/api-docs.component.html |
<div id="swagger-ui"
class="apiDocs"></div>
| 50 | 11.75 | 27 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/api-docs/api-docs.component.ts | import { Component, OnInit } from '@angular/core';
import SwaggerUI from 'swagger-ui';
@Component({
selector: 'cd-api-docs',
templateUrl: './api-docs.component.html',
styleUrls: ['./api-docs.component.scss']
})
export class ApiDocsComponent implements OnInit {
ngOnInit(): void {
SwaggerUI({
url: win... | 434 | 21.894737 | 57 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.html | <ol *ngIf="crumbs.length"
class="breadcrumb">
<li *ngFor="let crumb of crumbs; let last = last"
[ngClass]="{ 'active': last && finished }"
class="breadcrumb-item">
<a *ngIf="!last && crumb.path !== null"
[routerLink]="crumb.path"
preserveFragment>{{ crumb.text }}</a>
<span *ngIf=... | 388 | 31.416667 | 69 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.spec.ts | import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { Title } from '@angular/platform-browser';
import { Router, Routes } from '@angular/router';
import { RouterTestingModule } from '@angula... | 5,348 | 30.098837 | 108 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.ts | /*
The MIT License
Copyright (c) 2017 (null) McNull https://github.com/McNull
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | 5,134 | 31.5 | 97 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html | <div ngbDropdown
placement="bottom-right">
<a ngbDropdownToggle
i18n-title
title="Help"
role="button">
<i [ngClass]="[icons.questionCircle]"></i>
<span i18n
class="d-md-none">Help</span>
</a>
<div ngbDropdownMenu>
<a ngbDropdownItem
class="text-capitalize"
[... | 786 | 25.233333 | 46 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.spec.ts | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { SharedModule } from '~/app/shared/shared.module';
import { configureTestBed } from '~/testing/unit-test-help... | 922 | 31.964286 | 74 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts | import { Component, OnInit } from '@angular/core';
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { FeedbackComponent } from '~/app/ceph/shared/feedback/feedback.component';
import { Icons } from '~/app/shared/enum/icons.enum';
import { DocService } from '~/app/shared/services/doc.service';
import {... | 1,164 | 29.657895 | 86 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/identity/identity.component.html | <div ngbDropdown
placement="bottom-right">
<a ngbDropdownToggle
i18n-title
title="Logged in user"
role="button">
<i [ngClass]="[icons.user]"></i>
<span i18n
class="d-md-none">Logged in user</span>
</a>
<div ngbDropdownMenu>
<button ngbDropdownItem
disabled
... | 780 | 25.931034 | 70 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/identity/identity.component.spec.ts | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { SharedModule } from '~/app/shared/shared.module';
import { configureTestBed } from '~/testing/unit-test-help... | 886 | 30.678571 | 74 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/identity/identity.component.ts | import { Component, OnInit } from '@angular/core';
import { AuthService } from '~/app/shared/api/auth.service';
import { Icons } from '~/app/shared/enum/icons.enum';
import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
@Component({
selector: 'cd-identity',
templateUrl: './identity.comp... | 761 | 26.214286 | 98 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html | <div class="cd-navbar-main">
<cd-pwd-expiration-notification></cd-pwd-expiration-notification>
<cd-telemetry-notification></cd-telemetry-notification>
<cd-motd></cd-motd>
<cd-notifications-sidebar></cd-notifications-sidebar>
<div class="cd-navbar-top">
<nav class="navbar navbar-expand-md navbar-dark cd-na... | 10,990 | 35.88255 | 110 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.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 { SimplebarAngularM... | 9,892 | 35.640741 | 99 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts | import { Component, HostBinding, OnDestroy, OnInit } from '@angular/core';
import * as _ from 'lodash';
import { Subscription } from 'rxjs';
import { Icons } from '~/app/shared/enum/icons.enum';
import { Permissions } from '~/app/shared/models/permissions';
import { AuthStorageService } from '~/app/shared/services/au... | 3,816 | 29.782258 | 100 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.html | <a i18n-title
title="Tasks and Notifications"
[ngClass]="{ 'running': hasRunningTasks }"
(click)="toggleSidebar()">
<i [ngClass]="[icons.bell]"></i>
<span class="dot"
*ngIf="hasNotifications">
</span>
<span class="d-md-none"
i18n>Tasks and Notifications</span>
</a>
| 299 | 24 | 45 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.spec.ts | import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { ToastrModule } from 'ngx-toastr';
import { CdNotification, CdNotificationConfig } from '~/app/shared/models... | 2,310 | 38.169492 | 98 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.ts | import { Component, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs';
import { Icons } from '~/app/shared/enum/icons.enum';
import { CdNotification } from '~/app/shared/models/cd-notification';
import { NotificationService } from '~/app/shared/services/notification.service';
import { Summ... | 1,304 | 26.1875 | 85 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/shared.module.ts | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FormlyModule } from '@ngx-formly/core';
import { FormlyBootstrapModule } from '@ngx-formly/bootstrap';
import { CssHelper } from '~/app/shared/classes/css-helper';
im... | 1,971 | 43.818182 | 116 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.spec.ts | import { ApiClient } from '~/app/shared/api/api-client';
class MockApiClient extends ApiClient {}
describe('ApiClient', () => {
const service = new MockApiClient();
it('should get the version header value', () => {
expect(service.getVersionHeaderValue(1, 2)).toBe('application/vnd.ceph.api.v1.2+json');
});
... | 324 | 26.083333 | 91 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/api-client.ts | export abstract class ApiClient {
getVersionHeaderValue(major: number, minor: number) {
return `application/vnd.ceph.api.v${major}.${minor}+json`;
}
}
| 159 | 25.666667 | 62 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/auth.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
import { Router, Routes } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { configureTestBed } from '~/testing/u... | 1,948 | 32.603448 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/auth.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import * as _ from 'lodash';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { Credentials } from '../models/credentials';
import { L... | 1,547 | 27.666667 | 80 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/ceph-service.service.ts | import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ApiClient } from '~/app/shared/api/api-client';
import { Daemon } from '../models/daemon.interface';
import { CephServiceSpec } from '../models/service.interface';
imp... | 2,170 | 27.946667 | 93 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/ceph-user.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class CephUserService {
constructor(private http: HttpClient) {}
export(entities: string[]) {
return this.http.post('api/cluster/user/export', { entities: entities });
... | 324 | 22.214286 | 77 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { CephfsService } from './cephfs.service';
describe('CephfsService', () => {
let service: CephfsServic... | 3,467 | 34.030303 | 97 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs.service.ts | import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import _ from 'lodash';
import { Observable } from 'rxjs';
import { cdEncode } from '../decorators/cd-encode';
import { CephfsDir, CephfsQuotas } from '../models/cephfs-directory-models';
@cdEncode
@Injectable(... | 2,081 | 26.038961 | 78 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/cluster.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { fakeAsync, TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { ClusterService } from './cluster.service';
describe('ClusterService', () => {
let service... | 1,240 | 27.860465 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/cluster.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class ClusterService {
baseURL = 'api/cluster';
constructor(private http: HttpClient) {}
getStatus(): Observable<string> {
return t... | 630 | 21.535714 | 67 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/configuration.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { ConfigFormCreateRequestModel } from '~/app/ceph/cluster/configuration/configuration-form/configuration-form-create-request.model';
import { configureTestBed } from '~... | 3,396 | 32.97 | 139 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/configuration.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ConfigFormCreateRequestModel } from '~/app/ceph/cluster/configuration/configuration-form/configuration-form-create-request.model';
@Injectable({
providedIn: 'root'
})
export class ConfigurationService {
constru... | 1,623 | 26.066667 | 139 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/crush-rule.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { CrushRuleService } from './crush-rule.service';
describe('CrushRuleService', () => {
let service: Cr... | 1,380 | 27.770833 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/crush-rule.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { CrushRuleConfig } from '../models/crush-rule';
@Injectable({
providedIn: 'root'
})
export class CrushRuleService {
apiPath = 'api/crush_rule';
formTooltips = {
// Copied from /doc/rados/operations/crush-... | 921 | 26.939394 | 97 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { CustomLoginBannerService } from './custom-login-banner.service';
describe('CustomLoginBannerService', ... | 1,028 | 27.583333 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class CustomLoginBannerService {
baseUiURL = 'ui-api/login/custom_banner';
constructor(private http: HttpClient) {}
getBannerText() {
return this.http.get<string>(this... | 339 | 20.25 | 50 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/daemon.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { DaemonService } from './daemon.service';
describe('DaemonService', () => {
let service: DaemonServic... | 1,055 | 25.4 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/daemon.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { cdEncode } from '~/app/shared/decorators/cd-encode';
@cdEncode
@Injectable({
providedIn: 'root'
})
export class DaemonService {
private url = 'api/daemon';
constructor(private http: HttpClient) {}
action(... | 622 | 20.482759 | 66 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/erasure-code-profile.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { ErasureCodeProfile } from '../models/erasure-code-profile';
import { ErasureCodeProfileService } from '... | 1,721 | 29.75 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/erasure-code-profile.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ErasureCodeProfile } from '../models/erasure-code-profile';
@Injectable({
providedIn: 'root'
})
export class ErasureCodeProfileService {
apiPath = 'api/erasure_code_profile';... | 5,663 | 50.027027 | 111 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/feedback.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { FeedbackService } from './feedback.service';
describe('FeedbackService', () => {
let service: Feedba... | 1,352 | 27.1875 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/feedback.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import * as _ from 'lodash';
@Injectable({
providedIn: 'root'
})
export class FeedbackService {
constructor(private http: HttpClient) {}
baseUIURL = 'api/feedback';
isKeyExist() {
return this.http.get('ui-api/f... | 775 | 18.897436 | 65 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { HealthService } from './health.service';
describe('HealthService', () => {
let service: HealthServic... | 1,119 | 26.317073 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class HealthService {
constructor(private http: HttpClient) {}
getFullHealth() {
return this.http.get('api/health/full');
}
getMinimalHealth() {
return this.http... | 621 | 19.733333 | 61 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/host.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { HostService } from './host.service';
describe('HostService', () => {
let service: H... | 2,874 | 30.25 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/host.service.ts | import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import _ from 'lodash';
import { Observable, of as observableOf } from 'rxjs';
import { map, mergeMap, toArray } from 'rxjs/operators';
import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-dev... | 4,889 | 30.548387 | 104 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/iscsi.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { IscsiService } from './iscsi.service';
describe('IscsiService', () => {
let service: IscsiService;
... | 2,993 | 29.55102 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/iscsi.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { cdEncode } from '../decorators/cd-encode';
@cdEncode
@Injectable({
providedIn: 'root'
})
export class IscsiService {
constructor(private http: HttpClient) {}
listTargets() {
return this.http.get(`api/isc... | 1,350 | 21.147541 | 92 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/logging.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { LoggingService } from './logging.service';
describe('LoggingService', () => {
let service: LoggingSe... | 1,046 | 25.175 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/logging.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class LoggingService {
constructor(private http: HttpClient) {}
jsError(url: string, message: string, stack: any) {
const request = {
url: url,
message: messa... | 419 | 21.105263 | 62 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/logs.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { LogsService } from './logs.service';
describe('LogsService', () => {
let service: LogsService;
let... | 891 | 24.485714 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/logs.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class LogsService {
constructor(private http: HttpClient) {}
getLogs() {
return this.http.get('api/logs/all');
}
validateDashboardUrl(uid: string) {
return this.... | 369 | 19.555556 | 58 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/mgr-module.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { MgrModuleService } from './mgr-module.service';
describe('MgrModuleService', () => {
let service: Mg... | 1,997 | 28.820896 | 94 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/mgr-module.service.ts | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class MgrModuleService {
private url = 'api/mgr/module';
constructor(private http: HttpClient) {}
/**
* Get the list of Ceph Mgr mod... | 1,740 | 25.378788 | 73 | ts |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/api/monitor.service.spec.ts | import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { configureTestBed } from '~/testing/unit-test-helper';
import { MonitorService } from './monitor.service';
describe('MonitorService', () => {
let service: MonitorSe... | 914 | 25.142857 | 94 | ts |