Browse Source

Improve imports

pull/32/head
Thomas 4 years ago
parent
commit
5152531ad0
  1. 2
      apps/api/src/app/access/access.module.ts
  2. 2
      apps/api/src/app/access/access.service.ts
  3. 4
      apps/api/src/app/admin/admin.controller.ts
  4. 18
      apps/api/src/app/admin/admin.module.ts
  5. 4
      apps/api/src/app/admin/admin.service.ts
  6. 2
      apps/api/src/app/auth/auth.controller.ts
  7. 4
      apps/api/src/app/auth/auth.module.ts
  8. 2
      apps/api/src/app/auth/auth.service.ts
  9. 2
      apps/api/src/app/auth/google.strategy.ts
  10. 4
      apps/api/src/app/auth/jwt.strategy.ts
  11. 2
      apps/api/src/app/cache/cache.module.ts
  12. 4
      apps/api/src/app/cache/cache.service.ts
  13. 18
      apps/api/src/app/experimental/experimental.module.ts
  14. 10
      apps/api/src/app/experimental/experimental.service.ts
  15. 4
      apps/api/src/app/info/info.module.ts
  16. 4
      apps/api/src/app/info/info.service.ts
  17. 6
      apps/api/src/app/order/order.controller.ts
  18. 18
      apps/api/src/app/order/order.module.ts
  19. 4
      apps/api/src/app/order/order.service.ts
  20. 12
      apps/api/src/app/portfolio/portfolio.controller.ts
  21. 22
      apps/api/src/app/portfolio/portfolio.module.ts
  22. 15
      apps/api/src/app/portfolio/portfolio.service.ts
  23. 2
      apps/api/src/app/redis-cache/redis-cache.module.ts
  24. 3
      apps/api/src/app/redis-cache/redis-cache.service.ts
  25. 14
      apps/api/src/app/symbol/symbol.module.ts
  26. 4
      apps/api/src/app/symbol/symbol.service.ts
  27. 4
      apps/api/src/app/user/user.module.ts
  28. 4
      apps/api/src/app/user/user.service.ts
  29. 3
      apps/api/src/models/interfaces/rule.interface.ts
  30. 4
      apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts
  31. 4
      apps/api/src/models/rules/platform-cluster-risk/current-investment.ts
  32. 9
      apps/client/src/app/components/header/header.component.ts
  33. 2
      apps/client/src/app/components/header/header.module.ts
  34. 2
      apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.component.ts
  35. 2
      apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.module.ts
  36. 2
      apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.component.ts
  37. 2
      apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.module.ts
  38. 2
      apps/client/src/app/components/rules/rules.module.ts
  39. 1
      apps/client/src/app/core/http-response.interceptor.ts
  40. 5
      apps/client/src/app/pages/about/about-page.component.ts
  41. 2
      apps/client/src/app/pages/account/account-page-routing.module.ts
  42. 4
      apps/client/src/app/pages/account/account-page.component.ts
  43. 2
      apps/client/src/app/pages/account/account-page.module.ts
  44. 2
      apps/client/src/app/pages/admin/admin-page-routing.module.ts
  45. 7
      apps/client/src/app/pages/admin/admin-page.component.ts
  46. 2
      apps/client/src/app/pages/admin/admin-page.module.ts
  47. 2
      apps/client/src/app/pages/analysis/analysis-page-routing.module.ts
  48. 9
      apps/client/src/app/pages/analysis/analysis-page.component.ts
  49. 10
      apps/client/src/app/pages/analysis/analysis-page.module.ts
  50. 3
      apps/client/src/app/pages/auth/auth-page.component.ts
  51. 2
      apps/client/src/app/pages/home/home-page-routing.module.ts
  52. 21
      apps/client/src/app/pages/home/home-page.component.ts
  53. 14
      apps/client/src/app/pages/home/home-page.module.ts
  54. 2
      apps/client/src/app/pages/login/login-page-routing.module.ts
  55. 7
      apps/client/src/app/pages/login/login-page.component.ts
  56. 4
      apps/client/src/app/pages/login/login-page.module.ts
  57. 2
      apps/client/src/app/pages/report/report-page-routing.module.ts
  58. 3
      apps/client/src/app/pages/report/report-page.component.ts
  59. 2
      apps/client/src/app/pages/report/report-page.module.ts
  60. 2
      apps/client/src/app/pages/transactions/transactions-page-routing.module.ts
  61. 6
      apps/client/src/app/pages/transactions/transactions-page.component.ts
  62. 2
      apps/client/src/app/pages/transactions/transactions-page.module.ts
  63. 2
      tsconfig.base.json

2
apps/api/src/app/access/access.module.ts

@ -1,6 +1,6 @@
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { PrismaService } from '../../services/prisma.service';
import { AccessController } from './access.controller';
import { AccessService } from './access.service';

2
apps/api/src/app/access/access.service.ts

@ -1,7 +1,7 @@
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Injectable } from '@nestjs/common';
import { Prisma } from '@prisma/client';
import { PrismaService } from '../../services/prisma.service';
import { AccessWithGranteeUser } from './interfaces/access-with-grantee-user.type';
@Injectable()

4
apps/api/src/app/admin/admin.controller.ts

@ -1,3 +1,5 @@
import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type';
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service';
import { getPermissions, hasPermission, permissions } from '@ghostfolio/helper';
import {
Controller,
@ -9,10 +11,8 @@ import {
} from '@nestjs/common';
import { REQUEST } from '@nestjs/core';
import { AuthGuard } from '@nestjs/passport';
import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type';
import { StatusCodes, getReasonPhrase } from 'http-status-codes';
import { DataGatheringService } from '../../services/data-gathering.service';
import { AdminService } from './admin.service';
import { AdminData } from './interfaces/admin-data.interface';

18
apps/api/src/app/admin/admin.module.ts

@ -1,14 +1,14 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { AlphaVantageService } from '@ghostfolio/api/services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '@ghostfolio/api/services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '@ghostfolio/api/services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { ConfigurationService } from '../../services/configuration.service';
import { DataGatheringService } from '../../services/data-gathering.service';
import { DataProviderService } from '../../services/data-provider.service';
import { AlphaVantageService } from '../../services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '../../services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '../../services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '../../services/data-provider/yahoo-finance/yahoo-finance.service';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { PrismaService } from '../../services/prisma.service';
import { AdminController } from './admin.controller';
import { AdminService } from './admin.service';

4
apps/api/src/app/admin/admin.service.ts

@ -1,8 +1,8 @@
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Injectable } from '@nestjs/common';
import { Currency } from '@prisma/client';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { PrismaService } from '../../services/prisma.service';
import { AdminData } from './interfaces/admin-data.interface';
@Injectable()

2
apps/api/src/app/auth/auth.controller.ts

@ -1,3 +1,4 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import {
Controller,
Get,
@ -10,7 +11,6 @@ import {
import { AuthGuard } from '@nestjs/passport';
import { StatusCodes, getReasonPhrase } from 'http-status-codes';
import { ConfigurationService } from '../../services/configuration.service';
import { AuthService } from './auth.service';
@Controller('auth')

4
apps/api/src/app/auth/auth.module.ts

@ -1,8 +1,8 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { ConfigurationService } from '../../services/configuration.service';
import { PrismaService } from '../../services/prisma.service';
import { UserService } from '../user/user.service';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';

2
apps/api/src/app/auth/auth.service.ts

@ -1,7 +1,7 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { Injectable, InternalServerErrorException } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { ConfigurationService } from '../../services/configuration.service';
import { UserService } from '../user/user.service';
import { ValidateOAuthLoginParams } from './interfaces/interfaces';

2
apps/api/src/app/auth/google.strategy.ts

@ -1,9 +1,9 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Provider } from '@prisma/client';
import { Strategy } from 'passport-google-oauth20';
import { ConfigurationService } from '../../services/configuration.service';
import { AuthService } from './auth.service';
@Injectable()

4
apps/api/src/app/auth/jwt.strategy.ts

@ -1,9 +1,9 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { ConfigurationService } from '../../services/configuration.service';
import { PrismaService } from '../../services/prisma.service';
import { UserService } from '../user/user.service';
@Injectable()

2
apps/api/src/app/cache/cache.module.ts

@ -1,6 +1,6 @@
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { PrismaService } from '../../services/prisma.service';
import { RedisCacheModule } from '../redis-cache/redis-cache.module';
import { CacheController } from './cache.controller';
import { CacheService } from './cache.service';

4
apps/api/src/app/cache/cache.service.ts

@ -1,7 +1,5 @@
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Injectable } from '@nestjs/common';
import { Prisma, User } from '@prisma/client';
import { PrismaService } from '../../services/prisma.service';
@Injectable()
export class CacheService {

18
apps/api/src/app/experimental/experimental.module.ts

@ -1,14 +1,14 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { AlphaVantageService } from '@ghostfolio/api/services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '@ghostfolio/api/services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '@ghostfolio/api/services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { RulesService } from '@ghostfolio/api/services/rules.service';
import { Module } from '@nestjs/common';
import { ConfigurationService } from '../../services/configuration.service';
import { DataProviderService } from '../../services/data-provider.service';
import { AlphaVantageService } from '../../services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '../../services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '../../services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '../../services/data-provider/yahoo-finance/yahoo-finance.service';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { PrismaService } from '../../services/prisma.service';
import { RulesService } from '../../services/rules.service';
import { ExperimentalController } from './experimental.controller';
import { ExperimentalService } from './experimental.service';

10
apps/api/src/app/experimental/experimental.service.ts

@ -1,12 +1,12 @@
import { Portfolio } from '@ghostfolio/api/models/portfolio';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { RulesService } from '@ghostfolio/api/services/rules.service';
import { Injectable } from '@nestjs/common';
import { Currency, Type } from '@prisma/client';
import { parseISO } from 'date-fns';
import { Portfolio } from '../../models/portfolio';
import { DataProviderService } from '../../services/data-provider.service';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { PrismaService } from '../../services/prisma.service';
import { RulesService } from '../../services/rules.service';
import { OrderWithPlatform } from '../order/interfaces/order-with-platform.type';
import { CreateOrderDto } from './create-order.dto';
import { Data } from './interfaces/data.interface';

4
apps/api/src/app/info/info.module.ts

@ -1,8 +1,8 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { ConfigurationService } from '../../services/configuration.service';
import { PrismaService } from '../../services/prisma.service';
import { InfoController } from './info.controller';
import { InfoService } from './info.service';

4
apps/api/src/app/info/info.service.ts

@ -1,10 +1,10 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { permissions } from '@ghostfolio/helper';
import { Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { Currency } from '@prisma/client';
import { ConfigurationService } from '../../services/configuration.service';
import { PrismaService } from '../../services/prisma.service';
import { InfoItem } from './interfaces/info-item.interface';
@Injectable()

6
apps/api/src/app/order/order.controller.ts

@ -1,3 +1,6 @@
import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type';
import { nullifyValuesInObjects } from '@ghostfolio/api/helper/object.helper';
import { ImpersonationService } from '@ghostfolio/api/services/impersonation.service';
import { getPermissions, hasPermission, permissions } from '@ghostfolio/helper';
import {
Body,
@ -15,12 +18,9 @@ import {
import { REQUEST } from '@nestjs/core';
import { AuthGuard } from '@nestjs/passport';
import { Order as OrderModel } from '@prisma/client';
import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type';
import { parseISO } from 'date-fns';
import { StatusCodes, getReasonPhrase } from 'http-status-codes';
import { nullifyValuesInObjects } from '../../helper/object.helper';
import { ImpersonationService } from '../../services/impersonation.service';
import { CreateOrderDto } from './create-order.dto';
import { OrderService } from './order.service';
import { UpdateOrderDto } from './update-order.dto';

18
apps/api/src/app/order/order.module.ts

@ -1,14 +1,14 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { AlphaVantageService } from '@ghostfolio/api/services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '@ghostfolio/api/services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '@ghostfolio/api/services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service';
import { ImpersonationService } from '@ghostfolio/api/services/impersonation.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { ConfigurationService } from '../../services/configuration.service';
import { DataGatheringService } from '../../services/data-gathering.service';
import { DataProviderService } from '../../services/data-provider.service';
import { AlphaVantageService } from '../../services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '../../services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '../../services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '../../services/data-provider/yahoo-finance/yahoo-finance.service';
import { ImpersonationService } from '../../services/impersonation.service';
import { PrismaService } from '../../services/prisma.service';
import { CacheService } from '../cache/cache.service';
import { RedisCacheModule } from '../redis-cache/redis-cache.module';
import { OrderController } from './order.controller';

4
apps/api/src/app/order/order.service.ts

@ -1,8 +1,8 @@
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Injectable } from '@nestjs/common';
import { Order, Prisma } from '@prisma/client';
import { DataGatheringService } from '../../services/data-gathering.service';
import { PrismaService } from '../../services/prisma.service';
import { CacheService } from '../cache/cache.service';
import { RedisCacheService } from '../redis-cache/redis-cache.service';
import { OrderWithPlatform } from './interfaces/order-with-platform.type';

12
apps/api/src/app/portfolio/portfolio.controller.ts

@ -1,3 +1,9 @@
import {
hasNotDefinedValuesInObject,
nullifyValuesInObject
} from '@ghostfolio/api/helper/object.helper';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { ImpersonationService } from '@ghostfolio/api/services/impersonation.service';
import { getPermissions, hasPermission, permissions } from '@ghostfolio/helper';
import {
Controller,
@ -15,12 +21,6 @@ import { AuthGuard } from '@nestjs/passport';
import { Response } from 'express';
import { StatusCodes, getReasonPhrase } from 'http-status-codes';
import {
hasNotDefinedValuesInObject,
nullifyValuesInObject
} from '../../helper/object.helper';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { ImpersonationService } from '../../services/impersonation.service';
import { RequestWithUser } from '../interfaces/request-with-user.type';
import { PortfolioItem } from './interfaces/portfolio-item.interface';
import { PortfolioOverview } from './interfaces/portfolio-overview.interface';

22
apps/api/src/app/portfolio/portfolio.module.ts

@ -1,16 +1,16 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { DataGatheringService } from '@ghostfolio/api/services/data-gathering.service';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { AlphaVantageService } from '@ghostfolio/api/services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '@ghostfolio/api/services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '@ghostfolio/api/services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { ImpersonationService } from '@ghostfolio/api/services/impersonation.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { RulesService } from '@ghostfolio/api/services/rules.service';
import { Module } from '@nestjs/common';
import { ConfigurationService } from '../../services/configuration.service';
import { DataGatheringService } from '../../services/data-gathering.service';
import { DataProviderService } from '../../services/data-provider.service';
import { AlphaVantageService } from '../../services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '../../services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '../../services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '../../services/data-provider/yahoo-finance/yahoo-finance.service';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { ImpersonationService } from '../../services/impersonation.service';
import { PrismaService } from '../../services/prisma.service';
import { RulesService } from '../../services/rules.service';
import { CacheService } from '../cache/cache.service';
import { OrderService } from '../order/order.service';
import { RedisCacheModule } from '../redis-cache/redis-cache.module';

15
apps/api/src/app/portfolio/portfolio.service.ts

@ -1,6 +1,12 @@
import { RequestWithUser } from '@ghostfolio/api/app/interfaces/request-with-user.type';
import { Portfolio } from '@ghostfolio/api/models/portfolio';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { ImpersonationService } from '@ghostfolio/api/services/impersonation.service';
import { IOrder } from '@ghostfolio/api/services/interfaces/interfaces';
import { RulesService } from '@ghostfolio/api/services/rules.service';
import { Inject, Injectable } from '@nestjs/common';
import { REQUEST } from '@nestjs/core';
import { RequestWithUser } from 'apps/api/src/app/interfaces/request-with-user.type';
import {
add,
format,
@ -9,7 +15,6 @@ import {
getYear,
isAfter,
isSameDay,
parse,
parseISO,
setDate,
setMonth,
@ -18,12 +23,6 @@ import {
import { isEmpty } from 'lodash';
import * as roundTo from 'round-to';
import { Portfolio } from '../../models/portfolio';
import { DataProviderService } from '../../services/data-provider.service';
import { ExchangeRateDataService } from '../../services/exchange-rate-data.service';
import { ImpersonationService } from '../../services/impersonation.service';
import { IOrder } from '../../services/interfaces/interfaces';
import { RulesService } from '../../services/rules.service';
import { OrderService } from '../order/order.service';
import { RedisCacheService } from '../redis-cache/redis-cache.service';
import { UserService } from '../user/user.service';

2
apps/api/src/app/redis-cache/redis-cache.module.ts

@ -1,8 +1,8 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { CacheModule, Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import * as redisStore from 'cache-manager-redis-store';
import { ConfigurationService } from '../../services/configuration.service';
import { RedisCacheService } from './redis-cache.service';
@Module({

3
apps/api/src/app/redis-cache/redis-cache.service.ts

@ -1,8 +1,7 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { CACHE_MANAGER, Inject, Injectable } from '@nestjs/common';
import { Cache } from 'cache-manager';
import { ConfigurationService } from '../../services/configuration.service';
@Injectable()
export class RedisCacheService {
public constructor(

14
apps/api/src/app/symbol/symbol.module.ts

@ -1,12 +1,12 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { AlphaVantageService } from '@ghostfolio/api/services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '@ghostfolio/api/services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '@ghostfolio/api/services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { ConfigurationService } from '../../services/configuration.service';
import { DataProviderService } from '../../services/data-provider.service';
import { AlphaVantageService } from '../../services/data-provider/alpha-vantage/alpha-vantage.service';
import { GhostfolioScraperApiService } from '../../services/data-provider/ghostfolio-scraper-api/ghostfolio-scraper-api.service';
import { RakutenRapidApiService } from '../../services/data-provider/rakuten-rapid-api/rakuten-rapid-api.service';
import { YahooFinanceService } from '../../services/data-provider/yahoo-finance/yahoo-finance.service';
import { PrismaService } from '../../services/prisma.service';
import { SymbolController } from './symbol.controller';
import { SymbolService } from './symbol.service';

4
apps/api/src/app/symbol/symbol.service.ts

@ -1,9 +1,9 @@
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { convertFromYahooSymbol } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service';
import { Injectable } from '@nestjs/common';
import { Currency } from '@prisma/client';
import { convertFromYahooSymbol } from 'apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service';
import * as bent from 'bent';
import { DataProviderService } from '../../services/data-provider.service';
import { LookupItem } from './interfaces/lookup-item.interface';
import { SymbolItem } from './interfaces/symbol-item.interface';

4
apps/api/src/app/user/user.module.ts

@ -1,8 +1,8 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { ConfigurationService } from '../../services/configuration.service';
import { PrismaService } from '../../services/prisma.service';
import { UserController } from './user.controller';
import { UserService } from './user.service';

4
apps/api/src/app/user/user.service.ts

@ -1,3 +1,5 @@
import { ConfigurationService } from '@ghostfolio/api/services/configuration.service';
import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import {
getPermissions,
locale,
@ -8,8 +10,6 @@ import { Injectable } from '@nestjs/common';
import { Currency, Prisma, Provider, User } from '@prisma/client';
import { add } from 'date-fns';
import { ConfigurationService } from '../../services/configuration.service';
import { PrismaService } from '../../services/prisma.service';
import { UserWithSettings } from '../interfaces/user-with-settings';
import { User as IUser } from './interfaces/user.interface';

3
apps/api/src/models/interfaces/rule.interface.ts

@ -1,4 +1,5 @@
import { PortfolioPosition } from '../../app/portfolio/interfaces/portfolio-position.interface';
import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface';
import { EvaluationResult } from './evaluation-result.interface';
export interface RuleInterface {

4
apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts

@ -1,5 +1,5 @@
import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface';
import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service';
import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { Rule } from '../../rule';

4
apps/api/src/models/rules/platform-cluster-risk/current-investment.ts

@ -1,5 +1,5 @@
import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface';
import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service';
import { PortfolioPosition } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position.interface';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { Rule } from '../../rule';

9
apps/client/src/app/components/header/header.component.ts

@ -6,17 +6,16 @@ import {
} from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { LoginWithAccessTokenDialog } from '@ghostfolio/client/app/pages/login/login-with-access-token-dialog/login-with-access-token-dialog.component';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { ImpersonationStorageService } from '@ghostfolio/client/app/services/impersonation-storage.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { hasPermission, permissions } from '@ghostfolio/helper';
import { InfoItem } from 'apps/api/src/app/info/interfaces/info-item.interface';
import { User } from 'apps/api/src/app/user/interfaces/user.interface';
import { EMPTY, Subject } from 'rxjs';
import { catchError, takeUntil } from 'rxjs/operators';
import { LoginWithAccessTokenDialog } from '../../pages/login/login-with-access-token-dialog/login-with-access-token-dialog.component';
import { DataService } from '../../services/data.service';
import { ImpersonationStorageService } from '../../services/impersonation-storage.service';
import { TokenStorageService } from '../../services/token-storage.service';
@Component({
selector: 'gf-header',
changeDetection: ChangeDetectionStrategy.OnPush,

2
apps/client/src/app/components/header/header.module.ts

@ -4,8 +4,8 @@ import { MatButtonModule } from '@angular/material/button';
import { MatMenuModule } from '@angular/material/menu';
import { MatToolbarModule } from '@angular/material/toolbar';
import { RouterModule } from '@angular/router';
import { LoginWithAccessTokenDialogModule } from '@ghostfolio/client/app/pages/login/login-with-access-token-dialog/login-with-access-token-dialog.module';
import { LoginWithAccessTokenDialogModule } from '../../pages/login/login-with-access-token-dialog/login-with-access-token-dialog.module';
import { GfLogoModule } from '../logo/logo.module';
import { HeaderComponent } from './header.component';

2
apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.component.ts

@ -5,9 +5,9 @@ import {
Inject
} from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { isToday, parse } from 'date-fns';
import { DataService } from '../../services/data.service';
import { LineChartItem } from '../line-chart/interfaces/line-chart.interface';
import { PositionDetailDialogParams } from './interfaces/interfaces';

2
apps/client/src/app/components/performance-chart-dialog/performance-chart-dialog.module.ts

@ -2,9 +2,9 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatDialogModule } from '@angular/material/dialog';
import { GfLineChartModule } from '@ghostfolio/client/app/components/line-chart/line-chart.module';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { GfLineChartModule } from '../../components/line-chart/line-chart.module';
import { GfDialogFooterModule } from '../dialog-footer/dialog-footer.module';
import { GfDialogHeaderModule } from '../dialog-header/dialog-header.module';
import { GfFearAndGreedIndexModule } from '../fear-and-greed-index/fear-and-greed-index.module';

2
apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.component.ts

@ -5,9 +5,9 @@ import {
Inject
} from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { format, isSameMonth, isToday, parseISO } from 'date-fns';
import { DataService } from '../../../services/data.service';
import { LineChartItem } from '../../line-chart/interfaces/line-chart.interface';
import { PositionDetailDialogParams } from './interfaces/interfaces';

2
apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.module.ts

@ -2,9 +2,9 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatDialogModule } from '@angular/material/dialog';
import { GfLineChartModule } from '@ghostfolio/client/app/components/line-chart/line-chart.module';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { GfLineChartModule } from '../../../components/line-chart/line-chart.module';
import { GfDialogFooterModule } from '../../dialog-footer/dialog-footer.module';
import { GfDialogHeaderModule } from '../../dialog-header/dialog-header.module';
import { GfValueModule } from '../../value/value.module';

2
apps/client/src/app/components/rules/rules.module.ts

@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { GfRuleModule } from 'apps/client/src/app/components/rule/rule.module';
import { GfRuleModule } from '@ghostfolio/client/app/components/rule/rule.module';
import { GfNoTransactionsInfoModule } from '../no-transactions-info/no-transactions-info.module';
import { GfPositionModule } from '../position/position.module';

1
apps/client/src/app/core/http-response.interceptor.ts

@ -19,6 +19,7 @@ import { Router } from '@angular/router';
import { StatusCodes } from 'http-status-codes';
import { Observable, throwError } from 'rxjs';
import { catchError, tap } from 'rxjs/operators';
import { TokenStorageService } from '../services/token-storage.service';
@Injectable()

5
apps/client/src/app/pages/about/about-page.component.ts

@ -1,13 +1,12 @@
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { baseCurrency } from '@ghostfolio/helper';
import { User } from 'apps/api/src/app/user/interfaces/user.interface';
import { environment } from 'apps/client/src/environments/environment';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { DataService } from '../../services/data.service';
import { TokenStorageService } from '../../services/token-storage.service';
@Component({
selector: 'gf-about-page',
templateUrl: './about-page.html',

2
apps/client/src/app/pages/account/account-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { AccountPageComponent } from './account-page.component';
const routes: Routes = [

4
apps/client/src/app/pages/account/account-page.component.ts

@ -1,12 +1,12 @@
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { DEFAULT_DATE_FORMAT } from '@ghostfolio/helper';
import { Access } from 'apps/api/src/app/access/interfaces/access.interface';
import { User } from 'apps/api/src/app/user/interfaces/user.interface';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { DataService } from '../../services/data.service';
import { TokenStorageService } from '../../services/token-storage.service';
import { Currency } from '.prisma/client';
@Component({

2
apps/client/src/app/pages/account/account-page.module.ts

@ -4,8 +4,8 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatCardModule } from '@angular/material/card';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { GfPortfolioAccessTableModule } from '@ghostfolio/client/app/components/access-table/access-table.module';
import { GfPortfolioAccessTableModule } from '../../components/access-table/access-table.module';
import { AccountPageRoutingModule } from './account-page-routing.module';
import { AccountPageComponent } from './account-page.component';

2
apps/client/src/app/pages/admin/admin-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { AdminPageComponent } from './admin-page.component';
const routes: Routes = [

7
apps/client/src/app/pages/admin/admin-page.component.ts

@ -1,14 +1,13 @@
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { AdminService } from '@ghostfolio/client/app/services/admin.service';
import { CacheService } from '@ghostfolio/client/app/services/cache.service';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { DEFAULT_DATE_FORMAT } from '@ghostfolio/helper';
import { AdminData } from 'apps/api/src/app/admin/interfaces/admin-data.interface';
import { formatDistanceToNow, isValid, parseISO, sub } from 'date-fns';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { AdminService } from '../../services/admin.service';
import { CacheService } from '../../services/cache.service';
import { DataService } from '../../services/data.service';
@Component({
selector: 'gf-admin-page',
templateUrl: './admin-page.html',

2
apps/client/src/app/pages/admin/admin-page.module.ts

@ -2,8 +2,8 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { CacheService } from '@ghostfolio/client/app/services/cache.service';
import { CacheService } from '../../services/cache.service';
import { AdminPageRoutingModule } from './admin-page-routing.module';
import { AdminPageComponent } from './admin-page.component';

2
apps/client/src/app/pages/analysis/analysis-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { AnalysisPageComponent } from './analysis-page.component';
const routes: Routes = [

9
apps/client/src/app/pages/analysis/analysis-page.component.ts

@ -1,4 +1,8 @@
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { ToggleOption } from '@ghostfolio/client/app/components/toggle/interfaces/toggle-option.type';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { ImpersonationStorageService } from '@ghostfolio/client/app/services/impersonation-storage.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { PortfolioItem } from 'apps/api/src/app/portfolio/interfaces/portfolio-item.interface';
import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface';
import { User } from 'apps/api/src/app/user/interfaces/user.interface';
@ -6,11 +10,6 @@ import { DeviceDetectorService } from 'ngx-device-detector';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { ToggleOption } from '../../components/toggle/interfaces/toggle-option.type';
import { DataService } from '../../services/data.service';
import { ImpersonationStorageService } from '../../services/impersonation-storage.service';
import { TokenStorageService } from '../../services/token-storage.service';
@Component({
selector: 'gf-analysis-page',
templateUrl: './analysis-page.html',

10
apps/client/src/app/pages/analysis/analysis-page.module.ts

@ -1,12 +1,12 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatCardModule } from '@angular/material/card';
import { GfInvestmentChartModule } from '@ghostfolio/client/app/components/investment-chart/investment-chart.module';
import { PortfolioPositionsChartModule } from '@ghostfolio/client/app/components/portfolio-positions-chart/portfolio-positions-chart.module';
import { PortfolioProportionChartModule } from '@ghostfolio/client/app/components/portfolio-proportion-chart/portfolio-proportion-chart.module';
import { GfPositionsTableModule } from '@ghostfolio/client/app/components/positions-table/positions-table.module';
import { GfToggleModule } from '@ghostfolio/client/app/components/toggle/toggle.module';
import { GfInvestmentChartModule } from '../../components/investment-chart/investment-chart.module';
import { PortfolioPositionsChartModule } from '../../components/portfolio-positions-chart/portfolio-positions-chart.module';
import { PortfolioProportionChartModule } from '../../components/portfolio-proportion-chart/portfolio-proportion-chart.module';
import { GfPositionsTableModule } from '../../components/positions-table/positions-table.module';
import { GfToggleModule } from '../../components/toggle/toggle.module';
import { AnalysisPageRoutingModule } from './analysis-page-routing.module';
import { AnalysisPageComponent } from './analysis-page.component';

3
apps/client/src/app/pages/auth/auth-page.component.ts

@ -1,7 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { TokenStorageService } from '../../services/token-storage.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
@Component({
selector: 'gf-auth-page',

2
apps/client/src/app/pages/home/home-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { HomePageComponent } from './home-page.component';
const routes: Routes = [

21
apps/client/src/app/pages/home/home-page.component.ts

@ -1,27 +1,26 @@
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import { LineChartItem } from '@ghostfolio/client/app/components/line-chart/interfaces/line-chart.interface';
import { PerformanceChartDialog } from '@ghostfolio/client/app/components/performance-chart-dialog/performance-chart-dialog.component';
import { ToggleOption } from '@ghostfolio/client/app/components/toggle/interfaces/toggle-option.type';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { ImpersonationStorageService } from '@ghostfolio/client/app/services/impersonation-storage.service';
import {
RANGE,
SettingsStorageService
} from '@ghostfolio/client/app/services/settings-storage.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { hasPermission, permissions } from '@ghostfolio/helper';
import { DateRange } from 'apps/api/src/app/portfolio/interfaces/date-range.type';
import { PortfolioOverview } from 'apps/api/src/app/portfolio/interfaces/portfolio-overview.interface';
import { PortfolioPerformance } from 'apps/api/src/app/portfolio/interfaces/portfolio-performance.interface';
import { PortfolioPosition } from 'apps/api/src/app/portfolio/interfaces/portfolio-position.interface';
import { User } from 'apps/api/src/app/user/interfaces/user.interface';
import {
RANGE,
SettingsStorageService
} from 'apps/client/src/app/services/settings-storage.service';
import { DeviceDetectorService } from 'ngx-device-detector';
import { Subject, Subscription } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { LineChartItem } from '../../components/line-chart/interfaces/line-chart.interface';
import { PerformanceChartDialog } from '../../components/performance-chart-dialog/performance-chart-dialog.component';
import { ToggleOption } from '../../components/toggle/interfaces/toggle-option.type';
import { DataService } from '../../services/data.service';
import { ImpersonationStorageService } from '../../services/impersonation-storage.service';
import { TokenStorageService } from '../../services/token-storage.service';
@Component({
selector: 'gf-home-page',
templateUrl: './home-page.html',

14
apps/client/src/app/pages/home/home-page.module.ts

@ -3,14 +3,14 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { RouterModule } from '@angular/router';
import { GfLineChartModule } from '@ghostfolio/client/app/components/line-chart/line-chart.module';
import { GfPerformanceChartDialogModule } from '@ghostfolio/client/app/components/performance-chart-dialog/performance-chart-dialog.module';
import { GfPortfolioOverviewModule } from '@ghostfolio/client/app/components/portfolio-overview/portfolio-overview.module';
import { GfPortfolioPerformanceSummaryModule } from '@ghostfolio/client/app/components/portfolio-performance-summary/portfolio-performance-summary.module';
import { GfPortfolioPerformanceModule } from '@ghostfolio/client/app/components/portfolio-performance/portfolio-performance.module';
import { GfPositionsModule } from '@ghostfolio/client/app/components/positions/positions.module';
import { GfToggleModule } from '@ghostfolio/client/app/components/toggle/toggle.module';
import { GfLineChartModule } from '../../components/line-chart/line-chart.module';
import { GfPerformanceChartDialogModule } from '../../components/performance-chart-dialog/performance-chart-dialog.module';
import { GfPortfolioOverviewModule } from '../../components/portfolio-overview/portfolio-overview.module';
import { GfPortfolioPerformanceSummaryModule } from '../../components/portfolio-performance-summary/portfolio-performance-summary.module';
import { GfPortfolioPerformanceModule } from '../../components/portfolio-performance/portfolio-performance.module';
import { GfPositionsModule } from '../../components/positions/positions.module';
import { GfToggleModule } from '../../components/toggle/toggle.module';
import { HomePageRoutingModule } from './home-page-routing.module';
import { HomePageComponent } from './home-page.component';

2
apps/client/src/app/pages/login/login-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { LoginPageComponent } from './login-page.component';
const routes: Routes = [

7
apps/client/src/app/pages/login/login-page.component.ts

@ -1,14 +1,13 @@
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { hasPermission, permissions } from '@ghostfolio/helper';
import { LineChartItem } from '@ghostfolio/client/app/components/line-chart/interfaces/line-chart.interface';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { format } from 'date-fns';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { LineChartItem } from '../../components/line-chart/interfaces/line-chart.interface';
import { DataService } from '../../services/data.service';
import { TokenStorageService } from '../../services/token-storage.service';
import { ShowAccessTokenDialog } from './show-access-token-dialog/show-access-token-dialog.component';
@Component({

4
apps/client/src/app/pages/login/login-page.module.ts

@ -2,9 +2,9 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { RouterModule } from '@angular/router';
import { GfLineChartModule } from '@ghostfolio/client/app/components/line-chart/line-chart.module';
import { GfLogoModule } from '@ghostfolio/client/app/components/logo/logo.module';
import { GfLineChartModule } from '../../components/line-chart/line-chart.module';
import { GfLogoModule } from '../../components/logo/logo.module';
import { LoginPageRoutingModule } from './login-page-routing.module';
import { LoginPageComponent } from './login-page.component';
import { ShowAccessTokenDialogModule } from './show-access-token-dialog/show-access-token-dialog.module';

2
apps/client/src/app/pages/report/report-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { ReportPageComponent } from './report-page.component';
const routes: Routes = [

3
apps/client/src/app/pages/report/report-page.component.ts

@ -1,10 +1,9 @@
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { PortfolioReportRule } from 'apps/api/src/app/portfolio/interfaces/portfolio-report.interface';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { DataService } from '../../services/data.service';
@Component({
selector: 'gf-report-page',
templateUrl: './report-page.html',

2
apps/client/src/app/pages/report/report-page.module.ts

@ -1,6 +1,6 @@
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RulesModule } from 'apps/client/src/app/components/rules/rules.module';
import { RulesModule } from '@ghostfolio/client/app/components/rules/rules.module';
import { ReportPageRoutingModule } from './report-page-routing.module';
import { ReportPageComponent } from './report-page.component';

2
apps/client/src/app/pages/transactions/transactions-page-routing.module.ts

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@ghostfolio/client/app/core/auth.guard';
import { AuthGuard } from '../../core/auth.guard';
import { TransactionsPageComponent } from './transactions-page.component';
const routes: Routes = [

6
apps/client/src/app/pages/transactions/transactions-page.component.ts

@ -1,6 +1,9 @@
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import { DataService } from '@ghostfolio/client/app/services/data.service';
import { ImpersonationStorageService } from '@ghostfolio/client/app/services/impersonation-storage.service';
import { TokenStorageService } from '@ghostfolio/client/app/services/token-storage.service';
import { hasPermission, permissions } from '@ghostfolio/helper';
import { Order as OrderModel } from '@prisma/client';
import { UpdateOrderDto } from 'apps/api/src/app/order/update-order.dto';
@ -9,9 +12,6 @@ import { DeviceDetectorService } from 'ngx-device-detector';
import { Subject, Subscription } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { DataService } from '../../services/data.service';
import { ImpersonationStorageService } from '../../services/impersonation-storage.service';
import { TokenStorageService } from '../../services/token-storage.service';
import { CreateOrUpdateTransactionDialog } from './create-or-update-transaction-dialog/create-or-update-transaction-dialog.component';
@Component({

2
apps/client/src/app/pages/transactions/transactions-page.module.ts

@ -2,8 +2,8 @@ import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { RouterModule } from '@angular/router';
import { GfTransactionsTableModule } from '@ghostfolio/client/app/components/transactions-table/transactions-table.module';
import { GfTransactionsTableModule } from '../../components/transactions-table/transactions-table.module';
import { CreateOrUpdateTransactionDialogModule } from './create-or-update-transaction-dialog/create-or-update-transaction-dialog.module';
import { TransactionsPageRoutingModule } from './transactions-page-routing.module';
import { TransactionsPageComponent } from './transactions-page.component';

2
tsconfig.base.json

@ -16,6 +16,8 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@ghostfolio/api/*": ["apps/api/src/*"],
"@ghostfolio/client/*": ["apps/client/src/*"],
"@ghostfolio/helper": ["libs/helper/src/index.ts"]
}
},

Loading…
Cancel
Save