New desktop
This commit is contained in:
52
src/Desktop/DesktopState.php
Normal file
52
src/Desktop/DesktopState.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Desktop;
|
||||
|
||||
final class DesktopState
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public static function defaultWorkspace(): array
|
||||
{
|
||||
return [
|
||||
'workspace_id' => 'default',
|
||||
'title' => 'Persoenlicher Desktop',
|
||||
'supports_public_home' => true,
|
||||
'supports_multi_workspace' => true,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int, array<string, string>>
|
||||
*/
|
||||
public static function defaultWidgets(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'widget_id' => 'public-home',
|
||||
'title' => 'Public Home',
|
||||
'content' => 'Oeffentliches Dashboard als Startzustand fuer nicht eingeloggte Nutzer.',
|
||||
],
|
||||
[
|
||||
'widget_id' => 'personal-links',
|
||||
'title' => 'Persoenliche Links',
|
||||
'content' => 'Platzhalter fuer spaetere user-spezifische Linklisten und Dashboards.',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int, array<string, string>>
|
||||
*/
|
||||
public static function trayItems(): array
|
||||
{
|
||||
return [
|
||||
['id' => 'network', 'label' => 'Netzwerk'],
|
||||
['id' => 'widgets', 'label' => 'Widgets'],
|
||||
['id' => 'account', 'label' => 'Gast'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user