Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Angular 9 #283

Merged
merged 52 commits into from
Aug 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
291b535
chore: Update package.json
Jul 31, 2020
7a21034
chore: Remove angular/http from package.json
Jul 31, 2020
cde82a8
chore: Update to Angular 9
Jul 31, 2020
6cc3092
chore: Remove flex-layout
Jul 31, 2020
c11889c
chore: Update angular material and cdk to version 9
Jul 31, 2020
52b15d4
chore: Upgrade dependencies version
Jul 31, 2020
3be77ca
refactor: Remove entryComponents
Jul 31, 2020
7d29ed9
refactor: Replace TestBed.get by TestBed.inject
Jul 31, 2020
c845a53
chore: Update the config
Jul 31, 2020
8a8c83c
refactor: Update imports and selectors
Jul 31, 2020
9b2a679
refactor: Update the title
Jul 31, 2020
5e111b7
refactor(main): Update imports and selectors
Aug 3, 2020
6c20e17
refactor(main): Update session service methods
Aug 3, 2020
8013627
refactor(project): Update selectors and imports
Aug 3, 2020
4ff5b5c
refactor(project): Update imports and selectors
Aug 3, 2020
81ebd3e
refactor(system): Update imports and selectors
Aug 4, 2020
e791cfc
refactor(user): Update imports and selectors
Aug 4, 2020
21dc774
refactor(workspace): Update imports and selectors
Aug 5, 2020
b1253a8
refactor(help): Replace knoraApiConfig and KuiConfig
Aug 5, 2020
6390110
refactor(login): Update import and selector
Aug 5, 2020
9732c01
fix(source-type-property): Add missing AutocompleteItem
Aug 5, 2020
89a0e18
refactor(app-init.service): Remove deprecated service
Aug 5, 2020
b9e6689
fix(package): Add missing ngx-color-picker
Aug 5, 2020
d084a48
refactor(angular.json): Update scripts
Aug 5, 2020
cd7765d
refactor(main.ts): Update main.ts
Aug 5, 2020
43542ba
refactor(app): Update imports
Aug 6, 2020
868267a
refactor(search): Update inputs and outputs
Aug 6, 2020
df69e68
refactor(dialog): Disable app-ontology-form
Aug 6, 2020
4fbd090
refactor(main): Update imports in spec
Aug 6, 2020
353eb72
refactor(project): Update imports in spec
Aug 6, 2020
bc5e92e
refactor(system): Update imports in spec
Aug 6, 2020
a8da8a8
fix(users-list): Update parameters in updateSystemAdminAdminMembership()
Aug 6, 2020
e51cbaf
refactor(user): Update imports in spec
Aug 6, 2020
4ef44f1
refactor(workspace): Update imports in spec
Aug 6, 2020
1e8562a
refactor: Update name to dsp-app
Aug 6, 2020
29418a6
refactor(app): Update name to dsp in comments
Aug 6, 2020
a65ac00
refactor(main): Update login-form selectors
Aug 7, 2020
b6b0506
fix(login): Fix css and login function
Aug 7, 2020
252bd14
chore: Update dsp-ui and dsp-js
Aug 7, 2020
c77c8ff
refactor: Replace get session, get user name and sysAdmin
Aug 7, 2020
c797bb7
refactor: Clean up
Aug 7, 2020
2b6bf23
feat(search): Complete openResource() with navigate
Aug 7, 2020
56bab59
refactor(header): Replace route input by router.navigate()
Aug 7, 2020
8a5af89
refactor(results): Complete openResource() + clean up
Aug 7, 2020
cd9b0a7
fix(main+system): Fix tests
Aug 10, 2020
67b208e
test(main): Mock sessionStorage
Aug 10, 2020
47bd459
fix(main): Replace flexLayout by css-grid + hardcode dsp-api version …
Aug 11, 2020
6ca5498
refactor: Rename Knora (app) to DSP-APP and DSP-API
Aug 11, 2020
94fac39
feat(header): Add project iri in route in case of selected project
Aug 12, 2020
71828f3
fix(projects): User's projects list
kilchenmann Aug 13, 2020
145cb74
fix(search): Search results and routing fixed
kilchenmann Aug 13, 2020
bec86a8
test: Fix tests in main component
kilchenmann Aug 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![CI](https://github.com/dasch-swiss/dsp-app/workflows/CI/badge.svg)](https://github.com/dasch-swiss/dsp-app/actions?query=workflow%3ACI)
[![Docker](https://img.shields.io/docker/cloud/build/daschswiss/dsp-app)](https://hub.docker.com/r/daschswiss/dsp-app)

This app is a simple user interface for the Data and Service Center for the Humanities DaSCH, which uses the DSP/Knora server application in the backend. It's a system for annotation and linkage of sources in arts and humanities.
This app is a simple user interface for the Data and Service Center for the Humanities DaSCH, which uses the DSP-API/Knora server application in the backend. It's a system for annotation and linkage of sources in arts and humanities.

DSP-APP implements [DSP-JS-LIB](https://www.npmjs.com/package/@dasch-swiss/dsp-js) to connect with [DSP-API](https://docs.dasch.swiss/developers/knora/api-reference/). DSP-API is a software framework for storing, sharing, and working with primary sources and data in the humanities.

Expand Down
285 changes: 143 additions & 142 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,151 +1,152 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"knora-app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/knora-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets",
"src/config"
],
"styles": [
"node_modules/@knora/action/assets/style/action.scss",
"node_modules/@knora/search/assets/style/search.scss",
"src/styles.scss"
],
"scripts": [
"node_modules/openseadragon/build/openseadragon/openseadragon.min.js",
"node_modules/svg-overlay/openseadragon-svg-overlay.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"dsp-app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "5mb"
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/dsp-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets",
"src/config"
],
"styles": [
"src/styles.scss"
],
"scripts": [
"node_modules/openseadragon/build/openseadragon/openseadragon.min.js",
"node_modules/svg-overlay/openseadragon-svg-overlay.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "3mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "dsp-app:build"
},
"configurations": {
"production": {
"browserTarget": "dsp-app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "dsp-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.scss"
],
"scripts": [
"node_modules/openseadragon/build/openseadragon/openseadragon.min.js",
"node_modules/svg-overlay/openseadragon-svg-overlay.js"
],
"assets": [
"src/favicon.ico",
"src/assets",
"src/config"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "knora-app:build"
},
"configurations": {
"production": {
"browserTarget": "knora-app:build:production"
"dsp-app-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "dsp-app:serve"
},
"configurations": {
"production": {
"devServerTarget": "dsp-app:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "knora-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"node_modules/@knora/action/assets/style/action.scss",
"node_modules/@knora/search/assets/style/search.scss",
"src/styles.scss"
],
"scripts": [
"node_modules/openseadragon/build/openseadragon/openseadragon.min.js",
"node_modules/svg-overlay/openseadragon-svg-overlay.js"
],
"assets": [
"src/favicon.ico",
"src/assets",
"src/config"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"knora-app-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "knora-app:serve"
},
"configurations": {
"production": {
"devServerTarget": "knora-app:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "knora-app"
"defaultProject": "dsp-app"
}
6 changes: 3 additions & 3 deletions e2e/src/footer.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ fdescribe('footer', () => {
footer = new FooterPage();
});

it('should start the description with "Knora app is built with"', async () => {
it('should start the description with "DSP-APP is built with"', async () => {
await browser.waitForAngularEnabled(false);
footer.navigateTo();
await browser.waitForAngularEnabled(true);
expect(footer.getFooterText()).toContain('Knora app is built with');
expect(footer.getFooterText()).toContain('DSP-APP is built with');
});

it('should route to Angular page', async () => {
Expand Down Expand Up @@ -83,7 +83,7 @@ fdescribe('footer', () => {
});
});

it('should route to Knora doc page', async () => {
it('should route to DSP-API doc page', async () => {
await browser.waitForAngularEnabled(false);
footer.navigateTo();
await browser.waitForAngularEnabled(true);
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/page-objects/login.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class LoginPage {
}

getLoginButton() {
return element(by.css('kui-login-form form button'));
return element(by.css('dsp-login-form form button'));
}

}
Loading