UI
This commit is contained in:
parent
1801d069ea
commit
aa865ef1eb
3 changed files with 24 additions and 6 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Modal } from 'react-bootstrap';
|
import { Modal, Image } from 'react-bootstrap';
|
||||||
|
import ThirdPartyHelp from '../../img/cftpd.png';
|
||||||
|
|
||||||
export default ({ override, propagateOnHide }) => {
|
export default ({ dark, override, propagateOnHide }) => {
|
||||||
const [show, setShow] = useState(!window.localStorage.getItem('info-dismissed'));
|
const [show, setShow] = useState(!window.localStorage.getItem('info-dismissed'));
|
||||||
|
|
||||||
const onHide = () => {
|
const onHide = () => {
|
||||||
|
|
@ -52,17 +53,30 @@ export default ({ override, propagateOnHide }) => {
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
This tool works on a queue-based system since this process is pretty slow.
|
This tool works fastest if your CurseForge Project allows Third Party Downloads. If you
|
||||||
I apologize that it might take a while to process, but while you wait you can always:
|
do, migration should take about 1 minute for every 50 files. If you do not, migration
|
||||||
|
takes 7 minutes due to nasty workarounds I had to implement. I suggest enabling third
|
||||||
|
party downloads in your project settings:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<Image
|
||||||
|
style={{ filter: dark ? 'invert(1)' : 'none' }}
|
||||||
|
src={ThirdPartyHelp}
|
||||||
|
className="d-block mx-auto my-3 mw-100"
|
||||||
|
rounded
|
||||||
|
/>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
While you wait for your migration to complete, you can close this tab,
|
||||||
|
put it in the background, or
|
||||||
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Support me
|
Support me
|
||||||
{' '}
|
{' '}
|
||||||
<a href="https://dv2ls.com/don8" target="_blank" rel="noreferrer">with a Donation</a>
|
<a href="https://dv2ls.com/don8" target="_blank" rel="noreferrer">with a Donation</a>
|
||||||
</li>
|
</li>
|
||||||
<li>Share this tool on Social Media!</li>
|
<li>Share this tool on Twitter, Discord or whatever you please! </li>
|
||||||
</ul>
|
</ul>
|
||||||
</Modal.Body>
|
</Modal.Body>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
|
||||||
BIN
frontend/src/img/cftpd.png
Normal file
BIN
frontend/src/img/cftpd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
|
|
@ -57,7 +57,11 @@ export default () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="ctm-root">
|
<div className="ctm-root">
|
||||||
<Info override={modals.info} propagateOnHide={() => setModals({ ...modals, info: false })} />
|
<Info
|
||||||
|
dark={dark}
|
||||||
|
override={modals.info}
|
||||||
|
propagateOnHide={() => setModals({ ...modals, info: false })}
|
||||||
|
/>
|
||||||
<ModrinthProjId show={modals.mpid} onHide={() => setModals({ ...modals, mpid: false })} />
|
<ModrinthProjId show={modals.mpid} onHide={() => setModals({ ...modals, mpid: false })} />
|
||||||
|
|
||||||
<Container style={{ margin: '1rem auto', maxWidth: '512px' }}>
|
<Container style={{ margin: '1rem auto', maxWidth: '512px' }}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue