mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
#1370 Removed deprecated AlfrescoAuthenticationService
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
import { NgModule, Component } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
import { CoreModule, SettingsService, AlfrescoAuthenticationService, StorageService } from 'ng2-alfresco-core';
|
||||
import { CoreModule, SettingsService, AuthService, StorageService } from 'ng2-alfresco-core';
|
||||
import { ViewerModule } from 'ng2-alfresco-viewer';
|
||||
|
||||
@Component({
|
||||
@@ -54,7 +54,7 @@ class MyDemoApp {
|
||||
|
||||
ticket: string;
|
||||
|
||||
constructor(private authService: AlfrescoAuthenticationService,
|
||||
constructor(private authService: AuthService,
|
||||
private settingsService: SettingsService,
|
||||
private storage: StorageService) {
|
||||
settingsService.ecmHost = this.ecmHost;
|
||||
|
@@ -19,7 +19,7 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { ImgViewerComponent } from './imgViewer.component';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
@@ -40,7 +40,7 @@ describe('Test ng2-alfresco-viewer Img viewer component ', () => {
|
||||
declarations: [ImgViewerComponent],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
AlfrescoApiService
|
||||
]
|
||||
}).compileComponents();
|
||||
|
@@ -19,7 +19,7 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { MediaPlayerComponent } from './mediaPlayer.component';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
@@ -40,7 +40,7 @@ describe('Test ng2-alfresco-viewer Media player component ', () => {
|
||||
declarations: [MediaPlayerComponent],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
AlfrescoApiService
|
||||
]
|
||||
}).compileComponents();
|
||||
|
@@ -19,7 +19,7 @@ import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { NotSupportedFormat } from './notSupportedFormat.component';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
@@ -40,7 +40,7 @@ describe('Test ng2-alfresco-viewer Not Supported Format View component', () => {
|
||||
declarations: [NotSupportedFormat],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
AlfrescoApiService
|
||||
]
|
||||
}).compileComponents();
|
||||
|
@@ -21,7 +21,7 @@ import { PdfViewerComponent } from './pdfViewer.component';
|
||||
import { EventMock } from '../assets/event.mock';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
@@ -42,7 +42,7 @@ describe('Test ng2-alfresco-viewer PdfViewer component', () => {
|
||||
declarations: [PdfViewerComponent],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
AlfrescoApiService,
|
||||
RenderingQueueServices
|
||||
]
|
||||
|
@@ -25,7 +25,7 @@ import { ViewerComponent } from './viewer.component';
|
||||
import { EventMock } from '../assets/event.mock';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import {
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoApiService,
|
||||
CoreModule
|
||||
@@ -54,7 +54,7 @@ describe('Test ng2-alfresco-viewer ViewerComponent', () => {
|
||||
],
|
||||
providers: [
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AuthService,
|
||||
AlfrescoApiService,
|
||||
RenderingQueueServices
|
||||
]
|
||||
|
Reference in New Issue
Block a user