From 288c9c78c69bc16fb45677791070182504fd07b5 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 29 May 2018 20:53:04 +0900 Subject: [PATCH] ing --- @overflow/meta/component/index.ts | 2 ++ @overflow/meta/container/index.ts | 5 +++ .../meta-crawler-container.component.html | 0 .../meta-crawler-container.component.spec.ts | 25 ++++++++++++++ .../meta-crawler-container.component.ts | 34 +++++++++++++++++++ @overflow/meta/meta.module.ts | 11 ++++-- 6 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 @overflow/meta/component/index.ts create mode 100644 @overflow/meta/container/index.ts create mode 100644 @overflow/meta/container/meta-crawler-container.component.html create mode 100644 @overflow/meta/container/meta-crawler-container.component.spec.ts create mode 100644 @overflow/meta/container/meta-crawler-container.component.ts 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 { }