Simplify blades

This commit is contained in:
Pig Fang 2019-04-28 09:28:53 +08:00
parent 7224b32c8f
commit 86bed61a0e
9 changed files with 41 additions and 146 deletions

View File

@ -1,20 +1,2 @@
@extends('admin.master')
@section('title', trans('general.plugin-market'))
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
@lang('general.plugin-market')
</h1>
</section>
<!-- Main content -->
<section class="content"></section>
</div><!-- /.content-wrapper -->
@endsection
@component('common.skeleton', ['parent' => 'admin', 'title' => trans('general.plugin-market')])
@endcomponent

View File

@ -1,20 +1,2 @@
@extends('admin.master')
@section('title', trans('general.player-manage'))
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
@lang('general.player-manage')
</h1>
</section>
<!-- Main content -->
<section class="content"></section><!-- /.content -->
</div><!-- /.content-wrapper -->
@endsection
@component('common.skeleton', ['parent' => 'admin', 'title' => trans('general.player-manage')])
@endcomponent

View File

@ -1,20 +1,2 @@
@extends('admin.master')
@section('title', trans('general.plugin-manage'))
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
@lang('general.plugin-manage')
</h1>
</section>
<!-- Main content -->
<section class="content"></section><!-- /.content -->
</div><!-- /.content-wrapper -->
@endsection
@component('common.skeleton', ['parent' => 'admin', 'title' => trans('general.plugin-manage')])
@endcomponent

View File

@ -1,12 +1,2 @@
@extends('admin.master')
@section('title', trans('general.report-manage'))
@section('content')
<div class="content-wrapper">
<section class="content-header">
<h1>@lang('general.report-manage')</h1>
</section>
<section class="content"></section>
</div>
@endsection
@component('common.skeleton', ['parent' => 'admin', 'title' => trans('general.report-manage')])
@endcomponent

View File

@ -0,0 +1,14 @@
@extends("$parent.master")
@section('title', $title)
@section('content')
<div class="content-wrapper">
<section class="content-header">
<h1>{{ $title }}</h1>
</section>
<section class="content"></section>
</div>
{{ $bottom ?? '' }}
@endsection

View File

@ -1,12 +1,2 @@
@extends('user.master')
@section('title', trans('general.oauth-manage'))
@section('content')
<div class="content-wrapper">
<section class="content-header">
<h1>@lang('general.oauth-manage')</h1>
</section>
<section class="content"></section>
</div>
@endsection
@component('common.skeleton', ['parent' => 'user', 'title' => trans('general.oauth-manage')])
@endcomponent

View File

@ -1,24 +1,5 @@
@extends('user.master')
@section('title', trans('general.player-manage'))
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
@lang('general.player-manage')
</h1>
</section>
<!-- Main content -->
<section class="content"></section><!-- /.content -->
</div><!-- /.content-wrapper -->
<script>
blessing.extra = @json($extra)
</script>
@endsection
@component('common.skeleton', ['parent' => 'user', 'title' => trans('general.player-manage')])
@slot('bottom')
<script>blessing.extra = @json($extra)</script>
@endslot
@endcomponent

View File

@ -1,26 +1,10 @@
@extends('user.master')
@section('title', trans('general.profile'))
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
@lang('general.profile')
</h1>
</section>
<!-- Main content -->
<section class="content"></section><!-- /.content -->
</div><!-- /.content-wrapper -->
<script>
Object.defineProperty(blessing, 'extra', {
configurable: false,
get: () => Object.freeze(@json($extra)),
})
</script>
@endsection
@component('common.skeleton', ['parent' => 'user', 'title' => trans('general.profile')])
@slot('bottom')
<script>
Object.defineProperty(blessing, 'extra', {
configurable: false,
get: () => Object.freeze(@json($extra)),
})
</script>
@endslot
@endcomponent

View File

@ -1,12 +1,2 @@
@extends('user.master')
@section('title', trans('general.my-reports'))
@section('content')
<div class="content-wrapper">
<section class="content-header">
<h1>@lang('general.my-reports')</h1>
</section>
<section class="content"></section>
</div>
@endsection
@component('common.skeleton', ['parent' => 'user', 'title' => trans('general.my-reports')])
@endcomponent