-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc338b1
commit 89aa97a
Showing
3 changed files
with
69 additions
and
5 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
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,9 @@ | ||
export const licenseHeader = "By clicking on I agree, you agree that (1) you have had the opportunity to review the terms of the agreement presented below and (2) such terms govern this transaction. If you do not agree, click I disagree."; | ||
|
||
export const licenseContent = "These binary files (including any associated documentation and source code, the Binaries) have been compiled from source files, and are made available to you by Zowe Binary Project a Series of LF Projects, LLC (the Project). The Binaries have been made available for your convenience pursuant to the terms of applicable open source licenses (the Applicable Licenses) free of charge to you.You agree that your access, installation, copying, distribution and use of the Binaries are subject to the terms of the Applicable Licenses, including without limitation all disclaimers of warranties, limitations of liability and obligations to provide notices or source code contained in such Applicable Licenses."; | ||
|
||
export const licenseMainConetnt = "FURTHERMORE, YOU AGREE THAT THE PROJECT DISCLAIMS ALL WARRANTIES OF ANY KIND WITH RESPECT TO THE BINARIES, INCLUDING FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY AND NON-INFRINGEMENT. USE OF THE BINARIES IS AT THE USER’S RISK AND DISCRETION, AND UNDER NO CIRCUMSTANCES SHALL THE PROJECT HAVE (1) ANY LIABILITY TO ANY PARTY FOR ANY USE OR ATTEMPTED USE OF THE BINARIES OR ANY OTHER CAUSE, WHETHER DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, PUNITIVE, OR OTHERWISE, AND REGARDLESS OF ANY FORM OR CAUSE OF ACTION; OR (2) ANY OBLIGATION TO PROVIDE SUPPORT FOR THE BINARIES OR ANY USE OF THE BINARIES." | ||
|
||
export const licenseLinkText = "Applicable License"; | ||
|
||
export const licenseLink = "https://github.com/zowe/zowe.github.io/blob/master/LICENSE"; |
35 changes: 35 additions & 0 deletions
35
src/renderer/components/stages/installation/LicenseDialog.tsx
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,35 @@ | ||
import { useState, useEffect, useRef } from "react"; | ||
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material'; | ||
import { licenseHeader, licenseContent, licenseMainConetnt, licenseLinkText, licenseLink} from './License'; | ||
|
||
const LicenseDialog = ({isAgreementVisible, licenseAgreement}: any) => { | ||
const [licenseText, setLicenseText] = useState(''); | ||
|
||
return ( | ||
<div> | ||
<Dialog | ||
open={isAgreementVisible} | ||
onClose={() => {licenseAgreement(-1)}} | ||
PaperProps={{ | ||
style: { | ||
width: '100vw', | ||
}, | ||
}}> | ||
<DialogTitle sx={{color: '#0678c6'}}>End User Liscense Agreement for Zowe</DialogTitle> | ||
<DialogContent sx={{paddingBottom: '0'}}> | ||
<p>{licenseHeader}</p> | ||
<p>{licenseContent}</p> | ||
<b>{licenseMainConetnt}</b> | ||
<p>{licenseLinkText}<a href={licenseLink} target="_blank">{licenseLink}</a></p> | ||
</DialogContent> | ||
<DialogActions> | ||
<Button onClick={() => { licenseAgreement(1)} }>Agree</Button> | ||
<Button onClick={() => { licenseAgreement(0)} }>Disagree</Button> | ||
<Button onClick={() => { licenseAgreement(-1)} }>Close</Button> | ||
</DialogActions> | ||
</Dialog> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LicenseDialog; |