[#2][#5][#7] dev al arround to add lots of functionality, still have some work on the online proxy

This commit is contained in:
2025-03-30 22:52:35 +03:00
parent 7c56f25053
commit d039e5082a
12 changed files with 832 additions and 68 deletions
+25
View File
@@ -0,0 +1,25 @@
@extends('layouts.proxy')
@section('title', 'Browsing: ' . $url)
@section('content')
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 text-gray-900">
<div class="mb-4">
<form action="{{ route('proxy.browse') }}" method="POST" class="flex space-x-2">
@csrf
<input type="url" name="url" value="{{ htmlspecialchars($url) }}"
class="flex-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm">
<button type="submit"
class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Go
</button>
</form>
</div>
<div class="prose max-w-none">
{!! $content !!}
</div>
</div>
</div>
@endsection
+31
View File
@@ -0,0 +1,31 @@
@extends('layouts.proxy')
@section('title', 'Home')
@section('content')
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 text-gray-900">
<h1 class="text-2xl font-semibold mb-6">Web Proxy</h1>
<form action="{{ route('proxy.browse') }}" method="POST" class="space-y-4">
@csrf
<div>
<label for="url" class="block text-sm font-medium text-gray-700">Enter URL to browse</label>
<div class="mt-1 flex rounded-md shadow-sm">
<input type="url" name="url" id="url" required
class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
placeholder="https://example.com"
value="{{ old('url') }}">
<button type="submit"
class="ml-3 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Go
</button>
</div>
@error('url')
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
@enderror
</div>
</form>
</div>
</div>
@endsection