.
This commit is contained in:
parent
6e83e9a025
commit
8305d58933
4 changed files with 54 additions and 8 deletions
8
2.8.0
Normal file
8
2.8.0
Normal file
|
@ -0,0 +1,8 @@
|
|||
+ typescript@4.2.3
|
||||
added 1 package from 1 contributor and audited 2202 packages in 8.182s
|
||||
|
||||
141 packages are looking for funding
|
||||
run `npm fund` for details
|
||||
|
||||
found 0 vulnerabilities
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
<title>Audible Tools</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"short_name": "Audible Tools",
|
||||
"name": "Tools to remove DRM from aax",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
|
|
|
@ -14,6 +14,11 @@ import Container from '@material-ui/core/Container';
|
|||
import Dropzone from 'react-dropzone'
|
||||
import IconButton from '@material-ui/core/IconButton';
|
||||
import FileCopyOutlined from '@material-ui/icons/FileCopyOutlined';
|
||||
import PublishOutlined from '@material-ui/icons/PublishOutlined';
|
||||
|
||||
// import { useFilePicker } from 'react-sage'
|
||||
//import { FilePicker } from 'react-file-picker'
|
||||
|
||||
|
||||
|
||||
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
||||
|
@ -147,7 +152,13 @@ class ChecksumResolver extends React.Component {
|
|||
render() {
|
||||
const { classes } = this.props;
|
||||
const { checksum, activationBytes, fileName } = this.state;
|
||||
//const acc = accAX();
|
||||
|
||||
// const { files, onClick, errors, HiddenFileInput } = useFilePicker({
|
||||
// maxFileSize: 1000000,
|
||||
// maxImageWidth: 1000,
|
||||
// imageQuality: 0.92,
|
||||
// resizeImage: true
|
||||
// });
|
||||
|
||||
return (
|
||||
<Container component="main" maxWidth="md">
|
||||
|
@ -167,9 +178,6 @@ class ChecksumResolver extends React.Component {
|
|||
onDrop={acceptedFiles => {
|
||||
console.log(acceptedFiles);
|
||||
this.acceptFile(acceptedFiles);
|
||||
//const file = document.getElementById('fileInput').files[0];
|
||||
|
||||
|
||||
}}>
|
||||
{({ getRootProps, getInputProps }) => (
|
||||
<section>
|
||||
|
@ -189,6 +197,36 @@ class ChecksumResolver extends React.Component {
|
|||
onChange={(x) => this.setChecksum(x.target.value)}
|
||||
value={checksum}
|
||||
|
||||
InputProps={{
|
||||
readOnly: true,
|
||||
// endAdornment: (
|
||||
// // <IconButton onClick={() => {
|
||||
|
||||
// // alert('hi')
|
||||
// // }}>
|
||||
// // <PublishOutlined />
|
||||
// // </IconButton>
|
||||
|
||||
// // <IconButton>
|
||||
// // <HiddenFileInput accept=".jpg, .jpeg, .png" multiple={false} />
|
||||
|
||||
// // <PublishOutlined />
|
||||
// // </IconButton>
|
||||
// //accept="image/*"
|
||||
// // <FilePicker
|
||||
// // accept="image/*"
|
||||
// // extensions={['aax','AAX']}
|
||||
// // acceptFile="image/*"
|
||||
// // onChange={FileObject => { }}
|
||||
// // onError={errMsg => { }}
|
||||
// // >
|
||||
// // <IconButton >
|
||||
// // <PublishOutlined />
|
||||
// // </IconButton>
|
||||
// // </FilePicker>
|
||||
// )
|
||||
}}
|
||||
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -234,7 +272,7 @@ class ChecksumResolver extends React.Component {
|
|||
</form>
|
||||
</div>
|
||||
<ControlledAccordions
|
||||
fileName={fileName}
|
||||
fileName={fileName}
|
||||
activationBytes={activationBytes}
|
||||
/>
|
||||
<Box mt={1}>
|
||||
|
|
Loading…
Add table
Reference in a new issue