From 7d5e41153e5532f644bb189d4c58adc830002554 Mon Sep 17 00:00:00 2001 From: jessop Date: Sat, 23 Feb 2019 00:52:31 -0500 Subject: [PATCH 1/2] adds licenseUrl --- .../components/PublishLicenseInput/index.jsx | 10 ++- .../PublishLicenseUrlInput/index.jsx | 31 ++++++++ client/src/constants/publish_license_urls.js | 33 ++++++++ client/src/containers/AssetInfo/view.jsx | 43 +++++++--- client/src/containers/ChannelSelect/view.jsx | 9 ++- .../containers/PublishMetadataInputs/index.js | 20 +++-- .../containers/PublishMetadataInputs/view.jsx | 12 ++- client/src/pages/EditPage/view.jsx | 2 +- client/src/reducers/publish.js | 46 +++++------ client/src/utils/publish.js | 9 ++- server/chainquery/models/ClaimModel.js | 8 ++ server/chainquery/queries/claimQueries.js | 2 +- .../api/channel/claims/getChannelClaims.js | 2 + .../api/claim/publish/createPublishParams.js | 26 ++++-- .../publish/createThumbnailPublishParams.js | 19 ++--- server/controllers/api/claim/publish/index.js | 79 ++++++++++++++----- .../publish/parsePublishApiRequestBody.js | 18 ++++- server/controllers/api/claim/update/index.js | 9 ++- server/utils/getClaimData.js | 3 + 19 files changed, 288 insertions(+), 93 deletions(-) create mode 100644 client/src/components/PublishLicenseUrlInput/index.jsx create mode 100644 client/src/constants/publish_license_urls.js diff --git a/client/src/components/PublishLicenseInput/index.jsx b/client/src/components/PublishLicenseInput/index.jsx index af827ec8..213e0be9 100644 --- a/client/src/components/PublishLicenseInput/index.jsx +++ b/client/src/components/PublishLicenseInput/index.jsx @@ -1,12 +1,13 @@ import React from 'react'; import RowLabeled from '@components/RowLabeled'; import Label from '@components/Label'; +import { LICENSES } from '../../constants/publish_license_urls'; const PublishLicenseInput = ({ handleSelect }) => { return ( +