forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into poc-eslint-plugin-aut…
…ofix-selectors
- Loading branch information
Showing
35 changed files
with
180 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const ADD_TEMPLATE_ITEM_PAGE = '/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')).concat('/itemtemplate'); | ||
|
||
describe('Item Template', () => { | ||
beforeEach(() => { | ||
cy.visit(ADD_TEMPLATE_ITEM_PAGE); | ||
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD')); | ||
}); | ||
|
||
it('should load properly', () => { | ||
cy.contains('.ds-header-row .lbl-cell', 'Field', { timeout: 10000 }).should('exist').should('be.visible'); | ||
cy.contains('.ds-header-row b', 'Value', { timeout: 10000 }).should('exist').should('be.visible'); | ||
cy.contains('.ds-header-row b', 'Lang', { timeout: 10000 }).should('exist').should('be.visible'); | ||
cy.contains('.ds-header-row b', 'Edit', { timeout: 10000 }).should('exist').should('be.visible'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ the Docker compose scripts in this 'docker' folder. | |
|
||
### Dockerfile | ||
|
||
This Dockerfile is used to build a *development* DSpace 7 Angular UI image, published as 'dspace/dspace-angular' | ||
This Dockerfile is used to build a *development* DSpace Angular UI image, published as 'dspace/dspace-angular' | ||
|
||
``` | ||
docker build -t dspace/dspace-angular:latest . | ||
|
@@ -46,11 +46,11 @@ A default/demo version of this image is built *automatically*. | |
|
||
## 'docker' directory | ||
- docker-compose.yml | ||
- Starts DSpace Angular with Docker Compose from the current branch. This file assumes that a DSpace 7 REST instance will also be started in Docker. | ||
- Starts DSpace Angular with Docker Compose from the current branch. This file assumes that a DSpace REST instance will also be started in Docker. | ||
- docker-compose-rest.yml | ||
- Runs a published instance of the DSpace 7 REST API - persists data in Docker volumes | ||
- Runs a published instance of the DSpace REST API - persists data in Docker volumes | ||
- docker-compose-ci.yml | ||
- Runs a published instance of the DSpace 7 REST API for CI testing. The database is re-populated from a SQL dump on each startup. | ||
- Runs a published instance of the DSpace REST API for CI testing. The database is re-populated from a SQL dump on each startup. | ||
- cli.yml | ||
- Docker compose file that provides a DSpace CLI container to work with a running DSpace REST container. | ||
- cli.assetstore.yml | ||
|
@@ -71,7 +71,7 @@ docker-compose -f docker/docker-compose.yml build | |
|
||
This command provides a quick way to start both the frontend & backend from this single codebase | ||
``` | ||
docker-compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d | ||
docker-compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d | ||
``` | ||
|
||
Keep in mind, you may also start the backend by cloning the 'DSpace/DSpace' GitHub repository separately. See the next section. | ||
|
@@ -86,14 +86,14 @@ _The system will be started in 2 steps. Each step shares the same docker network | |
|
||
From 'DSpace/DSpace' clone (build first as needed): | ||
``` | ||
docker-compose -p d7 up -d | ||
docker-compose -p d8 up -d | ||
``` | ||
|
||
NOTE: More detailed instructions on starting the backend via Docker can be found in the [Docker Compose instructions for the Backend](https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/README.md). | ||
|
||
From 'DSpace/dspace-angular' clone (build first as needed) | ||
``` | ||
docker-compose -p d7 -f docker/docker-compose.yml up -d | ||
docker-compose -p d8 -f docker/docker-compose.yml up -d | ||
``` | ||
|
||
At this point, you should be able to access the UI from http://localhost:4000, | ||
|
@@ -107,38 +107,38 @@ This allows you to run the Angular UI in *production* mode, pointing it at the d | |
``` | ||
docker-compose -f docker/docker-compose-dist.yml pull | ||
docker-compose -f docker/docker-compose-dist.yml build | ||
docker-compose -p d7 -f docker/docker-compose-dist.yml up -d | ||
docker-compose -p d8 -f docker/docker-compose-dist.yml up -d | ||
``` | ||
|
||
## Ingest test data from AIPDIR | ||
|
||
Create an administrator | ||
``` | ||
docker-compose -p d7 -f docker/cli.yml run --rm dspace-cli create-administrator -e [email protected] -f admin -l user -p admin -c en | ||
docker-compose -p d8 -f docker/cli.yml run --rm dspace-cli create-administrator -e [email protected] -f admin -l user -p admin -c en | ||
``` | ||
|
||
Load content from AIP files | ||
``` | ||
docker-compose -p d7 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli | ||
docker-compose -p d8 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli | ||
``` | ||
|
||
## Alternative Ingest - Use Entities dataset | ||
_Delete your docker volumes or use a unique project (-p) name_ | ||
|
||
Start DSpace with Database Content from a database dump | ||
``` | ||
docker-compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d | ||
docker-compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d | ||
``` | ||
|
||
Load assetstore content and trigger a re-index of the repository | ||
``` | ||
docker-compose -p d7 -f docker/cli.yml -f docker/cli.assetstore.yml run --rm dspace-cli | ||
docker-compose -p d8 -f docker/cli.yml -f docker/cli.assetstore.yml run --rm dspace-cli | ||
``` | ||
|
||
## End to end testing of the REST API (runs in GitHub Actions CI). | ||
_In this instance, only the REST api runs in Docker using the Entities dataset. GitHub Actions will perform CI testing of Angular using Node to drive the tests. See `.github/workflows/build.yml` for more details._ | ||
|
||
This command is only really useful for testing our Continuous Integration process. | ||
``` | ||
docker-compose -p d7ci -f docker/docker-compose-ci.yml up -d | ||
docker-compose -p d8ci -f docker/docker-compose-ci.yml up -d | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
src/app/shared/search/search-labels/search-label/search-label.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<a class="badge badge-primary mr-1 mb-1" | ||
<a class="badge badge-primary mb-1" | ||
[attr.aria-label]="'search.filters.remove' | translate:{ type: ('search.filters.applied.' + key) | translate, value: normalizeFilterValue(value) }" | ||
[routerLink]="searchLink" | ||
[queryParams]="(removeParameters | async)" queryParamsHandling="merge"> | ||
{{('search.filters.applied.' + key) | translate}}: {{'search.filters.' + filterName + '.' + value | translate: {default: normalizeFilterValue(value)} }} | ||
<span aria-hidden="true"> ×</span> | ||
<span class="d-flex"> | ||
<span class="flex-grow-1 text-left">{{('search.filters.applied.' + key) | translate}}: {{'search.filters.' + filterName + '.' + value | translate: {default: normalizeFilterValue(value)} }}</span> | ||
<span class="pl-1" aria-hidden="true">×</span> | ||
</span> | ||
</a> |
3 changes: 3 additions & 0 deletions
3
src/app/shared/search/search-labels/search-label/search-label.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.badge { | ||
white-space: inherit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
src/app/shared/search/search-labels/search-labels.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
:host { | ||
line-height: 1; | ||
} | ||
.labels { | ||
margin: 0 calc(-1 * var(--bs-spacer)/8); | ||
ds-search-label { | ||
display: inline-block; | ||
padding: 0 calc(var(--bs-spacer)/8); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.