chore: Rename Command Center to Terminal in code and views
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Livewire\CommandCenter;
|
namespace App\Livewire\Terminal;
|
||||||
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@@ -16,6 +16,6 @@ class Index extends Component
|
|||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.command-center.index');
|
return view('livewire.terminal.index');
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -390,7 +390,7 @@ const magicActions = [{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 19,
|
id: 19,
|
||||||
name: 'Goto: Command Center',
|
name: 'Goto: Terminal',
|
||||||
icon: 'goto',
|
icon: 'goto',
|
||||||
sequence: ['main', 'redirect']
|
sequence: ['main', 'redirect']
|
||||||
},
|
},
|
||||||
@@ -653,7 +653,7 @@ async function redirect() {
|
|||||||
targetUrl.pathname = `/settings`
|
targetUrl.pathname = `/settings`
|
||||||
break;
|
break;
|
||||||
case 19:
|
case 19:
|
||||||
targetUrl.pathname = `/command-center`
|
targetUrl.pathname = `/terminal`
|
||||||
break;
|
break;
|
||||||
case 20:
|
case 20:
|
||||||
targetUrl.pathname = `/team/notifications`
|
targetUrl.pathname = `/team/notifications`
|
||||||
|
@@ -228,9 +228,9 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a title="Command Center"
|
<a title="Terminal"
|
||||||
class="{{ request()->is('command-center*') ? 'menu-item-active menu-item' : 'menu-item' }}"
|
class="{{ request()->is('terminal*') ? 'menu-item-active menu-item' : 'menu-item' }}"
|
||||||
href="{{ route('command-center') }}">
|
href="{{ route('terminal') }}">
|
||||||
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
|
||||||
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
||||||
stroke-linejoin="round">
|
stroke-linejoin="round">
|
||||||
@@ -238,7 +238,7 @@
|
|||||||
<path d="M5 7l5 5l-5 5" />
|
<path d="M5 7l5 5l-5 5" />
|
||||||
<path d="M12 19l7 0" />
|
<path d="M12 19l7 0" />
|
||||||
</svg>
|
</svg>
|
||||||
Command Center
|
Terminal
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<x-slot:title>
|
<x-slot:title>
|
||||||
Command Center | Coolify
|
Terminal | Coolify
|
||||||
</x-slot>
|
</x-slot>
|
||||||
<h1>Command Center</h1>
|
<h1>Terminal</h1>
|
||||||
<div class="subtitle">Execute commands on your servers without leaving the browser.</div>
|
<div class="subtitle">Execute commands on your servers without leaving the browser.</div>
|
||||||
@if ($servers->count() > 0)
|
@if ($servers->count() > 0)
|
||||||
<livewire:run-command :servers="$servers" />
|
<livewire:run-command :servers="$servers" />
|
@@ -6,7 +6,6 @@ use App\Http\Controllers\OauthController;
|
|||||||
use App\Http\Controllers\UploadController;
|
use App\Http\Controllers\UploadController;
|
||||||
use App\Livewire\Admin\Index as AdminIndex;
|
use App\Livewire\Admin\Index as AdminIndex;
|
||||||
use App\Livewire\Boarding\Index as BoardingIndex;
|
use App\Livewire\Boarding\Index as BoardingIndex;
|
||||||
use App\Livewire\CommandCenter\Index as CommandCenterIndex;
|
|
||||||
use App\Livewire\Dashboard;
|
use App\Livewire\Dashboard;
|
||||||
use App\Livewire\Dev\Compose as Compose;
|
use App\Livewire\Dev\Compose as Compose;
|
||||||
use App\Livewire\ForcePasswordReset;
|
use App\Livewire\ForcePasswordReset;
|
||||||
@@ -64,6 +63,7 @@ use App\Livewire\Tags\Show as TagsShow;
|
|||||||
use App\Livewire\Team\AdminView as TeamAdminView;
|
use App\Livewire\Team\AdminView as TeamAdminView;
|
||||||
use App\Livewire\Team\Index as TeamIndex;
|
use App\Livewire\Team\Index as TeamIndex;
|
||||||
use App\Livewire\Team\Member\Index as TeamMemberIndex;
|
use App\Livewire\Team\Member\Index as TeamMemberIndex;
|
||||||
|
use App\Livewire\Terminal\Index as TerminalIndex;
|
||||||
use App\Livewire\Waitlist\Index as WaitlistIndex;
|
use App\Livewire\Waitlist\Index as WaitlistIndex;
|
||||||
use App\Models\GitlabApp;
|
use App\Models\GitlabApp;
|
||||||
use App\Models\PrivateKey;
|
use App\Models\PrivateKey;
|
||||||
@@ -153,11 +153,12 @@ Route::middleware(['auth', 'verified'])->group(function () {
|
|||||||
Route::get('/admin', TeamAdminView::class)->name('team.admin-view');
|
Route::get('/admin', TeamAdminView::class)->name('team.admin-view');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/command-center', CommandCenterIndex::class)->name('command-center');
|
Route::get('/terminal', TerminalIndex::class)->name('terminal');
|
||||||
Route::post('/terminal/auth', function () {
|
Route::post('/terminal/auth', function () {
|
||||||
if (auth()->check()) {
|
if (auth()->check()) {
|
||||||
return response()->json(['authenticated' => true], 200);
|
return response()->json(['authenticated' => true], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json(['authenticated' => false], 401);
|
return response()->json(['authenticated' => false], 401);
|
||||||
})->name('terminal.auth');
|
})->name('terminal.auth');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user