diff --git a/web/app/Http/Controllers/GamesController.php b/web/app/Http/Controllers/GamesController.php new file mode 100644 index 0000000..fb5ab2f --- /dev/null +++ b/web/app/Http/Controllers/GamesController.php @@ -0,0 +1,27 @@ +first(); + + return response()->json(['available' => $status->operational]) + ->header('Access-Control-Allow-Origin', env('APP_URL')) + ->header('Vary', 'origin') + ->header('Content-Type', 'application/json'); + } +} diff --git a/web/app/Models/Games.php b/web/app/Models/Games.php new file mode 100644 index 0000000..616ab8e --- /dev/null +++ b/web/app/Models/Games.php @@ -0,0 +1,11 @@ + 'boolean', + ]; + + use HasFactory; +} diff --git a/web/database/migrations/2021_10_02_145224_create_webstatus_table.php b/web/database/migrations/2021_10_02_145224_create_webstatus_table.php new file mode 100644 index 0000000..46bb40e --- /dev/null +++ b/web/database/migrations/2021_10_02_145224_create_webstatus_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name'); + $table->boolean('operational')->default(false); + $table->float('responseTime')->default(0); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('web_statuses'); + } +} diff --git a/web/database/migrations/2021_10_02_151112_create_games_table.php b/web/database/migrations/2021_10_02_151112_create_games_table.php new file mode 100644 index 0000000..5855d5f --- /dev/null +++ b/web/database/migrations/2021_10_02_151112_create_games_table.php @@ -0,0 +1,40 @@ +id(); + $table->string('name'); + $table->string('description')->nullable(); + $table->unsignedInteger('creator'); + $table->enum('status', ['unmoderated', 'review', 'deleted'])->default('unmoderated'); + $table->unsignedInteger('genre')->default(0); // bitwise flags + $table->unsignedInteger('allowed_gears')->default(0); // bitwise flags + $table->unsignedInteger('players_ingame')->default(0); + $table->unsignedInteger('visits')->default(0); + $table->unsignedInteger('max_players')->default(0); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('games'); + } +} diff --git a/web/database/seeders/DatabaseSeeder.php b/web/database/seeders/DatabaseSeeder.php index 57b73b5..ed4c823 100644 --- a/web/database/seeders/DatabaseSeeder.php +++ b/web/database/seeders/DatabaseSeeder.php @@ -4,6 +4,8 @@ namespace Database\Seeders; use Illuminate\Database\Seeder; +use Database\Seeders\WebStatusSeeder; + class DatabaseSeeder extends Seeder { /** @@ -13,6 +15,8 @@ class DatabaseSeeder extends Seeder */ public function run() { - // \App\Models\User::factory(10)->create(); + $this->call([ + WebStatusSeeder::class + ]); } } diff --git a/web/database/seeders/WebStatusSeeder.php b/web/database/seeders/WebStatusSeeder.php new file mode 100644 index 0000000..1aae9e7 --- /dev/null +++ b/web/database/seeders/WebStatusSeeder.php @@ -0,0 +1,26 @@ + 'ThumbArbiter' + ]); + + WebStatus::create([ + 'name' => 'GamesArbiter' + ]); + } +} diff --git a/web/public/images/symbols/warning.png b/web/public/images/symbols/warning.png new file mode 100644 index 0000000..53b4368 Binary files /dev/null and b/web/public/images/symbols/warning.png differ diff --git a/web/resources/js/components/Footer.js b/web/resources/js/components/Footer.js index 0e0d301..28576e7 100644 --- a/web/resources/js/components/Footer.js +++ b/web/resources/js/components/Footer.js @@ -21,7 +21,7 @@ const Footer = () => {
Copyright © {CurrentDate.getFullYear()} Graphictoria. All rights reserved.
-Graphictoria is not associated with ROBLOX Corporation. The usage of this website signifies your acceptance of the
Graphictoria is not affiliated with or sponsored by Roblox Corporation. The usage of this website signifies your acceptance of the
+ * Graphictoria is not affiliated with Roblox Corporation.
+* Graphictoria is not affiliated with or sponsored by Roblox Corporation.