working on support for sub directory

This commit is contained in:
printempw 2016-09-10 17:02:47 +08:00
parent fd622e2eb8
commit 300d5c4b6f
23 changed files with 78 additions and 96 deletions

View File

@ -3,7 +3,7 @@
@section('title', '个性化') @section('title', '个性化')
@section('style') @section('style')
<link rel="stylesheet" href="../assets/libs/skins/_all-skins.min.css"> <link rel="stylesheet" href="{{ assets('libs/skins/_all-skins.min.css') }}">
@endsection @endsection
@section('content') @section('content')
@ -94,7 +94,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">首页配置</h3> <h3 class="box-title">首页配置</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/customize"> <form method="post">
<input type="hidden" name="option" value="adapter"> <input type="hidden" name="option" value="adapter">
<div class="box-body"> <div class="box-body">
<?php <?php
@ -146,7 +146,7 @@
<i class="fa fa-question-circle" title="字符串将不会被转义,请小心" data-toggle="tooltip" data-placement="bottom"></i> <i class="fa fa-question-circle" title="字符串将不会被转义,请小心" data-toggle="tooltip" data-placement="bottom"></i>
</h3> </h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/customize"> <form method="post">
<input type="hidden" name="option" value="adapter"> <input type="hidden" name="option" value="adapter">
<div class="box-body"> <div class="box-body">
<?php <?php

View File

@ -22,7 +22,7 @@
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="info-box"> <div class="info-box">
<a href="../admin/users"> <a href="{{ url('admin/users') }}">
<span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span> <span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-text">注册用户</span> <span class="info-box-text">注册用户</span>
@ -34,7 +34,7 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="info-box"> <div class="info-box">
<a href="../admin/players"> <a href="{{ url('admin/players') }}">
<div class="info-box-content" style="margin-left: 0;"> <div class="info-box-content" style="margin-left: 0;">
<span class="info-box-text">角色总数</span> <span class="info-box-text">角色总数</span>
<span class="info-box-number">{{ App\Models\PlayerModel::all()->count() }}</span> <span class="info-box-number">{{ App\Models\PlayerModel::all()->count() }}</span>

View File

@ -61,7 +61,7 @@
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href="../user/profile" class="btn btn-default btn-flat">我的资料</a> <a href="{{ url('user/profile') }}" class="btn btn-default btn-flat">我的资料</a>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="javascript:logout();" class="btn btn-default btn-flat">登出</a> <a href="javascript:logout();" class="btn btn-default btn-flat">登出</a>
@ -97,13 +97,13 @@
@foreach ($menu['admin'] as $key => $value) @foreach ($menu['admin'] as $key => $value)
<li class="{{ ($__env->yieldContent('title') == $value['title']) ? 'active' : '' }}"> <li class="{{ ($__env->yieldContent('title') == $value['title']) ? 'active' : '' }}">
<a href="{{ $value['link'] }}"><i class="fa {{ $value['icon'] }}"></i> <span>{{ $value['title'] }}</span></a> <a href="{{ url($value['link']) }}"><i class="fa {{ $value['icon'] }}"></i> <span>{{ $value['title'] }}</span></a>
</li> </li>
@endforeach @endforeach
@if ($user->is_admin) @if ($user->is_admin)
<li class="header">返回</li> <li class="header">返回</li>
<li><a href="../user"><i class="fa fa-user"></i> <span>用户中心</span></a></li> <li><a href="{{ url('user') }}"><i class="fa fa-user"></i> <span>用户中心</span></a></li>
@endif @endif
</ul><!-- /.sidebar-menu --> </ul><!-- /.sidebar-menu -->
</section> </section>
@ -134,10 +134,11 @@
@if (Option::get('check_update') == '1') @if (Option::get('check_update') == '1')
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$.getJSON('../admin/update?action=check', function(data) { var url = "{{ url('admin/update') }}";
$.getJSON(url + '?action=check', function(data) {
if (data.new_version_available == true) if (data.new_version_available == true)
$('[href="/admin/update"]').append('<span class="label label-primary pull-right">v'+data.latest_version+'</span>'); $('[href="' + url + '"]').append('<span class="label label-primary pull-right">v'+data.latest_version+'</span>');
}) });
}); });
</script> </script>
@endif @endif

View File

@ -30,7 +30,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">常规选项</h3> <h3 class="box-title">常规选项</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/options"> <form method="post">
<input type="hidden" name="option" value="general"> <input type="hidden" name="option" value="general">
<div class="box-body"> <div class="box-body">
<?php <?php
@ -155,7 +155,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">站点公告</h3> <h3 class="box-title">站点公告</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/options"> <form method="post">
<input type="hidden" name="option" value="announcement"> <input type="hidden" name="option" value="announcement">
<div class="box-body"> <div class="box-body">
<?php <?php
@ -178,7 +178,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">数据对接配置</h3> <h3 class="box-title">数据对接配置</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/options"> <form method="post">
<input type="hidden" name="option" value="adapter"> <input type="hidden" name="option" value="adapter">
<div class="box-body"> <div class="box-body">
<p>当前版本数据对接不可用。</p> <p>当前版本数据对接不可用。</p>

View File

@ -15,6 +15,7 @@
角色管理 角色管理
@endif @endif
<small>Player Management</small> <small>Player Management</small>
<!-- Search Form -->
<form method="get" action="" class="user-search-form"> <form method="get" action="" class="user-search-form">
<input type="text" name="q" class="form-control user-search-input" placeholder="输入,回车搜索。" value="{{ $q }}"> <input type="text" name="q" class="form-control user-search-input" placeholder="输入,回车搜索。" value="{{ $q }}">
<select name="filter" class="form-control pull-right user-search-input"> <select name="filter" class="form-control pull-right user-search-input">
@ -22,7 +23,6 @@
<option value='uid' selected="{{ $filter == 'nickname' ? 'selected' : '' }}">根据角色拥有者搜索</option> <option value='uid' selected="{{ $filter == 'nickname' ? 'selected' : '' }}">根据角色拥有者搜索</option>
</select> </select>
</form> </form>
</h1> </h1>
</section> </section>
@ -59,24 +59,24 @@
@if ($player->tid_steve == '0') @if ($player->tid_steve == '0')
<img id="{{ $player->pid }}-steve" width="64" /> <img id="{{ $player->pid }}-steve" width="64" />
@else @else
<a href="../skinlib/show?tid={{ $player->tid_steve }}"> <a href="{{ url('skinlib/show?tid='.$player->tid_steve) }}">
<img id="{{ $player->pid }}-steve" width="64" src="../preview/64/{{ $player->tid_steve }}.png" /> <img id="{{ $player->pid }}-steve" width="64" src="{{ url('preview/64/'.$player->tid_steve) }}.png" />
</a> </a>
@endif @endif
@if ($player->tid_alex == '0') @if ($player->tid_alex == '0')
<img id="{{ $player->pid }}-alex" width="64" /> <img id="{{ $player->pid }}-alex" width="64" />
@else @else
<a href="../skinlib/show?tid={{ $player->tid_alex }}"> <a href="{{ url('skinlib/show?tid='.$player->tid_alex) }}">
<img id="{{ $player->pid }}-alex" width="64" src="../preview/64/{{ $player->tid_alex }}.png" /> <img id="{{ $player->pid }}-alex" width="64" src="{{ url('preview/64/'.$player->tid_alex) }}.png" />
</a> </a>
@endif @endif
@if ($player->tid_cape == '0') @if ($player->tid_cape == '0')
<img id="{{ $player->pid }}-cape" width="64" /> <img id="{{ $player->pid }}-cape" width="64" />
@else @else
<a href="../skinlib/show?tid={{ $player->tid_cape }}"> <a href="{{ url('skinlib/show?tid='.$player->tid_cape) }}">
<img id="{{ $player->pid }}-cape" width="64" src="../preview/64/{{ $player->tid_cape }}.png" /> <img id="{{ $player->pid }}-cape" width="64" src="{{ url('preview/64/'.$player->tid_cape) }}.png" />
</a> </a>
@endif @endif
</td> </td>
@ -145,24 +145,6 @@
</section><!-- /.content --> </section><!-- /.content -->
</div><!-- /.content-wrapper --> </div><!-- /.content-wrapper -->
<div id="modal-change-texture" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">更改 Player 的材质</h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<a href="./player" class="btn btn-default pull-left">添加角色</a>
<a href="javascript:setTexture();" class="btn btn-primary">提交</a>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
@endsection @endsection
@section('script') @section('script')

View File

@ -22,7 +22,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">积分换算</h3> <h3 class="box-title">积分换算</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/score"> <form method="post">
<input type="hidden" name="option" value="rate"> <input type="hidden" name="option" value="rate">
<div class="box-body"> <div class="box-body">
<?php <?php
@ -90,7 +90,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">签到配置</h3> <h3 class="box-title">签到配置</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/score"> <form method="post">
<input type="hidden" name="option" value="sign"> <input type="hidden" name="option" value="sign">
<div class="box-body"> <div class="box-body">
<?php <?php

View File

@ -110,7 +110,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">更新选项</h3> <h3 class="box-title">更新选项</h3>
</div><!-- /.box-header --> </div><!-- /.box-header -->
<form method="post" action="../admin/update"> <form method="post">
<div class="box-body"> <div class="box-body">
<?php <?php
if (isset($_POST['submit'])) { if (isset($_POST['submit'])) {

View File

@ -75,7 +75,7 @@
<li><a href="javascript:changeUserNickName('{{ $user->uid }}');">修改昵称</a></li> <li><a href="javascript:changeUserNickName('{{ $user->uid }}');">修改昵称</a></li>
<li><a href="javascript:changeUserPwd('{{ $user->uid }}');">更改密码</a></li> <li><a href="javascript:changeUserPwd('{{ $user->uid }}');">更改密码</a></li>
<li class="divider"></li> <li class="divider"></li>
<li><a href="../admin/players?filter=uid&q={{ $user->uid }}">查看该用户拥有的角色</a></li> <li><a href="{{ url('admin/players?filter=uid&q='.$user->uid) }}">查看该用户拥有的角色</a></li>
<li class="divider"></li> <li class="divider"></li>
{{-- If current user is super admin --}} {{-- If current user is super admin --}}

View File

@ -6,7 +6,7 @@
<div class="login-box"> <div class="login-box">
<div class="login-logo"> <div class="login-logo">
<a href="../">{{ Option::get('site_name') }}</a> <a href="{{ url('/') }}">{{ Option::get('site_name') }}</a>
</div> </div>
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="login-box-body"> <div class="login-box-body">

View File

@ -6,7 +6,7 @@
<div class="login-box"> <div class="login-box">
<div class="login-logo"> <div class="login-logo">
<a href="../">{{ Option::get('site_name') }}</a> <a href="{{ url('/') }}">{{ Option::get('site_name') }}</a>
</div> </div>
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="login-box-body"> <div class="login-box-body">
@ -26,7 +26,7 @@
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-4">
<img class="pull-right captcha" src="./captcha" alt="CAPTCHA" title="点击以更换图片" data-placement="top" data-toggle="tooltip"> <img class="pull-right captcha" src="{{ url('auth/captcha') }}" alt="CAPTCHA" title="点击以更换图片" data-placement="top" data-toggle="tooltip">
</div> </div>
<!-- /.col --> <!-- /.col -->
</div> </div>
@ -35,7 +35,7 @@
<div class="row"> <div class="row">
<div class="col-xs-8"> <div class="col-xs-8">
<a href="./login" class="text-center">我又想起来了</a> <a href="{{ url('auth/login') }}" class="text-center">我又想起来了</a>
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-4">

View File

@ -6,7 +6,7 @@
<div class="login-box"> <div class="login-box">
<div class="login-logo"> <div class="login-logo">
<a href="../">{{ Option::get('site_name') }}</a> <a href="{{ url('/') }}">{{ Option::get('site_name') }}</a>
</div> </div>
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="login-box-body"> <div class="login-box-body">
@ -22,7 +22,7 @@
<span class="glyphicon glyphicon-lock form-control-feedback"></span> <span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div> </div>
<div class="row" id="captcha-form" style="{{ (session('login_fails') > 3) ? '' : 'display: none;'}}"> <div class="row" id="captcha-form" style="{{ (session('login_fails') > 3) ? '' : 'display: none;' }}">
<div class="col-xs-8"> <div class="col-xs-8">
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<input id="captcha" type="text" class="form-control" placeholder="输入验证码"> <input id="captcha" type="text" class="form-control" placeholder="输入验证码">
@ -30,7 +30,7 @@
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-4">
<img class="pull-right captcha" src="./captcha" alt="CAPTCHA" title="点击以更换图片" data-placement="top" data-toggle="tooltip"> <img class="pull-right captcha" src="{{ url('auth/captcha') }}" alt="CAPTCHA" title="点击以更换图片" data-placement="top" data-toggle="tooltip">
</div> </div>
<!-- /.col --> <!-- /.col -->
</div> </div>
@ -53,8 +53,8 @@
</div> </div>
</form> </form>
<a href="./forgot">忘记密码了?</a><br> <a href="{{ url('auth/forgot') }}">忘记密码了?</a><br>
<a href="./register" class="text-center">注册新账号</a> <a href="{{ url('auth/register') }}" class="text-center">注册新账号</a>
</div> </div>
<!-- /.login-box-body --> <!-- /.login-box-body -->

View File

@ -6,7 +6,7 @@
<div class="register-box"> <div class="register-box">
<div class="register-logo"> <div class="register-logo">
<a href="../">{{ Option::get('site_name') }}</a> <a href="{{ url('/') }}">{{ Option::get('site_name') }}</a>
</div> </div>
<div class="register-box-body"> <div class="register-box-body">
@ -39,7 +39,7 @@
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-4">
<img class="pull-right captcha" src="./captcha" alt="CAPTCHA" title="点击以更换图片" data-placement="top" data-toggle="tooltip"> <img class="pull-right captcha" src="{{ url('auth/captcha') }}" alt="CAPTCHA" title="点击以更换图片" data-placement="top" data-toggle="tooltip">
</div> </div>
<!-- /.col --> <!-- /.col -->
</div> </div>
@ -48,7 +48,7 @@
<div class="row"> <div class="row">
<div class="col-xs-8"> <div class="col-xs-8">
<a href="./login" class="text-center">已经有账号了?登录</a> <a href="{{ url('auth/login') }}" class="text-center">已经有账号了?登录</a>
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-4">

View File

@ -6,7 +6,7 @@
<div class="login-box"> <div class="login-box">
<div class="login-logo"> <div class="login-logo">
<a href="../">{{ Option::get('site_name') }}</a> <a href="{{ url('/') }}">{{ Option::get('site_name') }}</a>
</div> </div>
<div class="login-box-body"> <div class="login-box-body">

View File

@ -31,14 +31,13 @@
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<a href="{{ Option::get('site_url') }}" class="navbar-brand">{{ Option::get('site_name') }}</a> <a href="{{ Option::get('site_url') }}" class="navbar-brand">{{ Option::get('site_name') }}</a>
</div> </div>
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse"> <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="active"><a href="./">首页</a></li> <li class="active"><a href="{{ url('/') }}">首页</a></li>
<li><a href="./skinlib">皮肤库</a></li> <li><a href="{{ url('skinlib') }}">皮肤库</a></li>
</ul> </ul>
</div><!-- /.navbar-collapse --> </div><!-- /.navbar-collapse -->
<!-- Navbar Right Menu --> <!-- Navbar Right Menu -->
@ -63,7 +62,7 @@
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href="./user" class="btn btn-default btn-flat">用户中心</a> <a href="{{ url('user') }}" class="btn btn-default btn-flat">用户中心</a>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="javascript:logout();" class="btn btn-default btn-flat">登出</a> <a href="javascript:logout();" class="btn btn-default btn-flat">登出</a>
@ -74,7 +73,7 @@
@else {{-- Anonymous User --}} @else {{-- Anonymous User --}}
<!-- User Account Menu --> <!-- User Account Menu -->
<li class="dropdown user user-menu"> <li class="dropdown user user-menu">
<a href="./auth/login" class="btn btn-login">登录</a> <a href="{{ url('auth/login') }}" class="btn btn-login">登录</a>
</li> </li>
@endif @endif
</ul> </ul>
@ -92,11 +91,11 @@
{{ Option::get('site_description') }} {{ Option::get('site_description') }}
</p> </p>
<p> <p>
@if (is_null($user)) @if (is_null($user))
<a href="./auth/register" class="button">现在注册</a> <a href="{{ url('auth/register') }}" class="button">现在注册</a>
@else @else
<a href="./user" class="button">用户中心</a> <a href="{{ url('user') }}" class="button">用户中心</a>
@endif @endif
</p> </p>
</div> </div>
</div> </div>

View File

@ -35,8 +35,8 @@
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse"> <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="active"><a href="../skinlib">皮肤库</a></li> <li class="active"><a href="{{ url('skinlib') }}">皮肤库</a></li>
<li><a href="../user/closet">我的衣柜</a></li> <li><a href="{{ url('user/closet') }}">我的衣柜</a></li>
@unless (isset($with_out_filter)) @unless (isset($with_out_filter))
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
@ -66,7 +66,7 @@
</li> </li>
@endunless @endunless
</ul> </ul>
<form class="navbar-form navbar-left" role="search" action="../skinlib/search"> <form class="navbar-form navbar-left" role="search" action="{{ url('skinlib/search') }}">
<div class="form-group"> <div class="form-group">
<input type="text" class="form-control" id="navbar-search-input" name="q" placeholder="搜索材质" value="{{ $q or '' }}" /> <input type="text" class="form-control" id="navbar-search-input" name="q" placeholder="搜索材质" value="{{ $q or '' }}" />
</div> </div>
@ -95,7 +95,7 @@
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href="../user" class="btn btn-default btn-flat">用户中心</a> <a href="{{ url('user') }}" class="btn btn-default btn-flat">用户中心</a>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="javascript:logout();" class="btn btn-default btn-flat">登出</a> <a href="javascript:logout();" class="btn btn-default btn-flat">登出</a>
@ -107,7 +107,7 @@
<!-- User Account Menu --> <!-- User Account Menu -->
<li class="dropdown user user-menu"> <li class="dropdown user user-menu">
<!-- Menu Toggle Button --> <!-- Menu Toggle Button -->
<a href="../auth/login"> <a href="{{ url('auth/login') }}">
<i class="fa fa-user"></i> <i class="fa fa-user"></i>
<!-- hidden-xs hides the username on small devices so only the image appears. --> <!-- hidden-xs hides the username on small devices so only the image appears. -->
<span class="hidden-xs nickname">未登录</span> <span class="hidden-xs nickname">未登录</span>

View File

@ -43,7 +43,7 @@
</div><!-- /.box-header --> </div><!-- /.box-header -->
<div class="box-body"> <div class="box-body">
@forelse ($textures as $texture) @forelse ($textures as $texture)
<a href="../skinlib/show?tid={{ $texture['tid'] }}"> <a href="{{ url('skinlib/show?tid='.$texture['tid']) }}">
@include('skinlib.item') @include('skinlib.item')
</a> </a>
@empty @empty

File diff suppressed because one or more lines are too long

View File

@ -106,8 +106,8 @@ label[for="type-cape"] {
</div><!-- /.container --> </div><!-- /.container -->
</div><!-- /.content-wrapper --> </div><!-- /.content-wrapper -->
<script type="text/javascript" src="../assets/libs/skin-preview/three.min.js"></script> <script type="text/javascript" src="{{ assets('libs/skin-preview/three.min.js') }}"></script>
<script type="text/javascript" src="../assets/libs/skin-preview/three.msp.js"></script> <script type="text/javascript" src="{{ assets('libs/skin-preview/three.msp.js') }}"></script>
@endsection @endsection
@section('script') @section('script')

View File

@ -13,8 +13,8 @@
<small>Closet</small> <small>Closet</small>
</h1> </h1>
<div class="breadcrumb"> <div class="breadcrumb">
<a href="../skinlib/upload"><i class="fa fa-upload"></i> 上传材质</a> <a href="{{ url('skinlib/upload') }}"><i class="fa fa-upload"></i> 上传材质</a>
<a href="../skinlib"><i class="fa fa-search"></i> 搜索材质</a> <a href="{{ url('skinlib') }}"><i class="fa fa-search"></i> 搜索材质</a>
</div> </div>
</section> </section>
@ -38,14 +38,14 @@
@forelse ($items as $item) @forelse ($items as $item)
<div class="item" tid="{{ $item->tid }}"> <div class="item" tid="{{ $item->tid }}">
<div class="item-body"> <div class="item-body">
<img src="../preview/{{ $item->tid }}.png"> <img src="{{ url('preview/'.$item->tid) }}.png">
</div> </div>
<div class="item-footer"> <div class="item-footer">
<p class="texture-name"> <p class="texture-name">
<span title="{{ $item->name }}">{{ $item->name }} <small>({{ $item->type }})</small></span> <span title="{{ $item->name }}">{{ $item->name }} <small>({{ $item->type }})</small></span>
</p> </p>
<a href="../skinlib/show?tid={{ $item->tid }}" title="在皮肤库中查看" class="more" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-share"></i></a> <a href="{{ url('skinlib/show?tid='.$item->tid) }}" title="在皮肤库中查看" class="more" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-share"></i></a>
<span title="更多" class="more" data-toggle="dropdown" aria-haspopup="true" id="share-button"><i class="fa fa-cog"></i></span> <span title="更多" class="more" data-toggle="dropdown" aria-haspopup="true" id="share-button"><i class="fa fa-cog"></i></span>
<ul class="dropdown-menu" aria-labelledby="share-button"> <ul class="dropdown-menu" aria-labelledby="share-button">
@ -57,7 +57,7 @@
@empty @empty
<div class="empty-msg"> <div class="empty-msg">
<p>衣柜里啥都没有哦~</p> <p>衣柜里啥都没有哦~</p>
<p><a href="../skinlib">皮肤库</a>看看吧~</p> <p><a href="{{ url('skinlib') }}">皮肤库</a>看看吧~</p>
</div> </div>
@endforelse @endforelse
@ -133,8 +133,8 @@
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
<script type="text/javascript" src="../assets/libs/skin-preview/three.min.js"></script> <script type="text/javascript" src="{{ assets('libs/skin-preview/three.min.js') }}"></script>
<script type="text/javascript" src="../assets/libs/skin-preview/three.msp.js"></script> <script type="text/javascript" src="{{ assets('libs/skin-preview/three.msp.js') }}"></script>
@endsection @endsection

View File

@ -3,7 +3,7 @@
@section('title', '配置生成') @section('title', '配置生成')
@section('style') @section('style')
<link rel="stylesheet" href="../assets/libs/highlight/styles/arduino-light.css"> <link rel="stylesheet" href="{{ assets('libs/highlight/styles/arduino-light.css') }}">
<style> pre { border: 0; } td[class='key'], td[class='value'] { border-top: 0 !important; } </style> <style> pre { border: 0; } td[class='key'], td[class='value'] { border-top: 0 !important; } </style>
@endsection @endsection
@ -133,7 +133,7 @@ Cape: http://skins.minecraft.net/MinecraftCloaks/%s.png
@endsection @endsection
@section('script') @section('script')
<script type="text/javascript" src="../assets/libs/highlight/highlight.min.js"></script> <script type="text/javascript" src="{{ assets('/libs/highlight/highlight.min.js') }}"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$('pre').each(function(i, block) { $('pre').each(function(i, block) {

View File

@ -59,7 +59,7 @@
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href="../user/profile" class="btn btn-default btn-flat">我的资料</a> <a href="{{ url('user/profile') }}" class="btn btn-default btn-flat">我的资料</a>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="javascript:logout();" class="btn btn-default btn-flat">登出</a> <a href="javascript:logout();" class="btn btn-default btn-flat">登出</a>
@ -95,16 +95,16 @@
@foreach ($menu['user'] as $key => $value) @foreach ($menu['user'] as $key => $value)
<li class="{{ ($__env->yieldContent('title') == $value['title']) ? 'active' : '' }}"> <li class="{{ ($__env->yieldContent('title') == $value['title']) ? 'active' : '' }}">
<a href="{{ $value['link'] }}"><i class="fa {{ $value['icon'] }}"></i> <span>{{ $value['title'] }}</span></a> <a href="{{ url($value['link']) }}"><i class="fa {{ $value['icon'] }}"></i> <span>{{ $value['title'] }}</span></a>
</li> </li>
@endforeach @endforeach
<li class="header">浏览</li> <li class="header">浏览</li>
<li><a href="../skinlib"><i class="fa fa-archive"></i> <span>皮肤库</span></a></li> <li><a href="{{ url('skinlib') }}"><i class="fa fa-archive"></i> <span>皮肤库</span></a></li>
@if ($user->is_admin) @if ($user->is_admin)
<li class="header">管理</li> <li class="header">管理</li>
<li><a href="../admin"><i class="fa fa-cog"></i> <span>管理面板</span></a></li> <li><a href="{{ url('admin') }}"><i class="fa fa-cog"></i> <span>管理面板</span></a></li>
@endif @endif
</ul><!-- /.sidebar-menu --> </ul><!-- /.sidebar-menu -->
</section> </section>

View File

@ -141,8 +141,8 @@
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
<script type="text/javascript" src="../assets/libs/skin-preview/three.min.js"></script> <script type="text/javascript" src="{{ assets('libs/skin-preview/three.min.js') }}"></script>
<script type="text/javascript" src="../assets/libs/skin-preview/three.msp.js"></script> <script type="text/javascript" src="{{ assets('libs/skin-preview/three.msp.js') }}"></script>
@endsection @endsection

View File

@ -4,7 +4,7 @@
*/ */
require __DIR__."/bootstrap.php"; require __DIR__."/bootstrap.php";
throw new App\Exceptions\PrettyPageException('非法参数', 1, true);
// If already installed // If already installed
if (checkTableExist()) { if (checkTableExist()) {
View::show('setup.locked'); View::show('setup.locked');