feat: just a bunch of cleanup

- no deduping, ui improvements, general fixups
This commit is contained in:
zkldi
2022-12-22 17:23:37 +00:00
parent 3b37e45335
commit c2bccd64ae
16 changed files with 128 additions and 67 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
REDIRECT_URI: "https://example.com",
},
ARC_AUTH_TOKEN: "unused",
OUR_URL: "https://127.0.0.1:8080/",
OUR_URL: "https://127.0.0.1:8080",
CLIENT_DEV_SERVER: "http://127.0.0.1:3000",
ENABLE_SERVER_HTTPS: true,
OPTIONS_ALWAYS_SUCCEEDS: true,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tachi-server",
"version": "2.2.0",
"version": "2.3.0-dev",
"description": "A score tracking server.",
"main": "./js/main.js",
"files": [
+14 -1
View File
@@ -190,7 +190,20 @@ const err = p(config, {
MAX_QUEST_SUBSCRIPTIONS: p.optional(p.isPositiveInteger),
MAX_FOLLOWING_AMOUNT: p.optional(p.isPositiveInteger),
MAX_RIVALS: p.optional(p.isPositiveInteger),
OUR_URL: "string",
OUR_URL: (self) => {
if (typeof self !== "string") {
return "Expected a string.";
}
if (self.endsWith("/")) {
return `OUR_URL should not end with a trailing slash. Use ${self.substring(
0,
self.length - 1
)} instead.`;
}
return true;
},
INVITE_CODE_CONFIG: p.optional({
BATCH_SIZE: p.isPositiveInteger,
INVITE_CAP: p.isPositiveInteger,