Removed default server hardcode
This commit is contained in:
parent
8283b6e0ce
commit
b76b2538fd
9 changed files with 69 additions and 114 deletions
|
@ -52,15 +52,13 @@ If you 100% insist on adding a private server to your own magical little fork, y
|
|||
|
||||
**endpoint:** The actual endpoint to ~~spam~~ send requests to (e.g. `http://boomlings.com/database/` - make sure it ends with a slash!)
|
||||
|
||||
|
||||
----
|
||||
There's also a few optional values for fine-tuning. I'll add more over time
|
||||
|
||||
[string] **timestampSuffix:** A string to append at the end of timestamps. Vanilla GD uses " ago"
|
||||
|
||||
[string] **demonList:** The URL of the server's Demon List API, if it has one (e.g. `http://pointercrate.com/` - make sure it ends with a slash!)
|
||||
|
||||
[bool] **downloadsDisabled:** (Greys out all forms of downloading on the frontend (daily, weekly, analysis, etc). I love you too RobTop <3
|
||||
[bool] **downloadsDisabled:** Greys out all forms of downloading on the frontend (daily, weekly, analysis, etc). I love you too RobTop <3
|
||||
|
||||
[bool] **onePointNine:** Makes a bunch of fancy changes to better fit 1.9 servers. (removes orbs/diamonds, hides some pointless buttons, etc)
|
||||
|
||||
|
@ -203,10 +201,6 @@ achievementTypes.json - An object containing different categories of achievement
|
|||
|
||||
|
||||
|
||||
colors.json - List of icon colors in RGB format
|
||||
|
||||
|
||||
|
||||
credits.json - Credits! (shown on the homepage)
|
||||
|
||||
|
||||
|
|
|
@ -35,7 +35,9 @@ body {
|
|||
.rankNumber {
|
||||
font-size: 5vh;
|
||||
text-align: center;
|
||||
text-shadow: -0.2vh -0.2vh 0vh #000, 0.2vh -0.2vh 0vh #000, -0.2vh 0.2vh 0vh #000, 0.2vh 0.2vh 0vh #000;
|
||||
-webkit-text-stroke-width: 0.2vh;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 0.3vh 0.3vh 0vh rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.username {
|
||||
|
@ -47,12 +49,16 @@ body {
|
|||
|
||||
.level {
|
||||
font-size: 3.8vh;
|
||||
text-shadow: -0.18vh -0.18vh 0vh #000, 0.18vh -0.18vh 0vh #000, -0.18vh 0.18vh 0vh #000, 0.18vh 0.18vh 0vh #000;
|
||||
-webkit-text-stroke-width: 0.15vh;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 0.2vh 0.2vh 0vh rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.score {
|
||||
font-size: 2.5vh;
|
||||
text-shadow: -0.15vh -0.15vh 0vh #000, 0.15vh -0.15vh 0vh #000, -0.15vh 0.15vh 0vh #000, 0.15vh 0.15vh 0vh #000;
|
||||
-webkit-text-stroke-width: 0.1vh;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 0.15vh 0.15vh 0vh rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.powerup {
|
||||
|
@ -92,8 +98,6 @@ h1 {
|
|||
font-size: 8vh;
|
||||
font-family: Kaine;
|
||||
color: #ffc800;
|
||||
letter-spacing: .02em;
|
||||
text-shadow: -0.25vh -0.25vh 0vh #000, 0.25vh -0.25vh 0vh #000, -0.25vh 0.25vh 0vh #000, 0.25vh 0.25vh 0vh #000;
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
@ -102,9 +106,11 @@ h2 {
|
|||
font-size: 7.5vh;
|
||||
font-family: Pusab, Arial;
|
||||
color: rgb(255, 200, 0);
|
||||
letter-spacing: 0.02em;
|
||||
text-align: center;
|
||||
text-shadow: -0.275vh -0.275vh 0vh #000, 0.275vh -0.275vh 0vh #000, -0.275vh 0.275vh 0vh #000, 0.275vh 0.275vh 0vh #000, 0.5vh 0.5vh 0vh rgba(0,0,0,0.4);
|
||||
letter-spacing: -0.01em;
|
||||
-webkit-text-stroke-width: 0.265vh;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 0.35vh 0.35vh 0.1vh rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.gdButton {
|
||||
|
|
|
@ -171,6 +171,7 @@ h1, h2, h3 {
|
|||
margin: 0% 0%;
|
||||
letter-spacing: -0.01em;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-text-stroke-color: black;
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
@ -180,7 +181,6 @@ h1 {
|
|||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
-webkit-text-stroke-width: 0.25vh;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 0.375vh 0.375vh 0vh rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,6 @@ h2 {
|
|||
color: rgb(255, 200, 0);
|
||||
font-size: 8vh;
|
||||
-webkit-text-stroke-width: 0.265vh;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 0.35vh 0.35vh 0.1vh rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,10 +28,12 @@ h1 {
|
|||
font-size: 60px;
|
||||
font-family: Pusab;
|
||||
color: white;
|
||||
letter-spacing: 0.02em;
|
||||
letter-spacing: -0.01em;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-shadow: -2.2px -2.2px 0px #000, 2.2px -2.2px 0px #000, -2.2px 2.2px 0px #000, 2.2px 2.2px 0px #000, 5px 5px 0px rgba(0,0,0,0.4);
|
||||
-webkit-text-stroke-width: 2.2px;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 3px 3px 0.5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
@ -41,8 +43,10 @@ h2 {
|
|||
font-family: Pusab;
|
||||
width: fit-content;
|
||||
color: white;
|
||||
letter-spacing: 0.02em;
|
||||
text-shadow: -1.5px -1.5px 0px #000, 1.5px -1.5px 0px #000, -1.5px 1.5px 0px #000, 1.5px 1.5px 0px #000;
|
||||
letter-spacing: -0.01em;
|
||||
-webkit-text-stroke-width: 1.6px;
|
||||
-webkit-text-stroke-color: black;
|
||||
text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.hidden {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<head>
|
||||
<title>Boomlings Leaderboard</title>
|
||||
<meta charset="utf-8">
|
||||
<link href="../assets/css/boomlings.css" type="text/css" rel="stylesheet">
|
||||
<link href="../assets/css/boomlings.css?v=1" type="text/css" rel="stylesheet">
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-135255146-3"></script>
|
||||
<script>window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-135255146-3');</script>
|
||||
<link rel="icon" href="../assets/boomlings/red.png">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<head>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-135255146-3"></script><script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'UA-135255146-3');</script>
|
||||
<title>Online Icon Kit</title>
|
||||
<link href="../assets/css/iconkit.css" type="text/css" rel="stylesheet">
|
||||
<link href="../assets/css/iconkit.css?v=1" type="text/css" rel="stylesheet">
|
||||
<meta name="viewport" content="width=1024">
|
||||
<meta property="og:description" content="Build and save your very own Geometry Dash icons, right from the internet!">
|
||||
<meta property="og:title" content="Geometry Dash Online Icon Kit">
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
|
||||
"0" : {"r": 125, "g": 255, "b": 0},
|
||||
"1" : {"r": 0, "g": 255, "b": 0},
|
||||
"2" : {"r": 0, "g": 255, "b": 125},
|
||||
|
@ -42,5 +41,4 @@
|
|||
"39" : {"r": 0, "g": 0, "b": 150},
|
||||
"40" : {"r": 125, "g": 255, "b": 175},
|
||||
"41" : {"r": 125, "g": 125, "b": 255}
|
||||
|
||||
}
|
3
index.js
3
index.js
|
@ -52,6 +52,7 @@ app.servers.forEach(x => {
|
|||
app.accountCache[x.id || "gd"] = {}
|
||||
app.lastSuccess[x.id || "gd"] = Date.now()
|
||||
})
|
||||
app.mainEndpoint = app.servers.find(x => !x.id).endpoint // boomlings.com unless changed in fork
|
||||
|
||||
app.set('json spaces', 2)
|
||||
app.use(compression());
|
||||
|
@ -72,7 +73,7 @@ app.use(async function(req, res, next) {
|
|||
req.onePointNine = req.server.onePointNine
|
||||
req.timestampSuffix = req.server.timestampSuffix || ""
|
||||
req.id = req.server.id || "gd"
|
||||
req.isGDPS = req.server.endpoint != "http://boomlings.com/database/"
|
||||
req.isGDPS = req.server.endpoint != app.mainEndpoint
|
||||
|
||||
if (req.isGDPS) res.set("gdps", (req.onePointNine ? "1.9/" : "") + req.id)
|
||||
if (req.query.online > 0) req.offline = false
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
{
|
||||
|
||||
"0" : {"r": 125, "g": 255, "b": 0},
|
||||
"1" : {"r": 0, "g": 255, "b": 0},
|
||||
"2" : {"r": 0, "g": 255, "b": 125},
|
||||
"3" : {"r": 0, "g": 255, "b": 255},
|
||||
"4" : {"r": 0, "g": 125, "b": 255},
|
||||
"5" : {"r": 0, "g": 0, "b": 255},
|
||||
"6" : {"r": 125, "g": 0, "b": 255},
|
||||
"7" : {"r": 255, "g": 0, "b": 255},
|
||||
"8" : {"r": 255, "g": 0, "b": 125},
|
||||
"9" : {"r": 255, "g": 0, "b": 0},
|
||||
"10" : {"r": 255, "g": 125, "b": 0},
|
||||
"11" : {"r": 255, "g": 255, "b": 0},
|
||||
"12" : {"r": 255, "g": 255, "b": 255},
|
||||
"13" : {"r": 185, "g": 0, "b": 255},
|
||||
"14" : {"r": 255, "g": 185, "b": 0},
|
||||
"15" : {"r": 0, "g": 0, "b": 0},
|
||||
"16" : {"r": 0, "g": 200, "b": 255},
|
||||
"17" : {"r": 175, "g": 175, "b": 175},
|
||||
"18" : {"r": 90, "g": 90, "b": 90},
|
||||
"19" : {"r": 255, "g": 125, "b": 125},
|
||||
"20" : {"r": 0, "g": 175, "b": 75},
|
||||
"21" : {"r": 0, "g": 125, "b": 125},
|
||||
"22" : {"r": 0, "g": 75, "b": 175},
|
||||
"23" : {"r": 75, "g": 0, "b": 175},
|
||||
"24" : {"r": 125, "g": 0, "b": 125},
|
||||
"25" : {"r": 175, "g": 0, "b": 75},
|
||||
"26" : {"r": 175, "g": 75, "b": 0},
|
||||
"27" : {"r": 125, "g": 125, "b": 0},
|
||||
"28" : {"r": 75, "g": 175, "b": 0},
|
||||
"29" : {"r": 255, "g": 75, "b": 0},
|
||||
"30" : {"r": 150, "g": 50, "b": 0},
|
||||
"31" : {"r": 150, "g": 100, "b": 0},
|
||||
"32" : {"r": 100, "g": 150, "b": 0},
|
||||
"33" : {"r": 0, "g": 150, "b": 100},
|
||||
"34" : {"r": 0, "g": 100, "b": 150},
|
||||
"35" : {"r": 100, "g": 0, "b": 150},
|
||||
"36" : {"r": 150, "g": 0, "b": 100},
|
||||
"37" : {"r": 150, "g": 0, "b": 0},
|
||||
"38" : {"r": 0, "g": 150, "b": 0},
|
||||
"39" : {"r": 0, "g": 0, "b": 150},
|
||||
"40" : {"r": 125, "g": 255, "b": 175},
|
||||
"41" : {"r": 125, "g": 125, "b": 255}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue