diff --git a/@overflow/meta/component/index.ts b/@overflow/meta/component/index.ts new file mode 100644 index 0000000..a9debd2 --- /dev/null +++ b/@overflow/meta/component/index.ts @@ -0,0 +1,2 @@ +export const COMPONENTS = [ +]; diff --git a/@overflow/meta/container/index.ts b/@overflow/meta/container/index.ts new file mode 100644 index 0000000..77bab2a --- /dev/null +++ b/@overflow/meta/container/index.ts @@ -0,0 +1,5 @@ +import { MetaCrawlerContainerComponent } from './meta-crawler-container.component'; + +export const CONTAINER_COMPONENTS = [ + MetaCrawlerContainerComponent, +]; diff --git a/@overflow/meta/container/meta-crawler-container.component.html b/@overflow/meta/container/meta-crawler-container.component.html new file mode 100644 index 0000000..e69de29 diff --git a/@overflow/meta/container/meta-crawler-container.component.spec.ts b/@overflow/meta/container/meta-crawler-container.component.spec.ts new file mode 100644 index 0000000..fd64276 --- /dev/null +++ b/@overflow/meta/container/meta-crawler-container.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { MetaCrawlerContainerComponent } from './meta-crawler-container.component'; + +describe('MetaCrawlerContainerComponent', () => { + let component: MetaCrawlerContainerComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ MetaCrawlerContainerComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(MetaCrawlerContainerComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/@overflow/meta/container/meta-crawler-container.component.ts b/@overflow/meta/container/meta-crawler-container.component.ts new file mode 100644 index 0000000..068f2b1 --- /dev/null +++ b/@overflow/meta/container/meta-crawler-container.component.ts @@ -0,0 +1,34 @@ +import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Store, select } from '@ngrx/store'; +import { Observable, Subscription } from 'rxjs'; + +import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth'; +import { AuthContainerSelector } from '@overflow/shared/auth/store'; +import { Domain, DomainMember } from '@overflow/commons-typescript/model/domain'; +import { ConfirmationService } from 'primeng/primeng'; +import { MessageService } from 'primeng/components/common/messageservice'; +import { RPCClientError } from '@loafer/ng-rpc'; + +import { MetaCrawler } from '@overflow/commons-typescript/model/meta'; + +import { MetaCrawlerEntitySelector } from '../store'; + +@Component({ + selector: 'of-meta-crawler-container', + templateUrl: './meta-crawler-container.component.html' +}) +export class MetaCrawlerContainerComponent implements OnInit, OnDestroy { + metaCrawlers$: Observable; + + constructor( + private store: Store, + ) { + } + + ngOnInit() { + this.metaCrawlers$ = this.store.pipe(select(MetaCrawlerEntitySelector.selectAll)); + } + + ngOnDestroy(): void { + } +} diff --git a/@overflow/meta/meta.module.ts b/@overflow/meta/meta.module.ts index 829dc19..6ffd65e 100644 --- a/@overflow/meta/meta.module.ts +++ b/@overflow/meta/meta.module.ts @@ -1,9 +1,10 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { } from './crawler.module'; - +import { COMPONENTS } from './component'; +import { CONTAINER_COMPONENTS } from './container'; import { SERVICES } from './service'; + import { MetaStoreModule } from './meta-store.module'; @NgModule({ @@ -12,11 +13,15 @@ import { MetaStoreModule } from './meta-store.module'; MetaStoreModule, ], declarations: [ + COMPONENTS, + CONTAINER_COMPONENTS ], exports: [ + COMPONENTS, + CONTAINER_COMPONENTS ], providers: [ SERVICES, - ] + ], }) export class MetaModule { }