fix some eslint errors
This commit is contained in:
parent
86d773c3f0
commit
2b82971ceb
|
@ -85,17 +85,9 @@ function Admintools() {
|
||||||
return (
|
return (
|
||||||
<div style={{ textAlign: 'center', paddingLeft: '5%', paddingRight: '5%' }}>
|
<div style={{ textAlign: 'center', paddingLeft: '5%', paddingRight: '5%' }}>
|
||||||
{resp && (
|
{resp && (
|
||||||
<div style={{
|
<div className="respbox">
|
||||||
borderStyle: 'solid',
|
|
||||||
borderColor: '#D4D4D4',
|
|
||||||
userSelect: 'text',
|
|
||||||
borderWidth: 2,
|
|
||||||
padding: 5,
|
|
||||||
display: 'inline-block',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{resp.split('\n').map((line) => (
|
{resp.split('\n').map((line) => (
|
||||||
<p className="modaltext">
|
<p key={line.slice(0, 3)} className="modaltext">
|
||||||
{line}
|
{line}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -217,16 +217,9 @@ function ModCanvastools() {
|
||||||
return (
|
return (
|
||||||
<div style={{ textAlign: 'center', paddingLeft: '5%', paddingRight: '5%' }}>
|
<div style={{ textAlign: 'center', paddingLeft: '5%', paddingRight: '5%' }}>
|
||||||
{resp && (
|
{resp && (
|
||||||
<div style={{
|
<div className="respbox">
|
||||||
borderStyle: 'solid',
|
|
||||||
borderColor: '#D4D4D4',
|
|
||||||
borderWidth: 2,
|
|
||||||
padding: 5,
|
|
||||||
display: 'inline-block',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{resp.split('\n').map((line) => (
|
{resp.split('\n').map((line) => (
|
||||||
<p className="modaltext">
|
<p key={line.slice(0, 3)} className="modaltext">
|
||||||
{line}
|
{line}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -14,6 +14,10 @@ async function submitIIDAction(
|
||||||
duration,
|
duration,
|
||||||
callback,
|
callback,
|
||||||
) {
|
) {
|
||||||
|
if (!iid) {
|
||||||
|
callback(t`You must enter an IID`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
const time = Date.now() + parseInterval(duration);
|
const time = Date.now() + parseInterval(duration);
|
||||||
const data = new FormData();
|
const data = new FormData();
|
||||||
data.append('iidaction', action);
|
data.append('iidaction', action);
|
||||||
|
@ -60,14 +64,13 @@ function ModIIDtools() {
|
||||||
<>
|
<>
|
||||||
<p>{t`Reason`}</p>
|
<p>{t`Reason`}</p>
|
||||||
<input
|
<input
|
||||||
|
maxLength="200"
|
||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
value={reason}
|
value={reason}
|
||||||
placeholder={t`Enter Reason`}
|
placeholder={t`Enter Reason`}
|
||||||
onChange={(evt) => {
|
onChange={(evt) => setReason(evt.target.value)}
|
||||||
setReason(evt.target.value.trim());
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<p>
|
<p>
|
||||||
{`${t`Duration`}: `}
|
{`${t`Duration`}: `}
|
||||||
|
|
|
@ -96,16 +96,9 @@ function ModWatchtools() {
|
||||||
return (
|
return (
|
||||||
<div style={{ textAlign: 'center', paddingLeft: '5%', paddingRight: '5%' }}>
|
<div style={{ textAlign: 'center', paddingLeft: '5%', paddingRight: '5%' }}>
|
||||||
{resp && (
|
{resp && (
|
||||||
<div style={{
|
<div className="respbox">
|
||||||
borderStyle: 'solid',
|
|
||||||
borderColor: '#D4D4D4',
|
|
||||||
borderWidth: 2,
|
|
||||||
padding: 5,
|
|
||||||
display: 'inline-block',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{resp.split('\n').map((line) => (
|
{resp.split('\n').map((line) => (
|
||||||
<p className="modaltext">
|
<p key={line.slice(0, 3)} className="modaltext">
|
||||||
{line}
|
{line}
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -33,6 +33,12 @@ const Ban = sequelize.define('Blacklist', {
|
||||||
}, {
|
}, {
|
||||||
timestamps: true,
|
timestamps: true,
|
||||||
updatedAt: false,
|
updatedAt: false,
|
||||||
|
|
||||||
|
setterMethods: {
|
||||||
|
reason(value) {
|
||||||
|
this.setDataValue('reason', value.slice(0, 200));
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -959,6 +959,15 @@ tr:nth-child(even) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.respbox {
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #D4D4D4;
|
||||||
|
user-select: text;
|
||||||
|
border-width: 2px;
|
||||||
|
padding: 5px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
/*-----------*/
|
/*-----------*/
|
||||||
/* react-toggle css */
|
/* react-toggle css */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user