Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #42 from Caleydo/vstoiber/update_refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh authored Aug 19, 2020
2 parents 492d764 + f4916fc commit 1b38977
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 27 deletions.
27 changes: 17 additions & 10 deletions dist/phovea.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/phovea.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/scss/_idtype_color.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "~tdp_core/src/styles/idtype_color";
@import "~tdp_core/dist/scss/idtype_color";

* {
@include idtype_color('IDTypeA', #73dbff);
Expand Down
2 changes: 1 addition & 1 deletion dist/views/DummyInstantView.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AInstantView } from 'tdp_core/src/views/AInstantView';
import { AInstantView } from 'tdp_core';
export declare class DummyInstantView extends AInstantView {
protected initImpl(): void;
private build;
Expand Down
2 changes: 1 addition & 1 deletion dist/views/DummyInstantView.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/views/DummyInstantView.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 17 additions & 10 deletions src/phovea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ module.exports = function (registry, feature) {

/// #if include('ordino')
registry.push('ordinoStartMenuSection', 'dummy_start_a', function () {
return import('./base/DummyMenuSection').then((d) => d.DummyMenuSection);
return import('./base/DummyMenuSection');
}, {
name: 'Dummy Data',
factory: 'new DummyMenuSection',
cssClass: 'targidDummyData',
priority: 20,
viewId: 'dummy_start_a',
Expand All @@ -41,54 +42,58 @@ module.exports = function (registry, feature) {
});

registry.push('tdpView', 'dummy_detail', function () {
return import('./views/DummyDetailView').then((d) => d.DummyDetailView);
return import('./views/DummyDetailView');
}, {
name: 'Dummy Detail View',
factory: 'new DummyDetailView',
idtype: 'IDTypeA',
selection: '2'
});

registry.push('tdpView', 'dummy_dependent', function () {
return import('./views/DummyDependentList').then((d) => d.DummyDependentList);
return import('./views/DummyDependentList');
}, {
name: 'Dummy Dependent List',
factory: 'new DummyDependentList',
idtype: 'IDTypeA',
selection: 'some'
});

registry.push('tdpView', 'dummyb_dependent', function () {
return import('./views/DummyDependentBList').then((d) => d.DummyDependentBList);
return import('./views/DummyDependentBList');
}, {
name: 'Dummy Dependent List',
factory: 'new DummyDependentBList',
idtype: 'IDTypeB',
selection: 'some'
});

registry.push('tdpView', 'dummy_composite', function () {
return import('tdp_core/src/views/CompositeView').then((c) => c.CompositeView);
return import('tdp_core/dist/views/CompositeView');
}, {
name: 'DummyComposite',
factory: 'new CompositeView',
idtype: 'IDTypeA',
selection: 'some',
elements: [
{
key: 'a',
loader() {
return import('./views/DummyComposite').then((d) => d.DummyA);
return import('./views/DummyComposite');
},
factory: 'new DummyA'
},
{
key: 'b',
loader() {
return import('./views/DummyComposite').then((d) => d.DummyB);
return import('./views/DummyComposite');
},
factory: 'new DummyB'
},
{
key: 'c',
loader() {
return import('./views/DummyComposite').then((d) => d.DummyC);
return import('./views/DummyComposite');
},
factory: 'new DummyC'
}
Expand All @@ -100,19 +105,21 @@ module.exports = function (registry, feature) {
});

registry.push('tdpView', 'dummy_external', function () {
return import('tdp_core/src/views/ProxyView').then((p) => p.ProxyView);
return import('tdp_core/dist/views/ProxyView');
}, {
name: 'Wikipedia',
factory: 'new ProxyView',
site: 'https://wikipedia.org/w/index.php?search={id}',
argument: 'id',
idtype: 'IDTypeA',
selection: 'chooser'
});

registry.push('tdpInstantView', 'dummy', function () {
return import('./views/DummyInstantView').then((d) => d.DummyInstantView);
return import('./views/DummyInstantView');
}, {
name: 'Info',
factory: 'new DummyInstantView',
idtype: 'IDTypeA'
});

Expand Down
2 changes: 1 addition & 1 deletion src/scss/_idtype_color.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "~tdp_core/src/styles/idtype_color";
@import "~tdp_core/dist/scss/idtype_color";

* {
@include idtype_color('IDTypeA', #73dbff);
Expand Down
2 changes: 1 addition & 1 deletion src/views/DummyInstantView.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AInstantView} from 'tdp_core/src/views/AInstantView';
import {AInstantView} from 'tdp_core';


export class DummyInstantView extends AInstantView {
Expand Down

0 comments on commit 1b38977

Please sign in to comment.