Updates
This commit is contained in:
parent
ed6b49847f
commit
f112cf0912
9 changed files with 160 additions and 132 deletions
|
|
@ -1,41 +0,0 @@
|
|||
import React from 'react';
|
||||
import { Modal } from 'react-bootstrap';
|
||||
|
||||
export default ({ show, onHide }) => (
|
||||
<Modal
|
||||
centered
|
||||
show={show}
|
||||
onHide={onHide}
|
||||
>
|
||||
<Modal.Body>
|
||||
<div>
|
||||
<p>
|
||||
This is the splitter between parts of the filename. Many mods use the format
|
||||
{' '}
|
||||
<code>MODNAME-MCVER-MAJOR.MINOR.PATCH</code>
|
||||
, where
|
||||
{' '}
|
||||
<code>-</code>
|
||||
{' '}
|
||||
is the delimiter.
|
||||
</p>
|
||||
<p>
|
||||
Using this logic, it is assumed that the Minecraft version for this
|
||||
{' '}
|
||||
<code>.jar</code>
|
||||
-file is between the first and second delimiter, and that the mod version is between
|
||||
the second and the end of the file. Formatting aside from this is not supported,
|
||||
unfortunately, as I've got a bit of trauma
|
||||
{' '}
|
||||
<sup>(/s)</sup>
|
||||
{' '}
|
||||
from
|
||||
{' '}
|
||||
<a href="https://dv2ls.com/code?id=lUY-c4A2H" target="_blank" rel="noreferrer">
|
||||
this Regular Expression I wrote.
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</Modal.Body>
|
||||
</Modal>
|
||||
);
|
||||
|
|
@ -3,10 +3,9 @@ import React, { useState, useEffect } from 'react';
|
|||
import {
|
||||
Form, Button, Container, Accordion, Image,
|
||||
} from 'react-bootstrap';
|
||||
import { TbInfoHexagon, TbHelp } from 'react-icons/tb';
|
||||
import { TbInfoHexagon } from 'react-icons/tb';
|
||||
import OutputLog from '../components/OutputLog';
|
||||
import Info from '../components/Help/Info';
|
||||
import Delimiter from '../components/Help/Delimiter';
|
||||
import HeaderImg from '../img/ctm.png';
|
||||
|
||||
export default () => {
|
||||
|
|
@ -58,7 +57,6 @@ export default () => {
|
|||
return (
|
||||
<div className="ctm-root">
|
||||
<Info override={modals.info} propagateOnHide={() => setModals({ ...modals, info: false })} />
|
||||
<Delimiter show={modals.delim} onHide={() => setModals({ ...modals, delim: false })} />
|
||||
|
||||
<Container style={{ margin: '1rem auto', maxWidth: '512px' }}>
|
||||
<Image className="d-block mb-3 mx-auto w-50 headerimg" src={HeaderImg} />
|
||||
|
|
@ -124,31 +122,6 @@ export default () => {
|
|||
/>
|
||||
</Form.Group>
|
||||
|
||||
<Form.Group className="mb-3" controlId="delimiter">
|
||||
<Form.Label>
|
||||
Delimiter (Optional)
|
||||
{' '}
|
||||
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
||||
<a
|
||||
onClick={() => setModals({ ...modals, delim: true })}
|
||||
style={{ textDecoration: 'none', fontSize: '16px' }}
|
||||
href="#"
|
||||
label="delimiter_help"
|
||||
>
|
||||
<TbHelp />
|
||||
</a>
|
||||
</Form.Label>
|
||||
<Form.Control
|
||||
placeholder="Defaults to Hyphen (-)"
|
||||
type="text"
|
||||
value={formData.delimiter}
|
||||
onChange={(x) => setFormData({
|
||||
...formData,
|
||||
delimiter: x.target.value,
|
||||
})}
|
||||
/>
|
||||
</Form.Group>
|
||||
|
||||
<Button variant={dark ? 'light' : 'dark'} type="submit">Submit</Button>
|
||||
<Button
|
||||
className="info"
|
||||
|
|
|
|||
Loading…
Reference in a new issue