Skip to content

Commit

Permalink
remove all unsed feed components from admin
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed Sep 9, 2024
1 parent c97d04d commit 64a1e64
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 318 deletions.
4 changes: 0 additions & 4 deletions web-app/admin/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import { FilenamePipe } from './filename/filename.pipe';
import { AttachUploadComponent } from './observation/attachment/attachment-upload/attachment-upload.component';
import { UserAvatarComponent } from './user/user-avatar/user-avatar.component';
import { TokenInterceptorService } from './http/token-interceptor.service';
import { FeedListComponent } from './feed/feed-list/feed-list.component';

import {
mapServiceProvider,
Expand Down Expand Up @@ -101,7 +100,6 @@ import {

import { FeedItemComponent } from './feed/feed-item/feed-item.component';
import { FeedItemSummaryModule } from './feed/feed-item/feed-item-summary/feed-item-summary.module';
import { FeedPanelTabComponent } from './feed-panel/feed-panel-tab.component';
import { AdminFeedsModule } from './admin/admin-feeds/admin-feeds.module';
import { StaticIconModule } from '@ngageoint/mage.web-core-lib/static-icon'
import { MageCommonModule } from '@ngageoint/mage.web-core-lib/common'
Expand Down Expand Up @@ -143,8 +141,6 @@ import { AdminMapComponent } from './admin/admin-map/admin-map.component';
DMSValidatorDirective,
MGRSValidatorDirective,
FeedItemComponent,
FeedListComponent,
FeedPanelTabComponent,
ObservationEditComponent,
ObservationEditAttachmentComponent,
ObservationEditFormComponent,
Expand Down

This file was deleted.

48 changes: 0 additions & 48 deletions web-app/admin/src/app/feed-panel/feed-panel-tab.component.scss

This file was deleted.

29 changes: 0 additions & 29 deletions web-app/admin/src/app/feed-panel/feed-panel-tab.component.spec.ts

This file was deleted.

34 changes: 0 additions & 34 deletions web-app/admin/src/app/feed-panel/feed-panel-tab.component.ts

This file was deleted.

12 changes: 0 additions & 12 deletions web-app/admin/src/app/feed-panel/feed-panel.service.spec.ts

This file was deleted.

76 changes: 0 additions & 76 deletions web-app/admin/src/app/feed-panel/feed-panel.service.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, Input, Inject, OnChanges, SimpleChanges } from '@angular/cor
import { Feed } from '@ngageoint/mage.web-core-lib/feed';
import { MapService } from '../../../upgrade/ajs-upgraded-providers';
import { Feature } from 'geojson';
import { FeedPanelService } from '../../../feed-panel/feed-panel.service';
import { contentPathOfIcon } from '@ngageoint/mage.web-core-lib/static-icon'

@Component({
Expand All @@ -20,7 +19,7 @@ export class FeedItemSummaryComponent implements OnChanges {
secondary: string;
iconUrl?: string;

constructor(private feedPanelService: FeedPanelService, @Inject(MapService) private mapService: any) { }
constructor(@Inject(MapService) private mapService: any) { }

ngOnChanges(_changes: SimpleChanges): void {
if (!this.feed || !this.item.properties) return;
Expand All @@ -45,7 +44,6 @@ export class FeedItemSummaryComponent implements OnChanges {
}

onItemSelect(): void {
this.feedPanelService.selectFeedItem(this.feed, this.item);
this.mapService.zoomToFeatureInLayer(this.item, `feed-${this.feed.id}`);
}
}
3 changes: 0 additions & 3 deletions web-app/admin/src/app/feed/feed-item/feed-item.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Component, Input, Inject, OnChanges, SimpleChanges } from '@angular/core';
import { Feed, StyledFeature } from '@ngageoint/mage.web-core-lib/feed';
import { FeedPanelService } from '../../../app/feed-panel/feed-panel.service';
import { MomentPipe } from '../../../app/moment/moment.pipe';
import { MapService } from '../../../app/upgrade/ajs-upgraded-providers';

Expand All @@ -21,7 +20,6 @@ export class FeedItemComponent implements OnChanges {
properties = []

constructor(
private feedPanelService: FeedPanelService,
private momentPipe: MomentPipe,
@Inject(MapService) private mapService: any
) {}
Expand Down Expand Up @@ -74,7 +72,6 @@ export class FeedItemComponent implements OnChanges {
}

close(): void {
this.feedPanelService.deselectFeedItem(this.feed, this.item);
}

onLocationClick(): void {
Expand Down
14 changes: 0 additions & 14 deletions web-app/admin/src/app/feed/feed-list/feed-list.component.html

This file was deleted.

12 changes: 0 additions & 12 deletions web-app/admin/src/app/feed/feed-list/feed-list.component.scss

This file was deleted.

38 changes: 0 additions & 38 deletions web-app/admin/src/app/feed/feed-list/feed-list.component.spec.ts

This file was deleted.

28 changes: 0 additions & 28 deletions web-app/admin/src/app/feed/feed-list/feed-list.component.ts

This file was deleted.

2 changes: 0 additions & 2 deletions web-app/admin/src/ng1/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { downgradeComponent, downgradeInjectable } from '@angular/upgrade/static
import { BootstrapComponent } from "../app/bootstrap/bootstrap.component"

import { FeedService } from '@ngageoint/mage.web-core-lib/feed'
import { FeedPanelService } from '../app/feed-panel/feed-panel.service'
import { PluginService } from '../app/plugin/plugin.service'

import { UserAvatarComponent } from '../app/user/user-avatar/user-avatar.component';
Expand Down Expand Up @@ -46,7 +45,6 @@ app

app
.factory('FeedService', downgradeInjectable(FeedService))
.factory('FeedPanelService', downgradeInjectable(FeedPanelService))
.factory('PluginService', downgradeInjectable(PluginService))
// TODO: remove this once we have a new user service
.factory('UserReadService', downgradeInjectable(UserReadService))
Expand Down
Loading

0 comments on commit 64a1e64

Please sign in to comment.