From 2777fd61fe7573e3f5e34214f8616ebbb943642f Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Fri, 16 Jun 2023 21:34:16 +0200 Subject: [PATCH] Updated rest of admin pages Deleted unused files --- resources/lang/en/messages.php | 108 +++++++++++++++++++++ resources/views/panel/backups.blade.php | 46 --------- resources/views/panel/config.blade.php | 50 ---------- resources/views/panel/diagnose.blade.php | 110 ---------------------- resources/views/panel/edit-user.blade.php | 8 +- resources/views/panel/links.blade.php | 4 +- resources/views/panel/phpinfo.blade.php | 4 +- resources/views/panel/site.blade.php | 10 +- resources/views/panel/users.blade.php | 58 ++++++------ 9 files changed, 150 insertions(+), 248 deletions(-) delete mode 100644 resources/views/panel/backups.blade.php delete mode 100644 resources/views/panel/config.blade.php delete mode 100644 resources/views/panel/diagnose.blade.php diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index 50b9ee2..f428dde 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -451,6 +451,114 @@ return [ 'Title' => 'Title+', + /* + |-------------------------------------------------------------------------- + | Edit User Page (Admin) + |-------------------------------------------------------------------------- + | + | resources/views/panel/edit-user.blade.php + | + */ + + 'Edit User' => 'Edit User+', + 'Email' => 'Email+', + 'Password' => 'Password+', + 'Logo' => 'Logo+', + 'Delete' => 'Delete+', + 'Custom background' => 'Custom background+', + 'No image selected' => 'No image selected+', + 'Page URL' => 'Page URL+', + 'Page description' => 'Page description+', + 'Role' => 'Role+', + 'Save' => 'Save+', + + + /* + |-------------------------------------------------------------------------- + | Links Page (Admin) + |-------------------------------------------------------------------------- + | + | resources/views/panel/links.blade.php + | + */ + + 'Links' => 'Links+', + 'Link' => 'Link+', + 'Title' => 'Title+', + 'Clicks' => 'Clicks+', + 'Back' => 'Back+', + + + /* + |-------------------------------------------------------------------------- + | PHP info Page + |-------------------------------------------------------------------------- + | + | resources/views/panel/phpinfo.blade.php + | + */ + + 'Information about PHP’s configuration' => 'Information about PHP’s configuration+', + 'Outputs information about the current state of PHP' => 'Outputs information about the current state of PHP+', + + + /* + |-------------------------------------------------------------------------- + | Delete themes page + |-------------------------------------------------------------------------- + | + | resources/views/panel/theme.blade.php + | + */ + + 'Delete a theme' => 'Delete a theme+', + 'Delete theme' => 'Delete theme+', + + + /* + |-------------------------------------------------------------------------- + | Manage Users Page + |-------------------------------------------------------------------------- + | + | resources/views/panel/users.blade.php + | + */ + + 'Manage Users' => 'Manage Users+', + 'Search user' => 'Search user+', + 'ID' => 'ID+', + 'Name' => 'Name+', + 'E-Mail' => 'E-Mail+', + 'Page' => 'Page+', + 'Links' => 'Links+', + 'Clicks' => 'Clicks+', + 'Created at' => 'Created at+', + 'Last seen' => 'Last seen+', + 'Status' => 'Status+', + 'Action' => 'Action+', + 'N/A' => 'N/A+', + 'Pending' => 'Pending+', + 'Verified' => 'Verified+', + 'Approved' => 'Approved+', + 'Add new user' => 'Add new user+', + + # Tooltips + 'tt.Delete' => 'Delete+', + 'tt.Edit' => 'Edit+', + 'tt.All links' => 'All links+', + + 'confirm.delete.user' => 'Are you sure you want to delete this user? \nThis action cannot be undone!+', + + # Date Format + 'date.format' => 'd/m/Y', + + 'days ago' => 'days ago+', + '1 day ago' => '1 day ago+', + 'Today' => 'Today+', + '1 year ago' => '1 year ago+', + 'years ago' => 'years ago+', + + /* |-------------------------------------------------------------------------- | Config Page diff --git a/resources/views/panel/backups.blade.php b/resources/views/panel/backups.blade.php deleted file mode 100644 index 07a8927..0000000 --- a/resources/views/panel/backups.blade.php +++ /dev/null @@ -1,46 +0,0 @@ -@extends('layouts.sidebar') - -@section('content') - - - - @if (file_exists(base_path('backups/updater-backups/')) and is_dir(base_path('backups/updater-backups/'))) - @if($_SERVER['QUERY_STRING'] != '') - - @endif - -
{{__('messages.AC.description')}}
- -@elseif(str_ends_with($_SERVER['REQUEST_URI'], 'env')) -{{__('messages.Write access.description.1-3')}} '✔️' {{__('messages.Write access.description.2-3')}} '❌' {{__('messages.Write access.description.3-3')}}
- -{{__('messages.File')}} | -{{__('messages.Hover for more')}} | -
---|---|
{{ base_path(".env") }} | - 0) {echo "$wtrue";} else {echo "$wfalse";} ?> -|
{{ base_path("database/database.sqlite") }} | - 0) {echo "$wtrue";} else {echo "$wfalse";} ?> -
{{__('messages.security.risk.1-3')}} '✔️' {{__('messages.security.risk.2-3')}} '❗' {{__('messages.security.risk.3-3')}}
- -{{__('messages.Link')}} | -{{__('messages.Hover for more')}} | - -
---|---|
{{ url('/.env') }} | - -|
{{ url('/database/database.sqlite') }} | - -
{{__('messages.No image selected')}}
@endif - @if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))