Configure axios library and read the api-key dynamically

This commit is contained in:
Nabeel Shahzad
2018-03-12 20:14:55 -05:00
parent 0f9ce8bbb9
commit 1896e1cc35
11 changed files with 1655 additions and 46 deletions

View File

@@ -5,8 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport'/>
{{-- Don't remove this! It's required --}}
{{-- Start of required lines block. DON'T REMOVE THESE LINES! They're required or might break things --}}
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="api-key" content="{{ Auth::check() ? Auth::user()->api_key: '' }}">
{{-- End the required lines block --}}
<title>@yield('title') - {{ config('app.name') }}</title>
@@ -21,9 +23,6 @@
<link href="{{ public_asset('/assets/system/css/vendor.css') }}" rel="stylesheet"/>
@yield('css')
{{-- This is required to include --}}
@include('system.scripts')
</head>
<body>
<!-- Navbar -->
@@ -53,8 +52,12 @@
<div class="wrapper">
<div class="clear"></div>
<div class="container-fluid" style="width: 85%!important;">
{{-- These should go where you want your content to show up --}}
@include('flash.message')
@yield('content')
{{-- End the above block--}}
</div>
<div class="clearfix" style="height: 200px;"></div>
@@ -63,7 +66,7 @@
<div class="copyright">
{{--
Please keep the copyright message somewhere, as-per the LICENSE file
Thanks!!
Thanks!!
--}}
powered by <a href="http://www.phpvms.net" target="_blank">phpvms</a>
</div>
@@ -72,20 +75,21 @@
</div>
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
{{--<script src="{{ public_asset('/assets/system/js/vendor.js') }}?v={{ time() }}"></script>
<script src="{{ public_asset('/assets/system/js/phpvms.js') }}?v={{ time() }}"></script>--}}
{{-- Start of the required tags block. Don't remove these or things will break!! --}}
<script src="{{ public_asset('/js/frontend/manifest.js') }}"></script>
<script src="{{ public_asset('/js/frontend/vendor.js') }}"></script>
<script src="{{ public_asset('/js/frontend/app.js') }}"></script>
@yield('scripts')
{{-- End the required tags block --}}
<script>
$(document).ready(function () {
$(".select2").select2();
});
</script>
@yield('scripts')
</body>
</html>