Skip to content

Commit

Permalink
actions: less shared components (fixes #7399) (#7400)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Mutugiii and dogi authored Jan 3, 2024
1 parent da6a85e commit cf01bb0
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 20 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "planet",
"license": "AGPL-3.0",
"version": "0.14.3",
"version": "0.14.4",
"myplanet": {
"latest": "v0.12.48",
"min": "v0.11.60"
"latest": "v0.12.52",
"min": "v0.12.0"
},
"scripts": {
"ng": "ng",
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/auth-guard.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { UserService } from './user.service';
import { Observable, of, forkJoin } from 'rxjs';
import { Observable, of } from 'rxjs';
import { switchMap, map } from 'rxjs/operators';
import { Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { PouchAuthService } from './database/pouch-auth.service';
Expand Down
4 changes: 2 additions & 2 deletions src/app/shared/couchdb.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Injectable } from '@angular/core';
import { HttpHeaders, HttpClient, HttpRequest } from '@angular/common/http';
import { environment } from '../../environments/environment';
import { Observable, of, empty, throwError } from 'rxjs';
import { catchError, map, expand, takeWhile, toArray, flatMap, switchMap } from 'rxjs/operators';
import { catchError, map, expand, toArray, flatMap, switchMap } from 'rxjs/operators';
import { debug } from '../debug-operator';
import { PlanetMessageService } from './planet-message.service';
import { findDocuments, inSelector } from './mangoQueries';
import { findDocuments } from './mangoQueries';

class DatePlaceholder {}

Expand Down
3 changes: 1 addition & 2 deletions src/app/shared/dialogs/dialogs-list.service.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Injectable } from '@angular/core';
import { map, takeWhile, multicast } from 'rxjs/operators';
import { map } from 'rxjs/operators';
import { findDocuments } from '../mangoQueries';
import { UserService } from '../user.service';
import { StateService } from '../state.service';
import { ReplaySubject } from 'rxjs';
import { CouchService } from '../couchdb.service';
import { filterSpecificFields } from '../table-helpers';
import { attachNamesToPlanets } from '../../manager-dashboard/reports/reports.utils';
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/dialogs/dialogs-loading.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { MatDialogRef } from '@angular/material/dialog';

@Component({
templateUrl: './dialogs-loading.component.html',
Expand Down
2 changes: 0 additions & 2 deletions src/app/shared/dialogs/planet-dialogs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { DialogsLoadingComponent } from './dialogs-loading.component';
import { ChangePasswordDirective } from './change-password.directive';
import { SharedComponentsModule } from '../shared-components.module';
import { SyncDirective } from '../../manager-dashboard/sync.directive';
import { MeetupsModule } from '../../meetups/meetups.module';
import { DialogsAddMeetupsComponent } from './dialogs-add-meetups.component';
import { DialogsImagesComponent } from './dialogs-images.component';
import { DialogsVideoComponent } from './dialogs-video.component';
import { DialogsRatingsComponent, DialogsRatingsDirective } from './dialogs-ratings.component';
Expand Down
1 change: 0 additions & 1 deletion src/app/shared/forms/form-error-messages.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { FormErrorMessagesComponent } from './form-error-messages.component';
import { of } from 'rxjs/observable/of';

describe('FormErrorMessagesComponent', () => {
let component: FormErrorMessagesComponent;
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/forms/planet-selector.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Input, OnChanges, Output, EventEmitter } from '@angular/core';
import { ManagerService } from '../../manager-dashboard/manager.service';
import { StateService } from '../state.service';
import { getDomainParams, attachNamesToPlanets } from '../../manager-dashboard/reports/reports.utils';
import { attachNamesToPlanets } from '../../manager-dashboard/reports/reports.utils';

@Component({
selector: 'planet-selector',
Expand Down
2 changes: 0 additions & 2 deletions src/app/shared/forms/planet-step-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export class PlanetStepListService {
stepMoveClick$ = new Subject<any>();
stepAdded$ = new Subject<number>();

constructor() {}

moveStep(index, direction, listId) {
this.stepMoveClick$.next({ index, direction, listId });
}
Expand Down
3 changes: 0 additions & 3 deletions src/app/shared/forms/tags.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { map, switchMap } from 'rxjs/operators';
import { StateService } from '../state.service';
import { findDocuments } from '../mangoQueries';
import { createDeleteArray } from '../table-helpers';
import { Router, ActivatedRoute, UrlTree, UrlSegmentGroup, UrlSegment, PRIMARY_OUTLET } from '@angular/router';

@Injectable({
providedIn: 'root'
Expand All @@ -15,8 +14,6 @@ export class TagsService {
constructor(
private couchService: CouchService,
private stateService: StateService,
private router: Router,
private route: ActivatedRoute
) {}

getTags(db: string, parent: boolean) {
Expand Down
4 changes: 2 additions & 2 deletions src/app/shared/state.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Injectable } from '@angular/core';
import { CouchService } from '../shared/couchdb.service';
import { findDocuments } from '../shared/mangoQueries';
import { Subject, forkJoin, of } from 'rxjs';
import { map, flatMap, toArray, switchMap, filter } from 'rxjs/operators';
import { Subject } from 'rxjs';
import { map, switchMap, filter } from 'rxjs/operators';

@Injectable({
providedIn: 'root'
Expand Down

0 comments on commit cf01bb0

Please sign in to comment.