diff --git a/laravel/app/Http/Controllers/ShortlinkController.php b/laravel/app/Http/Controllers/ShortlinkController.php index a0ec41e..e0aabeb 100644 --- a/laravel/app/Http/Controllers/ShortlinkController.php +++ b/laravel/app/Http/Controllers/ShortlinkController.php @@ -115,7 +115,7 @@ class ShortlinkController extends Controller return response()->json(['error' => $e->getMessage()], 400); } } - + //TODO: Change to toggle on the delete method, and prevent deleted items from being modified or accessed public function delete(Request $request, $id) { try { $shortlink = Shortlink::where('shortid', $id)->first(); diff --git a/laravel/app/Models/Link_interaction.php b/laravel/app/Models/Link_interaction.php index a3e9ec1..273e074 100644 --- a/laravel/app/Models/Link_interaction.php +++ b/laravel/app/Models/Link_interaction.php @@ -4,7 +4,7 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -//TODO + class Link_interaction extends Model { use HasFactory; diff --git a/laravel/public/css/default.css b/laravel/public/css/default.css index 0c281f6..9920325 100644 --- a/laravel/public/css/default.css +++ b/laravel/public/css/default.css @@ -1,12 +1,12 @@ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'); - +/* TODO: Normalize the css and split into global and page files */ :root { --primary: #ff0050; --background: #121212; --foreground: #202020; --text: #bbb; } - +/* TODO: Add support for custom css & set simple colours in a config */ body { margin: 0; overflow: hidden; diff --git a/laravel/resources/views/profile.blade.php b/laravel/resources/views/profile.blade.php index fbb60f5..262aeda 100644 --- a/laravel/resources/views/profile.blade.php +++ b/laravel/resources/views/profile.blade.php @@ -8,7 +8,7 @@
Username: {{ Auth::user()->name }}
Email: {{ Auth::user()->email }}
Created at: {{ Auth::user()->created_at }}