Skip to content

Commit

Permalink
Merge pull request #228 from RL-IDLE/dev
Browse files Browse the repository at this point in the history
Refator
  • Loading branch information
rharkor authored Nov 8, 2023
2 parents 71f9fcc + a868d54 commit dec6b72
Show file tree
Hide file tree
Showing 108 changed files with 2,918 additions and 889 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
echo BASE_URL=${{ vars.BASE_URL }} >> .env
echo PASSWORD_HASHER_SECRET=${{ secrets.PASSWORD_HASHER_SECRET }} >> .env
echo STRIPE_SECRET_KEY=${{ secrets.STRIPE_SECRET_KEY }} >> .env
echo VAPID_PUBLIC_KEY=${{ secrets.VAPID_PUBLIC_KEY }} >> .env
echo VAPID_PRIVATE_KEY=${{ secrets.VAPID_PRIVATE_KEY }} >> .env
- name: Create frontend env
working-directory: frontend
Expand Down
4 changes: 3 additions & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ REDIS_PORT=6379
REDIS_USE_TLS=false
BASE_URL=http://localhost:3000
PASSWORD_HASHER_SECRET=secret
STRIPE_SECRET_KEY=
STRIPE_SECRET_KEY=
VAPID_PUBLIC_KEY=BApXw6Y2bts3HoZdwKHT3lPyTxNaJ2CjezGY-OqwIf59acyWMSO6MXi6A9UM1Ov28HWc5M11qJYg3nY1qo2MWTc
VAPID_PRIVATE_KEY=oyckOJYe9sGLiyKnIKpO3zMtIi7jXEsiIHOUJjYHAsc
4 changes: 3 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ lerna-debug.log*
.env*
!.env.example

unq.sh
unq.sh

tmp.ts
1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"socket.io": "^4.7.2",
"stripe": "^14.3.0",
"typeorm": "^0.3.17",
"web-push": "^3.6.6",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Alpha_0001.ogg
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Aurora_0002.ogg
Binary file not shown.
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_BeatS_0004.ogg
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Bubbles_0001.ogg
Binary file not shown.
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Clown_0002.ogg
Binary file not shown.
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Cupid_0001.ogg
Binary file not shown.
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Grass_0003.ogg
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Ink_0001.ogg
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Quasar_0001.ogg
Binary file not shown.
Binary file added backend/public/boosts/SFX_Boost_Taco_0007.ogg
Binary file not shown.
Binary file not shown.
Binary file added backend/public/emeralds/after-pay.ogg
Binary file not shown.
Binary file added backend/public/items/buy/SFX_UI_MainMenu_0025.ogg
Binary file not shown.
Binary file added backend/public/items/buy/SFX_UI_MainMenu_0026.ogg
Binary file not shown.
Binary file added backend/public/items/buy/SFX_UI_MainMenu_0027.ogg
Binary file not shown.
Binary file not shown.
Binary file added backend/public/items/buy/SFX_UI_MainMenu_0031.ogg
Binary file not shown.
Binary file added backend/public/logo.webp
Binary file not shown.
Binary file added backend/public/prestige/pass-prestige.ogg
Binary file not shown.
Binary file added backend/public/ui/SFX_UI_MainMenu_0002.ogg
Binary file not shown.
Binary file added backend/public/ui/SFX_UI_MainMenu_0003.ogg
Binary file not shown.
Binary file added backend/public/ui/SFX_UI_Tournaments_0007.ogg
Binary file not shown.
Binary file added backend/public/ui/navbar.ogg
Binary file not shown.
5 changes: 0 additions & 5 deletions backend/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@ export default [
serveRoot: '/public',
}),
];

const configService = new ConfigService();
export const BACKHEALTH_API_KEY =
configService.get<string>('BACKHEALTH_API_KEY');
export const ENVIRONMENT = configService.getOrThrow<string>('ENV');
23 changes: 23 additions & 0 deletions backend/src/database/migrations/1699091200029-itemUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class ItemUrl1699091200029 implements MigrationInterface {
name = 'ItemUrl1699091200029';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "item" DROP COLUMN "image"`);
await queryRunner.query(
`ALTER TABLE "item" ADD "url" character varying NOT NULL DEFAULT ''`,
);
await queryRunner.query(
`ALTER TABLE "item" ADD "kind" character varying NOT NULL DEFAULT 'car'`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "item" DROP COLUMN "kind"`);
await queryRunner.query(`ALTER TABLE "item" DROP COLUMN "url"`);
await queryRunner.query(
`ALTER TABLE "item" ADD "image" character varying NOT NULL`,
);
}
}
21 changes: 21 additions & 0 deletions backend/src/database/migrations/1699354231982-subscriptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class Subscriptions1699354231982 implements MigrationInterface {
name = 'Subscriptions1699354231982';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "subscription" ("createdAt" TIMESTAMP NOT NULL DEFAULT NOW(), "updatedAt" TIMESTAMP NOT NULL DEFAULT now(), "deletedAt" TIMESTAMP, "id" uuid NOT NULL DEFAULT uuid_generate_v4(), "subscription" jsonb NOT NULL, "userId" uuid, CONSTRAINT "PK_8c3e00ebd02103caa1174cd5d9d" PRIMARY KEY ("id"))`,
);
await queryRunner.query(
`ALTER TABLE "subscription" ADD CONSTRAINT "FK_cc906b4bc892b048f1b654d2aa0" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "subscription" DROP CONSTRAINT "FK_cc906b4bc892b048f1b654d2aa0"`,
);
await queryRunner.query(`DROP TABLE "subscription"`);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class PassiveNotification1699363937537 implements MigrationInterface {
name = 'PassiveNotification1699363937537';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "user" ADD "passiveNotificationSent" boolean NOT NULL DEFAULT false`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "user" DROP COLUMN "passiveNotificationSent"`,
);
}
}
Loading

0 comments on commit dec6b72

Please sign in to comment.