diff --git a/app/Http/Controllers/Hosting/DeveloperController.php b/app/Http/Controllers/Hosting/DeveloperController.php deleted file mode 100644 index 7ff33a9..0000000 --- a/app/Http/Controllers/Hosting/DeveloperController.php +++ /dev/null @@ -1,45 +0,0 @@ - $request->user()->tokens()->latest()->get(), - 'apiBase' => rtrim((string) config('app.url'), '/').'/api/v1', - 'newToken' => session('new_token'), - ]); - } - - public function store(Request $request): RedirectResponse - { - $data = $request->validate([ - 'name' => ['required', 'string', 'max:60'], - ]); - - $token = $request->user()->createToken($data['name'], ['mailboxes:read']); - - return redirect()->route('account.developers') - ->with('new_token', $token->plainTextToken) - ->with('success', 'Token created — copy it now, it won’t be shown again.'); - } - - public function destroy(Request $request, int $token): RedirectResponse - { - $request->user()->tokens()->whereKey($token)->delete(); - - return redirect()->route('account.developers')->with('success', 'Token revoked.'); - } -} diff --git a/resources/views/hosting/account/developers.blade.php b/resources/views/hosting/account/developers.blade.php deleted file mode 100644 index 6b1dce9..0000000 --- a/resources/views/hosting/account/developers.blade.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Developers

-

API tokens to manage your hosting programmatically.

- - @if($newToken) -
-

Your new token — copy it now

-

This is the only time it will be shown.

-
- {{ $newToken }} - -
-
- @endif - -
-

Create a token

-
- @csrf -
- - - @error('name')

{{ $message }}

@enderror -
- -
-
- -
-

Your tokens

- @forelse($tokens as $token) -
-
-

{{ $token->name }}

-

- Created {{ $token->created_at->diffForHumans() }} · - {{ $token->last_used_at ? 'last used '.$token->last_used_at->diffForHumans() : 'never used' }} -

-
- - - - - -
- @empty -

No tokens yet.

- @endforelse -
- -
-

Quick start

-

Authenticate with a Bearer token. Base URL:

- {{ $apiBase }} -
curl {{ $apiBase }}/me \
-  -H "Authorization: Bearer <your-token>" \
-  -H "Accept: application/json"
-

Endpoints: GET /me. More coming soon.

-
-
-
diff --git a/resources/views/hosting/account/team.blade.php b/resources/views/hosting/account/team.blade.php deleted file mode 100644 index fbd5732..0000000 --- a/resources/views/hosting/account/team.blade.php +++ /dev/null @@ -1,88 +0,0 @@ - -
-

Team

-

Invite people to help manage this account’s hosting.

- - @if($canManage) -
-

Invite a teammate

-
- @csrf -
- - - @error('email')

{{ $message }}

@enderror -
-
- - -
- -
-

Admins can manage hosting and the team. Members can manage hosting. Invitees join by signing in with that email.

-
- @endif - -
-

Members

-
    -
  • -
    - {{ strtoupper(substr($account->name ?? $account->email, 0, 1)) }} -
    -

    {{ $account->name ?? $account->email }} (you)

    -

    {{ $account->email }}

    -
    -
    - Owner -
  • - - @forelse($members as $member) -
  • -
    - {{ strtoupper(substr($member->email, 0, 1)) }} -
    -

    {{ $member->member->name ?? $member->email }}

    -

    {{ $member->email }}

    -
    -
    -
    - @if($member->status === 'invited') - Invited - @endif - @if($canManage) -
    - @csrf @method('PATCH') - -
    - - - - - - @else - {{ $member->role }} - @endif -
    -
  • - @empty -
  • No teammates yet.
  • - @endforelse -
-
-
-