Skip to content

Commit 94412fd

Browse files
committed
Fixed build error/warnings, updated nextjs to v14
1 parent 7e23dfa commit 94412fd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

components/AdminServersManager/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ const renderMergeServers = (state, dispatch, nDispatch) =>{
393393
if(s1.id === s2.id){
394394
noteElem = <>
395395
<div className="form-info">
396-
You can't merge a server into itself.
396+
You can&apos;t merge a server into itself.
397397
</div>
398398
</>
399399
}else{
@@ -460,7 +460,7 @@ const AdminServersManager = ({}) =>{
460460
};
461461

462462
const [state, dispatch] = useReducer(reducer, {
463-
"mode": 2,
463+
"mode": 0,
464464
"bLoading": false,
465465
"serverList": [],
466466
"selectedServer": -1,

components/DropDown/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ const DropDown = ({data, dName, fName, selectedValue, changeActive, changeSelect
125125

126126
useEffect(() =>{
127127
fixHeight(dRef, screenInfo.height);
128-
},[]);
128+
},[screenInfo.height]);
129129

130130

131131
useEffect(() =>{
132132
fixHeight(dRef, screenInfo.height);
133-
},[state.bActive]);
133+
},[state.bActive, screenInfo.height]);
134134

135135
useEffect(() =>{
136136
dispatch({"type": "set-selected", "value": selectedValue});

components/Footer/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Footer({session}){
1010
<div>
1111
<CookieBanner session={session}/>
1212
<footer>
13-
Node UTStats 2.13.2 &copy; 2021-2024 <a className="yellow" href="https://github.com/scottadkin">Scott Adkin</a><br/>
13+
Node UTStats 2.14.0 &copy; 2021-2024 <a className="yellow" href="https://github.com/scottadkin">Scott Adkin</a><br/>
1414
<span className="yellow">Original UTStats &copy; 2005 azazel, )°DoE°(-AnthraX and toa</span><br/>
1515
<b><a style={{"color": "rgb(0,126,255)"}} href={"https://github.com/OldUnreal/UnrealTournamentPatches"}>Update UT to the Latest Unreal Tournament Patch by OldUnreal</a></b><br/>
1616
Thanks to <span className="yellow">Krull0r</span> for the Monster Icons.<br/>

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"jimp": "^0.22.8",
2121
"md5": "^2.3.0",
2222
"mysql": "^2.18.1",
23-
"next": "^13.5.0",
23+
"next": "^14.0.4",
2424
"promise": "^8.1.0",
2525
"react": "^18.2.0",
2626
"react-dom": "^18.2.0",
@@ -30,6 +30,6 @@
3030
},
3131
"devDependencies": {
3232
"eslint": "7.32.0",
33-
"eslint-config-next": "^13.3.0"
33+
"eslint-config-next": "^14.0.4"
3434
}
3535
}

pages/admin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Admin extends React.Component{
3535
super(props);
3636

3737
this.state = {
38-
"mode": 14,
38+
"mode": 13,
3939
"files": [],
4040
"gametypeNames": JSON.parse(this.props.gametypeNames),
4141
"itemList": JSON.parse(this.props.itemList),

0 commit comments

Comments
 (0)