- progress

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-17 19:36:21 -05:00
parent 1a93e1de41
commit 4a9684ba87
15 changed files with 174 additions and 136 deletions

View File

@@ -2,142 +2,24 @@ import React, {useState} from "react";
import {Button, Card, Checkbox, Col, Form, Input, Modal, Row, Space} from "antd";
import Markdown from "react-markdown";
const EULA = `# End User License Agreement (EULA)
## 1. Introduction
This End User License Agreement ("EULA") governs your use of our website and any related services. By using our website, you agree to be bound by the terms of this EULA.
## 2. License Grant
We grant you a non-exclusive, non-transferable, revocable license to use our website for your personal, non-commercial use.
## 3. Restrictions
You agree not to:
- Use our website for any illegal or unauthorized purpose
- Attempt to reverse engineer or otherwise derive the source code of our website
## 4. Termination
We reserve the right to terminate your license to use our website at any time and for any reason.
## 5. Disclaimer of Warranties
Our website is provided "as is" and without any warranty of any kind.
## 6. Limitation of Liability
We will not be liable for any damages or losses arising from your use of our website.
## 7. Governing Law
This EULA is governed by the laws of [Your Jurisdiction].
## 8. Changes to this EULA
We reserve the right to modify this EULA at any time. Your continued use of our website after any such changes constitutes your acceptance of the new EULA.
## 9. Contact Us
If you have any questions about this EULA, please contact us at [Your Contact Information].
## 1. Introduction
This End User License Agreement ("EULA") governs your use of our website and any related services. By using our website, you agree to be bound by the terms of this EULA.
## 2. License Grant
We grant you a non-exclusive, non-transferable, revocable license to use our website for your personal, non-commercial use.
## 3. Restrictions
You agree not to:
- Use our website for any illegal or unauthorized purpose
- Attempt to reverse engineer or otherwise derive the source code of our website
## 4. Termination
We reserve the right to terminate your license to use our website at any time and for any reason.
## 5. Disclaimer of Warranties
Our website is provided "as is" and without any warranty of any kind.
## 6. Limitation of Liability
We will not be liable for any damages or losses arising from your use of our website.
## 7. Governing Law
This EULA is governed by the laws of [Your Jurisdiction].
## 8. Changes to this EULA
We reserve the right to modify this EULA at any time. Your continued use of our website after any such changes constitutes your acceptance of the new EULA.
## 9. Contact Us
If you have any questions about this EULA, please contact us at [Your Contact Information].
## 1. Introduction
This End User License Agreement ("EULA") governs your use of our website and any related services. By using our website, you agree to be bound by the terms of this EULA.
## 2. License Grant
We grant you a non-exclusive, non-transferable, revocable license to use our website for your personal, non-commercial use.
## 3. Restrictions
You agree not to:
- Use our website for any illegal or unauthorized purpose
- Attempt to reverse engineer or otherwise derive the source code of our website
## 4. Termination
We reserve the right to terminate your license to use our website at any time and for any reason.
## 5. Disclaimer of Warranties
Our website is provided "as is" and without any warranty of any kind.
## 6. Limitation of Liability
We will not be liable for any damages or losses arising from your use of our website.
## 7. Governing Law
This EULA is governed by the laws of [Your Jurisdiction].
## 8. Changes to this EULA
We reserve the right to modify this EULA at any time. Your continued use of our website after any such changes constitutes your acceptance of the new EULA.
## 9. Contact Us
If you have any questions about this EULA, please contact us at [Your Contact Information].`
const EULA = require('./testData.json').eula;
/**
* Returns true if the EULA is applicable to the current user.
* @param currentUser
* @param online
* @param bodyshop
* @param client
* @returns {boolean}
* Returns the EULA component.
* @returns {Element}
* @constructor
*/
export function eulaIsApplicable({currentUser, isAccepted}) {
return !isAccepted || currentUser.authorized === false;
}
export default function Eula({setIsAccepted}) {
//REDUXY THIS
export default function Eula({eulaContentToShow}) {
const [isModalOpen, setIsModalOpen] = useState(true);
const handleAccept = (values) => {
localStorage.setItem('termsAccepted', 'true');
setIsAccepted(true);
setIsModalOpen(false);
//Insert and Dispatch the action to rechecuk force acceptance.
};
return <Modal

View File

@@ -0,0 +1,3 @@
{
"eula": "# End User License Agreement (EULA)\n## 1. Introduction\n\nThis End User License Agreement (\"EULA\") governs your use of our website and any related services. By using our website, you agree to be bound by the terms of this EULA.\n\n## 2. License Grant\n\nWe grant you a non-exclusive, non-transferable, revocable license to use our website for your personal, non-commercial use.\n\n## 3. Restrictions\n\nYou agree not to:\n\n- Use our website for any illegal or unauthorized purpose\n- Attempt to reverse engineer or otherwise derive the source code of our website\n\n## 4. Termination\n\nWe reserve the right to terminate your license to use our website at any time and for any reason.\n\n## 5. Disclaimer of Warranties\n\nOur website is provided \"as is\" and without any warranty of any kind.\n\n## 6. Limitation of Liability\n\nWe will not be liable for any damages or losses arising from your use of our website.\n\n## 7. Governing Law\n\nThis EULA is governed by the laws of [Your Jurisdiction].\n\n## 8. Changes to this EULA\n\nWe reserve the right to modify this EULA at any time. Your continued use of our website after any such changes constitutes your acceptance of the new EULA.\n\n## 9. Contact Us\n\nIf you have any questions about this EULA, please contact us at [Your Contact Information].\n## 1. Introduction\n\nThis End User License Agreement (\"EULA\") governs your use of our website and any related services. By using our website, you agree to be bound by the terms of this EULA.\n\n## 2. License Grant\n\nWe grant you a non-exclusive, non-transferable, revocable license to use our website for your personal, non-commercial use.\n\n## 3. Restrictions\n\nYou agree not to:\n\n- Use our website for any illegal or unauthorized purpose\n- Attempt to reverse engineer or otherwise derive the source code of our website\n\n## 4. Termination\n\nWe reserve the right to terminate your license to use our website at any time and for any reason.\n\n## 5. Disclaimer of Warranties\n\nOur website is provided \"as is\" and without any warranty of any kind.\n\n## 6. Limitation of Liability\n\nWe will not be liable for any damages or losses arising from your use of our website.\n\n## 7. Governing Law\n\nThis EULA is governed by the laws of [Your Jurisdiction].\n\n## 8. Changes to this EULA\n\nWe reserve the right to modify this EULA at any time. Your continued use of our website after any such changes constitutes your acceptance of the new EULA.\n\n## 9. Contact Us\n\nIf you have any questions about this EULA, please contact us at [Your Contact Information].\n## 1. Introduction\n\nThis End User License Agreement (\"EULA\") governs your use of our website and any related services. By using our website, you agree to be bound by the terms of this EULA.\n\n## 2. License Grant\n\nWe grant you a non-exclusive, non-transferable, revocable license to use our website for your personal, non-commercial use.\n\n## 3. Restrictions\n\nYou agree not to:\n\n- Use our website for any illegal or unauthorized purpose\n- Attempt to reverse engineer or otherwise derive the source code of our website\n\n## 4. Termination\n\nWe reserve the right to terminate your license to use our website at any time and for any reason.\n\n## 5. Disclaimer of Warranties\n\nOur website is provided \"as is\" and without any warranty of any kind.\n\n## 6. Limitation of Liability\n\nWe will not be liable for any damages or losses arising from your use of our website.\n\n## 7. Governing Law\n\nThis EULA is governed by the laws of [Your Jurisdiction].\n\n## 8. Changes to this EULA\n\nWe reserve the right to modify this EULA at any time. Your continued use of our website after any such changes constitutes your acceptance of the new EULA.\n\n## 9. Contact Us\n\nIf you have any questions about this EULA, please contact us at [Your Contact Information]."
}