mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-16 21:03:42 +00:00
style the shell app
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
parent
eea46f28ad
commit
e5619bb002
5 changed files with 191 additions and 0 deletions
51
apps/ainas-controlplane/templates/index.php
Normal file
51
apps/ainas-controlplane/templates/index.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCP\Util;
|
||||
|
||||
Util::addStyle(Application::APP_ID, 'ainascontrolplane');
|
||||
|
||||
$snapshot = $_['snapshot'];
|
||||
$version = $snapshot['version']['version'] ?? 'unreachable';
|
||||
$status = !empty($snapshot['available']) ? 'Connected' : 'Unavailable';
|
||||
$error = $snapshot['error'] ?? null;
|
||||
?>
|
||||
|
||||
<div class="ainas-shell">
|
||||
<div class="ainas-shell__hero">
|
||||
<p class="ainas-shell__eyebrow">aiNAS inside Nextcloud</p>
|
||||
<h1 class="ainas-shell__title"><?php p($_['appName']); ?></h1>
|
||||
<p class="ainas-shell__copy">
|
||||
This shell app stays intentionally thin. It exposes aiNAS entry points inside Nextcloud and delegates business logic to the external control-plane service.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="ainas-shell__grid">
|
||||
<section class="ainas-shell__card">
|
||||
<h2>Control plane</h2>
|
||||
<dl>
|
||||
<dt>Configured URL</dt>
|
||||
<dd><code><?php p($_['controlPlaneUrl']); ?></code></dd>
|
||||
<dt>Status</dt>
|
||||
<dd><?php p($status); ?></dd>
|
||||
<dt>Version</dt>
|
||||
<dd><?php p($version); ?></dd>
|
||||
</dl>
|
||||
<?php if ($error !== null): ?>
|
||||
<p class="ainas-shell__error"><?php p($error); ?></p>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
|
||||
<section class="ainas-shell__card">
|
||||
<h2>Boundary</h2>
|
||||
<ul>
|
||||
<li>Nextcloud provides file and client primitives.</li>
|
||||
<li>aiNAS owns control-plane policy and orchestration.</li>
|
||||
<li>The shell app only adapts between the two.</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue