-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3898ebc
commit 3b8431b
Showing
7 changed files
with
99 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Data\Node\Storage; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class StorageData extends Data | ||
{ | ||
public function __construct( | ||
public string $name, | ||
public int $used, | ||
public int $free, | ||
public int $total, | ||
public bool $enabled, | ||
public bool $online, | ||
public bool $has_kvm, | ||
public bool $has_lxc, | ||
public bool $has_lxc_templates, | ||
public bool $has_backups, | ||
public bool $has_iso, | ||
public bool $has_snippets, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
17 changes: 17 additions & 0 deletions
17
resources/scripts/routes/_app/servers.$serverUuid/rebuild.lazy.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { createLazyFileRoute } from '@tanstack/react-router' | ||
|
||
import { Heading } from '@/components/ui/Typography' | ||
|
||
export const Route = createLazyFileRoute('/_app/servers/$serverUuid/rebuild')({ | ||
component: RebuildServerPage, | ||
// @ts-ignore | ||
meta: () => [{ title: 'Rebuild' }], | ||
}) | ||
|
||
function RebuildServerPage() { | ||
return ( | ||
<> | ||
<Heading>Rebuild Server</Heading> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface TemplateGroup { | ||
uuid: string | ||
name: string | ||
hidden: boolean | ||
templates: Template[] | ||
orderColumn: number | ||
} | ||
|
||
export interface Template { | ||
uuid: string | ||
name: string | ||
hidden: boolean | ||
orderColumn: number | ||
} |