1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-09-28 19:27:08 +02:00

V2 (Laravel re-make)

V2 (Laravel re-make)
This commit is contained in:
cp6 2022-03-06 02:22:16 +11:00
parent 347d1a3186
commit d13e170f22
190 changed files with 17361 additions and 24 deletions

View File

@ -7,18 +7,8 @@ use Illuminate\Database\Eloquent\Factories\Factory;
class ServerFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Server::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{

View File

@ -8,18 +8,8 @@ use Illuminate\Support\Str;
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [

View File

@ -14,13 +14,12 @@ class CreateServersTable extends Migration
public function up()
{
Schema::create('servers', function (Blueprint $table) {
$table->char('id', 8)->unique()->default(null);
$table->char('id', 8)->primary()->default(null);
$table->tinyInteger('active')->default(1);
$table->tinyInteger('show_public')->default(0);
$table->string('hostname');
$table->string('ns1')->nullable()->default(null);
$table->string('ns2')->nullable()->default(null);
$table->string('ipv4')->nullable()->default(null);
$table->string('ipv6')->nullable()->default(null);
$table->tinyInteger('server_type')->default(1);
$table->integer('os_id')->default(0);
$table->integer('provider_id')->default(9999);

View File

@ -16,6 +16,10 @@ class CreateOsTable extends Migration
Schema::create('os', function (Blueprint $table) {
$table->id()->autoIncrement();
$table->string('name')->unique();
<<<<<<< HEAD
=======
$table->timestamps();
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
});
}

View File

@ -14,7 +14,11 @@ class CreateDomainsTable extends Migration
public function up()
{
Schema::create('domains', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('id', 8)->unique()->default(null);
=======
$table->char('id', 8)->primary()->default(null);
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->string('domain');
$table->tinyInteger('active')->default(1);
$table->string('extension');

View File

@ -15,7 +15,11 @@ class CreateLabelsTable extends Migration
{
Schema::create('labels', function (Blueprint $table) {
$table->char('id', 8)->primary()->default(null);
<<<<<<< HEAD
$table->string('label');
=======
$table->string('label')->unique();
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->timestamps();
});
}

View File

@ -14,11 +14,17 @@ class CreateSharedsTable extends Migration
public function up()
{
Schema::create('shared_hosting', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('id', 8)->unique();
$table->tinyInteger('active')->default(1);
$table->string('main_domain');
$table->tinyInteger('has_dedicated_ip')->default(0);
$table->string('ip')->nullable()->default(null);
=======
$table->char('id', 8)->primary();
$table->tinyInteger('active')->default(1);
$table->string('main_domain');
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->string('shared_type')->nullable();
$table->integer('provider_id')->default(9999);
$table->integer('location_id')->default(9999);

View File

@ -14,11 +14,17 @@ class CreateResellersTable extends Migration
public function up()
{
Schema::create('reseller_hosting', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('id', 8)->unique();
$table->tinyInteger('active')->default(1);
$table->string('main_domain');
$table->tinyInteger('has_dedicated_ip')->default(0);
$table->string('ip')->nullable()->default(null);
=======
$table->char('id', 8)->primary();
$table->tinyInteger('active')->default(1);
$table->string('main_domain');
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->integer('accounts')->default(1);
$table->string('reseller_type')->nullable();
$table->integer('provider_id')->default(9999);

View File

@ -13,7 +13,11 @@ class CreateYabsTable extends Migration
public function up()
{
Schema::create('yabs', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('id', 8)->unique();
=======
$table->char('id', 8)->primary();
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->char('server_id', 8);
$table->boolean('has_ipv6')->default(false);
$table->boolean('aes')->default(false);
@ -21,7 +25,11 @@ class CreateYabsTable extends Migration
$table->dateTime('output_date');
$table->tinyInteger('cpu_cores');
$table->float('cpu_freq');
<<<<<<< HEAD
$table->string('cpu');
=======
$table->string('cpu_model');
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->float('ram');
$table->char('ram_type', 2);
$table->float('ram_mb');
@ -32,6 +40,10 @@ class CreateYabsTable extends Migration
$table->integer('gb5_multi');
$table->integer('gb5_id');
$table->timestamps();
<<<<<<< HEAD
=======
$table->unique(['id','server_id'], 'uni');
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
});
}

View File

@ -12,7 +12,11 @@ class CreateDiskSpeedTable extends Migration
public function up()
{
Schema::create('disk_speed', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('id', 8)->unique();
=======
$table->char('id', 8)->primary();
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->char('server_id',8);
$table->float('d_4k');
$table->char('d_4k_type',4);

View File

@ -22,6 +22,10 @@ class CreateNetworkSpeedTable extends Migration
$table->char('receive_type', 4);
$table->float('receive_as_mbps');
$table->timestamps();
<<<<<<< HEAD
=======
$table->unique(['id','server_id', 'location'], 'uni');
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
});
}

View File

@ -14,8 +14,14 @@ class CreateLabelsAssignedTable extends Migration
public function up()
{
Schema::create('labels_assigned', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('label_id', 8)->unique();
$table->char('service_id', 8);
=======
$table->char('label_id', 8);
$table->char('service_id', 8);
$table->unique(['label_id','service_id'], 'uni');
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
});
}

View File

@ -14,7 +14,7 @@ class CreateSettingsTable extends Migration
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->integer('id')->default(1)->unique();
$table->integer('id')->default(1)->primary();
$table->boolean('show_versions_footer')->default(true);
$table->boolean('show_servers_public')->default(false);
$table->boolean('show_server_value_ip')->default(false);

View File

@ -14,10 +14,17 @@ class CreateMiscsTable extends Migration
public function up()
{
Schema::create('misc_services', function (Blueprint $table) {
<<<<<<< HEAD
$table->char('id', 8)->unique();
$table->string('name');
$table->tinyInteger('active')->default(1);
$table->date('owned_since');
=======
$table->char('id', 8)->primary();
$table->string('name');
$table->tinyInteger('active')->default(1);
$table->date('owned_since')->nullable();
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$table->timestamps();
});
}
@ -31,4 +38,8 @@ class CreateMiscsTable extends Migration
{
Schema::dropIfExists('misc_services');
}
<<<<<<< HEAD
};
=======
}
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157

View File

@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateIPsTable extends Migration
{
public function up()
{
Schema::create('ips', function (Blueprint $table) {
$table->char('id', 8)->primary();
$table->char('service_id', 8);
$table->string('address');
$table->tinyInteger('is_ipv4')->default(1);
$table->tinyInteger('active')->default(1);
$table->timestamps();
$table->unique(['service_id','address'], 'uni');
});
}
public function down()
{
Schema::dropIfExists('ips');
}
}

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->string('default_currency')->default('USD');
$table->integer('default_server_os')->default(20);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
};

View File

@ -6,6 +6,7 @@ use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Seed the application's database.
*
@ -16,12 +17,23 @@ class DatabaseSeeder extends Seeder
\App\Models\User::factory(1)->create();
//\App\Models\Server::factory(10)->create();
//\App\Models\Domains::factory(4)->create();
=======
public function run()
{
//\App\Models\User::factory(1)->create();//Disable demo first user creation
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
$this->call(SettingsSeeder::class);
$this->call(ProvidersSeeder::class);
$this->call(LocationsSeeder::class);
$this->call(OsSeeder::class);
$this->call(LabelsSeeder::class);
<<<<<<< HEAD
$this->call(DomainsSeeder::class);
$this->call(ServersSeeder::class);
=======
//$this->call(DomainsSeeder::class);
//$this->call(ServersSeeder::class);
//$this->call(SharedSeeder::class);
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
}
}

View File

@ -9,11 +9,14 @@ use Illuminate\Support\Str;
class DomainsSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
* @return void
*/
=======
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
public function run()
{
$id1 = Str::random(8);
@ -26,7 +29,11 @@ class DomainsSeeder extends Seeder
"extension" => "ai",
"provider_id" => 59,
"owned_since" => '2013-01-12',
<<<<<<< HEAD
//"next_due_date" => Carbon::now()->addDays(30)->format('Y-m-d')
=======
"created_at" => Carbon::now()
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
],
[
"id" => $id2,
@ -34,7 +41,11 @@ class DomainsSeeder extends Seeder
"extension" => "club",
"provider_id" => 59,
"owned_since" => '2016-04-25',
<<<<<<< HEAD
//"next_due_date" => Carbon::now()->addDays(30)->format('Y-m-d')
=======
"created_at" => Carbon::now()
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
]
];

View File

@ -8,11 +8,14 @@ use Illuminate\Support\Str;
class LabelsSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
* @return void
*/
=======
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
public function run()
{
$os = [

View File

@ -7,11 +7,14 @@ use Illuminate\Support\Facades\DB;
class LocationsSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
* @return void
*/
=======
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
public function run()
{
$locations = array(

View File

@ -2,11 +2,16 @@
namespace Database\Seeders;
<<<<<<< HEAD
=======
use Carbon\Carbon;
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class OsSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
@ -43,6 +48,39 @@ class OsSeeder extends Seeder
["name" => "Windows 10"],
["name" => "Custom"],
["name" => "Other"]
=======
public function run()
{
$os = [
["name" => "None", "created_at" => Carbon::now()],
["name" => "Centos 7", "created_at" => Carbon::now()],
["name" => "Centos 8", "created_at" => Carbon::now()],
["name" => "Centos", "created_at" => Carbon::now()],
["name" => "Debian 9", "created_at" => Carbon::now()],
["name" => "Debian 10", "created_at" => Carbon::now()],
["name" => "Debian", "created_at" => Carbon::now()],
["name" => "Fedora 32", "created_at" => Carbon::now()],
["name" => "Fedora 33", "created_at" => Carbon::now()],
["name" => "Fedora", "created_at" => Carbon::now()],
["name" => "FreeBSD 11.4", "created_at" => Carbon::now()],
["name" => "FreeBSD 12.1", "created_at" => Carbon::now()],
["name" => "FreeBSD", "created_at" => Carbon::now()],
["name" => "OpenBSD 6.7", "created_at" => Carbon::now()],
["name" => "OpenBSD 6.8", "created_at" => Carbon::now()],
["name" => "OpenBSD", "created_at" => Carbon::now()],
["name" => "Ubuntu 16.04", "created_at" => Carbon::now()],
["name" => "Ubuntu 18.04", "created_at" => Carbon::now()],
["name" => "Ubuntu 20.04", "created_at" => Carbon::now()],
["name" => "Ubuntu 20.10", "created_at" => Carbon::now()],
["name" => "Ubuntu", "created_at" => Carbon::now()],
["name" => "Windows Server 2008", "created_at" => Carbon::now()],
["name" => "Windows Server 2012", "created_at" => Carbon::now()],
["name" => "Windows Server 2016", "created_at" => Carbon::now()],
["name" => "Windows Server 2019", "created_at" => Carbon::now()],
["name" => "Windows 10", "created_at" => Carbon::now()],
["name" => "Custom", "created_at" => Carbon::now()],
["name" => "Other", "created_at" => Carbon::now()]
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
];
DB::table('os')->insert($os);

View File

@ -9,11 +9,14 @@ use Illuminate\Support\Str;
class ProvidersSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
* @return void
*/
=======
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
public function run()
{

View File

@ -9,11 +9,14 @@ use Illuminate\Support\Str;
class ServersSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
* @return void
*/
=======
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
public function run()
{
$id1 = Str::random(8);
@ -25,9 +28,14 @@ class ServersSeeder extends Seeder
"hostname" => "la.node.ai",
"os_id" => 20,
"provider_id" => 90,
<<<<<<< HEAD
"location_id" => 34,
"bandwidth" => 1000,
"ipv4" => '127.0.0.1',
=======
"location_id" => 35,
"bandwidth" => 1000,
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
"cpu" => 1,
"ram" => 512,
"ram_type" => 'MB',
@ -44,9 +52,14 @@ class ServersSeeder extends Seeder
"hostname" => "sg.node.ai",
"os_id" => 20,
"provider_id" => 90,
<<<<<<< HEAD
"location_id" => 70,
"bandwidth" => 2000,
"ipv4" => '127.0.0.1',
=======
"location_id" => 71,
"bandwidth" => 2000,
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
"cpu" => 1,
"ram" => 2048,
"ram_type" => 'MB',
@ -88,5 +101,29 @@ class ServersSeeder extends Seeder
];
DB::table('pricings')->insert($pricing);
<<<<<<< HEAD
=======
$ips = [
[
"id" => Str::random(8),
"service_id" => $id1,
"address" => '127.0.0.1',
"is_ipv4" => 1,
"active" => 1,
"created_at" => Carbon::now()
],
[
"id" => Str::random(8),
"service_id" => $id2,
"address" => '127.0.0.1',
"is_ipv4" => 1,
"active" => 1,
"created_at" => Carbon::now()
],
];
DB::table('ips')->insert($ips);
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
}
}

View File

@ -8,11 +8,14 @@ use Illuminate\Support\Facades\DB;
class SettingsSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
* @return void
*/
=======
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
public function run()
{
$settings = [

View File

@ -9,6 +9,7 @@ use Illuminate\Support\Str;
class SharedSeeder extends Seeder
{
<<<<<<< HEAD
/**
* Run the database seeds.
*
@ -31,5 +32,54 @@ class SharedSeeder extends Seeder
];
DB::table('shareds')->insert($shared);*/
=======
public function run()
{
$id = Str::random(8);
$shared = [
[
"id" => $id,
"active" => 1,
"main_domain" => "node.ai",
"shared_type" => "Direct Admin",
"bandwidth" => 3000,
"disk" => 45,
"disk_type" => 'GB',
"disk_as_gb" => 45,
"domains_limit" => 10,
"subdomains_limit" => 10,
"ftp_limit" => 5,
"email_limit" => 5,
"db_limit" => 2,
"provider_id" => 90,
"location_id" => 71,
"owned_since" => Carbon::now()->subDays(220),
"created_at" => Carbon::now(),
"updated_at" => Carbon::now(),
]
];
DB::table('shared_hosting')->insert($shared);
$pricing = [
[
"service_id" => $id,
"active" => 1,
"service_type" => 2,
"currency" => "USD",
"price" => 60.00,
"term" => 4,
"as_usd" => 60.00,
"usd_per_month" => 5.00,
"next_due_date" => Carbon::now()->addDays(12)->format('Y-m-d'),
"created_at" => Carbon::now(),
"updated_at" => Carbon::now(),
]
];
DB::table('pricings')->insert($pricing);
>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157
}
}

21
public/.htaccess Normal file
View File

@ -0,0 +1,21 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

BIN
public/css/app.css vendored Normal file

Binary file not shown.

BIN
public/css/bootstrap.min.css vendored Normal file

Binary file not shown.

BIN
public/css/datatables.bootstrap.min.css vendored Normal file

Binary file not shown.

BIN
public/css/fa.min.css vendored Normal file

Binary file not shown.

0
public/favicon.ico Normal file
View File

55
public/index.php Normal file
View File

@ -0,0 +1,55 @@
<?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is maintenance / demo mode via the "down" command we
| will require this file so that any prerendered template can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
require __DIR__.'/../storage/framework/maintenance.php';
}
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/
require __DIR__.'/../vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
$request = Request::capture()
))->send();
$kernel->terminate($request, $response);

BIN
public/js/addService.js vendored Normal file

Binary file not shown.

BIN
public/js/app.js vendored Normal file

Binary file not shown.

BIN
public/js/axios.min.js vendored Normal file

Binary file not shown.

BIN
public/js/bootstrap.min.js vendored Normal file

Binary file not shown.

BIN
public/js/datatables.bootstrap5.min.js vendored Normal file

Binary file not shown.

BIN
public/js/datatables.min.js vendored Normal file

Binary file not shown.

BIN
public/js/jquery.min.js vendored Normal file

Binary file not shown.

BIN
public/js/vue.min.js vendored Normal file

Binary file not shown.

4
public/mix-manifest.json Normal file
View File

@ -0,0 +1,4 @@
{
"/js/app.js": "/js/app.js",
"/css/app.css": "/css/app.css"
}

2
public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow:

28
public/web.config Normal file
View File

@ -0,0 +1,28 @@
<!--
Rewrites requires Microsoft URL Rewrite Module for IIS
Download: https://www.microsoft.com/en-us/download/details.aspx?id=47337
Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules
-->
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 730 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 896 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

63
public/yabsFromForm.txt Normal file
View File

@ -0,0 +1,63 @@
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2021-12-28 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Sat 05 Feb 2022 02:54:48 AM CET
Basic System Information:
---------------------------------
Processor : AMD Ryzen 9 3900X 12-Core Processor
CPU cores : 2 @ 3792.874 MHz
AES-NI : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM : 3.8 GiB
Swap : 0.0 KiB
Disk : 39.3 GiB
fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k (IOPS) | 64k (IOPS)
------ | --- ---- | ---- ----
Read | 174.73 MB/s (43.6k) | 979.69 MB/s (15.3k)
Write | 175.19 MB/s (43.7k) | 984.85 MB/s (15.3k)
Total | 349.93 MB/s (87.4k) | 1.96 GB/s (30.6k)
| |
Block Size | 512k (IOPS) | 1m (IOPS)
------ | --- ---- | ---- ----
Read | 571.27 MB/s (1.1k) | 590.50 MB/s (576)
Write | 601.62 MB/s (1.1k) | 629.83 MB/s (615)
Total | 1.17 GB/s (2.2k) | 1.22 GB/s (1.1k)
iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider | Location (Link) | Send Speed | Recv Speed
| | |
Clouvider | London, UK (10G) | 709 Mbits/sec | 882 Mbits/sec
Online.net | Paris, FR (10G) | 570 Mbits/sec | 786 Mbits/sec
WorldStream | The Netherlands (10G) | 886 Mbits/sec | 933 Mbits/sec
WebHorizon | Singapore (400M) | 278 Mbits/sec | 478 Mbits/sec
Clouvider | NYC, NY, US (10G) | 260 Mbits/sec | 243 Mbits/sec
Velocity Online | Tallahassee, FL, US (10G) | 227 Mbits/sec | 317 Mbits/sec
Clouvider | Los Angeles, CA, US (10G) | 255 Mbits/sec | 288 Mbits/sec
Iveloz Telecom | Sao Paulo, BR (2G) | 110 Mbits/sec | 281 Mbits/sec
iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider | Location (Link) | Send Speed | Recv Speed
| | |
Clouvider | London, UK (10G) | 706 Mbits/sec | 854 Mbits/sec
Online.net | Paris, FR (10G) | 591 Mbits/sec | 760 Mbits/sec
WorldStream | The Netherlands (10G) | 867 Mbits/sec | 904 Mbits/sec
WebHorizon | Singapore (400M) | 207 Mbits/sec | 502 Mbits/sec
Clouvider | NYC, NY, US (10G) | 302 Mbits/sec | 201 Mbits/sec
Clouvider | Los Angeles, CA, US (10G) | 169 Mbits/sec | 450 Mbits/sec
Geekbench 5 Benchmark Test:
---------------------------------
Test | Value
|
Single Core | 1276
Multi Core | 2394
Full Test | https://browser.geekbench.com/v5/cpu/12590829

3
resources/css/app.css vendored Normal file
View File

@ -0,0 +1,3 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

6
resources/js/app.js vendored Normal file
View File

@ -0,0 +1,6 @@
require('./bootstrap');
import Alpine from 'alpinejs';
window.Alpine = Alpine;
Alpine.start();

32
resources/js/bootstrap.js vendored Normal file
View File

@ -0,0 +1,32 @@
window._ = require('lodash');
window.Vue = require('vue');
try {
require('bootstrap');
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });

View File

@ -0,0 +1,23 @@
<template>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Example Component</div>
<div class="card-body">
I'm an example component.
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
mounted() {
console.log('Component mounted.')
}
}
</script>

View File

@ -0,0 +1,20 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'password' => 'The provided password is incorrect.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];

View File

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Previous',
'next' => 'Next &raquo;',
];

View File

@ -0,0 +1,22 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'reset' => 'Your password has been reset!',
'sent' => 'We have emailed your password reset link!',
'throttled' => 'Please wait before retrying.',
'token' => 'This password reset token is invalid.',
'user' => "We can't find a user with that email address.",
];

View File

@ -0,0 +1,152 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.',
],
'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
],
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'multiple_of' => 'The :attribute must be a multiple of :value.',
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'password' => 'The password is incorrect.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'starts_with' => 'The :attribute must start with one of the following: :values.',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [],
];

7
resources/sass/_variables.scss vendored Normal file
View File

@ -0,0 +1,7 @@
// Body
$body-bg: #f8fafc;
// Typography
$font-family-sans-serif: 'Nunito', sans-serif;
$font-size-base: 0.9rem;
$line-height-base: 1.6;

8
resources/sass/app.scss vendored Normal file
View File

@ -0,0 +1,8 @@
// Fonts
@import url('https://fonts.googleapis.com/css?family=Nunito');
// Variables
@import 'variables';
// Bootstrap
@import '~bootstrap/scss/bootstrap';

View File

@ -0,0 +1,55 @@
@section('title') {{'Edit account'}} @endsection
<x-app-layout>
<x-slot name="header">
Edit account
</x-slot>
<div class="container">
<x-card class="shadow mt-3">
@if ($message = Session::get('success'))
<div class="alert alert-success" role="alert">
<p class="my-1">{{ $message }}</p>
</div>
@endif
<form action="{{ route('account.update',Auth::user()->id) }}" method="POST">
@csrf
@method('PUT')
<div class="row mt-2">
<div class="col-12 col-md-4 mb-3">
<x-text-input>
<x-slot name="title">Name</x-slot>
<x-slot name="name">name</x-slot>
<x-slot name="max">255</x-slot>
<x-slot name="value">{{Auth::user()->name}}</x-slot>
</x-text-input>
</div>
</div>
<div class="row mt-2">
<div class="col-12 col-md-4 mb-3">
<x-text-input>
<x-slot name="title">Email</x-slot>
<x-slot name="name">email</x-slot>
<x-slot name="max">255</x-slot>
<x-slot name="value">{{Auth::user()->email}}</x-slot>
</x-text-input>
</div>
</div>
<div class="row my-3">
<div class="col-12 col-md-8">
API key: <code>{{ Auth::user()->api_token }}</code>
</div>
</div>
<div class="row">
<div class="col-12 col-lg-4">
<x-submit-button>Update account</x-submit-button>
</div>
</div>
</form>
</x-card>
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
<p class="text-muted mt-4 text-end"><small>@if(isset($timer))@endif Built on
Laravel
v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})</small></p>
@endif
</div>
</x-app-layout>

View File

@ -0,0 +1,36 @@
<x-guest-layout>
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>
<div class="mb-4 text-sm text-gray-600">
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
</div>
<!-- Validation Errors -->
<x-auth-validation-errors class="mb-4" :errors="$errors" />
<form method="POST" action="{{ route('password.confirm') }}">
@csrf
<!-- Password -->
<div>
<x-label for="password" :value="__('Password')" />
<x-input id="password" class="block mt-1 w-full"
type="password"
name="password"
required autocomplete="current-password" />
</div>
<div class="flex justify-end mt-4">
<x-button>
{{ __('Confirm') }}
</x-button>
</div>
</form>
</x-auth-card>
</x-guest-layout>

View File

@ -0,0 +1,36 @@
<x-guest-layout>
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>
<div class="mb-4 text-sm text-gray-600">
{{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }}
</div>
<!-- Session Status -->
<x-auth-session-status class="mb-4" :status="session('status')" />
<!-- Validation Errors -->
<x-auth-validation-errors class="mb-4" :errors="$errors" />
<form method="POST" action="{{ route('password.email') }}">
@csrf
<!-- Email Address -->
<div>
<x-label for="email" :value="__('Email')" />
<x-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus />
</div>
<div class="flex items-center justify-end mt-4">
<x-button>
{{ __('Email Password Reset Link') }}
</x-button>
</div>
</form>
</x-auth-card>
</x-guest-layout>

View File

@ -0,0 +1,44 @@
@section('title') {{'Login'}} @endsection
<x-guest-layout>
<x-auth-card>
<!-- Session Status -->
<x-auth-session-status class="mb-4" :status="session('status')"/>
<!-- Validation Errors -->
<x-auth-validation-errors class="mb-4" :errors="$errors"/>
<h3 class="text-center mb-4">My idlers</h3>
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="form-floating mb-3">
<x-label for="email" :value="__('Email')"/>
<x-input id="email" class="form-control" type="email" name="email" :value="old('email')" required
autofocus/>
</div>
<div class="form-floating mb-3">
<x-label for="password" :value="__('Password')"/>
<x-input id="password" class="form-control"
type="password"
name="password"
required autocomplete="current-password"/>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" value="remember-me" id="remember-me">
<label class="form-check-label" for="remember-me">
Remember me
</label>
</div>
@if (Route::has('password.request'))
<a class="text-decoration-none" href="{{ route('password.request') }}">
{{ __('Forgot your password?') }}
</a>
@endif
<x-button class="mt-3 w-100 btn btn-lg btn-primary">
{{ __('Login') }}
</x-button>
</form>
</x-auth-card>
</x-guest-layout>

View File

@ -0,0 +1,49 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Confirm Password') }}</div>
<div class="card-body">
{{ __('Please confirm your password before continuing.') }}
<form method="POST" action="{{ route('password.confirm') }}">
@csrf
<div class="row mb-3">
<label for="password" class="col-md-4 col-form-label text-md-end">{{ __('Password') }}</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row mb-0">
<div class="col-md-8 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Confirm Password') }}
</button>
@if (Route::has('password.request'))
<a class="btn btn-link" href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,47 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reset Password') }}</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<form method="POST" action="{{ route('password.email') }}">
@csrf
<div class="row mb-3">
<label for="email" class="col-md-4 col-form-label text-md-end">{{ __('Email Address') }}</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Send Password Reset Link') }}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,65 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reset Password') }}</div>
<div class="card-body">
<form method="POST" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="row mb-3">
<label for="email" class="col-md-4 col-form-label text-md-end">{{ __('Email Address') }}</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row mb-3">
<label for="password" class="col-md-4 col-form-label text-md-end">{{ __('Password') }}</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row mb-3">
<label for="password-confirm" class="col-md-4 col-form-label text-md-end">{{ __('Confirm Password') }}</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
</div>
</div>
<div class="row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Reset Password') }}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,60 @@
@section('title') {{'Register'}} @endsection
<x-guest-layout>
<x-auth-card>
<!-- Validation Errors -->
<x-auth-validation-errors class="mb-4" :errors="$errors"/>
<h3 class="text-center mb-4">My idlers Register</h3>
<form method="POST" action="{{ route('register') }}">
@csrf
<!-- Name -->
<div class="form-floating mb-3">
<x-label for="name" :value="__('Name')"/>
<x-input id="name" class="form-control " type="text" name="name" :value="old('name')" required
autofocus/>
</div>
<!-- Email Address -->
<div class="form-floating mb-3">
<x-label for="email" :value="__('Email')"/>
<x-input id="email" class="form-control" type="email" name="email" :value="old('email')" required
autofocus/>
</div>
<!-- Password -->
<div class="form-floating mb-3">
<x-label for="password" :value="__('Password')"/>
<x-input id="password" class="form-control"
type="password"
name="password"
required autocomplete="new-password"/>
</div>
<!-- Confirm Password -->
<div class="form-floating mb-3">
<x-label for="password_confirmation" :value="__('Confirm Password')"/>
<x-input id="password_confirmation" class="form-control"
type="password"
name="password_confirmation" required/>
</div>
<div class="row mt-3">
<div class="col-12">
<a class="text-decoration-none" href="{{ route('login') }}">
{{ __('Already registered?') }}
</a>
</div>
<div class="col-12">
<x-button class="mt-3 w-100 btn btn-lg btn-primary">
{{ __('Register') }}
</x-button>
</div>
</div>
</form>
</x-auth-card>
</x-guest-layout>

View File

@ -0,0 +1,48 @@
<x-guest-layout>
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>
<!-- Validation Errors -->
<x-auth-validation-errors class="mb-4" :errors="$errors" />
<form method="POST" action="{{ route('password.update') }}">
@csrf
<!-- Password Reset Token -->
<input type="hidden" name="token" value="{{ $request->route('token') }}">
<!-- Email Address -->
<div>
<x-label for="email" :value="__('Email')" />
<x-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus />
</div>
<!-- Password -->
<div class="mt-4">
<x-label for="password" :value="__('Password')" />
<x-input id="password" class="block mt-1 w-full" type="password" name="password" required />
</div>
<!-- Confirm Password -->
<div class="mt-4">
<x-label for="password_confirmation" :value="__('Confirm Password')" />
<x-input id="password_confirmation" class="block mt-1 w-full"
type="password"
name="password_confirmation" required />
</div>
<div class="flex items-center justify-end mt-4">
<x-button>
{{ __('Reset Password') }}
</x-button>
</div>
</form>
</x-auth-card>
</x-guest-layout>

View File

@ -0,0 +1,39 @@
<x-guest-layout>
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500" />
</a>
</x-slot>
<div class="mb-4 text-sm text-gray-600">
{{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }}
</div>
@if (session('status') == 'verification-link-sent')
<div class="mb-4 font-medium text-sm text-green-600">
{{ __('A new verification link has been sent to the email address you provided during registration.') }}
</div>
@endif
<div class="mt-4 flex items-center justify-between">
<form method="POST" action="{{ route('verification.send') }}">
@csrf
<div>
<x-button>
{{ __('Resend Verification Email') }}
</x-button>
</div>
</form>
<form method="POST" action="{{ route('logout') }}">
@csrf
<button type="submit" class="underline text-sm text-gray-600 hover:text-gray-900">
{{ __('Log Out') }}
</button>
</form>
</div>
</x-auth-card>
</x-guest-layout>

View File

@ -0,0 +1,28 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Verify Your Email Address') }}</div>
<div class="card-body">
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('A fresh verification link has been sent to your email address.') }}
</div>
@endif
{{ __('Before proceeding, please check your email for a verification link.') }}
{{ __('If you did not receive the email') }},
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
@csrf
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button>.
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,3 @@
<svg viewBox="0 0 316 316" xmlns="http://www.w3.org/2000/svg" {{ $attributes }}>
<path d="M305.8 81.125C305.77 80.995 305.69 80.885 305.65 80.755C305.56 80.525 305.49 80.285 305.37 80.075C305.29 79.935 305.17 79.815 305.07 79.685C304.94 79.515 304.83 79.325 304.68 79.175C304.55 79.045 304.39 78.955 304.25 78.845C304.09 78.715 303.95 78.575 303.77 78.475L251.32 48.275C249.97 47.495 248.31 47.495 246.96 48.275L194.51 78.475C194.33 78.575 194.19 78.725 194.03 78.845C193.89 78.955 193.73 79.045 193.6 79.175C193.45 79.325 193.34 79.515 193.21 79.685C193.11 79.815 192.99 79.935 192.91 80.075C192.79 80.285 192.71 80.525 192.63 80.755C192.58 80.875 192.51 80.995 192.48 81.125C192.38 81.495 192.33 81.875 192.33 82.265V139.625L148.62 164.795V52.575C148.62 52.185 148.57 51.805 148.47 51.435C148.44 51.305 148.36 51.195 148.32 51.065C148.23 50.835 148.16 50.595 148.04 50.385C147.96 50.245 147.84 50.125 147.74 49.995C147.61 49.825 147.5 49.635 147.35 49.485C147.22 49.355 147.06 49.265 146.92 49.155C146.76 49.025 146.62 48.885 146.44 48.785L93.99 18.585C92.64 17.805 90.98 17.805 89.63 18.585L37.18 48.785C37 48.885 36.86 49.035 36.7 49.155C36.56 49.265 36.4 49.355 36.27 49.485C36.12 49.635 36.01 49.825 35.88 49.995C35.78 50.125 35.66 50.245 35.58 50.385C35.46 50.595 35.38 50.835 35.3 51.065C35.25 51.185 35.18 51.305 35.15 51.435C35.05 51.805 35 52.185 35 52.575V232.235C35 233.795 35.84 235.245 37.19 236.025L142.1 296.425C142.33 296.555 142.58 296.635 142.82 296.725C142.93 296.765 143.04 296.835 143.16 296.865C143.53 296.965 143.9 297.015 144.28 297.015C144.66 297.015 145.03 296.965 145.4 296.865C145.5 296.835 145.59 296.775 145.69 296.745C145.95 296.655 146.21 296.565 146.45 296.435L251.36 236.035C252.72 235.255 253.55 233.815 253.55 232.245V174.885L303.81 145.945C305.17 145.165 306 143.725 306 142.155V82.265C305.95 81.875 305.89 81.495 305.8 81.125ZM144.2 227.205L100.57 202.515L146.39 176.135L196.66 147.195L240.33 172.335L208.29 190.625L144.2 227.205ZM244.75 114.995V164.795L226.39 154.225L201.03 139.625V89.825L219.39 100.395L244.75 114.995ZM249.12 57.105L292.81 82.265L249.12 107.425L205.43 82.265L249.12 57.105ZM114.49 184.425L96.13 194.995V85.305L121.49 70.705L139.85 60.135V169.815L114.49 184.425ZM91.76 27.425L135.45 52.585L91.76 77.745L48.07 52.585L91.76 27.425ZM43.67 60.135L62.03 70.705L87.39 85.305V202.545V202.555V202.565C87.39 202.735 87.44 202.895 87.46 203.055C87.49 203.265 87.49 203.485 87.55 203.695V203.705C87.6 203.875 87.69 204.035 87.76 204.195C87.84 204.375 87.89 204.575 87.99 204.745C87.99 204.745 87.99 204.755 88 204.755C88.09 204.905 88.22 205.035 88.33 205.175C88.45 205.335 88.55 205.495 88.69 205.635L88.7 205.645C88.82 205.765 88.98 205.855 89.12 205.965C89.28 206.085 89.42 206.225 89.59 206.325C89.6 206.325 89.6 206.325 89.61 206.335C89.62 206.335 89.62 206.345 89.63 206.345L139.87 234.775V285.065L43.67 229.705V60.135ZM244.75 229.705L148.58 285.075V234.775L219.8 194.115L244.75 179.875V229.705ZM297.2 139.625L253.49 164.795V114.995L278.85 100.395L297.21 89.825V139.625H297.2Z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,12 @@
<main class="form-signin">
<div class="card">
<div class="card-body shadow">
@if(isset($logo))
<div>
{{ $logo }}
</div>
@endif
{{ $slot }}
</div>
</div>
</main>

View File

@ -0,0 +1,7 @@
@props(['status'])
@if ($status)
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-green-600']) }}>
{{ $status }}
</div>
@endif

View File

@ -0,0 +1,14 @@
@props(['errors'])
@if ($errors->any())
<div {{ $attributes }}>
<div class="alert alert-danger">
{{ __('Whoops! Something went wrong.') }}
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</div>
@endif

View File

@ -0,0 +1 @@
<a href="{{$href}}" class="btn btn-primary py-0 px-4 mb-4">{{$slot}}</a>

View File

@ -0,0 +1,3 @@
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:ring ring-gray-300 disabled:opacity-25 transition ease-in-out duration-150']) }}>
{{ $slot }}
</button>

View File

@ -0,0 +1,5 @@
<div class="card {{ $class ?? '' }}">
<div class="card-body">
{{ $slot }}
</div>
</div>

View File

@ -0,0 +1,7 @@
<div class="container">
<div class="card shadow mt-3">
<div class="card-body">
</div>
</div>
</div>

View File

@ -0,0 +1,12 @@
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Currency'}}</span></div>
<select class="form-control" name="{{$name ?? 'currency'}}">
<option value="AUD" {{(isset($current) && (string)$current === 'AUD')? 'selected' : ''}}>AUD</option>
<option value="USD" {{(isset($current) && (string)$current === 'USD')? 'selected' : ''}}>USD</option>
<option value="GBP" {{(isset($current) && (string)$current === 'GBP')? 'selected' : ''}}>GBP</option>
<option value="EUR" {{(isset($current) && (string)$current === 'EUR')? 'selected' : ''}}>EUR</option>
<option value="NZD" {{(isset($current) && (string)$current === 'NZD')? 'selected' : ''}}>NZD</option>
<option value="JPY" {{(isset($current) && (string)$current === 'JPY')? 'selected' : ''}}>JPY</option>
<option value="CAD" {{(isset($current) && (string)$current === 'CAD')? 'selected' : ''}}>CAD</option>
</select>
</div>

View File

@ -0,0 +1,3 @@
<script src="{{ asset('js/jquery.min.js') }}"></script>
<script src="{{ asset('js/datatables.min.js') }}" defer></script>
<script src="{{ asset('js/datatables.bootstrap5.min.js') }}" defer></script>

View File

@ -0,0 +1,5 @@
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{$title}}</span></div>
<input type="date" name="{{$name}}" class="form-control"
value="{{$value ?? ''}}" {{(isset($required))? 'required': ''}}>
</div>

View File

@ -0,0 +1,39 @@
<div v-if="showModal">
<transition name="modal">
<div class="modal-mask">
<div class="modal-wrapper">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header py-1">
<h4 class="modal-title" id="modal-title" v-html="modal_hostname"></h4>
</div>
<div class="modal-body text-center">
Are you sure you want to delete this?
<form :action=delete_form_action method="POST">
@csrf
@method('DELETE')
<input type="hidden" id="id" name="id" value="" v-model="modal_id">
<div class="row mt-2">
<div class="col-6">
<button type="submit" title="delete"
class="btn btn-danger px-3 py-1 mt-2 mt-2">
Yes
</button>
</div>
<div class="col-6">
<button type="submit" title="delete"
class="btn btn-success px-3 py-1 mt-2 ms-4" @click="showModal=false">
No
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</transition>
</div>

View File

@ -0,0 +1,6 @@
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{$title}}</span></div>
<select class="form-control" name="{{$name}}">
<option value="GB" {{(isset($value) && $value == 'GB')? 'selected': ''}}>GB</option>
<option value="TB" {{(isset($value) && $value == 'TB')? 'selected': ''}}>TB</option>
</select></div>

View File

@ -0,0 +1 @@
<a {{ $attributes->merge(['class' => 'block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out']) }}>{{ $slot }}</a>

View File

@ -0,0 +1,43 @@
@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white'])
@php
switch ($align) {
case 'left':
$alignmentClasses = 'origin-top-left left-0';
break;
case 'top':
$alignmentClasses = 'origin-top';
break;
case 'right':
default:
$alignmentClasses = 'origin-top-right right-0';
break;
}
switch ($width) {
case '48':
$width = 'w-48';
break;
}
@endphp
<div class="relative" x-data="{ open: false }" @click.outside="open = false" @close.stop="open = false">
<div @click="open = ! open">
{{ $trigger }}
</div>
<div x-show="open"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="transform opacity-0 scale-95"
x-transition:enter-end="transform opacity-100 scale-100"
x-transition:leave="transition ease-in duration-75"
x-transition:leave-start="transform opacity-100 scale-100"
x-transition:leave-end="transform opacity-0 scale-95"
class="absolute z-50 mt-2 {{ $width }} rounded-md shadow-lg {{ $alignmentClasses }}"
style="display: none;"
@click="open = false">
<div class="rounded-md ring-1 ring-black ring-opacity-5 {{ $contentClasses }}">
{{ $content }}
</div>
</div>
</div>

View File

@ -0,0 +1,9 @@
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif

View File

@ -0,0 +1,42 @@
<style>
html,
body {
height: 100%;
}
body {
display: grid;
align-items: center;
}
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
}
.form-signin .checkbox {
font-weight: 400;
}
.form-signin .form-floating:focus-within {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.form-floating > label {
padding: 0.2rem .5rem;
}
</style>

View File

@ -0,0 +1,3 @@
@props(['disabled' => false])
<input {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge(['class' => 'form-control']) !!}>

View File

@ -0,0 +1,5 @@
@props(['value'])
<label {{ $attributes->merge(['class' => 'small text-muted']) }}>
{{ $value ?? $slot }}
</label>

View File

@ -0,0 +1,11 @@
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{$title}}</span></div>
<select class="form-control" name="{{$name}}">
<option value=""></option>
@foreach ($labels as $label)
<option value="{{ $label['id'] }}" {{(isset($current) && $current == $label['id'])? 'selected' : ''}}>
{{ $label['label']}}
</option>
@endforeach
</select>
</div>

View File

@ -0,0 +1,10 @@
<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Location'}}</span></div>
<select class="form-control" name="{{$name ?? 'location_id'}}">
@foreach ($locations as $location)
<option value="{{ $location['id'] }}" {{(isset($current) && (string)$current === (string)$location['id'])? 'selected' : ''}}>
{{ $location['name'] }}
</option>
@endforeach
</select>
</div>

View File

@ -0,0 +1,18 @@
<div class="card {{ $class ?? '' }}">
@isset($header)
<div class="card-header">
{!! $header !!}
</div>
@endisset
@isset($body)
<div class="card-body pb-0">
{!! $body !!}
{{ $slot }}
</div>
@endisset
@isset($footer)
<div class="card-footer">
{!! $footer !!}
</div>
@endisset
</div>

View File

@ -0,0 +1,19 @@
<script>
let app = new Vue({
el: "#app",
data: {
"modal_hostname": '',
"modal_id": '',
"delete_form_action": '',
showModal: false
},
methods: {
modalForm(event) {
this.showModal = true;
this.modal_hostname = event.target.id.replace('btn-', '');
this.modal_id = event.target.title;
this.delete_form_action = '{{$uri}}/' + this.modal_id;
}
}
});
</script>

View File

@ -0,0 +1,32 @@
<style>
.modal-mask {
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
transition: opacity .3s ease;
}
.modal-container {
width: 300px;
margin: 40px auto 0;
padding: 20px 30px;
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
transition: all .3s ease;
font-family: Helvetica, Arial, sans-serif;
}
.modal-header h3 {
margin-top: 0;
color: #42b983;
}
.modal-body {
margin: 20px 0;
}
</style>

View File

@ -0,0 +1,13 @@
@props(['active'])
@php
$classes = ($active ?? false)
? 'nav-link active'
: 'nav-link';
@endphp
<li class="nav-item">
<a {{ $attributes->merge(['class' => $classes]) }}>
{{ $slot }}
</a>
</li>

Some files were not shown because too many files have changed in this diff Show More