Skip to content

Commit

Permalink
🐩🎮 ↝ [SSG-19]: Cleanup of files & types
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Oct 5, 2024
1 parent e5bff69 commit 0bf744b
Show file tree
Hide file tree
Showing 112 changed files with 336 additions and 1,569 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/deployments/vercel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
80 changes: 0 additions & 80 deletions app/api/citizen/modules/route.ts

This file was deleted.

22 changes: 0 additions & 22 deletions app/api/citizen/zoodex/add/route.ts

This file was deleted.

10 changes: 0 additions & 10 deletions app/api/gameplay/inventory/automatons/modules/route.ts

This file was deleted.

86 changes: 0 additions & 86 deletions app/api/gameplay/inventory/streamlined.ts

This file was deleted.

15 changes: 13 additions & 2 deletions app/api/gameplay/missions/archive/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { NextRequest, NextResponse } from "next/server";
import { MineralDepositsNoAction } from "@/app/components/(structures)/Mining/AvailableDeposits";
import { Mission } from "@/app/components/(structures)/StructuresForMission";
import { MineralDepositsNoAction } from "@/components/(structures)/Mining/AvailableDeposits";

interface UserMissionInstance {
id: number;
Expand All @@ -9,6 +8,18 @@ interface UserMissionInstance {
mission: number;
};

export interface Mission {
id: number;
name: string;
sequence?: number;
description?: string;
rewards?: number[];
classificationModule?: string;
structure?: number;
chapter?: number;
component?: React.ComponentType<any>;
};

const missions: Mission[] = [
{ id: 1, name: "Pick planet", description: "Select your starting planet", rewards: [29] }, // Possibly the user should get something, but really they're already getting a planet, so... | After further consideration for the order of missions, I think that giving the spaceship and then the rover will be a good option
{ id: 2, name: "Complete profile", description: "Fill in your profile data", rewards: [22] }, // Give them a rover/automaton without a location, we'll create a button that keeps track of the item that was created and show the user an option to "place" un-locationised items/structures
Expand Down
13 changes: 12 additions & 1 deletion app/api/gameplay/missions/chapterOne/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { NextRequest, NextResponse } from "next/server";
import { Mission } from "@/app/components/(structures)/StructuresForMission";

export interface Mission {
id: number;
name: string;
sequence?: number;
description?: string;
rewards?: number[];
classificationModule?: string;
structure?: number;
chapter?: number;
component?: React.ComponentType<any>;
};

const chapterOneMissions: Mission[] = [
{
Expand Down
13 changes: 12 additions & 1 deletion app/api/gameplay/missions/classifications/tutorials/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { NextRequest, NextResponse } from "next/server";
import { Mission } from "@/app/components/(structures)/StructuresForMission";

export interface Mission {
id: number;
name: string;
sequence?: number;
description?: string;
rewards?: number[];
classificationModule?: string;
structure?: number;
chapter?: number;
component?: React.ComponentType<any>;
};

const classificationTutorialMissions: Mission[] = [
{
Expand Down
15 changes: 9 additions & 6 deletions app/api/gameplay/missions/route.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { NextRequest, NextResponse } from "next/server";
import { MineralDepositsNoAction } from "@/app/components/(structures)/Mining/AvailableDeposits";
import { Mission } from "@/app/components/(structures)/StructuresForMission";
import { MineralDepositsNoAction } from "@/components/(structures)/Mining/AvailableDeposits";

interface UserMissionInstance {
export interface Mission {
id: number;
user: string;
time_of_completion: string;
mission: number;
name: string;
sequence?: number;
description?: string;
rewards?: number[];
classificationModule?: string;
structure?: number;
chapter?: number;
component?: React.ComponentType<any>;
};

const missions: Mission[] = [
Expand Down
18 changes: 10 additions & 8 deletions app/auth/UserProfileFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import { useProfileContext } from "@/context/UserProfile";
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import { useRouter } from "next/navigation";
import { useEffect, useState } from "react";
import { Mission } from "../components/(structures)/StructuresForMission";

interface UserProfile {
username: string;
full_name: string;
location: number;
id: string;
avatar_url: string;
faction: string;
export interface Mission {
id: number;
name: string;
sequence?: number;
description?: string;
rewards?: number[];
classificationModule?: string;
structure?: number;
chapter?: number;
component?: React.ComponentType<any>;
};

interface User {
Expand Down
Loading

0 comments on commit 0bf744b

Please sign in to comment.