1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

config & metadata fixes

This commit is contained in:
Matthias Kretschmann 2019-04-02 13:59:07 +02:00
parent 1ab7e17e39
commit 46d5540316
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 15 additions and 13 deletions

View File

@ -20,12 +20,14 @@ const AssetLink = ({ asset, list }: { asset: any; list?: boolean }) => {
) : (
<article className={styles.asset}>
<Link to={`/asset/${asset.id}`}>
<CategoryImage category={base.categories[0][0]} />
{base.categories && (
<CategoryImage category={base.categories[0]} />
)}
<h1>{base.name}</h1>
<p>{base.description.substring(0, 90)}...</p>
<footer className={styles.assetFooter}>
{base.categories && <div>{base.categories[0][0]}</div>}
{base.categories && <div>{base.categories[0]}</div>}
</footer>
</Link>
</article>

View File

@ -19,13 +19,11 @@ export const aquariusPort = 443
export const brizoScheme = 'https'
export const brizoHost = 'nginx-brizo.dev-ocean.com'
export const brizoPort = 443
export const brizoAddress = '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
export const parityScheme = 'https'
export const parityHost = 'nile.dev-ocean.com'
export const parityPort = 443
export const threshold = 0
export const password = 'ocean_secret'
export const address = '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
export const secretStoreScheme = 'https'
export const secretStoreHost = 'secret-store.dev-ocean.com'

View File

@ -1,24 +1,22 @@
import { Ocean } from '@oceanprotocol/squid'
import {
address,
aquariusHost,
aquariusPort,
aquariusScheme,
brizoHost,
brizoPort,
brizoScheme,
brizoAddress,
nodeHost,
nodePort,
nodeScheme,
parityHost,
parityPort,
parityScheme,
password,
secretStoreHost,
secretStorePort,
secretStoreScheme,
threshold,
verbose
} from './config'
@ -33,11 +31,9 @@ export async function provideOcean() {
nodeUri,
aquariusUri,
brizoUri,
brizoAddress,
parityUri,
secretStoreUri,
threshold,
password,
address,
verbose
}

View File

@ -54,8 +54,14 @@ export default class AssetFilesDetails extends PureComponent<
<div className={styles.files}>
{files.map(file => (
<ul key={file.index} className={styles.file}>
<li>{file.contentType.split('/')[1]}</li>
<li>{filesize(file.contentLength)}</li>
<li>
{file.contentType &&
file.contentType.split('/')[1]}
</li>
<li>
{file.contentLength &&
filesize(file.contentLength)}
</li>
{/* <li>{file.encoding}</li> */}
{/* <li>{file.compression}</li> */}
</ul>