Shared services
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { IItem } from '@farmmaps/common';
|
|
||||||
import { IAclRights } from './acl.rights';
|
import { IAclRights } from './acl.rights';
|
||||||
|
import { IItem } from './item';
|
||||||
|
|
||||||
export interface IListItemAclRights extends IItem {
|
export interface IListItemAclRights extends IItem {
|
||||||
aclRights: IAclRights[]
|
aclRights: IAclRights[]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { IUser } from '@farmmaps/common';
|
import { IUser } from "../common.module";
|
||||||
|
|
||||||
export interface ISharedItem {
|
export interface ISharedItem {
|
||||||
code: string,
|
code: string,
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { IItem, ItemService } from '@farmmaps/common';
|
|
||||||
import { OAuthService } from 'angular-oauth2-oidc';
|
import { OAuthService } from 'angular-oauth2-oidc';
|
||||||
import { Observable, ReplaySubject, Subscription, timer } from 'rxjs';
|
import { Observable, ReplaySubject, Subscription, timer } from 'rxjs';
|
||||||
import { catchError, take } from 'rxjs/operators';
|
import { catchError, take } from 'rxjs/operators';
|
||||||
|
import { IItem } from '../models/item';
|
||||||
|
import { ItemService } from './item.service';
|
||||||
|
|
||||||
const REFRESH_INTERVAL = 15 * 60 * 1000; // 15m
|
const REFRESH_INTERVAL = 15 * 60 * 1000; // 15m
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { AppConfig, IListItem } from '@farmmaps/common';
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { IListItemAclRights } from '../models/list.item.acl.rights';
|
import { IListItemAclRights } from '../models/list.item.acl.rights';
|
||||||
import { ISharedItem } from '../models/shared.item';
|
import { ISharedItem } from '../models/shared.item';
|
||||||
|
import { AppConfig } from '../shared/app.config';
|
||||||
|
import { IListItem } from '../models/list.item';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { AppConfig, IUser } from '@farmmaps/common';
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
import { AppConfig } from '../shared/app.config';
|
||||||
|
import { IUser } from '../models/user';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
|
|||||||
Reference in New Issue
Block a user