@koloseum/utils 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils.js +54 -3
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -336,7 +336,7 @@ export const Utility = {
|
|
|
336
336
|
*/
|
|
337
337
|
getMenuItemUrl: (base, slug) => {
|
|
338
338
|
// Validate base URL
|
|
339
|
-
if (
|
|
339
|
+
if (typeof base !== "string")
|
|
340
340
|
return "";
|
|
341
341
|
// Return URL
|
|
342
342
|
return `${base}${slug && typeof slug === "string" ? `/${slug}` : ""}`;
|
|
@@ -348,7 +348,7 @@ export const Utility = {
|
|
|
348
348
|
*/
|
|
349
349
|
getParentUrl: (base) => {
|
|
350
350
|
// Validate input
|
|
351
|
-
if (
|
|
351
|
+
if (typeof base !== "string")
|
|
352
352
|
return "";
|
|
353
353
|
// Return parent URL
|
|
354
354
|
return base.replace(/\/$/, "").split("/").slice(0, -1).join("/") || "/";
|
|
@@ -971,7 +971,58 @@ export const Utility = {
|
|
|
971
971
|
{
|
|
972
972
|
name: "Savanna FGC",
|
|
973
973
|
description: "Manage fighting games esports data for Savanna FGC.",
|
|
974
|
-
slug: "fgc"
|
|
974
|
+
slug: "fgc",
|
|
975
|
+
tabs: [
|
|
976
|
+
{
|
|
977
|
+
name: "Savanna Circuit",
|
|
978
|
+
description: "Manage competition data for the Savanna Circuit.",
|
|
979
|
+
slug: "league",
|
|
980
|
+
tabs: [
|
|
981
|
+
{
|
|
982
|
+
name: "Rankings",
|
|
983
|
+
description: "Manage rankings for any Savanna Circuit season.",
|
|
984
|
+
slug: "rankings"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
name: "Tournaments",
|
|
988
|
+
description: "Manage tournaments for any Savanna Circuit season.",
|
|
989
|
+
slug: "tournaments",
|
|
990
|
+
tabs: [
|
|
991
|
+
{
|
|
992
|
+
name: "Players",
|
|
993
|
+
description: "Manage Players for any Savanna Circuit tournament.",
|
|
994
|
+
slug: "players"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
name: "Tickets",
|
|
998
|
+
description: "Manage tickets for any Savanna Circuit tournament.",
|
|
999
|
+
slug: "tickets"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
name: "Events",
|
|
1003
|
+
description: "Manage events for any Savanna Circuit tournament.",
|
|
1004
|
+
slug: "events"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
name: "Settings",
|
|
1008
|
+
description: "Manage settings for any Savanna Circuit tournament.",
|
|
1009
|
+
slug: "settings"
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
name: "Settings",
|
|
1015
|
+
description: "Manage settings for any Savanna Circuit season.",
|
|
1016
|
+
slug: "settings"
|
|
1017
|
+
}
|
|
1018
|
+
]
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
name: "Savanna Fight Night",
|
|
1022
|
+
description: "Manage competition data for Savanna Fight Night.",
|
|
1023
|
+
slug: "challenges"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
975
1026
|
},
|
|
976
1027
|
{
|
|
977
1028
|
name: "Hit List",
|