This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #946 from lbryio/staging
cuts release from staging
- Loading branch information
Showing
30 changed files
with
522 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
select { | ||
margin: 0; | ||
display: inline-block; | ||
background: $base-color; | ||
background: $background-color; | ||
border: 0; | ||
color: $text-color; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import RowLabeled from '@components/RowLabeled'; | ||
import Label from '@components/Label'; | ||
import { CC_LICENSES } from '@clientConstants/publish_license_urls'; | ||
|
||
const PublishLicenseUrlInput = ({ handleSelect, licenseUrl }) => { | ||
return ( | ||
<RowLabeled | ||
label={ | ||
<Label value={'License Url'} /> | ||
} | ||
content={ | ||
<select | ||
type='text' | ||
name='licenseUrl' | ||
id='publish-license-url' | ||
value={licenseUrl} | ||
onChange={handleSelect} | ||
> | ||
<option value=''>Unspecified</option> | ||
{ | ||
CC_LICENSES.map(function(item, i){ | ||
return <option key={item.url} value={item.url}>{item.value}</option> | ||
}) | ||
} | ||
</select> | ||
} | ||
/> | ||
); | ||
}; | ||
|
||
export default PublishLicenseUrlInput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export const CC_LICENSES = [ | ||
{ | ||
value: 'CC Attr. 4.0 Int', | ||
url: 'https://creativecommons.org/licenses/by/4.0/legalcode', | ||
}, | ||
{ | ||
value: 'CC Attr-ShareAlike 4.0 Int', | ||
url: 'https://creativecommons.org/licenses/by-sa/4.0/legalcode', | ||
}, | ||
{ | ||
value: 'CC Attr-NoDerivatives 4.0 Int', | ||
url: 'https://creativecommons.org/licenses/by-nd/4.0/legalcode', | ||
}, | ||
{ | ||
value: 'CC Attr-NonComm 4.0 Int', | ||
url: 'https://creativecommons.org/licenses/by-nc/4.0/legalcode', | ||
}, | ||
{ | ||
value: 'CC Attr-NonComm-ShareAlike 4.0 Int', | ||
url: 'https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode', | ||
}, | ||
{ | ||
value: 'CC Attr-NonComm-NoDerivatives 4.0 Int', | ||
url: 'https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode', | ||
}, | ||
]; | ||
|
||
export const LICENSES = ['Public Domain', 'Other', 'Copyright', 'Creative Commons']; | ||
|
||
export const PUBLIC_DOMAIN = 'Public Domain'; | ||
export const OTHER = 'other'; | ||
export const COPYRIGHT = 'copyright'; | ||
export const CREATIVE_COMMONS = 'Creative Commons'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.