From f5514bbc1d914d2983059a110710f65c732dd9bb Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Mon, 15 Aug 2022 09:57:53 -0400 Subject: [PATCH 01/43] change label 'data set' with 'dataset' --- README.md | 16 ++++++++-------- content/pages/editComputeDataset.json | 6 +++--- content/pages/editMetadata.json | 8 ++++---- content/pages/profile.json | 2 +- content/price.json | 4 ++-- content/publish/form.json | 10 +++++----- content/publish/index.json | 2 +- content/purgatory.json | 4 ++-- content/site.json | 2 +- src/components/@shared/AssetType/index.tsx | 2 +- src/components/@shared/ButtonBuy/index.tsx | 2 +- .../Asset/AssetActions/Compute/index.tsx | 6 +++--- src/components/Asset/Edit/EditComputeDataset.tsx | 2 +- src/components/Home/Bookmarks.tsx | 2 +- src/components/Home/index.tsx | 2 +- .../Profile/History/ComputeJobs/index.tsx | 2 +- src/components/Profile/History/Downloads.tsx | 2 +- src/components/Search/Filters.tsx | 2 +- 18 files changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index f6257f80c..fa49e6354 100644 --- a/README.md +++ b/README.md @@ -103,12 +103,12 @@ cp .env.example .env ## 🦀 Data Sources -All displayed data in the app is presented around the concept of one data set, which is a combination of: +All displayed data in the app is presented around the concept of one dataset, which is a combination of: -- metadata about a data set -- the actual data set files -- the NFT which represents the data set -- the datatokens representing access rights to the data set files +- metadata about a dataset +- the actual dataset files +- the NFT which represents the dataset +- the datatokens representing access rights to the dataset files - financial data connected to these datatokens, either a fixed rate exchange contract or a dispenser for free assets - calculations and conversions based on financial data - metadata about publisher accounts @@ -117,7 +117,7 @@ All this data then comes from multiple sources: ### Aquarius -All initial data sets and their metadata (DDO) is retrieved client-side on run-time from the [Aquarius](https://github.com/oceanprotocol/aquarius) instance, defined in `app.config.js`. All app calls to Aquarius are done with 2 internal methods which mimic the same methods in ocean.js, but allow us: +All initial datasets and their metadata (DDO) is retrieved client-side on run-time from the [Aquarius](https://github.com/oceanprotocol/aquarius) instance, defined in `app.config.js`. All app calls to Aquarius are done with 2 internal methods which mimic the same methods in ocean.js, but allow us: - to cancel requests when components get unmounted in combination with [axios](https://github.com/axios/axios) - hit Aquarius as early as possible without relying on any ocean.js initialization @@ -159,7 +159,7 @@ function Component() { } ``` -For components within a single data set view the `useAsset()` hook can be used, which in the background gets the respective metadata from Aquarius. +For components within a single dataset view the `useAsset()` hook can be used, which in the background gets the respective metadata from Aquarius. ```tsx import { useAsset } from '@context/Asset' @@ -232,7 +232,7 @@ function Component() { ### Purgatory -Based on [list-purgatory](https://github.com/oceanprotocol/list-purgatory) some data sets get additional data. Within most components this can be done with the internal `useAsset()` hook which fetches data from the [market-purgatory](https://github.com/oceanprotocol/market-purgatory) endpoint in the background. +Based on [list-purgatory](https://github.com/oceanprotocol/list-purgatory) some datasets get additional data. Within most components this can be done with the internal `useAsset()` hook which fetches data from the [market-purgatory](https://github.com/oceanprotocol/market-purgatory) endpoint in the background. For asset purgatory: diff --git a/content/pages/editComputeDataset.json b/content/pages/editComputeDataset.json index 3d49b37de..92388dc1c 100644 --- a/content/pages/editComputeDataset.json +++ b/content/pages/editComputeDataset.json @@ -1,14 +1,14 @@ { "form": { "title": "Set allowed algorithms", - "description": "Only the algorithms selected here will be allowed to run on your data set. Uncheck all to remove any access to your data set.", + "description": "Only the algorithms selected here will be allowed to run on your dataset. Uncheck all to remove any access to your dataset.", "success": "🎉 Successfully updated. 🎉\n\nUpdates might not show up right away on your asset. In this case, wait some seconds and reload your asset details page in your browser.", "error": "Updating DDO failed.", "data": [ { "name": "publisherTrustedAlgorithms", "label": "Selected Algorithms", - "help": "Choose one or multiple algorithms you trust to allow them to run on this data set.", + "help": "Choose one or multiple algorithms you trust to allow them to run on this dataset.", "type": "assetSelectionMultiple", "multiple": true, "options": [], @@ -17,7 +17,7 @@ { "name": "allowAllPublishedAlgorithms", "label": "All Algorithms", - "help": "Allow any published algorithm to run on this data set.", + "help": "Allow any published algorithm to run on this dataset.", "type": "checkbox", "options": ["Allow any published algorithm"] } diff --git a/content/pages/editMetadata.json b/content/pages/editMetadata.json index 2b164d6a8..2b3c0d871 100644 --- a/content/pages/editMetadata.json +++ b/content/pages/editMetadata.json @@ -31,7 +31,7 @@ "name": "files", "label": "New file", "placeholder": "e.g. https://file.com/file.json", - "help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** For a compute data set, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. Leaving this field empty will not remove the current value.", + "help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. Leaving this field empty will not remove the current value.", "prominentHelp": true, "type": "files" }, @@ -39,7 +39,7 @@ "name": "links", "label": "New sample file", "placeholder": "e.g. https://file.com/samplefile.json", - "help": "Please provide a URL to a sample of your data set file. This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** Leaving this field empty will not remove the current value.", + "help": "Please provide a URL to a sample of your dataset file. This file should reveal the data structure of your dataset, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** Leaving this field empty will not remove the current value.", "prominentHelp": true, "type": "files" }, @@ -47,7 +47,7 @@ { "name": "timeout", "label": "Timeout", - "help": "Define how long buyers should be able to download the data set again after the initial purchase.", + "help": "Define how long buyers should be able to download the dataset again after the initial purchase.", "type": "select", "options": ["Forever", "1 day", "1 week", "1 month", "1 year"], "sortOptions": false, @@ -57,7 +57,7 @@ "name": "author", "label": "New Author", "placeholder": "e.g. Mrs McJellyfish", - "help": "Give proper attribution for your data set.", + "help": "Give proper attribution for your dataset.", "required": false } ] diff --git a/content/pages/profile.json b/content/pages/profile.json index b1d2c8362..2da176dea 100644 --- a/content/pages/profile.json +++ b/content/pages/profile.json @@ -1,4 +1,4 @@ { "title": "Account", - "description": "Find the data sets and jobs that you previously accessed." + "description": "Find the datasets and jobs that you previously accessed." } diff --git a/content/price.json b/content/price.json index b9b7f4c51..91778c8bd 100644 --- a/content/price.json +++ b/content/price.json @@ -2,7 +2,7 @@ "create": { "fixed": { "title": "Fixed", - "info": "Set your price for accessing this data set. The datatoken for this data set will be worth the entered amount of the selected base token.", + "info": "Set your price for accessing this dataset. The datatoken for this dataset will be worth the entered amount of the selected base token.", "tooltips": { "communityFee": "Goes to Ocean DAO for teams to improve the tools, build apps, do outreach, and more. A small fraction is used to burn OCEAN. This fee is collected when downloading or using an asset in a compute job.", "marketplaceFee": "Goes to the marketplace owner that is hosting and providing the marketplace and is collected when downloading or using an asset in a compute job. In Ocean Market, it is treated as network revenue that goes to the Ocean community." @@ -10,7 +10,7 @@ }, "free": { "title": "Free", - "info": "Set your data set as free. The datatoken for this data set will be given for free via creating a faucet.", + "info": "Set your dataset as free. The datatoken for this dataset will be given for free via creating a faucet.", "fields": [ { "name": "freeAgreement", diff --git a/content/publish/form.json b/content/publish/form.json index 4a4474ca3..fef5b8d7b 100644 --- a/content/publish/form.json +++ b/content/publish/form.json @@ -33,7 +33,7 @@ "name": "author", "label": "Author", "placeholder": "e.g. Jelly McJellyfish", - "help": "Give proper attribution for your data set. You are welcome to use a pseudonym, and you can change your author name at any time. Please note that it will remain in the transaction history. For more information on how personal data is handled within the metadata, please refer to our [privacy policy](/privacy/en).", + "help": "Give proper attribution for your dataset. You are welcome to use a pseudonym, and you can change your author name at any time. Please note that it will remain in the transaction history. For more information on how personal data is handled within the metadata, please refer to our [privacy policy](/privacy/en).", "required": true }, { @@ -104,7 +104,7 @@ "name": "files", "label": "File", "placeholder": "e.g. https://file.com/file.json", - "help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** For a compute data set, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ", + "help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ", "prominentHelp": true, "type": "files", "required": true @@ -113,7 +113,7 @@ "name": "links", "label": "Sample file", "placeholder": "e.g. https://file.com/samplefile.json", - "help": "This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**", + "help": "This file should reveal the data structure of your dataset, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**", "prominentHelp": true, "type": "files" }, @@ -122,7 +122,7 @@ "label": "Algorithm Privacy", "type": "checkbox", "options": ["Keep my algorithm private"], - "help": "By default, your algorithm can be downloaded for free or a fixed price, in addition to running in compute jobs. Enabling this option will prevent downloading, so your algorithm can only be run as part of a compute job on a data set.", + "help": "By default, your algorithm can be downloaded for free or a fixed price, in addition to running in compute jobs. Enabling this option will prevent downloading, so your algorithm can only be run as part of a compute job on a dataset.", "required": false }, { @@ -138,7 +138,7 @@ { "name": "timeout", "label": "Timeout", - "help": "Define how long buyers should be able to download the data set again after the initial purchase.", + "help": "Define how long buyers should be able to download the dataset again after the initial purchase.", "type": "select", "options": ["Forever", "1 day", "1 week", "1 month", "1 year"], "sortOptions": false, diff --git a/content/publish/index.json b/content/publish/index.json index 65fc81d45..49971874d 100644 --- a/content/publish/index.json +++ b/content/publish/index.json @@ -1,6 +1,6 @@ { "title": "Publish", - "description": "Highlight the important features of your data set or algorithm to make it more discoverable and catch the interest of data consumers.", + "description": "Highlight the important features of your dataset or algorithm to make it more discoverable and catch the interest of data consumers.", "warning": "Publishing into a test network 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).", "tooltipAvailableNetworks": "Assets are published to the network your wallet is connected to. These networks are currently supported:" } diff --git a/content/purgatory.json b/content/purgatory.json index ddd2a0cc7..2c1730530 100644 --- a/content/purgatory.json +++ b/content/purgatory.json @@ -1,7 +1,7 @@ { "asset": { - "title": "Data Set In Purgatory", - "description": "Except for removing liquidity, no further actions are permitted on this data set and it will not be returned in any search. For more details go to [list-purgatory](https://github.com/oceanprotocol/list-purgatory)." + "title": "Dataset In Purgatory", + "description": "Except for removing liquidity, no further actions are permitted on this dataset and it will not be returned in any search. For more details go to [list-purgatory](https://github.com/oceanprotocol/list-purgatory)." }, "account": { "title": "Account In Purgatory", diff --git a/content/site.json b/content/site.json index a6ada0ab3..0c231e412 100644 --- a/content/site.json +++ b/content/site.json @@ -1,6 +1,6 @@ { "siteTitle": "Ocean Market", - "siteTagline": "A marketplace to find, publish and trade data sets in the Ocean Network.", + "siteTagline": "A marketplace to find, publish and trade datasets in the Ocean Network.", "siteUrl": "https://market.oceanprotocol.com", "siteImage": "/share.png", "copyright": "All Rights Reserved. Powered by ", diff --git a/src/components/@shared/AssetType/index.tsx b/src/components/@shared/AssetType/index.tsx index 32e7c7489..565a87270 100644 --- a/src/components/@shared/AssetType/index.tsx +++ b/src/components/@shared/AssetType/index.tsx @@ -26,7 +26,7 @@ export default function AssetType({ )}
- {type === 'dataset' ? 'data set' : 'algorithm'} + {type === 'dataset' ? 'dataset' : 'algorithm'}
{totalSales ? ( diff --git a/src/components/@shared/ButtonBuy/index.tsx b/src/components/@shared/ButtonBuy/index.tsx index 9791f667f..5243dfd57 100644 --- a/src/components/@shared/ButtonBuy/index.tsx +++ b/src/components/@shared/ButtonBuy/index.tsx @@ -50,7 +50,7 @@ function getConsumeHelpText( : hasPreviousOrder ? `You bought this ${assetType} already allowing you to use it without paying again.` : hasDatatoken - ? `You own ${dtBalance} ${dtSymbol} allowing you to use this data set by spending 1 ${dtSymbol}, but without paying ${btSymbol} again.` + ? `You own ${dtBalance} ${dtSymbol} allowing you to use this dataset by spending 1 ${dtSymbol}, but without paying ${btSymbol} again.` : isBalanceSufficient === false ? `You do not have enough ${btSymbol} in your wallet to purchase this asset.` : `For using this ${assetType}, you will buy 1 ${dtSymbol} and immediately spend it back to the publisher.` diff --git a/src/components/Asset/AssetActions/Compute/index.tsx b/src/components/Asset/AssetActions/Compute/index.tsx index 3a45f7e38..34804bfe8 100644 --- a/src/components/Asset/AssetActions/Compute/index.tsx +++ b/src/components/Asset/AssetActions/Compute/index.tsx @@ -266,10 +266,10 @@ export default function Compute({ computeAlgorithm, selectedAlgorithmAsset ) - LoggerInstance.log('[compute] Is data set orderable?', allowed) + LoggerInstance.log('[compute] Is dataset orderable?', allowed) if (!allowed) throw new Error( - 'Data set is not orderable in combination with selected algorithm.' + 'Dataset is not orderable in combination with selected algorithm.' ) await initPriceAndFees() @@ -376,7 +376,7 @@ export default function Compute({ {asset.services[0].type === 'compute' && ( diff --git a/src/components/Asset/Edit/EditComputeDataset.tsx b/src/components/Asset/Edit/EditComputeDataset.tsx index 400ad5eb8..4563a5bf6 100644 --- a/src/components/Asset/Edit/EditComputeDataset.tsx +++ b/src/components/Asset/Edit/EditComputeDataset.tsx @@ -131,7 +131,7 @@ export default function EditComputeDataset({ {({ values, isSubmitting }) => isSubmitting || hasFeedback ? ( [] = [ { - name: 'Data Set', + name: 'Dataset', selector: (row) => { const { metadata } = row return diff --git a/src/components/Home/index.tsx b/src/components/Home/index.tsx index 26b27ad4d..8fdd86799 100644 --- a/src/components/Home/index.tsx +++ b/src/components/Home/index.tsx @@ -131,7 +131,7 @@ export default function HomePage(): ReactElement { query={queryLatest} action={ } /> diff --git a/src/components/Profile/History/ComputeJobs/index.tsx b/src/components/Profile/History/ComputeJobs/index.tsx index a395deede..405b50809 100644 --- a/src/components/Profile/History/ComputeJobs/index.tsx +++ b/src/components/Profile/History/ComputeJobs/index.tsx @@ -21,7 +21,7 @@ export function Status({ children }: { children: string }): ReactElement { const columns: TableOceanColumn[] = [ { - name: 'Data Set', + name: 'Dataset', selector: (row) => ( ) diff --git a/src/components/Profile/History/Downloads.tsx b/src/components/Profile/History/Downloads.tsx index dfd0bb8c5..85e1fc474 100644 --- a/src/components/Profile/History/Downloads.tsx +++ b/src/components/Profile/History/Downloads.tsx @@ -8,7 +8,7 @@ import { useUserPreferences } from '@context/UserPreferences' const columns: TableOceanColumn[] = [ { - name: 'Data Set', + name: 'Dataset', selector: (row) => }, { diff --git a/src/components/Search/Filters.tsx b/src/components/Search/Filters.tsx index 52c806c68..82c577e72 100644 --- a/src/components/Search/Filters.tsx +++ b/src/components/Search/Filters.tsx @@ -14,7 +14,7 @@ const cx = classNames.bind(styles) const clearFilters = [{ display: 'Clear', value: '' }] const serviceFilterItems = [ - { display: 'data sets', value: FilterByTypeOptions.Data }, + { display: 'datasets', value: FilterByTypeOptions.Data }, { display: 'algorithms', value: FilterByTypeOptions.Algorithm } ] From 587fd801937025f7bffced0083d7e7b83d993be2 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 17 Aug 2022 06:11:21 -0400 Subject: [PATCH 02/43] change dataset with asset in readme --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fa49e6354..c32d82481 100644 --- a/README.md +++ b/README.md @@ -103,12 +103,12 @@ cp .env.example .env ## 🦀 Data Sources -All displayed data in the app is presented around the concept of one dataset, which is a combination of: +All displayed data in the app is presented around the concept of one asset, which is a combination of: -- metadata about a dataset -- the actual dataset files -- the NFT which represents the dataset -- the datatokens representing access rights to the dataset files +- metadata about an asset +- the actual asset file +- the NFT which represents the asset +- the datatokens representing access rights to the asset file - financial data connected to these datatokens, either a fixed rate exchange contract or a dispenser for free assets - calculations and conversions based on financial data - metadata about publisher accounts @@ -117,7 +117,7 @@ All this data then comes from multiple sources: ### Aquarius -All initial datasets and their metadata (DDO) is retrieved client-side on run-time from the [Aquarius](https://github.com/oceanprotocol/aquarius) instance, defined in `app.config.js`. All app calls to Aquarius are done with 2 internal methods which mimic the same methods in ocean.js, but allow us: +All initial assets and their metadata (DDO) is retrieved client-side on run-time from the [Aquarius](https://github.com/oceanprotocol/aquarius) instance, defined in `app.config.js`. All app calls to Aquarius are done with 2 internal methods which mimic the same methods in ocean.js, but allow us: - to cancel requests when components get unmounted in combination with [axios](https://github.com/axios/axios) - hit Aquarius as early as possible without relying on any ocean.js initialization @@ -159,7 +159,7 @@ function Component() { } ``` -For components within a single dataset view the `useAsset()` hook can be used, which in the background gets the respective metadata from Aquarius. +For components within a single asset view the `useAsset()` hook can be used, which in the background gets the respective metadata from Aquarius. ```tsx import { useAsset } from '@context/Asset' @@ -232,7 +232,7 @@ function Component() { ### Purgatory -Based on [list-purgatory](https://github.com/oceanprotocol/list-purgatory) some datasets get additional data. Within most components this can be done with the internal `useAsset()` hook which fetches data from the [market-purgatory](https://github.com/oceanprotocol/market-purgatory) endpoint in the background. +Based on [list-purgatory](https://github.com/oceanprotocol/list-purgatory) some assets get additional data. Within most components this can be done with the internal `useAsset()` hook which fetches data from the [market-purgatory](https://github.com/oceanprotocol/market-purgatory) endpoint in the background. For asset purgatory: @@ -415,7 +415,7 @@ To allow publishers to set pricing as "Fixed" you need to add the following envi To allow publishers to set pricing as "Free" you need to add the following environmental variable to your .env file: `NEXT_PUBLIC_ALLOW_FREE_PRICING="true"` (default). -This allocates the datatokens to the [dispenser contract](https://github.com/oceanprotocol/contracts/blob/main/contracts/dispenser/Dispenser.sol) which dispenses data tokens to users for free. Publishers in your market will now be able to offer their datasets to users for free (excluding gas costs). +This allocates the datatokens to the [dispenser contract](https://github.com/oceanprotocol/contracts/blob/main/contracts/dispenser/Dispenser.sol) which dispenses data tokens to users for free. Publishers in your market will now be able to offer their assets to users for free (excluding gas costs). ## ✅ GDPR Compliance From f8a6edc3c6498a298dadbd0b5ea4f5c97730ebb8 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Tue, 23 Aug 2022 07:08:12 -0400 Subject: [PATCH 03/43] fix publishing when connecting wallet on publish form --- src/components/Publish/Steps.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/Publish/Steps.tsx b/src/components/Publish/Steps.tsx index 6ec733cab..c35d6a260 100644 --- a/src/components/Publish/Steps.tsx +++ b/src/components/Publish/Steps.tsx @@ -1,9 +1,14 @@ import { ReactElement, useEffect } from 'react' import { useFormikContext } from 'formik' -import { wizardSteps, initialPublishFeedback } from './_constants' +import { + wizardSteps, + initialPublishFeedback, + initialValues +} from './_constants' import { useWeb3 } from '@context/Web3' import { FormPublishData, PublishFeedback } from './_types' import { getOceanConfig } from '@utils/ocean' +import router from 'next/router' export function Steps({ feedback @@ -22,11 +27,15 @@ export function Steps({ setFieldValue('user.accountId', accountId) }, [chainId, accountId, setFieldValue]) - // Reset the selected baseToken on chainId change useEffect(() => { if (!chainId) return - setFieldValue('pricing.baseToken', null) + // Reset the pricing values on chainId change + // the user needs to update the pricing schema on network changes + if (values.pricing.price) { + setFieldValue('pricing', initialValues.pricing) + router.push(`/publish/3`) + } }, [chainId, setFieldValue]) // auto-sync publish feedback into form data values From 245ccfe5e4044c3c54ca64aa404f8a99d35f91ec Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 24 Aug 2022 06:22:57 -0400 Subject: [PATCH 04/43] fix reset pricing on tx execution --- src/components/Publish/Steps.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Publish/Steps.tsx b/src/components/Publish/Steps.tsx index c35d6a260..ece8d4607 100644 --- a/src/components/Publish/Steps.tsx +++ b/src/components/Publish/Steps.tsx @@ -30,9 +30,10 @@ export function Steps({ useEffect(() => { if (!chainId) return - // Reset the pricing values on chainId change - // the user needs to update the pricing schema on network changes - if (values.pricing.price) { + // Reset the pricing values on chainId change: + // - the user needs to update the pricing schema on network changes + // - if the tx has been started, don't restore pricing values + if (values.pricing.price && values.feedback[1].status === 'pending') { setFieldValue('pricing', initialValues.pricing) router.push(`/publish/3`) } From 419234ab64f1dc21af29c10aae4d585a5cd92bf6 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 24 Aug 2022 06:52:32 -0400 Subject: [PATCH 05/43] removed changing steps --- src/components/Publish/Steps.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/Publish/Steps.tsx b/src/components/Publish/Steps.tsx index ece8d4607..51a0fa753 100644 --- a/src/components/Publish/Steps.tsx +++ b/src/components/Publish/Steps.tsx @@ -27,18 +27,6 @@ export function Steps({ setFieldValue('user.accountId', accountId) }, [chainId, accountId, setFieldValue]) - useEffect(() => { - if (!chainId) return - - // Reset the pricing values on chainId change: - // - the user needs to update the pricing schema on network changes - // - if the tx has been started, don't restore pricing values - if (values.pricing.price && values.feedback[1].status === 'pending') { - setFieldValue('pricing', initialValues.pricing) - router.push(`/publish/3`) - } - }, [chainId, setFieldValue]) - // auto-sync publish feedback into form data values useEffect(() => { setFieldValue('feedback', feedback) From 7a3c7a992755d1d210e2c8c3f33482abad1a6122 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 24 Aug 2022 11:12:53 -0400 Subject: [PATCH 06/43] cleanup --- src/components/Publish/Steps.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/Publish/Steps.tsx b/src/components/Publish/Steps.tsx index 51a0fa753..4c3e2a338 100644 --- a/src/components/Publish/Steps.tsx +++ b/src/components/Publish/Steps.tsx @@ -1,14 +1,9 @@ import { ReactElement, useEffect } from 'react' import { useFormikContext } from 'formik' -import { - wizardSteps, - initialPublishFeedback, - initialValues -} from './_constants' +import { wizardSteps, initialPublishFeedback } from './_constants' import { useWeb3 } from '@context/Web3' import { FormPublishData, PublishFeedback } from './_types' import { getOceanConfig } from '@utils/ocean' -import router from 'next/router' export function Steps({ feedback From 2d7584648d8bdff3f4e4fe475496d9aa003239d2 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Mon, 29 Aug 2022 18:19:21 +0300 Subject: [PATCH 07/43] Fix headers (#1663) * test * test * test * test * test * test * test --- netlify.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..f82df6dc8 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,11 @@ +[[headers]] + for = "/_next/image/*" + + [headers.values] + Content-Security-Policy= "upgrade-insecure-requests" + Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload" + X-XSS-Protection = "1; mode=block" + X-Frame-Options = "DENY" + X-Content-Type-Options = "nosniff" + Referrer-Policy = "strict-origin-when-cross-origin" + Permissions-Policy= "accelerometer=(self), ambient-light-sensor=(self), autoplay=(self), battery=(self), camera=(self), cross-origin-isolated=(self), display-capture=(self), document-domain=(self), encrypted-media=(self), execution-while-not-rendered=(self), execution-while-out-of-viewport=(self), fullscreen=(self), geolocation=(self), gyroscope=(self), keyboard-map=(self), magnetometer=(self), microphone=(self), midi=(self), navigation-override=(self), payment=(self), picture-in-picture=(self), publickey-credentials-get=(self), screen-wake-lock=(self), sync-xhr=(self), usb=(self), web-share=(self), xr-spatial-tracking=(self), clipboard-read=(self), clipboard-write=(self), gamepad=(self), speaker-selection=(self), conversion-measurement=(self), focus-without-user-activation=(self), hid=(self), idle-detection=(self), interest-cohort=(self), serial=(self), sync-script=(self), trust-token-redemption=(self), window-placement=(self), vertical-scroll=(self)" From d7d1dabf4c063e17aff7b42653bde960d3d2e4e0 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Thu, 1 Sep 2022 17:13:28 +0300 Subject: [PATCH 08/43] remove link --- src/components/Header/Menu.tsx | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/components/Header/Menu.tsx b/src/components/Header/Menu.tsx index 03e5a8b4a..0f8e9ad5d 100644 --- a/src/components/Header/Menu.tsx +++ b/src/components/Header/Menu.tsx @@ -1,7 +1,6 @@ import React, { ReactElement } from 'react' import Link from 'next/link' import loadable from '@loadable/component' -import Badge from '@shared/atoms/Badge' import Logo from '@shared/atoms/Logo' import UserPreferences from './UserPreferences' import Networks from './UserPreferences/Networks' @@ -9,8 +8,6 @@ import SearchBar from './SearchBar' import styles from './Menu.module.css' import { useRouter } from 'next/router' import { useMarketMetadata } from '@context/MarketMetadata' -import Tooltip from '@shared/atoms/Tooltip' -import Caret from '@images/caret.svg' const Wallet = loadable(() => import('./Wallet')) declare type MenuItem = { @@ -34,7 +31,7 @@ function MenuLink({ item }: { item: MenuItem }) { } export default function Menu(): ReactElement { - const { appConfig, siteContent } = useMarketMetadata() + const { siteContent } = useMarketMetadata() return (