Skip to content

Commit 2777fd6

Browse files
committed
Updated rest of admin pages
Deleted unused files
1 parent 5403f67 commit 2777fd6

File tree

9 files changed

+150
-248
lines changed

9 files changed

+150
-248
lines changed

resources/lang/en/messages.php

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,114 @@
451451
'Title' => 'Title+',
452452

453453

454+
/*
455+
|--------------------------------------------------------------------------
456+
| Edit User Page (Admin)
457+
|--------------------------------------------------------------------------
458+
|
459+
| resources/views/panel/edit-user.blade.php
460+
|
461+
*/
462+
463+
'Edit User' => 'Edit User+',
464+
'Email' => 'Email+',
465+
'Password' => 'Password+',
466+
'Logo' => 'Logo+',
467+
'Delete' => 'Delete+',
468+
'Custom background' => 'Custom background+',
469+
'No image selected' => 'No image selected+',
470+
'Page URL' => 'Page URL+',
471+
'Page description' => 'Page description+',
472+
'Role' => 'Role+',
473+
'Save' => 'Save+',
474+
475+
476+
/*
477+
|--------------------------------------------------------------------------
478+
| Links Page (Admin)
479+
|--------------------------------------------------------------------------
480+
|
481+
| resources/views/panel/links.blade.php
482+
|
483+
*/
484+
485+
'Links' => 'Links+',
486+
'Link' => 'Link+',
487+
'Title' => 'Title+',
488+
'Clicks' => 'Clicks+',
489+
'Back' => 'Back+',
490+
491+
492+
/*
493+
|--------------------------------------------------------------------------
494+
| PHP info Page
495+
|--------------------------------------------------------------------------
496+
|
497+
| resources/views/panel/phpinfo.blade.php
498+
|
499+
*/
500+
501+
'Information about PHP’s configuration' => 'Information about PHP’s configuration+',
502+
'Outputs information about the current state of PHP' => 'Outputs information about the current state of PHP+',
503+
504+
505+
/*
506+
|--------------------------------------------------------------------------
507+
| Delete themes page
508+
|--------------------------------------------------------------------------
509+
|
510+
| resources/views/panel/theme.blade.php
511+
|
512+
*/
513+
514+
'Delete a theme' => 'Delete a theme+',
515+
'Delete theme' => 'Delete theme+',
516+
517+
518+
/*
519+
|--------------------------------------------------------------------------
520+
| Manage Users Page
521+
|--------------------------------------------------------------------------
522+
|
523+
| resources/views/panel/users.blade.php
524+
|
525+
*/
526+
527+
'Manage Users' => 'Manage Users+',
528+
'Search user' => 'Search user+',
529+
'ID' => 'ID+',
530+
'Name' => 'Name+',
531+
'E-Mail' => 'E-Mail+',
532+
'Page' => 'Page+',
533+
'Links' => 'Links+',
534+
'Clicks' => 'Clicks+',
535+
'Created at' => 'Created at+',
536+
'Last seen' => 'Last seen+',
537+
'Status' => 'Status+',
538+
'Action' => 'Action+',
539+
'N/A' => 'N/A+',
540+
'Pending' => 'Pending+',
541+
'Verified' => 'Verified+',
542+
'Approved' => 'Approved+',
543+
'Add new user' => 'Add new user+',
544+
545+
# Tooltips
546+
'tt.Delete' => 'Delete+',
547+
'tt.Edit' => 'Edit+',
548+
'tt.All links' => 'All links+',
549+
550+
'confirm.delete.user' => 'Are you sure you want to delete this user? \nThis action cannot be undone!+',
551+
552+
# Date Format
553+
'date.format' => 'd/m/Y',
554+
555+
'days ago' => 'days ago+',
556+
'1 day ago' => '1 day ago+',
557+
'Today' => 'Today+',
558+
'1 year ago' => '1 year ago+',
559+
'years ago' => 'years ago+',
560+
561+
454562
/*
455563
|--------------------------------------------------------------------------
456564
| Config Page

resources/views/panel/backups.blade.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

resources/views/panel/config.blade.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

resources/views/panel/diagnose.blade.php

Lines changed: 0 additions & 110 deletions
This file was deleted.

resources/views/panel/edit-user.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="col-sm-12">
1414

1515
<section class="text-gray-400">
16-
<h2 class="mb-4 card-header"><i class="bi bi-person">{{__('messages.Edit User')}}</i></h2>
16+
<h2 class="mb-4 card-header"><i class="bi bi-person"> {{__('messages.Edit User')}}</i></h2>
1717
<div class="card-body p-0 p-md-3">
1818

1919
@foreach($user as $user)
@@ -45,7 +45,7 @@
4545
@else
4646
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="bd-placeholder-img img-thumbnail" width="100" height="100" draggable="false">
4747
@endif
48-
@if(file_exists(base_path(findAvatar($user->id))))<br><a title="Remove icon" class="hvr-grow p-1 text-danger" style="padding-left:5px;" href="?delete"><i class="bi bi-trash-fill"></i>{{__('messages.Delete')}}</a>@endif
48+
@if(file_exists(base_path(findAvatar($user->id))))<br><a title="Remove icon" class="hvr-grow p-1 text-danger" style="padding-left:5px;" href="?delete"><i class="bi bi-trash-fill"></i> {{__('messages.Delete')}}</a>@endif
4949
@if($_SERVER['QUERY_STRING'] === 'delete' and File::exists(base_path(findAvatar($user->id))))@php File::delete(base_path(findAvatar($user->id))); header("Location: ".url()->current()); die(); @endphp @endif
5050
</div><br>
5151

@@ -58,7 +58,7 @@
5858
<div class="form-group col-lg-8">
5959
@if(!file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))<p><i>{{__('messages.No image selected')}}</i></p>@endif
6060
<img style="width:95%;max-width:400px;argin-left:1rem!important;border-radius:5px;" src="@if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id)))){{url('assets/img/background-img/'.findBackground($user->id))}}@else{{url('/assets/linkstack/images/themes/no-preview.png')}}@endif">
61-
@if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))<br><a title="Remove icon" class="hvr-grow p-1 text-danger" style="padding-left:5px;" href="?deleteB"><i class="bi bi-trash-fill"></i>{{__('messages.Delete')}}</a>@endif
61+
@if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))<br><a title="Remove icon" class="hvr-grow p-1 text-danger" style="padding-left:5px;" href="?deleteB"><i class="bi bi-trash-fill"></i> {{__('messages.Delete')}}</a>@endif
6262
@if($_SERVER['QUERY_STRING'] === 'deleteB' and File::exists(base_path('assets/img/background-img/'.findBackground($user->id))))@php File::delete(base_path('assets/img/background-img/'.findBackground($user->id))); header("Location: ".url()->current()); die(); @endphp @endif
6363
<br>
6464
</div><br>
@@ -79,7 +79,7 @@
7979
</div>
8080

8181
<div class="form-group col-lg-8">
82-
<label>{{__('messages.Page description')}}</label>
82+
<label> {{__('messages.Page description')}}</label>
8383
<textarea class="form-control" name="littlelink_description" rows="3">{{ $user->littlelink_description }}</textarea>
8484
</div>
8585
<div class="form-group col-lg-8">

resources/views/panel/links.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="col-sm-12">
1414

1515
<section class="text-gray-400">
16-
<h2 class="mb-4 card-header"><i class="bi bi-link-45deg">{{__('messages.Links')}}</i></h2>
16+
<h2 class="mb-4 card-header"><i class="bi bi-link-45deg"> {{__('messages.Links')}}</i></h2>
1717
<div class="card-body p-0 p-md-3">
1818

1919
<div class="table-responsive">
@@ -43,7 +43,7 @@
4343
{!! $links ?? ''->links() !!}
4444
</ul>
4545

46-
<a class="btn btn-primary" href="{{ url('/admin/users/all') }}"><i class="bi bi-arrow-left-short"></i>{{__('messages.Back')}} </a>
46+
<a class="btn btn-primary" href="{{ url('/admin/users/all') }}"><i class="bi bi-arrow-left-short"></i> {{__('messages.Back')}}</a>
4747

4848
</div>
4949
</section>

resources/views/panel/phpinfo.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function update_color_scheme() {
8484
<div style="position: relative; top: 50px; z-index: 2;"><a href="{{ url('admin/config') }}" style="font-size: 40px;" >&nbsp; &nbsp; &nbsp; Back</a></div>
8585
<div style="position: relative; bottom: 60px; right: 15px; z-index: 1;" align="right"><a onclick="this.href='data:text/html;charset=UTF-8,'+encodeURIComponent(document.documentElement.outerHTML)" href="#" download="phpinfo.html"><button class="btn btn-primary">Download</button></a></div>
8686
<div id='presentation'>
87-
<h1>Information about PHP's configuration</h1>
88-
<h2>Outputs information about the current state of PHP</h2>
87+
<h1>{{__('messages.Information about PHPs configuration')}}</h1>
88+
<h2>{{__('messages.Outputs information about the current state of PHP')}}</h2>
8989
</div>
9090

9191
<?php

0 commit comments

Comments
 (0)