Browse Source

icon improve

master
filesite 5 months ago
parent
commit
914369d2c3
  1. 18
      lib/DirScanner.php
  2. 4
      themes/beauty/views/site/index.php

18
lib/DirScanner.php

@ -47,12 +47,16 @@ Class DirScanner { @@ -47,12 +47,16 @@ Class DirScanner {
'ico', //图标
'mp3', //音乐
'mp4', //视频
'mov', //视频
'ts', //视频
'm3u8', //视频
);
//暂未使用
/*
protected $maxReadFilesize = array( //默认每种文件读取内容最大大小
'txt' => 102400, //纯文本
'md' => 5242880, //纯文本
'md' => 5242880, //纯文本
'url' => 20480, //快捷方式
'jpg' => 512000, //图片
'jpeg' => 512000, //图片
@ -60,11 +64,13 @@ Class DirScanner { @@ -60,11 +64,13 @@ Class DirScanner {
'webp' => 512000, //图片
'gif' => 512000, //图片
'ico' => 51200, //图标
'mp3' => 10485760, //音乐,10M
'mp4' => 104857600, //视频,100M
'ts' => 10485760, //视频,10M
'm3u8' => 10485760, //视频,10M
'mp3' => 10485760, //音乐,10M
'mp4' => 104857600, //视频,100M
'mov' => 104857600, //视频,100M
'ts' => 10485760, //视频,10M
'm3u8' => 10485760, //视频,10M
);
protected $securedFileExtensions = array( //开启Nginx防盗链的文件类型
'jpg', //图片
'jpeg', //图片
@ -74,9 +80,11 @@ Class DirScanner { @@ -74,9 +80,11 @@ Class DirScanner {
'ico', //图标
'mp3', //音乐
'mp4', //视频
'mov', //视频
'ts', //视频
'm3u8', //视频
);
*/
public $scanTimeCost = 0; //上一次目录扫描耗时,单位:毫秒
public $isApi = false; //如果为API获取数据,则realpath只返回相对路径

4
themes/beauty/views/site/index.php

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<!-- Brand and toggle get grouped for better mobile display navbar-inverse-->
<div class="navbar-header">
<div class="navbar-toggle">
<img class="svg icon1 svgimg verMiddle cleanCacheJS" src="/img/beauty/refresh.svg" alt="清空缓存数据" title="刷新缓存数据" style="width:24px">
<img class="svg icon1 svgimg verMiddle cleanCacheJS" src="/img/beauty/refresh.svg" alt="清空缓存数据" title="刷新缓存数据" style="padding-top:2px">
<img class="svg icon1 svgimg lampJS verMiddle" src="/img/beauty/buld.svg" alt="点击关灯/开灯" title="点击关灯/开灯">
<img class="icon1 svg connectmeJS svgimg verMiddle" src="/img/beauty/contactUs.svg" alt="联系我们" title="联系我们" />
<button type="button" class="collapsed mr_button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="nb_right nav navbar-nav navbar-right hidden-xs">
<img class="svg icon1 svgimg verMiddle cleanCacheJS" src="/img/beauty/refresh.svg" alt="清空缓存数据" title="刷新缓存数据" style="width:24px">
<img class="svg icon1 svgimg verMiddle cleanCacheJS" src="/img/beauty/refresh.svg" alt="清空缓存数据" title="刷新缓存数据" style="padding-top:2px">
<img class="svg icon1 svgimg iconr2 lampJS verMiddle" src="/img/beauty/buld.svg" alt="点击关灯/开灯" title="点击关灯/开灯">
<img class="icon1 svg connectmeJS svgimg iconr2 verMiddle" src="/img/beauty/contactUs.svg" alt="联系我们" title="联系我们" />
</div>

Loading…
Cancel
Save