Skip to content

Commit fb87df3

Browse files
committed
升级UEditorPlus和WebUploader
1 parent b0050f9 commit fb87df3

File tree

64 files changed

+269
-100
lines changed

Some content is hidden

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

64 files changed

+269
-100
lines changed

module/Banner/Admin/Controller/BannerController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use ModStart\Grid\GridFilter;
1212
use ModStart\Support\Concern\HasFields;
1313
use Module\Banner\Type\BannerPosition;
14-
use Module\Banner\Type\BannerPositionRemark;
1514
use Module\Banner\Type\BannerType;
1615
use Module\Banner\Util\BannerUtil;
1716

@@ -26,7 +25,9 @@ protected function crud(AdminCRUDBuilder $builder)
2625
->field(function ($builder) {
2726
/** @var HasFields $builder */
2827
$builder->id('id', 'ID');
29-
$builder->select('position', '位置')->optionType(BannerPositionRemark::class);
28+
$position = $builder->select('position', '位置')
29+
->optionType(BannerPosition::class)
30+
->whenHelps(BannerPosition::whenHelps());
3031
$builder->image('image', '图片');
3132
$builder->radio('type', '样式类型')
3233
->optionType(BannerType::class)

module/Banner/Docs/module/content.md

Lines changed: 6 additions & 4 deletions

module/Banner/Docs/release.md

Lines changed: 6 additions & 0 deletions

module/Banner/Type/BannerPosition.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@ public static function getList()
1717
BannerPositionBiz::allMap()
1818
);
1919
}
20+
21+
public static function whenHelps()
22+
{
23+
$whenHelps = [];
24+
foreach (BannerPositionBiz::listAll() as $bizer) {
25+
if ($bizer->remark()) {
26+
$whenHelps[$bizer->name()] = $bizer->remark();
27+
}
28+
}
29+
return $whenHelps;
30+
}
2031
}

module/Banner/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"require": [
1212
"Vendor:>=3.0.0"
1313
],
14-
"modstartVersion": ">=3.9.0",
14+
"modstartVersion": ">=4.0.0",
1515
"title": "通用轮播",
16-
"version": "1.8.0",
16+
"version": "1.9.0",
1717
"author": "官方",
1818
"description": "提供多位置轮播图片基础管理功能",
1919
"config": {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
<div class="col-md-8">
1616
<div class="ub-content-box margin-bottom">
1717
<div class="tw-p-3">
18-
<a href="?{{\ModStart\Core\Input\Request::mergeQueries(['month'=>null])}}"
18+
<a href="?{!! \ModStart\Core\Input\Request::mergeQueries(['month'=>null]) !!}"
1919
class="btn btn-round {{!$month?'btn-primary':''}}">
2020
{{$year}}年全部({{$yearCount}})
2121
</a>
2222
@foreach($monthCounts as $mc)
23-
<a href="?{{\ModStart\Core\Input\Request::mergeQueries(['month'=>$mc['month']])}}"
23+
<a href="?{!! \ModStart\Core\Input\Request::mergeQueries(['month'=>$mc['month']]) !!}"
2424
class="btn btn-round {{$month==$mc['month']?'btn-primary':''}}">
2525
{{$mc['month']}}月({{$mc['total']}})
2626
</a>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
共找到
2727
<span class="ub-text-primary ub-text-bold">{{$total}}</span>
2828
条记录
29-
<a href="?{{\ModStart\Core\Input\Request::mergeQueries(['keywords'=>null])}}" class="ub-text-muted">
29+
<a href="?{!! \ModStart\Core\Input\Request::mergeQueries(['keywords'=>null]) !!}" class="ub-text-muted">
3030
<i class="iconfont icon-close"></i>
3131
</a>
3232
</div>
@@ -36,12 +36,12 @@
3636
<div class="tw-px-3 tw-pt-3">
3737
@foreach($categoryChain as $catIndex=>$catItem)
3838
<div class="margin-bottom">
39-
<a href="?{{\ModStart\Core\Input\Request::mergeQueries(['categoryId'=>$catItem['pid']?$catItem['pid']:null,'page'=>null])}}"
39+
<a href="?{!! \ModStart\Core\Input\Request::mergeQueries(['categoryId'=>$catItem['pid']?$catItem['pid']:null,'page'=>null]) !!}"
4040
class="btn btn-round @if($catItem['id']<=0) btn-primary @endif">
4141
全部
4242
</a>
4343
@foreach($catItem['_items'] as $item)
44-
<a href="?{{\ModStart\Core\Input\Request::mergeQueries(['categoryId'=>$item['id']?$item['id']:null,'page'=>null])}}"
44+
<a href="?{!! \ModStart\Core\Input\Request::mergeQueries(['categoryId'=>$item['id']?$item['id']:null,'page'=>null]) !!}"
4545
class="btn btn-round @if($catItem['id']==$item['id']) btn-primary @endif"
4646
>
4747
{{$item['title']}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
共找到
2727
<span class="ub-text-primary ub-text-bold">{{$total}}</span>
2828
条记录
29-
<a href="?{{\ModStart\Core\Input\Request::mergeQueries(['keywords'=>null,'page'=>null])}}" class="ub-text-muted">
29+
<a href="?{!! \ModStart\Core\Input\Request::mergeQueries(['keywords'=>null,'page'=>null]) !!}" class="ub-text-muted">
3030
<i class="iconfont icon-close"></i>
3131
</a>
3232
</div>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Module\Vendor\Api\Controller;
4+
5+
use Illuminate\Routing\Controller;
6+
use ModStart\Core\Input\InputPackage;
7+
use ModStart\Core\Input\Response;
8+
use Module\Vendor\Event\EntryBizEvent;
9+
10+
class EntryController extends Controller
11+
{
12+
public function biz()
13+
{
14+
$input = InputPackage::buildFromInput();
15+
$name = $input->getTrimString('name');
16+
$param = $input->getArray('param');
17+
EntryBizEvent::fire($name, $param);
18+
return Response::generateSuccess();
19+
}
20+
}

module/Vendor/Api/routes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
], function () use ($router) {
1010

1111
$router->match(['post'], 'captcha/image', 'CaptchaController@image');
12+
$router->match(['post'], 'entry/biz', 'EntryController@biz');
1213

1314
});

0 commit comments

Comments
 (0)