Skip to content

Commit

Permalink
v0.9.001
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwijaya-dev committed Jun 19, 2021
1 parent 3345e1a commit 57adaf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/Responses/HTMLResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ public function getData(){

public function toResponse($request)
{
$this->data[] = [ '_type'=>'script', 'script'=>"ui(\"meta[name='csrf-token']\").attr('content', '" . csrf_token() . "')" ];

return response()->json($this->data, $this->status, $this->headers);
}
}
14 changes: 9 additions & 5 deletions src/views/layouts/master-ui.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@
<link rel="stylesheet" media="print" href="/css/ui.min.css?v={{ assets_version() }}"/>
<link rel="stylesheet" media="print" href="/css/all.min.css?v={{ assets_version() }}"/>
<script type="text/javascript" src="/js/ui.min.js?v={{ assets_version() }}" defer></script>

@stack('head')

</head>
<body>
<body class="{{ $body['class'] ?? '' }}">

<div class="screen">
@if(!isset($page['no_splash']))
@stack('body-pre')

<div class="splash">
@if(!isset($no_splash) || !$no_splash)
@yield('splash')
@endif
@endif
</div>

<div class="screen">
@yield('screen')
</div>

Expand Down

0 comments on commit 57adaf6

Please sign in to comment.