Self management
This commit is contained in:
@@ -21,10 +21,14 @@ $assetVersion = static function (string $publicPath): string {
|
||||
};
|
||||
|
||||
$hasMiningChecker = false;
|
||||
$hasUserSelfManagement = false;
|
||||
foreach ($desktopPayload['apps'] as $desktopApp) {
|
||||
if (($desktopApp['app_id'] ?? null) === 'mining-checker') {
|
||||
$hasMiningChecker = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (($desktopApp['app_id'] ?? null) === 'user-self-management') {
|
||||
$hasUserSelfManagement = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,8 +75,6 @@ $renderStartIcon = static function (array $profile): string {
|
||||
<span>Fenster</span>
|
||||
</div>
|
||||
<div class="system-bar-right">
|
||||
<div class="tray-skins system-skins" id="tray-skins-top"></div>
|
||||
<span class="system-divider"></span>
|
||||
<time id="clock-top"></time>
|
||||
</div>
|
||||
</header>
|
||||
@@ -135,7 +137,6 @@ $renderStartIcon = static function (array $profile): string {
|
||||
<?php if (($desktopPayload['session']['authenticated'] ?? false) === true && !empty($desktopPayload['session']['logout_url'])): ?>
|
||||
<a class="tray-action" href="<?= htmlspecialchars((string) $desktopPayload['session']['logout_url'], ENT_QUOTES) ?>">Logout</a>
|
||||
<?php endif; ?>
|
||||
<div class="tray-skins" id="tray-skins"></div>
|
||||
<time id="clock"></time>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -156,5 +157,9 @@ $renderStartIcon = static function (array $profile): string {
|
||||
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
|
||||
<script src="<?= htmlspecialchars($assetVersion('/assets/apps/mining-checker/app.js'), ENT_QUOTES) ?>"></script>
|
||||
<?php endif; ?>
|
||||
<?php if ($hasUserSelfManagement): ?>
|
||||
<link rel="stylesheet" href="<?= htmlspecialchars($assetVersion('/assets/apps/user-self-management/app.css'), ENT_QUOTES) ?>">
|
||||
<script src="<?= htmlspecialchars($assetVersion('/assets/apps/user-self-management/app.js'), ENT_QUOTES) ?>"></script>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user