From f4d0d6369fa82370a044935554f5666f172fd940 Mon Sep 17 00:00:00 2001 From: AntoninoP Date: Thu, 12 Sep 2024 18:48:17 +0200 Subject: [PATCH 1/2] new version list --- src/components/CreateServer/CreateServer.jsx | 44 +++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/src/components/CreateServer/CreateServer.jsx b/src/components/CreateServer/CreateServer.jsx index 85d9512..8fabc81 100644 --- a/src/components/CreateServer/CreateServer.jsx +++ b/src/components/CreateServer/CreateServer.jsx @@ -6,7 +6,49 @@ import PropTypes from "prop-types"; import { GoTag, GoCheck } from "react-icons/go"; const versions = { - paper: [ "1.21.1", "1.21", "1.20.6", "1.20.5", "1.20.4", "1.20.2", "1.20.1", "1.19.4", "1.19.3", "1.19.2", "1.19.1", "1.18.2", "1.18.1", "1.17.1", "1.16.5", "1.16.4", "1.16.3", "1.16.2", "1.16.1", "1.15.2", "1.15.1", "1.14.4", "1.14.3", "1.14.2", "1.14.1", "1.13.2", "1.13.1", "1.12.2", "1.12.1", "1.11.2", "1.10.2", "1.9.4"] + paper:[ + "1.16.2", + "1.14.4", + "1.13.2", + "1.16.1", + "1.13.1", + "1.21.1", + "1.12.1", + "1.15.2", + "1.12.2", + "1.13", + "1.16.4", + "1.14.2", + "1.20.4", + "1.21", + "1.9.4", + "1.14.3", + "1.20.2", + "1.11.2", + "1.19", + "1.18", + "1.19.4", + "1.15.1", + "1.16.3", + "1.18.1", + "1.16.5", + "1.19.3", + "1.18.2", + "1.20.1", + "1.17.1", + "1.12", + "1.20.6", + "1.14", + "1.15", + "1.8.8", + "1.19.2", + "1.20", + "1.10.2", + "1.17", + "1.19.1", + "1.14.1", + "1.20.5" + ] }; const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noServers }) => { From cbb303934c445023d355843eff95b7594421b0db Mon Sep 17 00:00:00 2001 From: AntoninoP Date: Thu, 12 Sep 2024 18:53:58 +0200 Subject: [PATCH 2/2] version sorted --- src/components/CreateServer/CreateServer.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CreateServer/CreateServer.jsx b/src/components/CreateServer/CreateServer.jsx index 8fabc81..c0cc0ec 100644 --- a/src/components/CreateServer/CreateServer.jsx +++ b/src/components/CreateServer/CreateServer.jsx @@ -6,7 +6,7 @@ import PropTypes from "prop-types"; import { GoTag, GoCheck } from "react-icons/go"; const versions = { - paper:[ + paper: [ "1.16.2", "1.14.4", "1.13.2", @@ -48,7 +48,7 @@ const versions = { "1.19.1", "1.14.1", "1.20.5" - ] + ].sort((a, b) => b.localeCompare(a, undefined, { numeric: true })) }; const CreateServer = ({ user, onCreateServer, onSubdomainUpdate, onCancel, noServers }) => {