repo stringlengths 1 152 ⌀ | file stringlengths 15 205 | code stringlengths 0 41.6M | file_length int64 0 41.6M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 90
values |
|---|---|---|---|---|---|---|
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-system-user/rgw-system-user.component.html | <cd-modal [modalRef]="activeModal">
<ng-container i18n="form title"
class="modal-title">Create System User</ng-container>
<ng-container class="modal-content">
<form name="multisiteSystemUserForm"
#formDir="ngForm"
[formGroup]="multisiteSystemUserForm"
novalidate>
... | 1,465 | 37.578947 | 94 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-capability-modal/rgw-user-capability-modal.component.html | <cd-modal [modalRef]="activeModal">
<ng-container i18n="form title"
class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container>
<ng-container class="modal-content">
<form #frm="ngForm"
[formGroup]="formGroup"
novalidate>
<div class="modal-bo... | 2,605 | 35.704225 | 121 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.html | <ng-container *ngIf="selection">
<div *ngIf="user">
<div *ngIf="keys.length">
<legend i18n>Keys</legend>
<div>
<cd-table [data]="keys"
[columns]="keysColumns"
columnMode="flex"
selectionType="multi"
forceIdenti... | 5,489 | 32.072289 | 88 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html | <div class="cd-col-form"
*cdFormLoading="loading">
<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">
<!-- User ... | 26,814 | 40.190476 | 128 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.html | <cd-rgw-user-tabs></cd-rgw-user-tabs>
<cd-table #table
[autoReload]="false"
[data]="users"
[columns]="columns"
columnMode="flex"
selectionType="multiClick"
[hasDetails]="true"
(setExpandedRow)="setExpandedRow($event)"
(updateSelection)="up... | 1,532 | 31.617021 | 100 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.html | <cd-modal [modalRef]="activeModal">
<ng-container i18n="form title"
class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container>
<ng-container class="modal-content">
<form #frm="ngForm"
[formGroup]="formGroup"
novalidate>
<div class="modal-bo... | 4,615 | 36.836066 | 103 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.html | <cd-modal [modalRef]="bsModalRef">
<ng-container i18n="form title"
class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container>
<ng-container class="modal-content">
<form #frm="ngForm"
[formGroup]="formGroup"
novalidate>
<div class="modal-body... | 4,714 | 36.125984 | 121 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-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">
<div class="modal-body">
<form novalidate>
<!-- Username -->
<div class="form-gr... | 1,714 | 31.358491 | 103 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-tabs/rgw-user-tabs.component.html | <ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link"
routerLink="/rgw/user"
routerLinkActive="active"
ariaCurrentWhenActive="page"
[routerLinkActiveOptions]="{exact: true}"
i18n>Users</a>
</li>
<li class="nav-item">
<a class="nav-link"
routerLink="/... | 485 | 24.578947 | 48 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/device-list/device-list.component.html | <cd-table *ngIf="hostname || osdId !== null"
[data]="devices"
[columns]="columns"></cd-table>
<cd-alert-panel type="warning"
*ngIf="hostname === '' && osdId === null"
i18n>Neither hostname nor OSD ID given</cd-alert-panel>
<ng-template #deviceLocation
l... | 1,779 | 31.962963 | 109 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/feedback/feedback.component.html | <cd-modal [modalRef]="activeModal">
<div class="modal-title"
i18n>Report an issue</div>
<div class="modal-content">
<form name="feedbackForm"
[formGroup]="feedbackForm"
#formDir="ngForm">
<div class="modal-body">
<cd-alert-panel *ngIf="!isFeedbackEnabled"
... | 4,717 | 37.991736 | 137 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.html | <ng-container *ngIf="!loading; else isLoading">
<cd-alert-panel *ngIf="error"
type="error"
i18n>Failed to retrieve SMART data.</cd-alert-panel>
<cd-alert-panel *ngIf="incompatible"
type="warning"
i18n>The data received has the JSON format versi... | 5,596 | 49.423423 | 155 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login-password-form/login-password-form.component.html | <div>
<h2 i18n>Please set a new password.</h2>
<h4 i18n>You will be redirected to the login page afterwards.</h4>
<form #frm="ngForm"
[formGroup]="userForm"
novalidate>
<!-- Old password -->
<div class="form-group has-feedback">
<div class="input-group">
<input class="form-c... | 3,523 | 38.155556 | 93 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.html | <div class="container"
*ngIf="isLoginActive">
<h1 class="sr-only">Ceph login</h1>
<form name="loginForm"
(ngSubmit)="login()"
#loginForm="ngForm"
novalidate>
<!-- Username -->
<div class="form-group has-feedback d-flex flex-column py-3">
<label class="placeholder ps-3"
... | 2,219 | 32.134328 | 82 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-details/role-details.component.html | <ng-container *ngIf="selection">
<cd-table [data]="scopes_permissions"
[columns]="columns"
columnMode="flex"
[toolHeader]="false"
[autoReload]="false"
[autoSave]="false"
[footer]="false"
[limit]="0">
</cd-table>
</ng-container>
| 316 | 25.416667 | 39 | html |
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-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/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-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-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-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/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/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/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/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/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/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/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/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/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/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/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/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/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/shared/components/alert-panel/alert-panel.component.html | <ngb-alert type="{{ bootstrapClass }}"
[dismissible]="dismissible"
(closed)="onClose()"
[ngClass]="spacingClass">
<table>
<ng-container *ngIf="size === 'normal'; else slim">
<tr>
<td *ngIf="showIcon"
rowspan="2"
class="alert-panel-icon">
... | 1,273 | 27.954545 | 67 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/back-button/back-button.component.html | <button class="btn btn-light tc_backButton"
aria-label="Back"
(click)="back()"
type="button">
{{ name }}
</button>
| 141 | 19.285714 | 43 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/cd-label/cd-label.component.html | <span *ngIf="!key; else key_value"
class="badge badge-{{value}}"
ngClass="{{value | colorClassFromText}}">
{{ value }}
</span>
<ng-template #key_value>
<span class="badge badge-background-primary badge-{{key}}-{{value}}">
{{ key }}: {{ value }}
</span>
</ng-template>
| 295 | 23.666667 | 71 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/config-option/config-option.component.html | <div [formGroup]="optionsFormGroup">
<div *ngFor="let option of options; let last = last">
<div class="form-group row pt-2"
*ngIf="option.type === 'bool'">
<label class="cd-col-form-label"
[for]="option.name">
<b>{{ option.text }}</b>
<br>
<span class="text-mute... | 3,046 | 39.092105 | 126 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/confirmation-modal/confirmation-modal.component.html | <cd-modal (hide)="cancel()">
<ng-container class="modal-title">
<span class="text-warning"
*ngIf="warning">
<i class="fa fa-exclamation-triangle fa-1x"></i>
</span>{{ titleText }}</ng-container>
<ng-container class="modal-content">
<form name="confirmationForm"
#formDir="ngForm... | 1,073 | 36.034483 | 87 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/copy2clipboard-button/copy2clipboard-button.component.html | <button (click)="onClick()"
type="button"
class="btn btn-light"
i18n-title
title="Copy to Clipboard">
<i [ngClass]="[icons.clipboard]"></i>
</button>
| 184 | 22.125 | 39 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/critical-confirmation-modal/critical-confirmation-modal.component.html | <cd-modal #modal
[modalRef]="activeModal">
<ng-container class="modal-title">
<ng-container *ngTemplateOutlet="deletionHeading"></ng-container>
</ng-container>
<ng-container class="modal-content">
<form name="deletionForm"
#formDir="ngForm"
[formGroup]="deletionForm"
... | 2,340 | 40.803571 | 126 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/custom-login-banner/custom-login-banner.component.html | <p class="login-text"
*ngIf="bannerText$ | async as bannerText">{{ bannerText }}</p>
| 88 | 28.666667 | 65 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/date-time-picker/date-time-picker.component.html | <div class="d-flex justify-content-center">
<ngb-datepicker #dp
[(ngModel)]="date"
[minDate]="minDate"
(ngModelChange)="onModelChange()"></ngb-datepicker>
</div>
<div class="d-flex justify-content-center"
*ngIf="hasTime">
<ngb-timepicker [seconds]="hasSeco... | 439 | 30.428571 | 69 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/doc/doc.component.html | <a href="{{ docUrl }}"
target="_blank">{{ docText }}</a>
| 60 | 19.333333 | 36 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/download-button/download-button.component.html | <div ngbDropdown
placement="bottom-right">
<button type="button"
[title]="title"
class="btn btn-light dropdown-toggle-split"
ngbDropdownToggle>
<i [ngClass]="[icons.download]"></i>
</button>
<div ngbDropdownMenu>
<button ngbDropdownItem
(click)="download('jso... | 618 | 24.791667 | 53 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-button-panel/form-button-panel.component.html | <div [class]="wrappingClass">
<cd-back-button *ngIf="showCancel"
class="m-2"
(backAction)="backAction()"
[name]="cancelText"></cd-back-button>
<cd-submit-button *ngIf="showSubmit"
(submitAction)="submitAction()"
[disabled]... | 494 | 37.076923 | 75 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-modal/form-modal.component.html | <cd-modal [modalRef]="activeModal">
<ng-container *ngIf="titleText"
class="modal-title">
{{ titleText }}
</ng-container>
<ng-container class="modal-content">
<form [formGroup]="formGroup"
#formDir="ngForm"
novalidate>
<div class="modal-body">
<p *ngIf="mes... | 2,956 | 41.242857 | 91 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.html | <!-- Embed dashboard -->
<cd-loading-panel *ngIf="loading && grafanaExist"
i18n>Loading panel data...</cd-loading-panel>
<cd-alert-panel type="info"
*ngIf="!grafanaExist"
i18n>Please consult the <cd-doc section="grafana"></cd-doc> on
how to configure and enable the m... | 2,955 | 33.776471 | 224 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/helper/helper.component.html | <ng-template #popoverTpl>
<div [class]="class"
[innerHtml]="html">
</div>
<ng-content></ng-content>
</ng-template>
<i [ngClass]="iconClass ? iconClass : [icons.questionCircle]"
aria-hidden="true"
[ngbPopover]="popoverTpl"
(click)="$event.preventDefault();">
</i>
| 285 | 22.833333 | 61 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/language-selector/language-selector.component.html | <div ngbDropdown
display="dynamic"
placement="bottom-right">
<a ngbDropdownToggle
i18n-title
id="toggle-language-button"
title="Select a Language"
role="button">
{{ allLanguages[selectedLanguage] }}
</a>
<div ngbDropdownMenu
role="listbox"
aria-labelledby="toggle-la... | 591 | 24.73913 | 69 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/loading-panel/loading-panel.component.html | <ngb-alert type="info"
[dismissible]="false">
<strong>
<i [ngClass]="[icons.spinner, icons.spin]"
aria-hidden="true"
class="me-2"></i>
</strong>
<ng-content></ng-content>
</ngb-alert>
| 219 | 21 | 46 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.html | <div [ngClass]="pageURL ? 'modal' : ''">
<div [ngClass]="pageURL ? 'modal-dialog' : ''">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title float-start">
<ng-content select=".modal-title"></ng-content>
</h4>
<button type="button"
c... | 532 | 27.052632 | 57 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/motd/motd.component.html | <cd-alert-panel *ngIf="motd"
size="slim"
[showTitle]="false"
[type]="motd.severity"
[dismissible]="motd.severity !== 'danger'"
(dismissed)="onDismissed()">
<span [innerHTML]="motd.message | sanitizeHtml"></span>
</cd-alert-panel>
| 312 | 33.777778 | 58 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.html | <ng-template #tasksTpl>
<!-- Executing -->
<div *ngFor="let executingTask of executingTasks; trackBy:trackByFn">
<div class="card tc_task border-0">
<div class="row no-gutters">
<div class="col-md-2 text-center">
<span [ngClass]="[icons.stack, icons.large2x]"
class="text-... | 5,251 | 35.22069 | 129 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/orchestrator-doc-panel/orchestrator-doc-panel.component.html | <cd-alert-panel *ngIf="missingFeatures; else elseBlock"
type="info"
i18n>The feature is not supported in the current Orchestrator.</cd-alert-panel>
<ng-template #elseBlock>
<cd-alert-panel type="info"
i18n>Orchestrator is not available.
Please consult the <cd-doc... | 432 | 38.363636 | 95 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/pwd-expiration-notification/pwd-expiration-notification.component.html | <cd-alert-panel class="no-margin-bottom"
[type]="alertType"
*ngIf="displayNotification"
[showTitle]="false"
size="slim"
[dismissible]="alertType !== 'danger'"
(dismissed)="onDismissed()">
<div *ngIf="expirationDays === 0"
... | 738 | 42.470588 | 92 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/refresh-selector/refresh-selector.component.html | <div class="container-fluid">
<div class="row">
<form>
<div class="col-sm-1 d-flex float-end">
<label for="refreshInterval"
class="col-form-label my-0 mx-2 float-end"
i18n>Refresh</label>
<select id="refreshInterval"
name="refreshInterval"
... | 653 | 31.7 | 69 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select-badges/select-badges.component.html | <cd-select #cdSelect
[data]="data"
[options]="options"
[messages]="messages"
[selectionLimit]="selectionLimit"
[customBadges]="customBadges"
[customBadgeValidators]="customBadgeValidators"
elemClass="me-2 select-menu-edit"
(selectio... | 692 | 29.130435 | 58 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select/select.component.html | <ng-template #popTemplate>
<form name="form"
#formDir="ngForm"
[formGroup]="form"
novalidate>
<div>
<input type="text"
formControlName="filter"
i18n-placeholder
[placeholder]="messages.filter"
(keyup)="$event.keyCode === 13 ? select... | 2,565 | 31.075 | 115 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.html | <div class="chart-container"
[ngStyle]="style">
<canvas baseChart
#sparkCanvas
[labels]="labels"
[datasets]="datasets"
[options]="options"
[colors]="colors"
[chartType]="'line'">
</canvas>
<div class="chartjs-tooltip"
#sparkTooltip>
<tabl... | 347 | 20.75 | 31 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/submit-button/submit-button.component.html | <button [type]="type"
class="btn btn-accent tc_submitButton"
[ngClass]="btnClass"
[disabled]="loading || disabled"
(click)="submit($event)"
[attr.aria-label]="ariaLabel">
<ng-content></ng-content>
<span *ngIf="loading">
<i [ngClass]="[icons.spinner, icons.spin]"></i>
</... | 336 | 27.083333 | 51 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/telemetry-notification/telemetry-notification.component.html | <cd-alert-panel *ngIf="displayNotification"
class="no-margin-bottom"
[showTitle]="false"
size="slim"
[type]="notificationSeverity"
[dismissible]="notificationSeverity !== 'danger'"
(dismissed)="onDismissed()">
<div i18n>Th... | 596 | 44.923077 | 86 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html | <ng-template #usageTooltipTpl>
<table>
<tr>
<td class="text-left">Used: </td>
<td class="text-right"><strong> {{ isBinary ? (used | dimlessBinary) : (used | dimless) }}</strong></td>
</tr>
<tr *ngIf="calculatePerc">
<td class="text-left">Free: </td>
<td class="'text-right... | 1,184 | 36.03125 | 126 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/components/wizard/wizard.component.html | <div class="card-body">
<div class="row m-7">
<nav class="col">
<ul class="nav nav-pills flex-column"
*ngFor="let step of steps | async; let i = index;">
<li class="nav-item">
<a class="nav-link"
(click)="onStepClick(step)"
[ngClass]="{active: currentSte... | 642 | 31.15 | 80 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/crud-table/crud-table.component.html | <ul class="nav nav-tabs"
*ngIf="tabs">
<li class="nav-item"
*ngFor="let tab of tabs; keyvalue">
<a class="nav-link"
[routerLink]="tab.url"
routerLinkActive="active"
ariaCurrentWhenActive="page"
[routerLinkActiveOptions]="{exact: true}"
i18n>{{tab.name}}</a>
</li>
</u... | 2,449 | 30.818182 | 97 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-actions/table-actions.component.html | <div class="btn-group">
<ng-container *ngIf="currentAction">
<button type="button"
title="{{ useDisableDesc(currentAction) }}"
class="btn btn-{{btnColor}}"
[ngClass]="{'disabled': disableSelectionAction(currentAction)}"
(click)="useClickAction(currentAction)"
... | 1,869 | 39.652174 | 76 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.html | <div class="table-scroller">
<cd-table #table
[data]="tableData"
[columns]="columns"
columnMode="flex"
[toolHeader]="false"
[autoReload]="autoReload"
[customCss]="customCss"
[autoSave]="false"
[header]="false"
... | 383 | 24.6 | 37 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-pagination/table-pagination.component.html | <nav class="pagination"
aria-label="Pagination"
i18n-aria-label>
<button
class="pagination__btn pagination__btn_first"
aria-label="Go to first page"
i18n-aria-label
[disabled]="!canPrevious()"
(click)="selectPage(1)"
>
<i class="fa fa-angle-double-left"
aria-hidden="true"></... | 1,464 | 23.830508 | 57 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html | <div class="dataTables_wrapper">
<div *ngIf="onlyActionHeader"
class="dataTables_header clearfix">
<div class="cd-datatable-actions">
<ng-content select=".only-table-actions"></ng-content>
</div>
</div>
<div class="dataTables_header clearfix"
*ngIf="toolHeader">
<!-- actions -->
... | 12,585 | 35.80117 | 247 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/crud-form.component.html | <div class="cd-col-form">
<div class="card pb-0"
*ngIf="formUISchema$ | async as formUISchema">
<div i18n="form title"
class="card-header">{{ formUISchema.title }}</div>
<form *ngIf="formUISchema.uiSchema"
[formGroup]="form"
(ngSubmit)="submit(model, formUISchema.taskInfo)"... | 1,007 | 37.769231 | 88 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-array-type/formly-array-type.component.html | <div class="mb-3">
<legend *ngIf="props.label"
class="cd-header mt-1"
i18n>{{ props.label }}</legend>
<p *ngIf="props.description"
i18n>{{ props.description }}</p>
<div *ngFor="let field of field.fieldGroup; let i = index"
class="d-flex">
<formly-field class="col"
... | 1,251 | 28.116279 | 75 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-file-type/formly-file-type.component.html | <input type="file"
[formControl]="formControl"
[formlyAttributes]="field"
/>
| 98 | 18.8 | 34 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-type/formly-input-type.component.html | <input [formControl]="formControl"
[formlyAttributes]="field"
class="form-control col-form-input"/>
| 114 | 27.75 | 44 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-wrapper/formly-input-wrapper.component.html | <ng-template #labelTemplate>
<div class="d-flex align-items-center">
<label *ngIf="props.label && props.hideLabel !== true"
[attr.for]="id"
class="form-label">
{{ props.label }}
<span *ngIf="props.required && props.hideRequiredMarker !== true"
aria-hidden="true">*</sp... | 1,209 | 30.842105 | 75 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-object-type/formly-object-type.component.html | <div class="mb-3">
<legend *ngIf="props.label"
class="cd-col-form-label"
i18n>{{ props.label }}</legend>
<p *ngIf="props.description"
i18n>{{ props.description }}</p>
<div class="alert alert-danger"
role="alert"
*ngIf="showError && formControl.errors">
<formly-validation... | 567 | 30.555556 | 75 | html |
null | ceph-main/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-textarea-type/formly-textarea-type.component.html | <textarea #textArea
[formControl]="formControl"
[cols]="props.cols"
[rows]="props.rows"
class="form-control"
[class.is-invalid]="showError"
[formlyAttributes]="field"
(change)="onChange()">
</textarea>
| 272 | 26.3 | 40 | html |
null | ceph-main/src/pybind/mgr/rook/generate_rook_ceph_client.sh | #!/bin/sh
set -e
script_location="$(dirname "$(readlink -f "$0")")"
cd "$script_location"
rm -rf rook_client
cp -r ./rook-client-python/rook_client .
rm -rf rook_client/cassandra
rm -rf rook_client/edgefs
rm -rf rook_client/tests
| 235 | 14.733333 | 50 | sh |
null | ceph-main/src/rbd_fuse/rbd-fuse.cc | /*
* rbd-fuse
*/
#include "include/int_types.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <getopt.h>
#include <assert.h>
#include <string>
#include <... | 21,241 | 20.944215 | 85 | cc |
null | ceph-main/src/rbd_replay/ActionTypes.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "rbd_replay/ActionTypes.h"
#include "include/ceph_assert.h"
#include "include/byteorder.h"
#include "include/stringify.h"
#include "common/Formatter.h"
#include <iostream>
#include <boost/variant.hpp>
namespace ... | 11,577 | 25.800926 | 83 | cc |
null | ceph-main/src/rbd_replay/ActionTypes.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#ifndef CEPH_RBD_REPLAY_ACTION_TYPES_H
#define CEPH_RBD_REPLAY_ACTION_TYPES_H
#include "include/int_types.h"
#include "include/buffer_fwd.h"
#include "include/encoding.h"
#include <iosfwd>
#include <list>
#include <strin... | 10,290 | 29.267647 | 79 | h |
null | ceph-main/src/rbd_replay/BoundedBuffer.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#ifndef _INCLUDED_BOUNDED_BUFFER_HPP
#define _INCLUDED_BOUNDED_BUFFER_HPP
#include <boost/bind/bind.hpp>
#include <boost/circular_buffer.hpp>
#include <boost/thread/condition.hpp>
#include <boost/thread/mutex.hpp>
/**
... | 2,248 | 30.236111 | 143 | hpp |
null | ceph-main/src/rbd_replay/BufferReader.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "rbd_replay/BufferReader.h"
#include "include/ceph_assert.h"
#include "include/intarith.h"
namespace rbd_replay {
BufferReader::BufferReader(int fd, size_t min_bytes, size_t max_bytes)
: m_fd(fd), m_min_bytes... | 1,026 | 26.026316 | 78 | cc |
null | ceph-main/src/rbd_replay/BufferReader.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#ifndef CEPH_RBD_REPLAY_BUFFER_READER_H
#define CEPH_RBD_REPLAY_BUFFER_READER_H
#include "include/int_types.h"
#include "include/buffer.h"
namespace rbd_replay {
class BufferReader {
public:
static const size_t DEFAU... | 773 | 21.114286 | 70 | h |
null | ceph-main/src/rbd_replay/ImageNameMap.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 1,538 | 20.985714 | 81 | cc |
null | ceph-main/src/rbd_replay/ImageNameMap.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 1,287 | 22.418182 | 73 | hpp |
null | ceph-main/src/rbd_replay/PendingIO.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 1,220 | 26.133333 | 87 | cc |
null | ceph-main/src/rbd_replay/PendingIO.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 1,474 | 21.692308 | 83 | hpp |
null | ceph-main/src/rbd_replay/Replayer.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 11,257 | 26.525672 | 138 | cc |
null | ceph-main/src/rbd_replay/Replayer.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 3,876 | 22.077381 | 87 | hpp |
null | ceph-main/src/rbd_replay/actions.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 8,538 | 33.01992 | 100 | cc |
null | ceph-main/src/rbd_replay/actions.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 8,631 | 24.02029 | 107 | hpp |
null | ceph-main/src/rbd_replay/ios.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 7,319 | 32.122172 | 128 | cc |
null | ceph-main/src/rbd_replay/ios.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 8,880 | 21.09204 | 84 | hpp |
null | ceph-main/src/rbd_replay/rbd-replay-prep.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 20,311 | 33.721368 | 149 | cc |
null | ceph-main/src/rbd_replay/rbd-replay.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 4,707 | 35.215385 | 117 | cc |
null | ceph-main/src/rbd_replay/rbd_loc.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 2,670 | 19.389313 | 77 | cc |
null | ceph-main/src/rbd_replay/rbd_loc.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 2,490 | 26.373626 | 86 | hpp |
null | ceph-main/src/rbd_replay/rbd_replay_debug.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2014 Adam Crume <adamcrume@gmail.com>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | 847 | 23.228571 | 70 | hpp |
null | ceph-main/src/rgw/librgw.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* ... | 1,794 | 18.944444 | 70 | cc |
null | ceph-main/src/rgw/rgw_acl.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include <string.h>
#include <iostream>
#include <map>
#include "include/types.h"
#include "common/Formatter.h"
#include "rgw_acl.h"
#include "rgw_acl_s3.h"
#include "rgw_user.h"
#define dout_subsys ceph_subsy... | 13,781 | 30.110609 | 105 | cc |