From bfd61b2f19ceb4f078bead11b5daed9bd22acba3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 6 Aug 2024 15:40:16 +0200 Subject: [PATCH] Fix typos discovered by codespell --- README.md | 2 +- config/config.example.yml | 2 +- cypress/e2e/homepage-statistics.cy.ts | 2 +- cypress/e2e/login-modal.cy.ts | 2 +- cypress/e2e/pagenotfound.cy.ts | 2 +- cypress/e2e/submission.cy.ts | 4 ++-- docs/Configuration.md | 2 +- scripts/merge-i18n-files.ts | 2 +- server.ts | 4 ++-- .../ldn-services-model/ldn-service-status.model.ts | 2 +- .../bitstream-formats.component.spec.ts | 4 ++-- .../bitstream-formats/bitstream-formats.component.ts | 2 +- .../format-form/format-form.component.ts | 8 ++++---- .../browse-by-taxonomy.component.ts | 2 +- .../collection-metadata.component.ts | 2 +- src/app/core/cache/object-cache.reducer.ts | 2 +- src/app/core/data/access-status-data.service.spec.ts | 8 ++++---- src/app/core/data/bitstream-data.service.spec.ts | 12 ++++++------ src/app/core/data/bitstream-data.service.ts | 2 +- src/app/core/data/collection-data.service.spec.ts | 12 ++++++------ src/app/core/services/link-head.service.ts | 2 +- src/app/core/services/server-xhr.service.ts | 2 +- src/app/core/shared/metadata-config.model.ts | 2 +- src/app/core/shared/search/search.service.ts | 2 +- .../submission/submission-object-data.service.ts | 2 +- .../dso-edit-metadata/dso-edit-metadata.component.ts | 2 +- .../item-pages/org-unit/org-unit.component.html | 2 +- .../item-pages/org-unit/org-unit.component.spec.ts | 2 +- src/app/init.service.ts | 4 ++-- .../bitstream-request-a-copy-page.component.ts | 2 +- .../edit-relationship-list.component.spec.ts | 2 +- .../metadata-uri-values.component.ts | 2 +- .../metadata-values/metadata-values.component.ts | 2 +- .../media-viewer-image.component.ts | 2 +- .../item-page-cc-license-field.component.ts | 4 ++-- .../my-dspace-new-submission-dropdown.component.ts | 2 +- .../my-dspace-new-submission.component.ts | 2 +- .../qa/events/quality-assurance-events.component.ts | 4 ++-- .../project-entry-import-modal.component.ts | 2 +- .../qa/source/quality-assurance-source.component.ts | 2 +- .../qa/topics/quality-assurance-topics.component.ts | 6 +++--- .../publication-claim/publication-claim.component.ts | 2 +- src/app/search-navbar/search-navbar.component.ts | 2 +- .../dso-edit-menu-section.component.ts | 2 +- .../dso-withdrawn-reinstate-modal.service.ts | 2 +- .../entity-dropdown/entity-dropdown.component.ts | 2 +- .../vocabulary-treeview-modal.component.spec.ts | 2 +- src/app/shared/menu/menu-id.model.ts | 2 +- .../dspace-rest/endpoint-mocking-rest.service.ts | 2 +- .../object-list/duplicate-data/duplicate.model.ts | 2 +- ...owse-link-metadata-list-element.component.spec.ts | 2 +- .../collection-select/collection-select.component.ts | 2 +- .../item-select/item-select.component.ts | 2 +- src/app/shared/rss-feed/rss.component.ts | 2 +- src/app/shared/search/models/search-options.model.ts | 2 +- .../search-facet-range-option.component.spec.ts | 2 +- .../search-range-filter.component.ts | 2 +- .../subscription-view.component.spec.ts | 2 +- .../section-coar-notify.component.ts | 2 +- src/app/submission/sections/sections.service.ts | 2 +- .../metadata-information.component.ts | 2 +- .../publisher-policy/publisher-policy.component.ts | 2 +- .../section-sherpa-policies.component.ts | 2 +- .../system-wide-alert-form.component.spec.ts | 8 ++++---- src/modules/app/server-init.service.ts | 2 +- src/typings.d.ts | 2 +- 66 files changed, 93 insertions(+), 93 deletions(-) diff --git a/README.md b/README.md index ebc24f8b918..39ad9d7dde7 100644 --- a/README.md +++ b/README.md @@ -527,7 +527,7 @@ Frequently asked questions - What are the naming conventions for Angular? - See [the official angular style guide](https://angular.io/styleguide) - Why is the size of my app larger in development? - - The production build uses a whole host of techniques (ahead-of-time compilation, rollup to remove unreachable code, minification, etc.) to reduce the size, that aren't used during development in the intrest of build speed. + - The production build uses a whole host of techniques (ahead-of-time compilation, rollup to remove unreachable code, minification, etc.) to reduce the size, that aren't used during development in the interest of build speed. - node-pre-gyp ERR in yarn install (Windows) - install Python x86 version between 2.5 and 3.0 on windows. See [this issue](https://github.com/AngularClass/angular2-webpack-starter/issues/626) - How do I handle merge conflicts in yarn.lock? diff --git a/config/config.example.yml b/config/config.example.yml index 93386274e63..86f608e5a3e 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -59,7 +59,7 @@ cache: # Set to true to see all cache hits/misses/refreshes in your console logs. Useful for debugging SSR caching issues. debug: false # When enabled (i.e. max > 0), known bots will be sent pages from a server side cache specific for bots. - # (Keep in mind, bot detection cannot be guarranteed. It is possible some bots will bypass this cache.) + # (Keep in mind, bot detection cannot be guaranteed. It is possible some bots will bypass this cache.) botCache: # Maximum number of pages to cache for known bots. Set to zero (0) to disable server side caching for bots. # Default is 1000, which means the 1000 most recently accessed public pages will be cached. diff --git a/cypress/e2e/homepage-statistics.cy.ts b/cypress/e2e/homepage-statistics.cy.ts index f9642c0c831..0e0fca3c5bb 100644 --- a/cypress/e2e/homepage-statistics.cy.ts +++ b/cypress/e2e/homepage-statistics.cy.ts @@ -17,7 +17,7 @@ describe('Site Statistics Page', () => { cy.visit('/statistics'); - // tag must be visable + // tag must be visible cy.get('ds-site-statistics-page').should('be.visible'); // Verify / wait until "Total Visits" table's *last* label is non-empty diff --git a/cypress/e2e/login-modal.cy.ts b/cypress/e2e/login-modal.cy.ts index 3d978dfaca2..ec218e80afa 100644 --- a/cypress/e2e/login-modal.cy.ts +++ b/cypress/e2e/login-modal.cy.ts @@ -142,7 +142,7 @@ describe('Login Modal', () => { page.submitLoginAndPasswordByPressingButton(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD')); cy.get('ds-log-in').should('not.exist'); - // Open user menu, verify user menu accesibility + // Open user menu, verify user menu accessibility page.openUserMenu(); cy.get('ds-user-menu').should('be.visible'); testA11y('ds-user-menu'); diff --git a/cypress/e2e/pagenotfound.cy.ts b/cypress/e2e/pagenotfound.cy.ts index 968ae2747b5..5f84a22df9c 100644 --- a/cypress/e2e/pagenotfound.cy.ts +++ b/cypress/e2e/pagenotfound.cy.ts @@ -1,7 +1,7 @@ import { testA11y } from 'cypress/support/utils'; describe('PageNotFound', () => { - it('should contain element ds-pagenotfound when navigating to page that doesnt exist', () => { + it('should contain element ds-pagenotfound when navigating to page that does not exist', () => { // request an invalid page (UUIDs at root path aren't valid) cy.visit('/e9019a69-d4f1-4773-b6a3-bd362caa46f2', { failOnStatusCode: false }); cy.get('ds-pagenotfound').should('be.visible'); diff --git a/cypress/e2e/submission.cy.ts b/cypress/e2e/submission.cy.ts index 0ac7003a8b4..ebdabbde2e0 100644 --- a/cypress/e2e/submission.cy.ts +++ b/cypress/e2e/submission.cy.ts @@ -34,7 +34,7 @@ describe('New Submission page', () => { // Author & Subject fields have invalid "aria-multiline" attrs. // See https://github.com/DSpace/dspace-angular/issues/1272 'aria-allowed-attr': { enabled: false }, - // All panels are accordians & fail "aria-required-children" and "nested-interactive". + // All panels are accordions & fail "aria-required-children" and "nested-interactive". // Seem to require updating ng-bootstrap and https://github.com/DSpace/dspace-angular/issues/2216 'aria-required-children': { enabled: false }, 'nested-interactive': { enabled: false }, @@ -192,7 +192,7 @@ describe('New Submission page', () => { testA11y('ds-submission-edit', { rules: { - // All panels are accordians & fail "aria-required-children" and "nested-interactive". + // All panels are accordions & fail "aria-required-children" and "nested-interactive". // Seem to require updating ng-bootstrap and https://github.com/DSpace/dspace-angular/issues/2216 'aria-required-children': { enabled: false }, 'nested-interactive': { enabled: false }, diff --git a/docs/Configuration.md b/docs/Configuration.md index 01fd83c94d1..aa6be0f6822 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -15,7 +15,7 @@ DSPACE_APP_CONFIG_PATH=/usr/local/dspace/config/config.yml Configuration options can be overridden by setting environment variables. ## Nodejs server -When you start dspace-angular on node, it spins up an http server on which it listens for incoming connections. You can define the ip address and port the server should bind itsself to, and if ssl should be enabled not. By default it listens on `localhost:4000`. If you want it to listen on all your network connections, configure it to bind itself to `0.0.0.0`. +When you start dspace-angular on node, it spins up an http server on which it listens for incoming connections. You can define the ip address and port the server should bind itself to, and if ssl should be enabled not. By default it listens on `localhost:4000`. If you want it to listen on all your network connections, configure it to bind itself to `0.0.0.0`. To change this configuration, change the options `ui.host`, `ui.port` and `ui.ssl` in the appropriate configuration file (see above): diff --git a/scripts/merge-i18n-files.ts b/scripts/merge-i18n-files.ts index e790828c0db..64442f57884 100644 --- a/scripts/merge-i18n-files.ts +++ b/scripts/merge-i18n-files.ts @@ -38,7 +38,7 @@ parseCliInput(); function parseCliInput() { program .option('-d, --output-dir ', 'output dir when running script on all language files', projectRoot(LANGUAGE_FILES_LOCATION)) - .option('-s, --source-dir ', 'source dir of transalations to be merged') + .option('-s, --source-dir ', 'source dir of translations to be merged') .usage('(-s [-d ])') .parse(process.argv); diff --git a/server.ts b/server.ts index 22f34232874..d0c17166ad5 100644 --- a/server.ts +++ b/server.ts @@ -99,7 +99,7 @@ export function app() { * If production mode is enabled in the environment file: * - Enable Angular's production mode * - Initialize caching of SSR rendered pages (if enabled in config.yml) - * - Enable compression for SSR reponses. See [compression](https://github.com/expressjs/compression) + * - Enable compression for SSR responses. See [compression](https://github.com/expressjs/compression) */ if (environment.production) { enableProdMode(); @@ -428,7 +428,7 @@ function checkCacheForRequest(cacheName: string, cache: LRU, req, r if (environment.cache.serverSide.debug) { console.log(`CACHE EXPIRED FOR ${key} in ${cacheName} cache. Re-rendering...`); } // Update cached copy by rerendering server-side // NOTE: In this scenario the currently cached copy will be returned to the current user. - // This re-render is peformed behind the scenes to update cached copy for next user. + // This re-render is performed behind the scenes to update cached copy for next user. serverSideRender(req, res, next, false); } } else { diff --git a/src/app/admin/admin-ldn-services/ldn-services-model/ldn-service-status.model.ts b/src/app/admin/admin-ldn-services/ldn-services-model/ldn-service-status.model.ts index 040e4d37b8a..e872bf9a0b7 100644 --- a/src/app/admin/admin-ldn-services/ldn-services-model/ldn-service-status.model.ts +++ b/src/app/admin/admin-ldn-services/ldn-services-model/ldn-service-status.model.ts @@ -2,7 +2,7 @@ * List of services statuses */ export enum LdnServiceStatus { - UNKOWN, + UNKNOWN, DISABLED, ENABLED, } diff --git a/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.spec.ts b/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.spec.ts index 248e60ca4b0..8f692ecad62 100644 --- a/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.spec.ts +++ b/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.spec.ts @@ -190,12 +190,12 @@ describe('BitstreamFormatsComponent', () => { describe('isSelected', () => { beforeEach(waitForAsync(initAsync)); beforeEach(initBeforeEach); - it('should return an observable of true if the provided bistream is in the list returned by the service', () => { + it('should return an observable of true if the provided bitstream is in the list returned by the service', () => { const result = comp.isSelected(bitstreamFormat1); expect(result).toBeObservable(cold('b', { b: true })); }); - it('should return an observable of false if the provided bistream is not in the list returned by the service', () => { + it('should return an observable of false if the provided bitstream is not in the list returned by the service', () => { const format = new BitstreamFormat(); format.uuid = 'new'; diff --git a/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.ts b/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.ts index 72da2fadfd1..deff75262e9 100644 --- a/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.ts +++ b/src/app/admin/admin-registries/bitstream-formats/bitstream-formats.component.ts @@ -118,7 +118,7 @@ export class BitstreamFormatsComponent implements OnInit, OnDestroy { } /** - * Deselects all selecetd bitstream formats + * Deselects all selected bitstream formats */ deselectAll() { this.bitstreamFormatService.deselectAllBitstreamFormats(); diff --git a/src/app/admin/admin-registries/bitstream-formats/format-form/format-form.component.ts b/src/app/admin/admin-registries/bitstream-formats/format-form/format-form.component.ts index 08889ce28be..37ae0d1dc0d 100644 --- a/src/app/admin/admin-registries/bitstream-formats/format-form/format-form.component.ts +++ b/src/app/admin/admin-registries/bitstream-formats/format-form/format-form.component.ts @@ -154,12 +154,12 @@ export class FormatFormComponent implements OnInit { (fieldModel: DynamicFormControlModel) => { if (fieldModel.name === 'extensions') { if (hasValue(this.bitstreamFormat.extensions)) { - const extenstions = this.bitstreamFormat.extensions; + const extensions = this.bitstreamFormat.extensions; const formArray = (fieldModel as DynamicFormArrayModel); - for (let i = 0; i < extenstions.length; i++) { + for (let i = 0; i < extensions.length; i++) { formArray.insertGroup(i).group[0] = new DynamicInputModel({ id: `extension-${i}`, - value: extenstions[i], + value: extensions[i], }, this.arrayInputElementLayout); } } @@ -172,7 +172,7 @@ export class FormatFormComponent implements OnInit { } /** - * Creates an updated bistream format based on the current values in the form + * Creates an updated bitstream format based on the current values in the form * Emits the updated bitstream format trouhg the updatedFormat emitter */ onSubmit() { diff --git a/src/app/browse-by/browse-by-taxonomy/browse-by-taxonomy.component.ts b/src/app/browse-by/browse-by-taxonomy/browse-by-taxonomy.component.ts index ca6efa16b90..2372c7d0c75 100644 --- a/src/app/browse-by/browse-by-taxonomy/browse-by-taxonomy.component.ts +++ b/src/app/browse-by/browse-by-taxonomy/browse-by-taxonomy.component.ts @@ -154,7 +154,7 @@ export class BrowseByTaxonomyComponent implements OnInit, OnChanges, OnDestroy { this.facetType = browseDefinition.facetType; this.vocabularyName = browseDefinition.vocabulary; this.vocabularyOptions = { name: this.vocabularyName, closed: true }; - this.description = this.translate.instant(`browse.metadata.${this.vocabularyName}.tree.descrption`); + this.description = this.translate.instant(`browse.metadata.${this.vocabularyName}.tree.description`); })); this.subs.push(this.scope$.subscribe(() => { this.updateQueryParams(); diff --git a/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts b/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts index 98127d891c7..df351997559 100644 --- a/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts +++ b/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts @@ -84,7 +84,7 @@ export class CollectionMetadataComponent extends ComcolMetadataComponent { /** * Create an AccessStatusDataService used for testing - * @param reponse$ Supply a RemoteData to be returned by the REST API (optional) + * @param response$ Supply a RemoteData to be returned by the REST API (optional) */ - function createService(reponse$?: Observable>) { + function createService(response$?: Observable>) { requestService = getMockRequestService(); - let buildResponse$ = reponse$; - if (hasNoValue(reponse$)) { + let buildResponse$ = response$; + if (hasNoValue(response$)) { buildResponse$ = createSuccessfulRemoteDataObject$({}); } rdbService = jasmine.createSpyObj('rdbService', { diff --git a/src/app/core/data/bitstream-data.service.spec.ts b/src/app/core/data/bitstream-data.service.spec.ts index 95fe5f593fd..91b5132ce06 100644 --- a/src/app/core/data/bitstream-data.service.spec.ts +++ b/src/app/core/data/bitstream-data.service.spec.ts @@ -138,27 +138,27 @@ describe('BitstreamDataService', () => { describe('findPrimaryBitstreamByItemAndName', () => { it('should return primary bitstream', () => { - const exprected$ = cold('(a|)', { a: bitstream1 } ); + const expected$ = cold('(a|)', { a: bitstream1 } ); const bundle = Object.assign(new Bundle(), { primaryBitstream: observableOf(createSuccessfulRemoteDataObject(bitstream1)), }); spyOn(bundleDataService, 'findByItemAndName').and.returnValue(observableOf(createSuccessfulRemoteDataObject(bundle))); - expect(service.findPrimaryBitstreamByItemAndName(ItemMock, 'ORIGINAL')).toBeObservable(exprected$); + expect(service.findPrimaryBitstreamByItemAndName(ItemMock, 'ORIGINAL')).toBeObservable(expected$); }); it('should return null if primary bitstream has not be succeeded ', () => { - const exprected$ = cold('(a|)', { a: null } ); + const expected$ = cold('(a|)', { a: null } ); const bundle = Object.assign(new Bundle(), { primaryBitstream: observableOf(createFailedRemoteDataObject()), }); spyOn(bundleDataService, 'findByItemAndName').and.returnValue(observableOf(createSuccessfulRemoteDataObject(bundle))); - expect(service.findPrimaryBitstreamByItemAndName(ItemMock, 'ORIGINAL')).toBeObservable(exprected$); + expect(service.findPrimaryBitstreamByItemAndName(ItemMock, 'ORIGINAL')).toBeObservable(expected$); }); it('should return EMPTY if nothing where found', () => { - const exprected$ = cold('(|)', {} ); + const expected$ = cold('(|)', {} ); spyOn(bundleDataService, 'findByItemAndName').and.returnValue(observableOf(createFailedRemoteDataObject())); - expect(service.findPrimaryBitstreamByItemAndName(ItemMock, 'ORIGINAL')).toBeObservable(exprected$); + expect(service.findPrimaryBitstreamByItemAndName(ItemMock, 'ORIGINAL')).toBeObservable(expected$); }); }); diff --git a/src/app/core/data/bitstream-data.service.ts b/src/app/core/data/bitstream-data.service.ts index 81d1d74535b..b8776d25309 100644 --- a/src/app/core/data/bitstream-data.service.ts +++ b/src/app/core/data/bitstream-data.service.ts @@ -242,7 +242,7 @@ export class BitstreamDataService extends IdentifiableDataService imp * @param reRequestOnStale Whether or not the request should automatically be re- * requested after the response becomes stale * @return {Observable} - * Return an observable that constains primary bitstream information or null + * Return an observable that contains primary bitstream information or null */ public findPrimaryBitstreamByItemAndName(item: Item, bundleName: string, useCachedVersionIfAvailable = true, reRequestOnStale = true): Observable { return this.bundleService.findByItemAndName(item, bundleName, useCachedVersionIfAvailable, reRequestOnStale, followLink('primaryBitstream')).pipe( diff --git a/src/app/core/data/collection-data.service.spec.ts b/src/app/core/data/collection-data.service.spec.ts index 431fe941bba..f27695c3261 100644 --- a/src/app/core/data/collection-data.service.spec.ts +++ b/src/app/core/data/collection-data.service.spec.ts @@ -151,7 +151,7 @@ describe('CollectionDataService', () => { expect(service.getAuthorizedCollection).toHaveBeenCalledWith(queryString); }); - it('should return a RemoteData> for the getAuthorizedCollection', () => { + it('should return a RemoteData> for the getAuthorizedCollection', () => { const result = service.getAuthorizedCollection(queryString); const expected = cold('a|', { a: paginatedListRD, @@ -166,7 +166,7 @@ describe('CollectionDataService', () => { expect(service.getAuthorizedCollectionByCommunity).toHaveBeenCalledWith(communityId, queryString); }); - it('should return a RemoteData> for the getAuthorizedCollectionByCommunity', () => { + it('should return a RemoteData> for the getAuthorizedCollectionByCommunity', () => { const result = service.getAuthorizedCollectionByCommunity(communityId, queryString); const expected = cold('a|', { a: paginatedListRD, @@ -206,12 +206,12 @@ describe('CollectionDataService', () => { /** * Create a CollectionDataService used for testing - * @param reponse$ Supply a RemoteData to be returned by the REST API (optional) + * @param response$ Supply a RemoteData to be returned by the REST API (optional) */ - function createService(reponse$?: Observable>) { + function createService(response$?: Observable>) { requestService = getMockRequestService(); - let buildResponse$ = reponse$; - if (hasNoValue(reponse$)) { + let buildResponse$ = response$; + if (hasNoValue(response$)) { buildResponse$ = createSuccessfulRemoteDataObject$({}); } rdbService = jasmine.createSpyObj('rdbService', { diff --git a/src/app/core/services/link-head.service.ts b/src/app/core/services/link-head.service.ts index 78eddf31c5a..723f647108d 100644 --- a/src/app/core/services/link-head.service.ts +++ b/src/app/core/services/link-head.service.ts @@ -20,7 +20,7 @@ export class LinkHeadService { /** * Method to create a Link tag in the HEAD of the html. - * @param tag LinkDefition is the paramaters to define a link tag. + * @param tag LinkDefition is the parameters to define a link tag. * @returns Link tag that was created */ addTag(tag: LinkDefinition) { diff --git a/src/app/core/services/server-xhr.service.ts b/src/app/core/services/server-xhr.service.ts index e4c50c24ea0..4b58c6b127c 100644 --- a/src/app/core/services/server-xhr.service.ts +++ b/src/app/core/services/server-xhr.service.ts @@ -33,7 +33,7 @@ const httpAgent = new HttpAgent(agentOptions); const httpsAgent = new HttpsAgent(agentOptions); /** - * Contructs the XMLHttpRequest instances used for all HttpClient requests. + * Constructs the XMLHttpRequest instances used for all HttpClient requests. * Emulated by https://github.com/pwnall/node-xhr2 on the server. * This class overrides the built-in Angular implementation to set additional configuration. * diff --git a/src/app/core/shared/metadata-config.model.ts b/src/app/core/shared/metadata-config.model.ts index 861d04586ef..645d9c1dc85 100644 --- a/src/app/core/shared/metadata-config.model.ts +++ b/src/app/core/shared/metadata-config.model.ts @@ -3,7 +3,7 @@ */ export class MetadataConfig { /** - * A unique indentifier + * A unique identifier */ id: string; diff --git a/src/app/core/shared/search/search.service.ts b/src/app/core/shared/search/search.service.ts index fc23be1a228..60a2da6af1e 100644 --- a/src/app/core/shared/search/search.service.ts +++ b/src/app/core/shared/search/search.service.ts @@ -57,7 +57,7 @@ import { SearchConfigurationService } from './search-configuration.service'; * - Overrides {@link BaseDataService.addEmbedParams} in order to make it public * * Doesn't use any of the service's dependencies, they are initialized as undefined - * Therefore, equest/response handling methods won't work even though they're defined + * Therefore, request/response handling methods won't work even though they're defined */ class SearchDataService extends BaseDataService { constructor() { diff --git a/src/app/core/submission/submission-object-data.service.ts b/src/app/core/submission/submission-object-data.service.ts index 4cf45fa84b9..c044cb8129d 100644 --- a/src/app/core/submission/submission-object-data.service.ts +++ b/src/app/core/submission/submission-object-data.service.ts @@ -68,7 +68,7 @@ export class SubmissionObjectDataService { environment.cache.msToLive.default, now, RequestEntryState.Error, - 'The request couldn\'t be sent. Unable to determine the type of submission object', + 'The request could not be sent. Unable to determine the type of submission object', undefined, 400, )); diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.ts b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.ts index 677a601b9df..234a8539c4b 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.ts +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.ts @@ -244,7 +244,7 @@ export class DsoEditMetadataComponent implements OnInit, OnDestroy { /** * Submit the current changes to the form by retrieving json PATCH operations from the form and sending it to the * DSpaceObject's data-service - * Display notificiations and reset the form afterwards if successful + * Display notifications and reset the form afterwards if successful */ submit(): void { this.saving$.next(true); diff --git a/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html b/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html index 126845e36f9..21acce9f095 100644 --- a/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html +++ b/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html @@ -23,7 +23,7 @@ [label]="'orgunit.page.city'"> { - describe('changes managment for add buttons', () => { + describe('changes management for add buttons', () => { it('should show enabled add buttons', () => { const element = de.query(By.css('.btn-success')); diff --git a/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.ts b/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.ts index 76c7defe35d..944c70f49a9 100644 --- a/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.ts +++ b/src/app/item-page/field-components/metadata-uri-values/metadata-uri-values.component.ts @@ -45,7 +45,7 @@ export class MetadataUriValuesComponent extends MetadataValuesComponent { @Input() mdValues: MetadataValue[]; /** - * The seperator used to split the metadata values (can contain HTML) + * The separator used to split the metadata values (can contain HTML) */ @Input() separator: string; diff --git a/src/app/item-page/field-components/metadata-values/metadata-values.component.ts b/src/app/item-page/field-components/metadata-values/metadata-values.component.ts index 1a73d692ebf..c6ff4547371 100644 --- a/src/app/item-page/field-components/metadata-values/metadata-values.component.ts +++ b/src/app/item-page/field-components/metadata-values/metadata-values.component.ts @@ -51,7 +51,7 @@ export class MetadataValuesComponent implements OnChanges { @Input() mdValues: MetadataValue[]; /** - * The seperator used to split the metadata values (can contain HTML) + * The separator used to split the metadata values (can contain HTML) */ @Input() separator: string; diff --git a/src/app/item-page/media-viewer/media-viewer-image/media-viewer-image.component.ts b/src/app/item-page/media-viewer/media-viewer-image/media-viewer-image.component.ts index f2191f074da..3acb14d3eed 100644 --- a/src/app/item-page/media-viewer/media-viewer-image/media-viewer-image.component.ts +++ b/src/app/item-page/media-viewer/media-viewer-image/media-viewer-image.component.ts @@ -17,7 +17,7 @@ import { AuthService } from '../../../core/auth/auth.service'; import { MediaViewerItem } from '../../../core/shared/media-viewer-item.model'; /** - * This componenet render an image gallery for the image viewer + * This component render an image gallery for the image viewer */ @Component({ selector: 'ds-base-media-viewer-image', diff --git a/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts b/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts index 5d19fe4b4e2..e06d0c25b56 100644 --- a/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts +++ b/src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component.ts @@ -34,13 +34,13 @@ export class ItemPageCcLicenseFieldComponent implements OnInit { @Input() variant?: 'small' | 'full' = 'small'; /** - * Filed name containing the CC license URI, as configured in the back-end, in the 'dspace.cfg' file, propertie + * Filed name containing the CC license URI, as configured in the back-end, in the 'dspace.cfg' file, property * 'cc.license.uri' */ @Input() ccLicenseUriField? = 'dc.rights.uri'; /** - * Filed name containing the CC license name, as configured in the back-end, in the 'dspace.cfg' file, propertie + * Filed name containing the CC license name, as configured in the back-end, in the 'dspace.cfg' file, property * 'cc.license.name' */ @Input() ccLicenseNameField? = 'dc.rights'; diff --git a/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission-dropdown/my-dspace-new-submission-dropdown.component.ts b/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission-dropdown/my-dspace-new-submission-dropdown.component.ts index 8604c3322ce..02c714b4fb0 100644 --- a/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission-dropdown/my-dspace-new-submission-dropdown.component.ts +++ b/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission-dropdown/my-dspace-new-submission-dropdown.component.ts @@ -120,7 +120,7 @@ export class MyDSpaceNewSubmissionDropdownComponent implements OnInit, OnDestroy } /** - * Method called on clicking the button "New Submition", It opens a dialog for + * Method called on clicking the button "New Submission", It opens a dialog for * select a collection. */ openDialog(entity: ItemType) { diff --git a/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.ts b/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.ts index 8b4ddf10f61..cf7cb7ab72b 100644 --- a/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.ts +++ b/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.ts @@ -140,7 +140,7 @@ export class MyDSpaceNewSubmissionComponent implements OnDestroy, OnInit { } else { const modalRef = this.modalService.open(CollectionSelectorComponent); // When the dialog are closes its takes the collection selected and - // uploads choosed file after adds owningCollection parameter + // uploads chosen file after adds owningCollection parameter modalRef.result.then( (result) => { uploader.onBuildItemForm = (fileItem: any, form: any) => { form.append('owningCollection', result.uuid); diff --git a/src/app/notifications/qa/events/quality-assurance-events.component.ts b/src/app/notifications/qa/events/quality-assurance-events.component.ts index 6276226c69b..df6d36d226a 100644 --- a/src/app/notifications/qa/events/quality-assurance-events.component.ts +++ b/src/app/notifications/qa/events/quality-assurance-events.component.ts @@ -335,7 +335,7 @@ export class QualityAssuranceEventsComponent implements OnInit, OnDestroy { } /** - * Performs the choosen action calling the REST service. + * Performs the chosen action calling the REST service. * * @param {string} action * the action (can be: ACCEPTED, REJECTED, DISCARDED, PENDING) @@ -454,7 +454,7 @@ export class QualityAssuranceEventsComponent implements OnInit, OnDestroy { } /** - * Dispatch the Quality Assurance events retrival. + * Dispatch the Quality Assurance events retrieval. */ public getQualityAssuranceEvents(): Observable { return this.paginationService.getFindListOptions(this.paginationConfig.id, this.defaultConfig).pipe( diff --git a/src/app/notifications/qa/project-entry-import-modal/project-entry-import-modal.component.ts b/src/app/notifications/qa/project-entry-import-modal/project-entry-import-modal.component.ts index 4b31e2316a9..0be7b783a2c 100644 --- a/src/app/notifications/qa/project-entry-import-modal/project-entry-import-modal.component.ts +++ b/src/app/notifications/qa/project-entry-import-modal/project-entry-import-modal.component.ts @@ -200,7 +200,7 @@ export class ProjectEntryImportModalComponent implements OnInit { private selectService: SelectableListService) { } /** - * Component intitialization. + * Component initialization. */ public ngOnInit(): void { this.pagination = Object.assign(new PaginationComponentOptions(), { id: 'notifications-project-bound', pageSize: this.pageSize }); diff --git a/src/app/notifications/qa/source/quality-assurance-source.component.ts b/src/app/notifications/qa/source/quality-assurance-source.component.ts index a918b8c3b66..5ee32434bed 100644 --- a/src/app/notifications/qa/source/quality-assurance-source.component.ts +++ b/src/app/notifications/qa/source/quality-assurance-source.component.ts @@ -123,7 +123,7 @@ export class QualityAssuranceSourceComponent implements OnInit { } /** - * Dispatch the Quality Assurance source retrival. + * Dispatch the Quality Assurance source retrieval. */ public getQualityAssuranceSource(): void { this.paginationService.getCurrentPagination(this.paginationConfig.id, this.paginationConfig).pipe( diff --git a/src/app/notifications/qa/topics/quality-assurance-topics.component.ts b/src/app/notifications/qa/topics/quality-assurance-topics.component.ts index 0fcaa93805c..176dba95ac7 100644 --- a/src/app/notifications/qa/topics/quality-assurance-topics.component.ts +++ b/src/app/notifications/qa/topics/quality-assurance-topics.component.ts @@ -86,13 +86,13 @@ export class QualityAssuranceTopicsComponent implements OnInit, OnDestroy, After protected subs: Subscription[] = []; /** - * This property represents a sourceId which is used to retrive a topic + * This property represents a sourceId which is used to retrieve a topic * @type {string} */ public sourceId: string; /** - * This property represents a targetId (item-id) which is used to retrive a topic + * This property represents a targetId (item-id) which is used to retrieve a topic * @type {string} */ public targetId: string; @@ -171,7 +171,7 @@ export class QualityAssuranceTopicsComponent implements OnInit, OnDestroy, After } /** - * Dispatch the Quality Assurance topics retrival. + * Dispatch the Quality Assurance topics retrieval. */ public getQualityAssuranceTopics(source: string, target?: string): void { this.subs.push(this.paginationService.getCurrentPagination(this.paginationConfig.id, this.paginationConfig).pipe( diff --git a/src/app/notifications/suggestion-targets/publication-claim/publication-claim.component.ts b/src/app/notifications/suggestion-targets/publication-claim/publication-claim.component.ts index d03bf9d6534..ede5c398f93 100644 --- a/src/app/notifications/suggestion-targets/publication-claim/publication-claim.component.ts +++ b/src/app/notifications/suggestion-targets/publication-claim/publication-claim.component.ts @@ -157,7 +157,7 @@ export class PublicationClaimComponent implements OnInit { } /** - * Dispatch the Suggestion Targets retrival. + * Dispatch the Suggestion Targets retrieval. */ public getSuggestionTargets(): void { this.paginationService.getCurrentPagination(this.paginationConfig.id, this.paginationConfig).pipe( diff --git a/src/app/search-navbar/search-navbar.component.ts b/src/app/search-navbar/search-navbar.component.ts index 28971a26444..3aca706ade9 100644 --- a/src/app/search-navbar/search-navbar.component.ts +++ b/src/app/search-navbar/search-navbar.component.ts @@ -31,7 +31,7 @@ export class SearchNavbarComponent { // The search form searchForm; - // Whether or not the search bar is expanded, boolean for html ngIf, string fo AngularAnimation state change + // Whether or not the search bar is expanded, boolean for html ngIf, string for AngularAnimation state change searchExpanded = false; isExpanded = 'collapsed'; diff --git a/src/app/shared/dso-page/dso-edit-menu/dso-edit-menu-section/dso-edit-menu-section.component.ts b/src/app/shared/dso-page/dso-edit-menu/dso-edit-menu-section/dso-edit-menu-section.component.ts index 2e2397f860b..5c8a1b65d6b 100644 --- a/src/app/shared/dso-page/dso-edit-menu/dso-edit-menu-section/dso-edit-menu-section.component.ts +++ b/src/app/shared/dso-page/dso-edit-menu/dso-edit-menu-section/dso-edit-menu-section.component.ts @@ -48,7 +48,7 @@ export class DsoEditMenuSectionComponent extends MenuSectionComponent implements } /** - * Activate the section's model funtion + * Activate the section's model function */ public activate(event: any) { event.preventDefault(); diff --git a/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts b/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts index bc2cfba4818..70dc48c68da 100644 --- a/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts +++ b/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts @@ -61,7 +61,7 @@ export class DsoWithdrawnReinstateModalService { * @param correctionType - The type of correction. * @param reason - The reason for the request. * Reloads the current page in order to update the withdrawn/reinstate button. - * and desplay a notification box. + * and display a notification box. */ sendQARequest(target: string, correctionType: 'request-reinstate' | 'request-withdrawn', reason: string): void { this.qaEventDataService.postData(target, correctionType, '', reason) diff --git a/src/app/shared/entity-dropdown/entity-dropdown.component.ts b/src/app/shared/entity-dropdown/entity-dropdown.component.ts index a02c6d82212..61bfd853ca8 100644 --- a/src/app/shared/entity-dropdown/entity-dropdown.component.ts +++ b/src/app/shared/entity-dropdown/entity-dropdown.component.ts @@ -146,7 +146,7 @@ export class EntityDropdownComponent implements OnInit, OnDestroy { } /** - * Method used from infitity scroll for retrive more data on scroll down + * Method used from infitity scroll for retrieve more data on scroll down */ public onScrollDown() { if ( this.hasNextPage ) { diff --git a/src/app/shared/form/vocabulary-treeview-modal/vocabulary-treeview-modal.component.spec.ts b/src/app/shared/form/vocabulary-treeview-modal/vocabulary-treeview-modal.component.spec.ts index fea81d1d9a1..99ec27dd7db 100644 --- a/src/app/shared/form/vocabulary-treeview-modal/vocabulary-treeview-modal.component.spec.ts +++ b/src/app/shared/form/vocabulary-treeview-modal/vocabulary-treeview-modal.component.spec.ts @@ -43,7 +43,7 @@ describe('VocabularyTreeviewModalComponent', () => { expect(component).toBeTruthy(); }); - it('should init descrption message', () => { + it('should init description message', () => { expect((component as any).setDescription).toHaveBeenCalled(); }); }); diff --git a/src/app/shared/menu/menu-id.model.ts b/src/app/shared/menu/menu-id.model.ts index 4e7d31f467c..547071aa040 100644 --- a/src/app/shared/menu/menu-id.model.ts +++ b/src/app/shared/menu/menu-id.model.ts @@ -1,5 +1,5 @@ /** - * Availavle Menu IDs + * Available Menu IDs */ export enum MenuID { ADMIN = 'admin-sidebar', diff --git a/src/app/shared/mocks/dspace-rest/endpoint-mocking-rest.service.ts b/src/app/shared/mocks/dspace-rest/endpoint-mocking-rest.service.ts index ad867e0cf0d..bfdbe4d6d7d 100644 --- a/src/app/shared/mocks/dspace-rest/endpoint-mocking-rest.service.ts +++ b/src/app/shared/mocks/dspace-rest/endpoint-mocking-rest.service.ts @@ -106,7 +106,7 @@ export class EndpointMockingRestService extends DspaceRestService { * Get the mock response associated with this URL from this.mockResponseMap * * @param urlStr - * the URL to fetch a mock reponse for + * the URL to fetch a mock response for * @return any * the mock response if there is one, undefined otherwise */ diff --git a/src/app/shared/object-list/duplicate-data/duplicate.model.ts b/src/app/shared/object-list/duplicate-data/duplicate.model.ts index 646adc00ff6..4524418343f 100644 --- a/src/app/shared/object-list/duplicate-data/duplicate.model.ts +++ b/src/app/shared/object-list/duplicate-data/duplicate.model.ts @@ -28,7 +28,7 @@ export class Duplicate implements CacheableObject { @autoserialize uuid: string; /** - * The workfow item ID, if any + * The workflow item ID, if any */ @autoserialize workflowItemId: number; diff --git a/src/app/shared/object-list/metadata-representation-list-element/browse-link/browse-link-metadata-list-element.component.spec.ts b/src/app/shared/object-list/metadata-representation-list-element/browse-link/browse-link-metadata-list-element.component.spec.ts index 60f3a1566e3..89048db936c 100644 --- a/src/app/shared/object-list/metadata-representation-list-element/browse-link/browse-link-metadata-list-element.component.spec.ts +++ b/src/app/shared/object-list/metadata-representation-list-element/browse-link/browse-link-metadata-list-element.component.spec.ts @@ -68,7 +68,7 @@ describe('BrowseLinkMetadataListElementComponent', () => { }); }); - describe('with metadata wit an url', () => { + describe('with metadata with an url', () => { beforeEach(() => { comp.mdRepresentation = mockMetadataRepresentationWithUrl; spyOnProperty(comp.mdRepresentation, 'representationType', 'get').and.returnValue(MetadataRepresentationType.BrowseLink); diff --git a/src/app/shared/object-select/collection-select/collection-select.component.ts b/src/app/shared/object-select/collection-select/collection-select.component.ts index 267d8a2a606..a4fa227e6b7 100644 --- a/src/app/shared/object-select/collection-select/collection-select.component.ts +++ b/src/app/shared/object-select/collection-select/collection-select.component.ts @@ -46,7 +46,7 @@ export class CollectionSelectComponent extends ObjectSelectComponent /** * Collection of all the data that is used to display the {@link Collection} in the HTML. - * By collecting this data here it doesn't need to be recalculated on evey change detection. + * By collecting this data here it doesn't need to be recalculated on every change detection. */ selectCollections$: Observable[]>; diff --git a/src/app/shared/object-select/item-select/item-select.component.ts b/src/app/shared/object-select/item-select/item-select.component.ts index 973b4aff873..285a790c2a4 100644 --- a/src/app/shared/object-select/item-select/item-select.component.ts +++ b/src/app/shared/object-select/item-select/item-select.component.ts @@ -50,7 +50,7 @@ export class ItemSelectComponent extends ObjectSelectComponent implements /** * Collection of all the data that is used to display the {@link Item} in the HTML. - * By collecting this data here it doesn't need to be recalculated on evey change detection. + * By collecting this data here it doesn't need to be recalculated on every change detection. */ selectItems$: Observable[]>; diff --git a/src/app/shared/rss-feed/rss.component.ts b/src/app/shared/rss-feed/rss.component.ts index 9865c1dd064..e089525a72d 100644 --- a/src/app/shared/rss-feed/rss.component.ts +++ b/src/app/shared/rss-feed/rss.component.ts @@ -33,7 +33,7 @@ import { PaginatedSearchOptions } from '../search/models/paginated-search-option /** - * The Rss feed button componenet. + * The Rss feed button component. */ @Component({ exportAs: 'rssComponent', diff --git a/src/app/shared/search/models/search-options.model.ts b/src/app/shared/search/models/search-options.model.ts index 88866e7ef2e..531d5254938 100644 --- a/src/app/shared/search/models/search-options.model.ts +++ b/src/app/shared/search/models/search-options.model.ts @@ -73,7 +73,7 @@ export class SearchOptions { get encodedFixedFilter(): string { // expected format: 'arg=value' - // -> split the query agument into (arg=)(value) and only encode 'value' + // -> split the query argument into (arg=)(value) and only encode 'value' const match = this.fixedFilter.match(/^([^=]+=)(.+)$/); if (hasValue(match)) { diff --git a/src/app/shared/search/search-filters/search-filter/search-facet-filter-options/search-facet-range-option/search-facet-range-option.component.spec.ts b/src/app/shared/search/search-filters/search-filter/search-facet-filter-options/search-facet-range-option/search-facet-range-option.component.spec.ts index 9c1ef496c91..3797aaf2ebe 100644 --- a/src/app/shared/search/search-filters/search-filter/search-facet-filter-options/search-facet-range-option/search-facet-range-option.component.spec.ts +++ b/src/app/shared/search/search-filters/search-filter/search-facet-filter-options/search-facet-range-option/search-facet-range-option.component.spec.ts @@ -118,7 +118,7 @@ describe('SearchFacetRangeOptionComponent', () => { fixture.detectChanges(); }); - describe('when the updateChangeParams method is called wih a value', () => { + describe('when the updateChangeParams method is called with a value', () => { it('should update the changeQueryParams with the new parameter values', () => { comp.changeQueryParams = {}; comp.filterValue = { diff --git a/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts b/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts index 1ddac22dd3b..4c184aec834 100644 --- a/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts +++ b/src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts @@ -93,7 +93,7 @@ export class SearchRangeFilterComponent extends SearchFacetFilterComponent imple /** * Whether the sider is being controlled by the keyboard. - * Supresses any changes until the key is released. + * Suppresses any changes until the key is released. */ keyboardControl: boolean; diff --git a/src/app/shared/subscriptions/subscription-view/subscription-view.component.spec.ts b/src/app/shared/subscriptions/subscription-view/subscription-view.component.spec.ts index f922d39784c..ddd81830a41 100644 --- a/src/app/shared/subscriptions/subscription-view/subscription-view.component.spec.ts +++ b/src/app/shared/subscriptions/subscription-view/subscription-view.component.spec.ts @@ -115,7 +115,7 @@ describe('SubscriptionViewComponent', () => { expect(de.query(By.css('.subscription-type'))).toBeTruthy(); }); - it('should have subscription paramenter info', () => { + it('should have subscription parameter info', () => { expect(de.query(By.css('.subscription-parameters > span'))).toBeTruthy(); }); diff --git a/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts b/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts index fc501c3cd9f..c47e4c644de 100644 --- a/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts +++ b/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts @@ -135,7 +135,7 @@ export class SubmissionSectionCoarNotifyComponent extends SectionModelComponent /** * Method called when section is initialized - * Retriev available NotifyConfigs + * Retrieve available NotifyConfigs */ setCoarNotifyConfig() { this.subs.push( diff --git a/src/app/submission/sections/sections.service.ts b/src/app/submission/sections/sections.service.ts index 8d86ee84b54..6cc064283ee 100644 --- a/src/app/submission/sections/sections.service.ts +++ b/src/app/submission/sections/sections.service.ts @@ -124,7 +124,7 @@ export class SectionsService { }); }); - // Itereate over the previous error list + // Iterate over the previous error list prevErrors.forEach((error: SubmissionSectionError) => { const errorPaths: SectionErrorPath[] = parseSectionErrorPaths(error.path); diff --git a/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts b/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts index 3c30038a9ae..4eb9567abb4 100644 --- a/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts +++ b/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts @@ -11,7 +11,7 @@ import { TranslateModule } from '@ngx-translate/core'; import { Metadata } from '../../../../core/submission/models/sherpa-policies-details.model'; /** - * This component represents a section that contains the matadata informations. + * This component represents a section that contains the metadata information. */ @Component({ selector: 'ds-metadata-information', diff --git a/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts b/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts index 6852a32473a..8cbe2f69043 100644 --- a/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts +++ b/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts @@ -14,7 +14,7 @@ import { AlertType } from '../../../../shared/alert/alert-type'; import { ContentAccordionComponent } from '../content-accordion/content-accordion.component'; /** - * This component represents a section that contains the publisher policy informations. + * This component represents a section that contains the publisher policy information. */ @Component({ selector: 'ds-publisher-policy', diff --git a/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts b/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts index dd614abef6c..86d55ce8d00 100644 --- a/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts +++ b/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts @@ -35,7 +35,7 @@ import { PublicationInformationComponent } from './publication-information/publi import { PublisherPolicyComponent } from './publisher-policy/publisher-policy.component'; /** - * This component represents a section for the sherpa policy informations structure. + * This component represents a section for the sherpa policy information structure. */ @Component({ selector: 'ds-section-sherpa-policies', diff --git a/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.spec.ts b/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.spec.ts index 2616b2accf9..8e0462d0842 100644 --- a/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.spec.ts +++ b/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.spec.ts @@ -170,7 +170,7 @@ describe('SystemWideAlertFormComponent', () => { }); describe('save', () => { - it('should update the exising alert with the form values and show a success notification on success and navigate back', () => { + it('should update the existing alert with the form values and show a success notification on success and navigate back', () => { spyOn(comp, 'back'); comp.currentAlert = systemWideAlert; @@ -193,7 +193,7 @@ describe('SystemWideAlertFormComponent', () => { expect(requestService.setStaleByHrefSubstring).toHaveBeenCalledWith('systemwidealerts'); expect(comp.back).toHaveBeenCalled(); }); - it('should update the exising alert with the form values and show a success notification on success and not navigate back when false is provided to the save method', () => { + it('should update the existing alert with the form values and show a success notification on success and not navigate back when false is provided to the save method', () => { spyOn(comp, 'back'); comp.currentAlert = systemWideAlert; @@ -216,7 +216,7 @@ describe('SystemWideAlertFormComponent', () => { expect(requestService.setStaleByHrefSubstring).toHaveBeenCalledWith('systemwidealerts'); expect(comp.back).not.toHaveBeenCalled(); }); - it('should update the exising alert with the form values but add an empty countdown date when disabled and show a success notification on success', () => { + it('should update the existing alert with the form values but add an empty countdown date when disabled and show a success notification on success', () => { spyOn(comp, 'back'); comp.currentAlert = systemWideAlert; @@ -239,7 +239,7 @@ describe('SystemWideAlertFormComponent', () => { expect(requestService.setStaleByHrefSubstring).toHaveBeenCalledWith('systemwidealerts'); expect(comp.back).toHaveBeenCalled(); }); - it('should update the exising alert with the form values and show a error notification on error', () => { + it('should update the existing alert with the form values and show a error notification on error', () => { spyOn(comp, 'back'); (systemWideAlertDataService.put as jasmine.Spy).and.returnValue(createFailedRemoteDataObject$()); comp.currentAlert = systemWideAlert; diff --git a/src/modules/app/server-init.service.ts b/src/modules/app/server-init.service.ts index e22feec09a2..c4aa4ffba3a 100644 --- a/src/modules/app/server-init.service.ts +++ b/src/modules/app/server-init.service.ts @@ -85,7 +85,7 @@ export class ServerInitService extends InitService { // Server-only initialization steps /** - * Set the {@link NGRX_STATE} key when state is serialized to be transfered + * Set the {@link NGRX_STATE} key when state is serialized to be transferred * @private */ private saveAppState() { diff --git a/src/typings.d.ts b/src/typings.d.ts index c1c86511f88..9615cf5f67b 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -9,7 +9,7 @@ declare module "my-module" { export function doesSomething(value: string): string; } * - * If you're prototying and you will fix the types later you can also declare it as type any + * If you're prototyping and you will fix the types later you can also declare it as type any * declare var assert: any; *