mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
54 lines
1.7 KiB
PHP
54 lines
1.7 KiB
PHP
@php
|
|
$config = [
|
|
'appName' => config('app.name'),
|
|
'locale' => $locale = app()->getLocale(),
|
|
'locales' => config('app.locales'),
|
|
'githubAuth' => config('services.github.client_id'),
|
|
];
|
|
|
|
$polyfills = [
|
|
'Promise',
|
|
'Object.assign',
|
|
'Object.values',
|
|
'Array.prototype.find',
|
|
'Array.prototype.findIndex',
|
|
'Array.prototype.includes',
|
|
'String.prototype.includes',
|
|
'String.prototype.startsWith',
|
|
'String.prototype.endsWith',
|
|
];
|
|
@endphp
|
|
<!DOCTYPE html>
|
|
<html lang="{{ app()->getLocale() }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<title>{{ config('app.name') }}</title>
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
|
|
|
|
|
|
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
|
|
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
|
|
{{-- Global configuration object --}}
|
|
<script>window.config = @json($config);</script>
|
|
|
|
{{-- Polyfill JS features via polyfill.io --}}
|
|
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features={{ implode(',', $polyfills) }}"></script>
|
|
|
|
{{-- Load the application scripts --}}
|
|
@if (env('APP_ENV') == 'production' || env('APP_ENV') == 'staging')
|
|
<script src="{{ mix('js/manifest.js') }}"></script>
|
|
<script src="{{ mix('js/vendor.js') }}"></script>
|
|
<script src="{{ mix('js/app.js') }}"></script>
|
|
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
|
@else
|
|
<script src="{{ mix('js/app.js') }}"></script>
|
|
@endif
|
|
</body>
|
|
</html>
|