Skip to content

Commit

Permalink
Updated links for when served with php codex serve.
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Parker <[email protected]>
  • Loading branch information
nomadicjosh committed Sep 5, 2024
1 parent 483b4e8 commit 2218043
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
4 changes: 2 additions & 2 deletions config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use function Codefy\Framework\Helpers\env;

return [
'login_url' => env('APP_BASE_URL') . '/public/admin/login/',
'login_url' => env('APP_BASE_URL') . '/admin/login/',

'admin_url' => env('APP_BASE_URL') . '/public/admin/',
'admin_url' => env('APP_BASE_URL') . '/admin/',
];
6 changes: 2 additions & 4 deletions resources/views/backend/admin-layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ use function Codefy\Framework\Helpers\env;
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="CodefyPHP Framework <?=$this->esc(\Codefy\Framework\Application::APP_VERSION);?>">
<title><?=$this->esc($title);?></title>

Expand All @@ -37,7 +35,7 @@ use function Codefy\Framework\Helpers\env;


<!-- Custom styles for this template -->
<link href="<?=env('APP_BASE_URL');?>/resources/views/backend/assets/css/admin.css" rel="stylesheet">
<link href="<?=env('APP_BASE_URL');?>/assets/css/admin.css" rel="stylesheet">
</head>
<body>

Expand Down Expand Up @@ -93,6 +91,6 @@ use function Codefy\Framework\Helpers\env;
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" integrity="sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" crossorigin="anonymous"></script>
<script src="<?=env('APP_BASE_URL');?>/resources/views/backend/assets/js/admin.js"></script>
<script src="<?=env('APP_BASE_URL');?>/assets/js/admin.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions resources/views/backend/auth-layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use function Qubus\Security\Helpers\t__;
<!doctype html>
<html lang="en" data-bs-theme="auto">
<head>
<script src="<?=env('APP_BASE_URL');?>/resources/views/backend/assets/js/modes.js"></script>
<script src="<?=env('APP_BASE_URL');?>/assets/js/modes.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="CodefyPHP Framework <?=$this->esc(\Codefy\Framework\Application::APP_VERSION);?>">
Expand Down Expand Up @@ -98,7 +98,7 @@ use function Qubus\Security\Helpers\t__;


<!-- Custom styles for this template -->
<link href="<?=env('APP_BASE_URL');?>/resources/views/backend/assets/css/authforms.css" rel="stylesheet">
<link href="<?=env('APP_BASE_URL');?>/assets/css/authforms.css" rel="stylesheet">
</head>
<body class="d-flex align-items-center py-4 bg-body-tertiary">
<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
Expand Down
7 changes: 0 additions & 7 deletions resources/views/backend/login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ $this->block('content', function ($params) {
<input type="password" class="form-control" id="floatingPassword" name="password" required>
<label for="floatingPassword"><?=t__(msgid: 'Password');?></label>
</div>

<div class="form-check text-start my-3">
<input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
<label class="form-check-label" for="flexCheckDefault">
<?=t__(msgid: 'Remember me');?>
</label>
</div>

<button class="btn btn-primary w-100 py-2" type="submit"><?=t__(msgid: 'Sign in');?></button>
<p class="mt-5 mb-3 text-body-secondary">&copy; 2024</p>
Expand Down

0 comments on commit 2218043

Please sign in to comment.