provisionserver job
This commit is contained in:
26
app/Jobs/Servers/ProvisionServer.php
Normal file
26
app/Jobs/Servers/ProvisionServer.php
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs\Servers;
|
||||||
|
|
||||||
|
use App\Models\Server;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Foundation\Queue\Queueable;
|
||||||
|
|
||||||
|
class ProvisionServer implements ShouldQueue, ShouldBeEncrypted
|
||||||
|
{
|
||||||
|
use Queueable;
|
||||||
|
|
||||||
|
public function __construct(
|
||||||
|
protected Server $server,
|
||||||
|
protected string $rootPassword,
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public function handle(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
23
resources/js/pages/servers/Show.vue
Normal file
23
resources/js/pages/servers/Show.vue
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import AppLayout from '@/layouts/AppLayout.vue';
|
||||||
|
import { type BreadcrumbItem } from '@/types';
|
||||||
|
import { Head } from '@inertiajs/vue3';
|
||||||
|
import PlaceholderPattern from '../components/PlaceholderPattern.vue';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
server: {
|
||||||
|
type: Object,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Head :title="server.name" />
|
||||||
|
|
||||||
|
<AppLayout>
|
||||||
|
<div class="flex h-full flex-1 flex-col gap-4 rounded-xl p-4">
|
||||||
|
{{ server }}
|
||||||
|
</div>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user