Skip to content

Commit 7529d16

Browse files
committed
发布:8.8.0
1 parent 87c2d3a commit 7529d16

File tree

117 files changed

+1423
-395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1423
-395
lines changed

app/Constant/AppConstant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class AppConstant
66
{
77
const APP = 'blog';
88
const APP_NAME = 'ModStartBlog';
9-
const VERSION = '8.7.0';
9+
const VERSION = '8.8.0';
1010
}

module/AdminManager/Widget/ServerInfoWidget.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Module\AdminManager\Widget;
44

55
use Illuminate\Support\Str;
6+
use ModStart\Core\Util\SerializeUtil;
67
use ModStart\Widget\AbstractWidget;
78
use Module\AdminManager\Util\ModuleUtil;
89

@@ -13,7 +14,7 @@ class ServerInfoWidget extends AbstractWidget
1314
protected function variables()
1415
{
1516
$phpExtensions = get_loaded_extensions();
16-
$modules = json_encode([
17+
$modules = SerializeUtil::jsonEncode([
1718
'modules' => ModuleUtil::modules(),
1819
]);
1920
if (function_exists('gzdeflate')) {

module/Blog/View/pc/blog/list.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{!! \ModStart\ModStart::js('asset/vendor/jqueryMark.js') !!}
1010
{!! \ModStart\ModStart::style('[data-markjs]{color:red !important;background:transparent;}') !!}
11-
{!! \ModStart\ModStart::script("$('.pb-keywords-highlight').mark(".json_encode($markKeywords).".join(' '),{separateWordSearch:true});") !!}
11+
{!! \ModStart\ModStart::script("$('.pb-keywords-highlight').mark(".\ModStart\Core\Util\SerializeUtil::jsonEncode($markKeywords).".join(' '),{separateWordSearch:true});") !!}
1212

1313
@include('module::Blog.View.pc.blog.inc.theme')
1414

module/Blog/View/pc/blog/listCover.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{!! \ModStart\ModStart::js('asset/vendor/jqueryMark.js') !!}
1010
{!! \ModStart\ModStart::style('[data-markjs]{color:red !important;background:transparent;}') !!}
11-
{!! \ModStart\ModStart::script("$('.pb-keywords-highlight').mark(".json_encode($keywords).",{});") !!}
11+
{!! \ModStart\ModStart::script("$('.pb-keywords-highlight').mark(".\ModStart\Core\Util\SerializeUtil::jsonEncode($keywords).",{});") !!}
1212

1313
@include('module::Blog.View.pc.blog.inc.theme')
1414

module/ModuleStore/Util/ModuleStoreUtil.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use ModStart\Core\Input\Response;
1212
use ModStart\Core\Util\CurlUtil;
1313
use ModStart\Core\Util\FileUtil;
14+
use ModStart\Core\Util\SerializeUtil;
1415
use ModStart\Core\Util\VersionUtil;
1516
use ModStart\ModStart;
1617
use ModStart\Module\ModuleManager;
@@ -242,7 +243,7 @@ public static function unpackModule($module, $package, $licenseKey)
242243
$zipper->extractTo($moduleDir);
243244
$zipper->close();
244245
BizException::throwsIf('解压失败', !file_exists($moduleDir . '/config.json'));
245-
file_put_contents($moduleDir . '/license.json', json_encode([
246+
file_put_contents($moduleDir . '/license.json', SerializeUtil::jsonEncode([
246247
'licenseKey' => $licenseKey,
247248
]));
248249
self::cleanDownloadedPackage($package);

module/Nav/Admin/Controller/NavController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use ModStart\Admin\Layout\AdminCRUDBuilder;
1010
use ModStart\Core\Dao\ModelUtil;
1111
use ModStart\Core\Type\TypeUtil;
12+
use ModStart\Core\Util\SerializeUtil;
1213
use ModStart\Field\AbstractField;
1314
use ModStart\Field\AutoRenderedFieldValue;
1415
use ModStart\Field\Type\FieldRenderMode;
@@ -44,7 +45,7 @@ protected function crud(AdminCRUDBuilder $builder)
4445
}
4546
}
4647
}
47-
ModStart::script('window.__positionNavs=' . json_encode($positionNavs) . ';');
48+
ModStart::script('window.__positionNavs=' . SerializeUtil::jsonEncode($positionNavs) . ';');
4849
ModStart::scriptFile('module/Nav/Admin/Controller/NavEdit.js');
4950
}
5051
$builder

module/Nav/Util/NavUtil.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function tree()
4040
* @param string $position
4141
* @return mixed
4242
*/
43-
public static function listByPosition($position = 'header')
43+
public static function listByPosition($position = 'head')
4444
{
4545
$nodes = self::tree();
4646
return array_filter($nodes, function ($item) use ($position) {
@@ -55,14 +55,14 @@ public static function listByPosition($position = 'header')
5555
* @param int $minutes
5656
* @return mixed
5757
*/
58-
public static function listByPositionWithCache($position = 'header', $minutes = 600)
58+
public static function listByPositionWithCache($position = 'head', $minutes = 600)
5959
{
6060
return Cache::remember(self::CACHE_KEY_PREFIX . $position, $minutes, function () use ($position) {
6161
return self::listByPosition($position);
6262
});
6363
}
6464

65-
public static function hasData($position = 'header')
65+
public static function hasData($position = 'head')
6666
{
6767
$values = self::listByPositionWithCache($position);
6868
return !empty($values);

module/Nav/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Vendor:>=3.0.0"
1313
],
1414
"modstartVersion": ">=2.6.0",
15-
"title": "通用导航配置",
15+
"title": "通用导航",
1616
"version": "1.7.0",
1717
"author": "官方",
1818
"description": "提供多位置的导航配置工具",

module/Site/Docs/module/content.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,34 @@
22

33
「网站基础信息配置」模块提供了网站的基础信息配置
44

5-
## 功能特性
6-
7-
- 配置网站名称
8-
- 配置关键词
9-
- 配置描述
10-
- 配置备案信息
11-
- 配置主色调
12-
- 配置网站模板
5+
```mind
6+
功能特性
7+
网站信息
8+
网站Logo
9+
网站名称
10+
网站副标题
11+
网站域名
12+
网站地址
13+
网站关键词
14+
网站描述
15+
网站ICO
16+
主题设置
17+
网站主色调
18+
网站主题
19+
主题设置
20+
备案信息
21+
ICP备案编号
22+
公安备案文字
23+
公安备案链接
24+
其他备案信息
25+
联系信息
26+
邮箱
27+
电话
28+
地址
29+
联系二维码
30+
其他配置
31+
存储节流映射
32+
```
1333

1434
## 多主题选项使用
1535

module/Site/Docs/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.7.0
1+
## 1.7.0 内外网链接节流映射配置,模板可自定义设置弹窗
22

33
- 新增:内外网链接节流映射配置
44
- 新增:模板可自定义设置弹窗

0 commit comments

Comments
 (0)