Move stuff to old folder
12
.env
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// replace with your own PostgreSQL database connection string
|
||||
DATABASE_URL=postgresql://sendou@localhost:5432/sendou_ink_trpc?schema=public
|
||||
|
||||
// these are needed for logging in.
|
||||
// you can get them by making an application on https://discord.com/developers
|
||||
DISCORD_CLIENT_ID=581483359159582722
|
||||
DISCORD_CLIENT_SECRET=qxFxBlALcRsqUG2m7WYLHJ8rzjbddBTx
|
||||
DISCORD_CALLBACK_URL=http://localhost:3001/auth/discord/callback
|
||||
COOKIE_SECRET=secret
|
||||
FRONTEND_URL=http://localhost:3000
|
||||
|
||||
VITE_BACKEND_URL=http://localhost:3001
|
||||
0
.gitignore → old/.gitignore
vendored
|
|
@ -1,8 +1,8 @@
|
|||
import { Router } from "solid-app-router";
|
||||
import type { Component } from "solid-js";
|
||||
import { Routes } from "./Routes";
|
||||
import { Layout } from "./scenes/layout/components/Layout";
|
||||
import { UserProvider } from "./utils/UserContext";
|
||||
import { Layout } from "./old/scenes/layout/components/Layout";
|
||||
import { UserProvider } from "./old/utils/UserContext";
|
||||
|
||||
const App: Component = () => {
|
||||
return (
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
import { Routes as SolidAppRoutes, Route } from "solid-app-router";
|
||||
import { lazy } from "solid-js";
|
||||
import { MapPoolTab } from "./scenes/tournament/components/MapPoolTab";
|
||||
import { TeamsTab } from "./scenes/tournament/components/TeamsTab";
|
||||
import TournamentData from "./scenes/tournament/TournamentPage.data";
|
||||
import { MapPoolTab } from "./old/scenes/tournament/components/MapPoolTab";
|
||||
import { TeamsTab } from "./old/scenes/tournament/components/TeamsTab";
|
||||
import TournamentData from "./old/scenes/tournament/TournamentPage.data";
|
||||
|
||||
const TournamentsPage = lazy(
|
||||
() => import("./scenes/tournament/components/TournamentPage")
|
||||
() => import("./old/scenes/tournament/components/TournamentPage")
|
||||
);
|
||||
|
||||
export function Routes() {
|
||||
0
package-lock.json → old/package-lock.json
generated
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
|
@ -1,4 +1,4 @@
|
|||
import prisma from "../../prisma/client";
|
||||
import prisma from "../../../prisma/client";
|
||||
import type { Strategy as DiscordStrategy } from "passport-discord";
|
||||
|
||||
export async function upsertUser({
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import prisma from "../../prisma/client";
|
||||
import prisma from "../../../prisma/client";
|
||||
|
||||
export async function findTournamentByNameForUrl({
|
||||
organizationNameForUrl,
|
||||
|
|
@ -7,11 +7,11 @@ import session from "express-session";
|
|||
import cookieParser from "cookie-parser";
|
||||
import passport from "passport";
|
||||
import { Strategy as DiscordStrategy } from "passport-discord";
|
||||
import { tournament as tournamentRouter } from "./scenes/tournament/router";
|
||||
import { layout as layoutRouter } from "./scenes/layout/router";
|
||||
import { createContext, createRouter } from "./utils/trpc-server";
|
||||
import { tournament as tournamentRouter } from "./old/scenes/tournament/router";
|
||||
import { layout as layoutRouter } from "./old/scenes/layout/router";
|
||||
import { createContext, createRouter } from "./old/utils/trpc-server";
|
||||
import * as trpcExpress from "@trpc/server/adapters/express/dist/trpc-server-adapters-express.cjs";
|
||||
import { upsertUser } from "./scenes/layout/service";
|
||||
import { upsertUser } from "./old/scenes/layout/service";
|
||||
|
||||
const PORT = 3001;
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { createTRPCClient } from "@trpc/client";
|
||||
import type { inferProcedureOutput } from "@trpc/server";
|
||||
import type { AppRouter } from "../server";
|
||||
import type { AppRouter } from "../../server";
|
||||
import superjson from "superjson";
|
||||
|
||||
// TODO: transformer superjson
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import pkg from "@prisma/client";
|
||||
import { stages as stagesList } from "../utils/constants";
|
||||
import { stages as stagesList } from "../old/utils/constants";
|
||||
const { PrismaClient } = pkg;
|
||||
const prisma = new PrismaClient();
|
||||
import faker from "faker";
|
||||
|
|
|
|||