]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Fix spell errors
authorTiago Melo <tmelo@suse.com>
Mon, 22 Jun 2020 14:59:23 +0000 (14:59 +0000)
committerTiago Melo <tmelo@suse.com>
Thu, 13 Aug 2020 10:50:31 +0000 (10:50 +0000)
Fixes: https://tracker.ceph.com/issues/46917
Signed-off-by: Tiago Melo <tmelo@suse.com>
13 files changed:
src/pybind/mgr/dashboard/HACKING.rst
src/pybind/mgr/dashboard/frontend/cd.js
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/auth/login-password-form/login-password-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.ts
src/pybind/mgr/dashboard/frontend/src/styles/bootstrap-extends.scss

index 4566d4ea8803f08a7b5b93fc1918d1669a2f5684..ac0945d0f1eabfe7bc5a42364e5b82c7ad814667 100644 (file)
@@ -262,7 +262,7 @@ Build the Code Documentation
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Run ``npm run doc-build`` to generate code docs in the ``documentation/``
-directory. To make them accesible locally for a web browser, run
+directory. To make them accessible locally for a web browser, run
 ``npm run doc-serve`` and they will become available at ``http://localhost:8444``.
 With ``npm run compodoc -- <opts>`` you may
 `fully configure it <https://compodoc.app/guides/usage.html>`_.
@@ -296,7 +296,7 @@ adjust a custom SCSS class.
 
 To get the current version of Bootstrap used inside Ceph please refer to the ``package.json`` and search for:
 
-- ``bootstrap``: For the Boostrap version used.
+- ``bootstrap``: For the Bootstrap version used.
 - ``@ng-bootstrap``: For the version of the Angular bindings which we are using.
 
 So for the future please do the following when visiting a component:
@@ -608,7 +608,7 @@ created during a test and the pool and its properties should be displayed in the
 Angular Unit Tests:
 
 Unit tests, as the name suggests, are tests for smaller units of the code.
-Those tests are designed for testing all kinds of Angulars' components (e.g. services, pipes etc.).
+Those tests are designed for testing all kinds of Angular components (e.g. services, pipes etc.).
 They do not require a connection to the backend, hence those tests are independent of it.
 The expected data of the backend is mocked in the frontend and by using this data
 the functionality of the frontend can be tested without having to have real data from the backend.
@@ -854,7 +854,7 @@ To do that, check the settings in the i18n config file
 ``src/pybind/mgr/dashboard/frontend/i18n.config.json``:: and make sure that the
 organization is *ceph*, the project is *ceph-dashboard* and the resource is
 the one you want to pull from and push to e.g. *Master:master*. To find a list
-of avaiable resources visit `<https://www.transifex.com/ceph/ceph-dashboard/content/>`_.
+of available resources visit `<https://www.transifex.com/ceph/ceph-dashboard/content/>`_.
 
 After you checked the config go to the directory ``src/pybind/mgr/dashboard/frontend`` and run::
 
index b6ff6d893391bf921ffd9c8c4b39816acfe655b7..34d0ce29f2d3cdc6f67dc7c524003a036d465483 100755 (executable)
@@ -38,7 +38,7 @@ if (process.argv.includes('--res')) {
 function prepareLocales() {
   try {
     fs.accessSync(backup, fs.constants.F_OK);
-    logger(`'${backup}' alread exists, restoring it into '${filename}'}`);
+    logger(`'${backup}' already exists, restoring it into '${filename}'}`);
     fs.copyFileSync(backup, filename);
   } catch (err) {
     fs.copyFileSync(filename, backup);
index 4e5deedfafc7bcdac45ecfdf748c2bdc8484e915..130aa32866c146d0431d525ff7c66726e8b53023 100644 (file)
@@ -65,7 +65,7 @@
           </div>
           <span i18n
                 class="invalid-feedback"
-                *ngIf="form.showError('configuration.' + option.name, cfgFormGroup, 'min')">The mininum value is 0</span>
+                *ngIf="form.showError('configuration.' + option.name, cfgFormGroup, 'min')">The minimum value is 0</span>
         </div>
       </div>
     </div>
index 92480eb2dbca67f17576328cef947c29f0c2cd8c..b02cc9673b9a2a00dca95d69bfe5a070298ab84d 100644 (file)
@@ -36,7 +36,7 @@ describe('CephfsTabsComponent', () => {
   const setReload = (sth?: any) => (component['reloadSubscriber'] = sth);
   const mockRunOutside = () => {
     component['subscribeInterval'] = () => {
-      // It's mocked because the rxjs timer subscription ins't called through the use of 'tick'.
+      // It's mocked because the rxjs timer subscription isn't called through the use of 'tick'.
       setReload({
         unsubscribed: false,
         unsubscribe: () => {
index 404cccdca50f96c3fde294e892b67a3727aa650f..d6e62620bfcd2945e34f885c4c16e6cc299ebce9 100644 (file)
@@ -57,7 +57,7 @@
               class="form-control custom-select"
               [(ngModel)]="priority"
               (ngModelChange)="filterLogs()">
-        <option *ngFor="let prio of prioritys"
+        <option *ngFor="let prio of priorities"
                 [value]="prio.value">{{ prio.name }}</option>
       </select>
     </div>
index 2112cd2cf0a24d6a68ba1b38ed9c7d649f3c454d..2f15056f83b38e096dc69065c8b6bb26ee3e9dd0 100644 (file)
@@ -34,9 +34,9 @@ describe('LogsComponent', () => {
     expect(component).toBeTruthy();
   });
 
-  describe('abstractfilters', () => {
-    it('after initializaed', () => {
-      const filters = component.abstractfilters();
+  describe('abstractFilters', () => {
+    it('after initialized', () => {
+      const filters = component.abstractFilters();
       expect(filters.priority).toBe('All');
       expect(filters.key).toBe('');
       expect(filters.yearMonthDay).toBe('');
@@ -47,7 +47,7 @@ describe('LogsComponent', () => {
       component.selectedDate = { year: 2019, month: 1, day: 1 };
       component.startTime = { hour: 1, minute: 10 };
       component.endTime = { hour: 12, minute: 10 };
-      const filters = component.abstractfilters();
+      const filters = component.abstractFilters();
       expect(filters.yearMonthDay).toBe('2019-01-01');
       expect(filters.sTime).toBe(70);
       expect(filters.eTime).toBe(730);
index b627fb19d42e02a66b89f1a073c50890456247fe..d69c07d33e132647c2826984cfd172ea94979202 100644 (file)
@@ -18,7 +18,7 @@ export class LogsComponent implements OnInit, OnDestroy {
   icons = Icons;
 
   interval: number;
-  prioritys: Array<{ name: string; value: string }> = [
+  priorities: Array<{ name: string; value: string }> = [
     { name: 'Info', value: '[INF]' },
     { name: 'Warning', value: '[WRN]' },
     { name: 'Error', value: '[ERR]' },
@@ -58,7 +58,7 @@ export class LogsComponent implements OnInit, OnDestroy {
     });
   }
 
-  abstractfilters(): any {
+  abstractFilters(): any {
     const priority = this.priority;
     const key = this.search.toLowerCase().replace(/,/g, '');
 
@@ -107,7 +107,7 @@ export class LogsComponent implements OnInit, OnDestroy {
   }
 
   filterLogs() {
-    const filters = this.abstractfilters();
+    const filters = this.abstractFilters();
     this.clog = this.filterExecutor(this.contentData.clog, filters);
     this.audit_log = this.filterExecutor(this.contentData.audit_log, filters);
   }
index a8b978c4f7a8e96cb16a6ccc270853dbedaeb60c..3f596d4008025c0b5cbbdee4c8f6c5d4fbacc9bc 100644 (file)
           </div>
         </div>
 
-        <!-- Secutiry Label -->
+        <!-- Security Label -->
         <div class="form-group row"
              *ngIf="nfsForm.getValue('name') === 'CEPH'">
           <label class="cd-col-form-label"
index 7e4abf6c171c0d786c613728e0c017267ff2464a..9987512859f6989b4b2b11fcabcae22420810f79 100644 (file)
@@ -127,7 +127,7 @@ export class NfsFormComponent extends CdForm implements OnInit {
   getData(promises: Observable<any>[]) {
     forkJoin(promises).subscribe((data: any[]) => {
       this.resolveDaemons(data[0]);
-      this.resolvefsals(data[1]);
+      this.resolveFsals(data[1]);
       this.resolveClients(data[2]);
       this.resolveFilesystems(data[3]);
       if (data[4]) {
@@ -282,7 +282,7 @@ export class NfsFormComponent extends CdForm implements OnInit {
     }
   }
 
-  resolvefsals(res: string[]) {
+  resolveFsals(res: string[]) {
     res.forEach((fsal) => {
       const fsalItem = this.nfsService.nfsFsal.find((currentFsalItem) => {
         return fsal === currentFsalItem.value;
index 320d9d7f6048cb2d4dfc75735d5c9a4a2cdca4b3..1db2ef23cafc6d55262732d0acfbfb3fd431712b 100644 (file)
@@ -11,7 +11,7 @@
           <label class="cd-col-form-label"
                  for="user"
                  i18n>Username</label>
-          <div class="cd-col-form-inpu">
+          <div class="cd-col-form-input">
             <input id="user"
                    name="user"
                    class="form-control"
@@ -26,7 +26,7 @@
           <label class="cd-col-form-label"
                  for="secret_key"
                  i18n>Secret key</label>
-          <div class="cd-col-form-inpu">
+          <div class="cd-col-form-input">
             <div class="input-group">
               <input id="secret_key"
                      name="secret_key"
index 18c2c02a49d55d49c95c161b355df5dcc8f2bf6f..1119d33077127f6dcbf237bb72d402c88987ef45 100755 (executable)
@@ -40,7 +40,7 @@ export class LoginPasswordFormComponent extends UserPasswordFormComponent {
   onPasswordChange() {
     // Logout here because changing the password will change the
     // session token which will finally lead to a 401 when calling
-    // the REST API the next time. The API HTTP inteceptor will
+    // the REST API the next time. The API HTTP interceptor will
     // then also redirect to the login page immediately.
     this.authService.logout();
   }
index 8da20b9d8b76dcb819592db46d224637e25b6483..21a0e30bbf2e8e1f5a9bcd319e09b8f2903825a9 100644 (file)
@@ -38,7 +38,7 @@ import { BreadcrumbsResolver, IBreadcrumb } from '../../../shared/models/breadcr
 export class BreadcrumbsComponent implements OnDestroy {
   crumbs: IBreadcrumb[] = [];
   /**
-   * Usefull for e2e tests.
+   * Useful for e2e tests.
    * This allow us to mark the breadcrumb as pending during the navigation from
    * one page to another.
    * This resolves the problem of validating the breadcrumb of a new page and
index 29cc23c814d8e47b0cd060f4bd3f2160f601983b..9bc2111e10c800cd4cef2a3db77a2416f686e802 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Include here all styles from components that extend from bootstrap.
- * This removes the need to @import bootstrap into those componenet,
+ * This removes the need to @import bootstrap into those component,
  * thus reducing the final css size.
 */