[更新]修改后台配置及样式

This commit is contained in:
Anyon 2019-09-30 11:34:09 +08:00
parent 3d119013a4
commit d9f21d2dab
10 changed files with 220 additions and 228 deletions

View File

@ -11,35 +11,35 @@
{/foreach} {/foreach}
</div> </div>
<form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class="think-box-shadow padding-40"> <form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class="think-box-shadow padding-40 padding-bottom-10">
<div class="layui-row layui-col-space30">
<div class="layui-col-md6">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">程序名称</span> <span class="color-green font-w7">程序名称</span>
<span class="color-desc margin-left-5">Name</span> <span class="color-desc margin-left-5">Name</span>
<input name="app_name" required placeholder="请输入程序名称" value="{:sysconf('app_name')}" class="layui-input"> <input name="app_name" required placeholder="请输入程序名称" value="{:sysconf('app_name')}" class="layui-input">
</label> </label>
<p class="help-block">程序名称,在后台主标题上显示 {:sysconf('app_name')}</p> <p class="help-block">程序名称,在后台左上角标题处理显示</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">程序版本</span> <span class="color-green font-w7">程序版本</span>
<span class="color-desc margin-left-5">Version</span> <span class="color-desc margin-left-5">Version</span>
<input name="app_version" placeholder="请输入程序版本" value="{:sysconf('app_version')}" class="layui-input"> <input name="app_version" placeholder="请输入程序版本" value="{:sysconf('app_version')}" class="layui-input">
</label> </label>
<p class="help-block">程序版本,在后台主标题上标显示版本 {:sysconf('app_version')}</p> <p class="help-block">程序版本,在后台左上角标题处理显示</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">网站名称</span> <span class="color-green font-w7">网站名称</span>
<span class="color-desc margin-left-5">Website</span> <span class="color-desc margin-left-5">Website</span>
<input name="site_name" required placeholder="请输入网站名称" value="{:sysconf('site_name')}" class="layui-input"> <input name="site_name" required placeholder="请输入网站名称" value="{:sysconf('site_name')}" class="layui-input">
</label> </label>
<p class="help-block">网站名称,将在浏览器的标签上显示 {:sysconf('site_name')}</p> <p class="help-block">网站名称,将在浏览器的标签上显示名称</p>
</div> </div>
</div>
<div class="layui-col-md6">
<div class="layui-form-item"> <div class="layui-form-item">
<span class="color-green font-w7">浏览器图标</span> <span class="color-green font-w7">浏览器图标</span>
<span class="color-desc margin-left-5">Browser</span> <span class="color-desc margin-left-5">Browser</span>
@ -50,7 +50,6 @@
<p class="help-block">建议上传 ICO 图标的尺寸为 128x128 <a href="http://www.favicon-icon-generator.com" target="_blank">ICON在线制作</a></p> <p class="help-block">建议上传 ICO 图标的尺寸为 128x128 <a href="http://www.favicon-icon-generator.com" target="_blank">ICON在线制作</a></p>
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">网站备案号</span> <span class="color-green font-w7">网站备案号</span>
@ -59,7 +58,6 @@
</label> </label>
<p class="help-block">网站备案号,可以在<a target="_blank" href="http://beian.miit.gov.cn">备案管理中心</a>查询获取,将在登录页面下面显示</p> <p class="help-block">网站备案号,可以在<a target="_blank" href="http://beian.miit.gov.cn">备案管理中心</a>查询获取,将在登录页面下面显示</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">网站版权信息</span> <span class="color-green font-w7">网站版权信息</span>
@ -68,13 +66,12 @@
</label> </label>
<p class="help-block">网站版权信息,在后台登录页面显示版本信息并链接到备案到信息备案管理系统</p> <p class="help-block">网站版权信息,在后台登录页面显示版本信息并链接到备案到信息备案管理系统</p>
</div> </div>
</div>
</div>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>
<div class="layui-form-item text-center"> <div class="layui-form-item text-center">
<button class="layui-btn" type="submit">保存配置</button> <button class="layui-btn" type="submit">保存配置</button>
</div> </div>
</form> </form>
{/block} {/block}

View File

@ -1,8 +1,7 @@
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off"> <form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body"> <div class="layui-card-body">
<div class="padding-right-40"> <div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
<div class="color-blue padding-left-40 padding-bottom-20"> <p class="font-w7">文件将存储在本地服务器,需确保服务器的 public/upload 目录有写入权限,有足够的存储空间!</p>
文件将存储在本地服务器,需确保服务器的 public/upload 目录有写入权限,有足够的存储空间。
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label> <label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
@ -18,5 +17,4 @@
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button> <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
</div> </div>
</div> </div>
</div>
</form> </form>

View File

@ -1,8 +1,8 @@
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off"> <form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body"> <div class="layui-card-body">
<div class="padding-right-40"> <div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
<div class="color-blue padding-left-40 padding-bottom-20"> <p class="margin-bottom-5 font-w7">文件将上传到阿里云OSS空间需要配置OSS公开访问及跨域策略</p>
文件将上传到阿里云OSS空间需要配置OSS公开访问及跨域策略目前已实现自动创建空间及配置访问策略 目前已实现自动创建空间及配置访问策略!<a target="_blank" href="https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=08p1pddw">我要免费申请</a>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label> <label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
@ -76,6 +76,5 @@
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button> <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
</div> </div>
</div> </div>
</div>
<script>form.render()</script> <script>form.render()</script>
</form> </form>

View File

@ -1,8 +1,8 @@
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off"> <form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body"> <div class="layui-card-body">
<div class="padding-right-40"> <div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
<div class="color-blue padding-left-40 padding-bottom-20"> <p class="margin-bottom-5 font-w7">文件将上传到七牛云存储对象存储需要配置为公开访问的Bucket空间</p>
文件将上传到七牛云空间(<a target="_blank" href="https://portal.qiniu.com/signup?code=3lhz6nmnwbple">点击这里免费申请10G存储</a>申请成功后添加公开bucket并配置接口密钥 完成实名认证后可获得10G免费存储空间哦<a target="_blank" href="https://portal.qiniu.com/signup?code=3lhz6nmnwbple">我要免费申请</a>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label> <label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
@ -23,7 +23,7 @@
{/if} {/if}
</label> </label>
{/foreach} {/foreach}
<p class="help-block">七牛云存储访问协议http、https、auto,其中 https 需要配置证书才能使用auto 为相对协议自动根据域名切换http与https</p> <p class="help-block">七牛云存储访问协议,其中 https 需要配置证书才能使用auto 为相对协议。</p>
</div> </div>
</div> </div>
<div class="layui-form-item" data-storage-type="qiniu"> <div class="layui-form-item" data-storage-type="qiniu">
@ -77,5 +77,4 @@
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button> <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
</div> </div>
</div> </div>
</div>
</form> </form>

View File

@ -788,7 +788,7 @@ label.think-radio {
.hr-line-dashed { .hr-line-dashed {
color: #fff; color: #fff;
height: 1px; height: 1px;
margin: 20px 0; margin: 15px 0;
background-color: #fff; background-color: #fff;
border-top: 1px dashed #e7eaec; border-top: 1px dashed #e7eaec;
} }

View File

@ -149,7 +149,7 @@
&dashed { &dashed {
color: #fff; color: #fff;
height: 1px; height: 1px;
margin: 20px 0; margin: 15px 0;
background-color: #fff; background-color: #fff;
border-top: 1px dashed #e7eaec border-top: 1px dashed #e7eaec
} }

View File

@ -17,8 +17,7 @@ use think\facade\Request;
use think\facade\Route; use think\facade\Route;
/* 演示环境禁止操作路由绑定 */ /* 演示环境禁止操作路由绑定 */
$domain = Request::host(true); if (stripos(Request::host(true), 'thinkadmin.top') !== false) {
if (in_array($domain, ['127.0.0.1', 'localhost']) || stripos($domain, 'thinkadmin.top') <> false) {
Route::post('admin/user/pass', function () { Route::post('admin/user/pass', function () {
return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']); return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']);
}); });

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032::getLoader(); return ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032 class ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122
{ {
private static $loader; private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) { if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php'; require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitea9430bef9688db72c38464c06dd4032::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::getInitializer($loader));
} else { } else {
$map = require __DIR__ . '/autoload_namespaces.php'; $map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) { foreach ($map as $namespace => $path) {
@ -48,19 +48,19 @@ class ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032
$loader->register(true); $loader->register(true);
if ($useStaticLoader) { if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitea9430bef9688db72c38464c06dd4032::$files; $includeFiles = Composer\Autoload\ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$files;
} else { } else {
$includeFiles = require __DIR__ . '/autoload_files.php'; $includeFiles = require __DIR__ . '/autoload_files.php';
} }
foreach ($includeFiles as $fileIdentifier => $file) { foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireea9430bef9688db72c38464c06dd4032($fileIdentifier, $file); composerRequire2078d92f7b7bb325fe9f8c9a5d00e122($fileIdentifier, $file);
} }
return $loader; return $loader;
} }
} }
function composerRequireea9430bef9688db72c38464c06dd4032($fileIdentifier, $file) function composerRequire2078d92f7b7bb325fe9f8c9a5d00e122($fileIdentifier, $file)
{ {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file; require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInitea9430bef9688db72c38464c06dd4032 class ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122
{ {
public static $files = array ( public static $files = array (
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php', '841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
@ -321,9 +321,9 @@ class ComposerStaticInitea9430bef9688db72c38464c06dd4032
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitea9430bef9688db72c38464c06dd4032::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitea9430bef9688db72c38464c06dd4032::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitea9430bef9688db72c38464c06dd4032::$classMap; $loader->classMap = ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }