mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
upgrade to latest JS-API and ADF (#896)
* improved update script and latest ADF libs * upgrade to latest js-api and ADF * upgrade tests * update viewer code * use @alfresco/js-api * update to latest adf * fix deprecation issues * update viewer * fix copy/move dialog * change expect * fix remove site from favorites * fix unit test * update adf version * use ADF upload dialog
This commit is contained in:
@@ -31,7 +31,7 @@ import { map, take } from 'rxjs/operators';
|
||||
import { DownloadNodesAction, DOWNLOAD_NODES } from '../actions';
|
||||
import { NodeInfo } from '../models';
|
||||
import { ContentApiService } from '../../services/content-api.service';
|
||||
import { MinimalNodeEntity } from 'alfresco-js-api';
|
||||
import { MinimalNodeEntity } from '@alfresco/js-api';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { AppStore } from '../states';
|
||||
import { appSelection } from '../selectors/app.selectors';
|
||||
@@ -66,7 +66,7 @@ export class DownloadEffects {
|
||||
|
||||
private downloadNodes(toDownload: Array<MinimalNodeEntity>) {
|
||||
const nodes = toDownload.map(node => {
|
||||
const { id, nodeId, name, isFile, isFolder } = node.entry;
|
||||
const { id, nodeId, name, isFile, isFolder } = <any>node.entry;
|
||||
|
||||
return {
|
||||
id: nodeId || id,
|
||||
|
@@ -44,7 +44,6 @@ import { Store } from '@ngrx/store';
|
||||
import { AppStore } from '../states';
|
||||
import { appSelection } from '../selectors/app.selectors';
|
||||
import { ContentApiService } from '../../services/content-api.service';
|
||||
import { SiteBody } from 'alfresco-js-api-node';
|
||||
import { SnackbarErrorAction } from '../actions/snackbar.actions';
|
||||
|
||||
@Injectable()
|
||||
@@ -136,7 +135,7 @@ export class LibraryEffects {
|
||||
const { id } = selection.library.entry;
|
||||
const { title, description, visibility } = action.payload;
|
||||
|
||||
const siteBody = <SiteBody>{
|
||||
const siteBody = {
|
||||
title,
|
||||
description,
|
||||
visibility
|
||||
|
@@ -26,7 +26,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { Actions, Effect, ofType } from '@ngrx/effects';
|
||||
import { MinimalNodeEntryEntity, PathInfoEntity } from 'alfresco-js-api';
|
||||
import { MinimalNodeEntryEntity, PathInfoEntity } from '@alfresco/js-api';
|
||||
import { map } from 'rxjs/operators';
|
||||
import {
|
||||
NavigateRouteAction,
|
||||
|
@@ -56,7 +56,7 @@ export class ViewerEffects {
|
||||
ofType<ViewFileAction>(VIEW_FILE),
|
||||
map(action => {
|
||||
if (action.payload && action.payload.entry) {
|
||||
const { id, nodeId, isFile } = action.payload.entry;
|
||||
const { id, nodeId, isFile } = <any>action.payload.entry;
|
||||
|
||||
if (isFile || nodeId) {
|
||||
this.displayPreview(nodeId || id, action.parentId);
|
||||
@@ -67,7 +67,7 @@ export class ViewerEffects {
|
||||
.pipe(take(1))
|
||||
.subscribe(result => {
|
||||
if (result.selection && result.selection.file) {
|
||||
const { id, nodeId, isFile } = result.selection.file.entry;
|
||||
const { id, nodeId, isFile } = <any>result.selection.file.entry;
|
||||
|
||||
if (isFile || nodeId) {
|
||||
const parentId = result.folder ? result.folder.id : null;
|
||||
|
Reference in New Issue
Block a user