Skip to content

Commit

Permalink
chore: Rename Command Center to Terminal in code and views
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Sep 13, 2024
1 parent 7cac243 commit 51c43e7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Livewire\CommandCenter;
namespace App\Livewire\Terminal;

use App\Models\Server;
use Livewire\Component;
Expand All @@ -16,6 +16,6 @@ public function mount()

public function render()
{
return view('livewire.command-center.index');
return view('livewire.terminal.index');
}
}
4 changes: 2 additions & 2 deletions resources/js/components/MagicBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ const magicActions = [{
},
{
id: 19,
name: 'Goto: Command Center',
name: 'Goto: Terminal',
icon: 'goto',
sequence: ['main', 'redirect']
},
Expand Down Expand Up @@ -653,7 +653,7 @@ async function redirect() {
targetUrl.pathname = `/settings`
break;
case 19:
targetUrl.pathname = `/command-center`
targetUrl.pathname = `/terminal`
break;
case 20:
targetUrl.pathname = `/team/notifications`
Expand Down
8 changes: 4 additions & 4 deletions resources/views/components/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,17 @@ class="{{ request()->is('tags*') ? 'menu-item-active menu-item' : 'menu-item' }}
</a>
</li>
<li>
<a title="Command Center"
class="{{ request()->is('command-center*') ? 'menu-item-active menu-item' : 'menu-item' }}"
href="{{ route('command-center') }}">
<a title="Terminal"
class="{{ request()->is('terminal*') ? 'menu-item-active menu-item' : 'menu-item' }}"
href="{{ route('terminal') }}">
<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-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M5 7l5 5l-5 5" />
<path d="M12 19l7 0" />
</svg>
Command Center
Terminal
</a>
</li>
<li>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div>
<x-slot:title>
Command Center | Coolify
Terminal | Coolify
</x-slot>
<h1>Command Center</h1>
<h1>Terminal</h1>
<div class="subtitle">Execute commands on your servers without leaving the browser.</div>
@if ($servers->count() > 0)
<livewire:run-command :servers="$servers" />
Expand Down
5 changes: 3 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use App\Http\Controllers\UploadController;
use App\Livewire\Admin\Index as AdminIndex;
use App\Livewire\Boarding\Index as BoardingIndex;
use App\Livewire\CommandCenter\Index as CommandCenterIndex;
use App\Livewire\Dashboard;
use App\Livewire\Dev\Compose as Compose;
use App\Livewire\ForcePasswordReset;
Expand Down Expand Up @@ -64,6 +63,7 @@
use App\Livewire\Team\AdminView as TeamAdminView;
use App\Livewire\Team\Index as TeamIndex;
use App\Livewire\Team\Member\Index as TeamMemberIndex;
use App\Livewire\Terminal\Index as TerminalIndex;
use App\Livewire\Waitlist\Index as WaitlistIndex;
use App\Models\GitlabApp;
use App\Models\PrivateKey;
Expand Down Expand Up @@ -153,11 +153,12 @@
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 () {
if (auth()->check()) {
return response()->json(['authenticated' => true], 200);
}

return response()->json(['authenticated' => false], 401);
})->name('terminal.auth');

Expand Down

0 comments on commit 51c43e7

Please sign in to comment.