Skip to content

feat: Add Requirements and Licensing section - #18

Merged
sendr merged 2 commits into
2u-masterfrom
ruzniaievdm/feat/requirements-and-licence-mfe
Jul 7, 2023
Merged

sendr merged 2 commits into
2u-masterfrom
ruzniaievdm/feat/requirements-and-licence-mfe

Conversation

@ruzniaievdm

@ruzniaievdm ruzniaievdm commented Jul 5, 2023 •

Copy link
Copy Markdown

2U-117
edx-platform need to merge too

@ruzniaievdm
ruzniaievdm force-pushed the ruzniaievdm/feat/requirements-and-licence-mfe branch 3 times, most recently from a91d565 to 2409f68 Compare July 6, 2023 09:32
@ruzniaievdm
ruzniaievdm marked this pull request as ready for review July 6, 2023 09:35
@ruzniaievdm
ruzniaievdm force-pushed the ruzniaievdm/feat/requirements-and-licence-mfe branch from 2409f68 to 319c42f Compare July 6, 2023 11:37
@ruzniaievdm

Copy link
Copy Markdown
Author

@sendr please merge in separate commits

@ruzniaievdm
ruzniaievdm force-pushed the ruzniaievdm/feat/requirements-and-licence-mfe branch from 319c42f to 832485d Compare July 6, 2023 11:43
import { LICENSE_COMMONS_OPTIONS } from './constants';

const generateLicenseURL = (details) => {
const url = 'https://creativecommons.org/licenses/';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this to constants as well?


const updatedString = `${
LICENSE_TYPE.creativeCommons
}: ver=4.0 ${orderedDetails.join(' ')}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not hardcode the version?

.map(([key]) => LICENSE_COMMONS_OPTIONS[key].toLowerCase())
.join('-');

return `${url}${detailsString}/4.0/`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's also not hardcode the version, I saw you use it twice

@sendr
sendr merged commit 3f41f41 into 2u-master Jul 7, 2023
ruzniaievdm added a commit that referenced this pull request Aug 1, 2023
* feat: Add Requirements and Licensing section

* fix: add stateful button for saving advanced settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants