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:
parent
1ab7e17e39
commit
46d5540316
@ -20,12 +20,14 @@ const AssetLink = ({ asset, list }: { asset: any; list?: boolean }) => {
|
|||||||
) : (
|
) : (
|
||||||
<article className={styles.asset}>
|
<article className={styles.asset}>
|
||||||
<Link to={`/asset/${asset.id}`}>
|
<Link to={`/asset/${asset.id}`}>
|
||||||
<CategoryImage category={base.categories[0][0]} />
|
{base.categories && (
|
||||||
|
<CategoryImage category={base.categories[0]} />
|
||||||
|
)}
|
||||||
<h1>{base.name}</h1>
|
<h1>{base.name}</h1>
|
||||||
<p>{base.description.substring(0, 90)}...</p>
|
<p>{base.description.substring(0, 90)}...</p>
|
||||||
|
|
||||||
<footer className={styles.assetFooter}>
|
<footer className={styles.assetFooter}>
|
||||||
{base.categories && <div>{base.categories[0][0]}</div>}
|
{base.categories && <div>{base.categories[0]}</div>}
|
||||||
</footer>
|
</footer>
|
||||||
</Link>
|
</Link>
|
||||||
</article>
|
</article>
|
||||||
|
@ -19,13 +19,11 @@ export const aquariusPort = 443
|
|||||||
export const brizoScheme = 'https'
|
export const brizoScheme = 'https'
|
||||||
export const brizoHost = 'nginx-brizo.dev-ocean.com'
|
export const brizoHost = 'nginx-brizo.dev-ocean.com'
|
||||||
export const brizoPort = 443
|
export const brizoPort = 443
|
||||||
|
export const brizoAddress = '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
|
||||||
|
|
||||||
export const parityScheme = 'https'
|
export const parityScheme = 'https'
|
||||||
export const parityHost = 'nile.dev-ocean.com'
|
export const parityHost = 'nile.dev-ocean.com'
|
||||||
export const parityPort = 443
|
export const parityPort = 443
|
||||||
export const threshold = 0
|
|
||||||
export const password = 'ocean_secret'
|
|
||||||
export const address = '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
|
|
||||||
|
|
||||||
export const secretStoreScheme = 'https'
|
export const secretStoreScheme = 'https'
|
||||||
export const secretStoreHost = 'secret-store.dev-ocean.com'
|
export const secretStoreHost = 'secret-store.dev-ocean.com'
|
||||||
|
@ -1,24 +1,22 @@
|
|||||||
import { Ocean } from '@oceanprotocol/squid'
|
import { Ocean } from '@oceanprotocol/squid'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
address,
|
|
||||||
aquariusHost,
|
aquariusHost,
|
||||||
aquariusPort,
|
aquariusPort,
|
||||||
aquariusScheme,
|
aquariusScheme,
|
||||||
brizoHost,
|
brizoHost,
|
||||||
brizoPort,
|
brizoPort,
|
||||||
brizoScheme,
|
brizoScheme,
|
||||||
|
brizoAddress,
|
||||||
nodeHost,
|
nodeHost,
|
||||||
nodePort,
|
nodePort,
|
||||||
nodeScheme,
|
nodeScheme,
|
||||||
parityHost,
|
parityHost,
|
||||||
parityPort,
|
parityPort,
|
||||||
parityScheme,
|
parityScheme,
|
||||||
password,
|
|
||||||
secretStoreHost,
|
secretStoreHost,
|
||||||
secretStorePort,
|
secretStorePort,
|
||||||
secretStoreScheme,
|
secretStoreScheme,
|
||||||
threshold,
|
|
||||||
verbose
|
verbose
|
||||||
} from './config'
|
} from './config'
|
||||||
|
|
||||||
@ -33,11 +31,9 @@ export async function provideOcean() {
|
|||||||
nodeUri,
|
nodeUri,
|
||||||
aquariusUri,
|
aquariusUri,
|
||||||
brizoUri,
|
brizoUri,
|
||||||
|
brizoAddress,
|
||||||
parityUri,
|
parityUri,
|
||||||
secretStoreUri,
|
secretStoreUri,
|
||||||
threshold,
|
|
||||||
password,
|
|
||||||
address,
|
|
||||||
verbose
|
verbose
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +54,14 @@ export default class AssetFilesDetails extends PureComponent<
|
|||||||
<div className={styles.files}>
|
<div className={styles.files}>
|
||||||
{files.map(file => (
|
{files.map(file => (
|
||||||
<ul key={file.index} className={styles.file}>
|
<ul key={file.index} className={styles.file}>
|
||||||
<li>{file.contentType.split('/')[1]}</li>
|
<li>
|
||||||
<li>{filesize(file.contentLength)}</li>
|
{file.contentType &&
|
||||||
|
file.contentType.split('/')[1]}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
{file.contentLength &&
|
||||||
|
filesize(file.contentLength)}
|
||||||
|
</li>
|
||||||
{/* <li>{file.encoding}</li> */}
|
{/* <li>{file.encoding}</li> */}
|
||||||
{/* <li>{file.compression}</li> */}
|
{/* <li>{file.compression}</li> */}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user