Commit 934750fd authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Update license and avoid duplication by including it in the code;

parent 57f79704
The MIT License (MIT)
Copyright (c) 2014-2018 Benjamin Bouvier
Copyright (c) 2014-2019 Benjamin Bouvier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
......@@ -7,6 +7,8 @@ import ExternalLink from '../ui/external-link';
import dependencies from './dependenciesLicenses.json';
import { repository } from '../../../package.json';
import LICENSE from 'raw-loader!../../../LICENSE';
const AboutKresus = () => {
return (
<div className="support-about">
......@@ -78,36 +80,15 @@ const About = () => {
);
}
let license = LICENSE.split('\n\n').map((x, i) => <p key={i}>{x}</p>);
return (
<div className="about">
<h3>{$t('client.about.resources')}</h3>
<AboutKresus />
<h3>{$t('client.about.kresus_license')}</h3>
<p>The MIT License (MIT)</p>
<p>Copyright (c) 2014-2018 Benjamin Bouvier</p>
<p>
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the &quot;Software&quot;), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so, subject
to the following conditions:
</p>
<p>
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
</p>
<p>
THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR
A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</p>
{license}
<h3>{$t('client.about.thanks')}</h3>
<p>{$t('client.about.thanks_description')}</p>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment