diff --git a/src/config.ts b/src/config.ts index e70faaf..d06e67e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,7 +6,7 @@ export const aquariusScheme = 'http' export const aquariusHost = 'localhost' export const aquariusPort = 5000 -export const brizoScheme = 'https' +export const brizoScheme = 'http' export const brizoHost = 'localhost' export const brizoPort = 8030 diff --git a/src/models/AssetModel.ts b/src/models/AssetModel.ts index b8413b6..43b3655 100644 --- a/src/models/AssetModel.ts +++ b/src/models/AssetModel.ts @@ -17,23 +17,9 @@ const AssetModel = { compression: null, contentType: null, workExample: null, - files: [ - { - url: null, - checksum: null, - checksumType: null, - contentLength: null, - resourceId: null - } - ], + files: [], categories: [], - links: [ - { - name: null, - type: null, - url: null - } - ], + links: [], inLanguage: null, tags: [], price: null diff --git a/src/routes/Details.tsx b/src/routes/Details.tsx index 4a8fcf1..7267991 100644 --- a/src/routes/Details.tsx +++ b/src/routes/Details.tsx @@ -35,12 +35,14 @@ export default class Details extends Component { service.serviceDefinitionId, account[0] ) + Logger.log(service) await this.context.ocean.initializeServiceAgreement( ddo.id, service.serviceDefinitionId, serviceAgreementSignatureResult.serviceAgreementId, serviceAgreementSignatureResult.serviceAgreementSignature, (files: any) => { + Logger.log('downloading files', files) files.forEach((file: any) => { const parsedUrl: any = quertString.parseUrl(file) setTimeout(() => { diff --git a/src/routes/Publish/Files/Item.tsx b/src/routes/Publish/Files/Item.tsx index 1a14653..995569c 100644 --- a/src/routes/Publish/Files/Item.tsx +++ b/src/routes/Publish/Files/Item.tsx @@ -1,9 +1,9 @@ import React from 'react' import styles from './Item.module.scss' -const Item = ({ item, removeItem }: { item: string; removeItem: any }) => ( +const Item = ({ item, removeItem }: { item: any; removeItem: any }) => (
  • - {item} + {item.url}