mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 05:02:07 +00:00
rename3
This commit is contained in:
parent
c3b5332477
commit
c7560e1630
28 changed files with 95 additions and 95 deletions
|
|
@ -1,30 +1,30 @@
|
|||
<?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>betterNAS Control Plane</name>
|
||||
<summary>Thin betterNAS shell app for Nextcloud integration</summary>
|
||||
<description>Provides betterNAS-branded entry points inside Nextcloud while delegating business logic to the betterNAS control plane.</description>
|
||||
<version>0.1.0</version>
|
||||
<licence>AGPL-3.0-or-later</licence>
|
||||
<author homepage="https://ainas.local">betterNAS</author>
|
||||
<namespace>AinasControlplane</namespace>
|
||||
<author homepage="https://betternas.local">betterNAS</author>
|
||||
<namespace>BetterNasControlplane</namespace>
|
||||
<category>integration</category>
|
||||
<dependencies>
|
||||
<nextcloud min-version="31" max-version="33"/>
|
||||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<id>ainascontrolplane</id>
|
||||
<id>betternascontrolplane</id>
|
||||
<name>betterNAS</name>
|
||||
<route>ainascontrolplane.page.index</route>
|
||||
<route>betternascontrolplane.page.index</route>
|
||||
<icon>app.svg</icon>
|
||||
<type>link</type>
|
||||
</navigation>
|
||||
</navigations>
|
||||
<settings>
|
||||
<admin>OCA\AinasControlplane\Settings\Admin</admin>
|
||||
<admin-section>OCA\AinasControlplane\Settings\AdminSection</admin-section>
|
||||
<admin>OCA\BetterNasControlplane\Settings\Admin</admin>
|
||||
<admin-section>OCA\BetterNasControlplane\Settings\AdminSection</admin-section>
|
||||
</settings>
|
||||
</info>
|
||||
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "ainas/ainascontrolplane",
|
||||
"name": "betternas/betternascontrolplane",
|
||||
"description": "betterNAS Nextcloud shell app",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"OCA\\AinasControlplane\\": "lib/"
|
||||
"OCA\\BetterNasControlplane\\": "lib/"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\AppInfo;
|
||||
namespace OCA\BetterNasControlplane\AppInfo;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\AppFramework\Bootstrap\IBootContext;
|
||||
|
|
@ -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);
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\Controller;
|
||||
namespace OCA\BetterNasControlplane\Controller;
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\AinasControlplane\Service\ControlPlaneClient;
|
||||
use OCA\BetterNasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\Service\ControlPlaneClient;
|
||||
use OCP\AppFramework\Http\Attribute\ApiRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\Controller;
|
||||
namespace OCA\BetterNasControlplane\Controller;
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\AinasControlplane\Service\ControlPlaneClient;
|
||||
use OCA\AinasControlplane\Service\ControlPlaneConfig;
|
||||
use OCA\BetterNasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\Service\ControlPlaneClient;
|
||||
use OCA\BetterNasControlplane\Service\ControlPlaneConfig;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\Service;
|
||||
namespace OCA\BetterNasControlplane\Service;
|
||||
|
||||
use OCP\Http\Client\IClientService;
|
||||
use OCP\Http\Client\IResponse;
|
||||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\Service;
|
||||
namespace OCA\BetterNasControlplane\Service;
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\AppInfo\Application;
|
||||
use OCP\IAppConfig;
|
||||
|
||||
class ControlPlaneConfig {
|
||||
|
|
@ -14,7 +14,7 @@ class ControlPlaneConfig {
|
|||
}
|
||||
|
||||
public function getBaseUrl(): string {
|
||||
$environmentUrl = getenv('AINAS_CONTROL_PLANE_URL');
|
||||
$environmentUrl = getenv('BETTERNAS_CONTROL_PLANE_URL');
|
||||
if (is_string($environmentUrl) && $environmentUrl !== '') {
|
||||
return rtrim($environmentUrl, '/');
|
||||
}
|
||||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\Settings;
|
||||
namespace OCA\BetterNasControlplane\Settings;
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\AinasControlplane\Service\ControlPlaneClient;
|
||||
use OCA\AinasControlplane\Service\ControlPlaneConfig;
|
||||
use OCA\BetterNasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\Service\ControlPlaneClient;
|
||||
use OCA\BetterNasControlplane\Service\ControlPlaneConfig;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\Settings\ISettings;
|
||||
|
||||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\AinasControlplane\Settings;
|
||||
namespace OCA\BetterNasControlplane\Settings;
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\AppInfo\Application;
|
||||
use OCP\IL10N;
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
|
@ -2,27 +2,27 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\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">betterNAS control-plane wiring</h1>
|
||||
<p class="ainas-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.
|
||||
<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">betterNAS control-plane wiring</h1>
|
||||
<p class="betternas-shell__copy">
|
||||
The local scaffold wires this app to the control plane through the <code>BETTERNAS_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>
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
use OCA\AinasControlplane\AppInfo\Application;
|
||||
use OCA\BetterNasControlplane\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">betterNAS 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">betterNAS 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 betterNAS 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