Skip to content

Commit

Permalink
Update the license to BSD-3-Clause and include licensing header in so…
Browse files Browse the repository at this point in the history
…urce code
  • Loading branch information
matuzalemsteles committed Jan 22, 2019
1 parent f5f9eca commit 5f35f52
Show file tree
Hide file tree
Showing 20 changed files with 146 additions and 48 deletions.
47 changes: 24 additions & 23 deletions packages/clay-date-picker/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# Software License Agreement (BSD License)
Valid-License-Identifier: LicenseRef-BSD-3-Clause-Liferay
Valid-License-Identifier: BSD-3-Clause
License-Text:

Copyright (c) 2014, Liferay Inc.
All rights reserved.
Copyright (c) 2014, Liferay Inc. All rights reserved.

Redistribution and use of this software in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* The name of Liferay Inc. may not be used to endorse or promote products
derived from this software without specific prior
written permission of Liferay Inc.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 6 additions & 0 deletions packages/clay-date-picker/demos/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import ReactDOM from 'react-dom';
import React, {useState} from 'react';
import ClayDatePicker from '../src/ClayDatePicker';
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "clay-date-picker",
"version": "2.5.0",
"description": "ClayDatePicker component",
"license": "BSD",
"license": "BSD-3-Clause",
"repository": "https://github.com/liferay/clay/tree/master/packages/clay-date-picker",
"main": "lib/ClayDatePicker.js",
"esnext:main": "src/ClayDatePicker.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Button.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/ClayDatePicker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import moment from 'moment';
import PropTypes from 'prop-types';
import React, {useState, useEffect, useRef} from 'react';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/DateNavigation.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import * as Helpers from './Helpers';
import moment from 'moment';
import PropTypes from 'prop-types';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/DayNumber.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import classnames from 'classnames';
import moment from 'moment';
import PropTypes from 'prop-types';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/DaysTable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Dropdown.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React, {useRef, useEffect} from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Helpers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
* Clone a date object.
* @param {!Date} d The date to clone
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Hooks.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import {useState} from 'react';
import * as Helpers from './Helpers';
import moment from 'moment';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Icon.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/InputDate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import classnames from 'classnames';
import moment from 'moment';
import PropTypes from 'prop-types';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Select.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/TimePicker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import ClayTimePicker from 'clay-time-picker';
import moment from 'moment';
import PropTypes from 'prop-types';
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/Weekday.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
6 changes: 6 additions & 0 deletions packages/clay-date-picker/src/WeekdayHeader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
47 changes: 24 additions & 23 deletions packages/clay-time-picker/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# Software License Agreement (BSD License)
Valid-License-Identifier: LicenseRef-BSD-3-Clause-Liferay
Valid-License-Identifier: BSD-3-Clause
License-Text:

Copyright (c) 2014, Liferay Inc.
All rights reserved.
Copyright (c) 2014, Liferay Inc. All rights reserved.

Redistribution and use of this software in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* The name of Liferay Inc. may not be used to endorse or promote products
derived from this software without specific prior
written permission of Liferay Inc.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion packages/clay-time-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "clay-time-picker",
"version": "2.5.0",
"description": "ClayTimePicker component",
"license": "BSD",
"license": "BSD-3-Clause",
"repository": "https://github.com/liferay/clay/tree/master/packages/clay-time-picker",
"main": "lib/ClayTimePicker.js",
"esnext:main": "src/ClayTimePicker.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/clay-time-picker/src/ClayTimePicker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* © 2019 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down

0 comments on commit 5f35f52

Please sign in to comment.