mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 07:12:36 -05:00
production
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
import {
|
||||
Box,
|
||||
Container,
|
||||
Flex,
|
||||
useColorModeValue,
|
||||
useToast,
|
||||
} from "@chakra-ui/react";
|
||||
import { Container, Flex, useColorModeValue, useToast } from "@chakra-ui/react";
|
||||
import { t } from "@lingui/macro";
|
||||
import { AppProps } from "next/app";
|
||||
import { useState } from "react";
|
||||
@@ -48,14 +42,6 @@ const Layout = ({ Component, pageProps }: AppProps) => {
|
||||
>
|
||||
<TopNav />
|
||||
<IconNavBar />
|
||||
{process.env.NODE_ENV === "production" && (
|
||||
<Box bg={bannerColor} p={2} textAlign="center">
|
||||
This is the preview version.{" "}
|
||||
<span style={{ color: "red" }}>Database will be reset</span>. For
|
||||
anything other than testing please go to:{" "}
|
||||
<a href="https://sendou.ink">https://sendou.ink</a>
|
||||
</Box>
|
||||
)}
|
||||
<Flex flexDirection="column" minH="100vh" pt="1rem">
|
||||
<Container maxWidth="100ch">
|
||||
<Component {...pageProps} />
|
||||
|
||||
@@ -4,8 +4,7 @@ import path from "path";
|
||||
import { getWeaponNormalized } from "../../lib/lists/weapons";
|
||||
import prisma from "../client";
|
||||
|
||||
//const files = ["P_EU", "P_US", "T_EU", "T_US", "P_JP" /*"T_JP"*/];
|
||||
const files = ["T_JP", "P_JP"];
|
||||
const files = ["P_EU", "P_US", "T_EU", "T_US", "P_JP", "T_JP"];
|
||||
|
||||
async function main() {
|
||||
for (const file of files) {
|
||||
@@ -15,7 +14,7 @@ async function main() {
|
||||
);
|
||||
const league = JSON.parse(data.toString());
|
||||
|
||||
for (const rotation of league.slice(0, Math.ceil(league.length / 2))) {
|
||||
for (const rotation of league) {
|
||||
//Math.ceil(league.length / 2), league.length
|
||||
for (const ranking of rotation.rankings) {
|
||||
if (ranking.cheater) continue;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
import { getWeaponNormalized } from "../../lib/lists/weapons";
|
||||
import prisma from "../client";
|
||||
import cb from "./data/october_clam_blitz_2020.json";
|
||||
import rm from "./data/october_rainmaker_2020.json";
|
||||
import sz from "./data/october_splat_zones_2020.json";
|
||||
import tc from "./data/october_tower_control_2020.json";
|
||||
import cb from "./data/november_clam_blitz_2020.json";
|
||||
import rm from "./data/november_rainmaker_2020.json";
|
||||
import sz from "./data/november_splat_zones_2020.json";
|
||||
import tc from "./data/november_tower_control_2020.json";
|
||||
|
||||
const MONTH = 10;
|
||||
const MONTH = 11;
|
||||
const YEAR = 2020;
|
||||
|
||||
const filterJson = (result: any) => !result.cheater;
|
||||
|
||||
Reference in New Issue
Block a user