mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-17 04:02:21 +00:00
rename1
This commit is contained in:
parent
a4cb20d228
commit
12c53f3515
20 changed files with 70 additions and 70 deletions
|
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0"?>
|
||||
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>ainascontrolplane</id>
|
||||
<id>betternascontrolplane</id>
|
||||
<name>aiNAS Control Plane</name>
|
||||
<summary>Thin aiNAS shell app for Nextcloud integration</summary>
|
||||
<description>Provides aiNAS-branded entry points inside Nextcloud while delegating business logic to the aiNAS control plane.</description>
|
||||
<version>0.1.0</version>
|
||||
<licence>AGPL-3.0-or-later</licence>
|
||||
<author homepage="https://ainas.local">aiNAS</author>
|
||||
<author homepage="https://betternas.local">aiNAS</author>
|
||||
<namespace>AinasControlplane</namespace>
|
||||
<category>integration</category>
|
||||
<dependencies>
|
||||
|
|
@ -15,9 +15,9 @@
|
|||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<id>ainascontrolplane</id>
|
||||
<id>betternascontrolplane</id>
|
||||
<name>aiNAS</name>
|
||||
<route>ainascontrolplane.page.index</route>
|
||||
<route>betternascontrolplane.page.index</route>
|
||||
<icon>app.svg</icon>
|
||||
<type>link</type>
|
||||
</navigation>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "ainas/ainascontrolplane",
|
||||
"name": "betternas/betternascontrolplane",
|
||||
"description": "aiNAS Nextcloud shell app",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"autoload": {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
.ainas-shell {
|
||||
.betternas-shell {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
.ainas-shell__hero {
|
||||
.betternas-shell__hero {
|
||||
margin-bottom: 28px;
|
||||
padding: 28px;
|
||||
border-radius: 24px;
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
color: #f6fafc;
|
||||
}
|
||||
|
||||
.ainas-shell__eyebrow {
|
||||
.betternas-shell__eyebrow {
|
||||
margin: 0 0 12px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.12em;
|
||||
|
|
@ -20,26 +20,26 @@
|
|||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.ainas-shell__title {
|
||||
.betternas-shell__title {
|
||||
margin: 0 0 12px;
|
||||
font-size: 32px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.ainas-shell__copy {
|
||||
.betternas-shell__copy {
|
||||
margin: 0;
|
||||
max-width: 70ch;
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.ainas-shell__grid {
|
||||
.betternas-shell__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.ainas-shell__card {
|
||||
.betternas-shell__card {
|
||||
padding: 24px;
|
||||
border: 1px solid rgba(16, 33, 45, 0.12);
|
||||
border-radius: 20px;
|
||||
|
|
@ -47,38 +47,38 @@
|
|||
box-shadow: 0 20px 40px rgba(16, 33, 45, 0.06);
|
||||
}
|
||||
|
||||
.ainas-shell__card h2 {
|
||||
.betternas-shell__card h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.ainas-shell__card dl {
|
||||
.betternas-shell__card dl {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 160px) 1fr;
|
||||
gap: 8px 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ainas-shell__card dt {
|
||||
.betternas-shell__card dt {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ainas-shell__card dd {
|
||||
.betternas-shell__card dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ainas-shell__card code {
|
||||
.betternas-shell__card code {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 999px;
|
||||
background: #eef4f7;
|
||||
}
|
||||
|
||||
.ainas-shell__card ul {
|
||||
.betternas-shell__card ul {
|
||||
margin: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.ainas-shell__error {
|
||||
.betternas-shell__error {
|
||||
margin-top: 16px;
|
||||
color: #b42318;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use OCP\AppFramework\Bootstrap\IBootstrap;
|
|||
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public const APP_ID = 'ainascontrolplane';
|
||||
public const APP_ID = 'betternascontrolplane';
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct(self::APP_ID);
|
||||
|
|
|
|||
|
|
@ -5,24 +5,24 @@ declare(strict_types=1);
|
|||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCP\Util;
|
||||
|
||||
Util::addStyle(Application::APP_ID, 'ainascontrolplane');
|
||||
Util::addStyle(Application::APP_ID, 'betternascontrolplane');
|
||||
|
||||
$snapshot = $_['snapshot'];
|
||||
$reachable = !empty($snapshot['available']) ? 'yes' : 'no';
|
||||
$version = $snapshot['version']['version'] ?? 'unreachable';
|
||||
?>
|
||||
|
||||
<div class="ainas-shell ainas-shell--admin">
|
||||
<div class="ainas-shell__hero">
|
||||
<p class="ainas-shell__eyebrow">Admin settings</p>
|
||||
<h1 class="ainas-shell__title">aiNAS control-plane wiring</h1>
|
||||
<p class="ainas-shell__copy">
|
||||
<div class="betternas-shell betternas-shell--admin">
|
||||
<div class="betternas-shell__hero">
|
||||
<p class="betternas-shell__eyebrow">Admin settings</p>
|
||||
<h1 class="betternas-shell__title">aiNAS control-plane wiring</h1>
|
||||
<p class="betternas-shell__copy">
|
||||
The local scaffold wires this app to the control plane through the <code>AINAS_CONTROL_PLANE_URL</code> environment variable in the Nextcloud container.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="ainas-shell__grid">
|
||||
<section class="ainas-shell__card">
|
||||
<div class="betternas-shell__grid">
|
||||
<section class="betternas-shell__card">
|
||||
<h2>Current wiring</h2>
|
||||
<dl>
|
||||
<dt>Control-plane URL</dt>
|
||||
|
|
@ -34,7 +34,7 @@ $version = $snapshot['version']['version'] ?? 'unreachable';
|
|||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ainas-shell__card">
|
||||
<section class="betternas-shell__card">
|
||||
<h2>Next step</h2>
|
||||
<p>Keep storage policy, sharing logic, and orchestration in the control-plane service. This page should remain a thin integration surface.</p>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
|||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCP\Util;
|
||||
|
||||
Util::addStyle(Application::APP_ID, 'ainascontrolplane');
|
||||
Util::addStyle(Application::APP_ID, 'betternascontrolplane');
|
||||
|
||||
$snapshot = $_['snapshot'];
|
||||
$version = $snapshot['version']['version'] ?? 'unreachable';
|
||||
|
|
@ -13,17 +13,17 @@ $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">
|
||||
<div class="betternas-shell">
|
||||
<div class="betternas-shell__hero">
|
||||
<p class="betternas-shell__eyebrow">aiNAS inside Nextcloud</p>
|
||||
<h1 class="betternas-shell__title"><?php p($_['appName']); ?></h1>
|
||||
<p class="betternas-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">
|
||||
<div class="betternas-shell__grid">
|
||||
<section class="betternas-shell__card">
|
||||
<h2>Control plane</h2>
|
||||
<dl>
|
||||
<dt>Configured URL</dt>
|
||||
|
|
@ -34,11 +34,11 @@ $error = $snapshot['error'] ?? null;
|
|||
<dd><?php p($version); ?></dd>
|
||||
</dl>
|
||||
<?php if ($error !== null): ?>
|
||||
<p class="ainas-shell__error"><?php p($error); ?></p>
|
||||
<p class="betternas-shell__error"><?php p($error); ?></p>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
|
||||
<section class="ainas-shell__card">
|
||||
<section class="betternas-shell__card">
|
||||
<h2>Boundary</h2>
|
||||
<ul>
|
||||
<li>Nextcloud provides file and client primitives.</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue