-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to laravel 5.8 and release to version 1.0
- Loading branch information
Showing
15 changed files
with
2,029 additions
and
712 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Acme\Api\Presenter; | ||
|
||
use Illuminate\Contracts\Support\Responsable; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\Http\Request; | ||
use Pandawa\Component\Presenter\NameablePresenterInterface; | ||
use Pandawa\Component\Presenter\NameablePresenterTrait; | ||
use Pandawa\Component\Presenter\PresenterInterface; | ||
use Pandawa\Module\Api\Http\Controller\InteractsWithRendererTrait; | ||
|
||
/** | ||
* @author Iqbal Maulana <iq.bluejack@gmail.com> | ||
*/ | ||
final class PingPresenter implements PresenterInterface, NameablePresenterInterface | ||
{ | ||
use NameablePresenterTrait; | ||
use InteractsWithRendererTrait { | ||
InteractsWithRendererTrait::render as response; | ||
} | ||
|
||
/** | ||
* @param Request $request | ||
* | ||
* @return View|Responsable | ||
*/ | ||
public function render(Request $request) | ||
{ | ||
return $this->response($request, ['status' => 'pong']); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ping: | ||
type: presenter | ||
methods: [get] | ||
path: ping | ||
presenter: ping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Acme\Web\Presenter; | ||
|
||
use Illuminate\Contracts\Support\Responsable; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\Http\Request; | ||
use Pandawa\Component\Presenter\NameablePresenterInterface; | ||
use Pandawa\Component\Presenter\NameablePresenterTrait; | ||
use Pandawa\Component\Presenter\PresenterInterface; | ||
|
||
/** | ||
* @author Iqbal Maulana <iq.bluejack@gmail.com> | ||
*/ | ||
final class LandingPresenter implements PresenterInterface, NameablePresenterInterface | ||
{ | ||
use NameablePresenterTrait; | ||
|
||
/** | ||
* @param Request $request | ||
* | ||
* @return View|Responsable | ||
*/ | ||
public function render(Request $request) | ||
{ | ||
return view('acme-web::pages.landing'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
homepage: | ||
type: presenter | ||
methods: [get] | ||
path: / | ||
presenter: landing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!doctype html> | ||
<html lang="{{ app()->getLocale() }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<title>Pandawa</title> | ||
|
||
<!-- Fonts --> | ||
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css"> | ||
|
||
<!-- Styles --> | ||
<style> | ||
html, body { | ||
background-color: #fff; | ||
color: #636b6f; | ||
font-family: 'Raleway', sans-serif; | ||
font-weight: 100; | ||
height: 100vh; | ||
margin: 0; | ||
} | ||
.full-height { | ||
height: 100vh; | ||
} | ||
.flex-center { | ||
align-items: center; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.position-ref { | ||
position: relative; | ||
} | ||
.top-right { | ||
position: absolute; | ||
right: 10px; | ||
top: 18px; | ||
} | ||
.content { | ||
text-align: center; | ||
} | ||
.title { | ||
font-size: 84px; | ||
} | ||
.links > a { | ||
color: #636b6f; | ||
padding: 0 25px; | ||
font-size: 12px; | ||
font-weight: 600; | ||
letter-spacing: .1rem; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
} | ||
.m-b-md { | ||
margin-bottom: 30px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="flex-center position-ref full-height"> | ||
@if (Route::has('login')) | ||
<div class="top-right links"> | ||
@auth | ||
<a href="{{ url('/home') }}">Home</a> | ||
@else | ||
<a href="{{ route('login') }}">Login</a> | ||
<a href="{{ route('register') }}">Register</a> | ||
@endauth | ||
</div> | ||
@endif | ||
|
||
<div class="content"> | ||
<div class="title m-b-md"> | ||
Pandawa | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.