mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
content updates
This commit is contained in:
parent
41fd894ce6
commit
f79d8c2c91
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"title": "Publish",
|
"title": "Publish",
|
||||||
"description": "Highlight the important features of your data set to make it more discoverable and catch the interest of data consumers.",
|
"description": "Highlight the important features of your data set or algorithm to make it more discoverable and catch the interest of data consumers.",
|
||||||
"warning": "Given the beta status, publishing on Ropsten or Rinkeby first is strongly recommended. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms)."
|
"warning": "Given the beta status, publishing on Ropsten or Rinkeby first is strongly recommended. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms)."
|
||||||
}
|
}
|
@ -13,6 +13,7 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--color-secondary);
|
color: var(--color-secondary);
|
||||||
|
background-color: var(--background-body);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
margin-right: -1px;
|
margin-right: -1px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
@ -29,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tab[aria-selected='true'] {
|
.tab[aria-selected='true'] {
|
||||||
background: var(--font-color-heading);
|
background-color: var(--font-color-heading);
|
||||||
color: var(--background-body);
|
color: var(--background-body);
|
||||||
border-color: var(--font-color-heading);
|
border-color: var(--font-color-heading);
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,11 @@ import stylesIndex from './index.module.css'
|
|||||||
const query = graphql`
|
const query = graphql`
|
||||||
query {
|
query {
|
||||||
content: allFile(
|
content: allFile(
|
||||||
filter: { relativePath: { eq: "pages/form-algorithm.json" } }
|
filter: { relativePath: { eq: "pages/publish/form-algorithm.json" } }
|
||||||
) {
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
childPagesJson {
|
childPublishJson {
|
||||||
title
|
title
|
||||||
data {
|
data {
|
||||||
name
|
name
|
||||||
@ -39,7 +39,7 @@ const query = graphql`
|
|||||||
|
|
||||||
export default function FormPublish(): ReactElement {
|
export default function FormPublish(): ReactElement {
|
||||||
const data = useStaticQuery(query)
|
const data = useStaticQuery(query)
|
||||||
const content: FormContent = data.content.edges[0].node.childPagesJson
|
const content: FormContent = data.content.edges[0].node.childPublishJson
|
||||||
const { ocean, account } = useOcean()
|
const { ocean, account } = useOcean()
|
||||||
const {
|
const {
|
||||||
status,
|
status,
|
||||||
|
@ -12,11 +12,11 @@ import stylesIndex from './index.module.css'
|
|||||||
const query = graphql`
|
const query = graphql`
|
||||||
query {
|
query {
|
||||||
content: allFile(
|
content: allFile(
|
||||||
filter: { relativePath: { eq: "pages/form-dataset.json" } }
|
filter: { relativePath: { eq: "pages/publish/form-dataset.json" } }
|
||||||
) {
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
childPagesJson {
|
childPublishJson {
|
||||||
title
|
title
|
||||||
data {
|
data {
|
||||||
name
|
name
|
||||||
@ -39,7 +39,7 @@ const query = graphql`
|
|||||||
|
|
||||||
export default function FormPublish(): ReactElement {
|
export default function FormPublish(): ReactElement {
|
||||||
const data = useStaticQuery(query)
|
const data = useStaticQuery(query)
|
||||||
const content: FormContent = data.content.edges[0].node.childPagesJson
|
const content: FormContent = data.content.edges[0].node.childPublishJson
|
||||||
const { ocean, account } = useOcean()
|
const { ocean, account } = useOcean()
|
||||||
const {
|
const {
|
||||||
status,
|
status,
|
||||||
|
@ -72,7 +72,9 @@ export default function PublishPage({
|
|||||||
const [error, setError] = useState<string>()
|
const [error, setError] = useState<string>()
|
||||||
const [title, setTitle] = useState<string>()
|
const [title, setTitle] = useState<string>()
|
||||||
const [did, setDid] = useState<string>()
|
const [did, setDid] = useState<string>()
|
||||||
const [publishType, setPublishType] = useState<MetadataMain['type']>()
|
const [publishType, setPublishType] = useState<MetadataMain['type']>(
|
||||||
|
'dataset'
|
||||||
|
)
|
||||||
|
|
||||||
const hasFeedback = isLoading || error || success
|
const hasFeedback = isLoading || error || success
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import Page from '../components/templates/Page'
|
|||||||
import { graphql, PageProps } from 'gatsby'
|
import { graphql, PageProps } from 'gatsby'
|
||||||
|
|
||||||
export default function PageGatsbyPublish(props: PageProps): ReactElement {
|
export default function PageGatsbyPublish(props: PageProps): ReactElement {
|
||||||
const content = (props.data as any).content.edges[0].node.childPagesJson
|
const content = (props.data as any).content.edges[0].node.childPublishJson
|
||||||
const { title, description } = content
|
const { title, description } = content
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -16,10 +16,12 @@ export default function PageGatsbyPublish(props: PageProps): ReactElement {
|
|||||||
|
|
||||||
export const contentQuery = graphql`
|
export const contentQuery = graphql`
|
||||||
query PublishPageQuery {
|
query PublishPageQuery {
|
||||||
content: allFile(filter: { relativePath: { eq: "pages/index.json" } }) {
|
content: allFile(
|
||||||
|
filter: { relativePath: { eq: "pages/publish/index.json" } }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
childPagesJson {
|
childPublishJson {
|
||||||
title
|
title
|
||||||
description
|
description
|
||||||
warning
|
warning
|
||||||
|
Loading…
Reference in New Issue
Block a user