Navigation Menu

Skip to content

Commit

Permalink
refactor(ontology): improve ontology editor design (DSP-1376) (#401)
Browse files Browse the repository at this point in the history
* style(ontology): update position of ontology header

* style(ontology): start to use card for res class

* style(ontology): other icon for external url

* refactor(ontology): using mat-card for res class

* style(ontology): update res class card

* style(ontology): update ontology viewer

* feat(ontology): display class type in class card

* test(ontology): new test for translateSubClassOf pipe

* feat(ontology): add default icons to default class types

* chore(ontology): display icons from default classes

* chore(ontology): init own res class component

* feat(ontology): own res class info component

* refactor(eslint): eslint is not yet implemented

* refactor(ontology): new res class info setup

* test(ontology): init res class info test

* chore(ontology): expanded variable as @input

* test(ontology): add test to res class info

* chore(ontology): update res class info

* feat(ontology): sort ontologies by label

* refactor(ontology): replace translate-subclass-of.pipe

the pipe was too slow

* chore(ontology): clean up commented code

* chore(ontology): delete console.log

* refactor(ontology): clean up empty lines

* docs(ontology): add jsdocs to method
  • Loading branch information
kilchenmann committed Mar 4, 2021
1 parent 09d25fa commit 6de83b8
Show file tree
Hide file tree
Showing 19 changed files with 478 additions and 456 deletions.
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

335 changes: 0 additions & 335 deletions .eslintrc.json

This file was deleted.

4 changes: 3 additions & 1 deletion src/app/app.module.ts
Expand Up @@ -91,6 +91,7 @@ import { AddressTemplateComponent } from './project/board/address-template/addre
import { OrganisationTemplateComponent } from './project/board/organisation-template/organisation-template.component';
import { EditListItemComponent } from './project/list/list-item-form/edit-list-item/edit-list-item.component';
import { PropertyInfoComponent } from './project/ontology/property-info/property-info.component';
import { ResourceClassInfoComponent } from './project/ontology/resource-class-info/resource-class-info.component';

// translate: AoT requires an exported function for factories
export function HttpLoaderFactory(httpClient: HttpClient) {
Expand Down Expand Up @@ -164,7 +165,8 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
AddressTemplateComponent,
OrganisationTemplateComponent,
EditListItemComponent,
PropertyInfoComponent
PropertyInfoComponent,
ResourceClassInfoComponent
],
imports: [
AppRoutingModule,
Expand Down
Expand Up @@ -160,7 +160,7 @@ export class DefaultProperties {
// group: 'Link'
// },
{
icon: 'http',
icon: 'language',
label: 'External URL',
subPropOf: Constants.HasValue,
objectType: Constants.UriValue,
Expand Down

0 comments on commit 6de83b8

Please sign in to comment.