mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 20:25:04 -05:00
fix: all issues with the MOTD engine are gone
This commit is contained in:
parent
e15ac7d4d4
commit
27d7f3755e
@ -37,6 +37,7 @@
|
|||||||
"prettier": "^3.3.1",
|
"prettier": "^3.3.1",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18",
|
||||||
|
"react-fade-in": "^2.0.1",
|
||||||
"remark-gfm": "^4.0.0",
|
"remark-gfm": "^4.0.0",
|
||||||
"tailwind-merge": "^2.3.0",
|
"tailwind-merge": "^2.3.0",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
// rendering engine for MOTDs (aka Minehut)
|
// rendering engine for MOTDs (aka Minehut)
|
||||||
|
|
||||||
const divList: any = {
|
const divList: any = {
|
||||||
black: "000000",
|
black: "black",
|
||||||
dark_blue: "002bff",
|
dark_blue: "text-[#1D4ED8]",
|
||||||
dark_green: "text-green-800",
|
dark_green: "text-[#166634]",
|
||||||
dark_red: "text-red-800",
|
dark_red: "text-[#991b1b]",
|
||||||
dark_purple: "text-purple-800",
|
dark_purple: "text-[#6b21a8]",
|
||||||
gold: "text-yellow-400",
|
gold: "text-[#facc15]",
|
||||||
gray: "text-gray-600",
|
gray: "text-[#4b5563]",
|
||||||
dark_gray: "text-gray-800",
|
dark_gray: "text-[#1f2937]",
|
||||||
blue: "text-blue-400",
|
blue: "text-[#60a5fa]",
|
||||||
green: "text-green-400",
|
green: "text-[#4ade80]",
|
||||||
aqua: "text-cyan-400",
|
aqua: "text-[#22d3ee]",
|
||||||
red: "text-red-400",
|
red: "text-[#f87171]",
|
||||||
light_purple: "text-purple-300",
|
light_purple: "text-[#d8b4fe]",
|
||||||
yellow: "text-yellow-400",
|
yellow: "text-[#facc15]",
|
||||||
white: "text-white",
|
white: "text-white",
|
||||||
strikethrough: "line-through",
|
strikethrough: "line-through",
|
||||||
st: "line-through",
|
st: "line-through",
|
||||||
@ -188,7 +188,7 @@ function colorConvert(className: string) {
|
|||||||
const classes = className.split(" ");
|
const classes = className.split(" ");
|
||||||
let result = "";
|
let result = "";
|
||||||
classes.forEach((classUnique) => {
|
classes.forEach((classUnique) => {
|
||||||
if (classUnique.startsWith("text-")) {
|
if (classUnique.startsWith("text-") && classUnique != "text-white") {
|
||||||
if (classUnique.startsWith("text-[")) {
|
if (classUnique.startsWith("text-[")) {
|
||||||
result +=
|
result +=
|
||||||
"color: " + classUnique.substring(6, classUnique.length - 1) + "; ";
|
"color: " + classUnique.substring(6, classUnique.length - 1) + "; ";
|
||||||
|
|||||||
@ -4859,6 +4859,11 @@ react-dom@^18:
|
|||||||
loose-envify "^1.1.0"
|
loose-envify "^1.1.0"
|
||||||
scheduler "^0.23.2"
|
scheduler "^0.23.2"
|
||||||
|
|
||||||
|
react-fade-in@^2.0.1:
|
||||||
|
version "2.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-fade-in/-/react-fade-in-2.0.1.tgz#b4bcd7dac63d6857ebcd68facbff2f5f9616278f"
|
||||||
|
integrity sha512-oqS/WT4znaXEHmL+yo0IDUDY7uC9K4RP35j1SdRUEBspR09B2iIC0i8oJ28tPOr6Ez/L2aktF9p89j+DbsTVNw==
|
||||||
|
|
||||||
react-hook-form@^7.52.2:
|
react-hook-form@^7.52.2:
|
||||||
version "7.52.2"
|
version "7.52.2"
|
||||||
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.52.2.tgz#ff40f4776250b86ddfcde6be68d34aa82b1c60fe"
|
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.52.2.tgz#ff40f4776250b86ddfcde6be68d34aa82b1c60fe"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user