2022-09-01 00:00:52 +02:00
|
|
|
import React from 'react'
|
|
|
|
import ReactDOM from 'react-dom'
|
|
|
|
import './index.css'
|
|
|
|
import * as serviceWorker from './serviceWorker'
|
|
|
|
import ChecksumResolver from './ChecksumResolver'
|
2021-03-29 01:01:03 +02:00
|
|
|
import ReactNotification from 'react-notifications-component'
|
2022-09-01 00:00:52 +02:00
|
|
|
import ForkMeOnGithub from 'fork-me-on-github'
|
2021-05-17 22:24:14 +02:00
|
|
|
|
2022-09-01 00:00:52 +02:00
|
|
|
import ReactGA from 'react-ga'
|
|
|
|
import {
|
|
|
|
GoogleReCaptchaProvider,
|
|
|
|
GoogleReCaptcha,
|
|
|
|
} from 'react-google-recaptcha-v3'
|
2020-08-06 00:06:17 +02:00
|
|
|
|
2022-09-18 23:37:29 +02:00
|
|
|
WakeUp();
|
2022-08-31 22:28:45 +02:00
|
|
|
|
2022-09-18 23:42:20 +02:00
|
|
|
WakeUp();
|
2020-08-06 10:54:49 +02:00
|
|
|
|
2020-08-06 00:06:17 +02:00
|
|
|
ReactDOM.render(
|
2021-03-29 01:01:03 +02:00
|
|
|
<div>
|
2022-09-01 00:00:52 +02:00
|
|
|
<GoogleReCaptchaProvider reCaptchaKey="6LeZhMMhAAAAAH2cwtbCRYys5WawPj4KS5pw-GNd">
|
|
|
|
{/* <GoogleReCaptcha
|
|
|
|
onVerify={(a, b, c) => {
|
|
|
|
console.log(`Token: ${a}`);
|
|
|
|
}}
|
|
|
|
/> */}
|
|
|
|
<div style={{ display: 'flex' }}>
|
|
|
|
<ReactNotification />
|
|
|
|
</div>
|
|
|
|
<ForkMeOnGithub
|
|
|
|
repo="https://github.com/audible-tools/audible-tools.github.io"
|
|
|
|
colorOctocat="black"
|
|
|
|
isPride
|
|
|
|
/>
|
|
|
|
<ChecksumResolver />
|
|
|
|
</GoogleReCaptchaProvider>
|
2021-03-29 01:01:03 +02:00
|
|
|
</div>,
|
2022-09-01 00:00:52 +02:00
|
|
|
document.getElementById('root'),
|
|
|
|
)
|
2020-08-06 00:06:17 +02:00
|
|
|
|
2022-09-18 23:42:20 +02:00
|
|
|
|
2020-08-06 00:06:17 +02:00
|
|
|
// If you want your app to work offline and load faster, you can change
|
|
|
|
// unregister() to register() below. Note this comes with some pitfalls.
|
|
|
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
2022-09-01 00:00:52 +02:00
|
|
|
serviceWorker.unregister()
|
2022-09-18 23:37:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
async function WakeUp() {
|
|
|
|
try{
|
2022-09-18 23:42:20 +02:00
|
|
|
await fetch("https://api.audible-converter.ml/api/v2/WakeUpNeo")
|
2022-09-18 23:37:29 +02:00
|
|
|
console.log("Woke up")
|
|
|
|
}catch(ex){
|
|
|
|
console.log("Error occured: "+ ex)
|
|
|
|
}
|
2022-09-18 23:42:20 +02:00
|
|
|
}
|