2015-07-07 13:59:21 +08:00
|
|
|
<!doctype html>
|
2018-12-04 07:17:49 +08:00
|
|
|
<html @if ($direction) dir="{{ $direction }}" @endif
|
|
|
|
@if ($language) lang="{{ $language }}" @endif>
|
2018-06-30 11:01:12 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>{{ $title }}</title>
|
|
|
|
|
|
|
|
{!! $head !!}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
{!! $layout !!}
|
|
|
|
|
|
|
|
<div id="modal"></div>
|
|
|
|
<div id="alerts"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.getElementById('flarum-loading').style.display = 'block';
|
|
|
|
var flarum = {extensions: {}};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{!! $js !!}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.getElementById('flarum-loading').style.display = 'none';
|
|
|
|
|
|
|
|
try {
|
2019-10-23 05:34:33 +08:00
|
|
|
app.boot(@json($payload));
|
|
|
|
// flarum.core.app.bootExtensions(flarum.extensions);
|
|
|
|
// flarum.core.app.boot();
|
2018-06-30 11:01:12 +08:00
|
|
|
} catch (e) {
|
|
|
|
var error = document.getElementById('flarum-loading-error');
|
|
|
|
error.innerHTML += document.getElementById('flarum-content').textContent;
|
|
|
|
error.style.display = 'block';
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{!! $foot !!}
|
|
|
|
</body>
|
2015-07-07 13:59:21 +08:00
|
|
|
</html>
|