Skip to content

Commit 924e239

Browse files
committed
feat: ueditor plus to 3.5.0
1 parent 6097c2b commit 924e239

File tree

129 files changed

+6046
-3257
lines changed

Some content is hidden

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

129 files changed

+6046
-3257
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.2.0';
9+
const VERSION = '8.3.0';
1010
}

module/Banner/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 调用方式,增加remark参数,手机支持视频背景
22

33
- 新增:模块快速调用方式
44
- 新增:快速调用方式增加container参数

module/Blog/Admin/Controller/BlogController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use ModStart\Repository\RepositoryUtil;
1818
use ModStart\Support\Concern\HasFields;
1919
use ModStart\Widget\TextLink;
20+
use Module\Blog\Core\BlogSiteUrlBiz;
2021
use Module\Blog\Core\BlogSuperSearchBiz;
2122
use Module\Blog\Type\BlogVisitMode;
2223
use Module\Blog\Util\BlogCategoryUtil;
@@ -85,7 +86,7 @@ protected function crud(AdminCRUDBuilder $builder)
8586
->hookChanged(function (Form $form) use (&$updatedCategoryIds) {
8687
RepositoryUtil::makeItems($form->item())->map(function ($item) use (&$updatedCategoryIds) {
8788
$updatedCategoryIds[] = $item->categoryId;
88-
SiteUrlProvider::update(modstart_web_url('blog/' . $item->id), $item->title, ['biz' => 'blog']);
89+
SiteUrlProvider::updateBiz(BlogSiteUrlBiz::NAME, modstart_web_url('blog/' . $item->id), $item->title);
8990
BlogSuperSearchBiz::syncUpsert([$item->toArray()]);
9091
});
9192
if (!empty($updatedCategoryIds)) {

module/Blog/Core/BlogSiteUrlBiz.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99

1010
class BlogSiteUrlBiz extends AbstractSiteUrlBiz
1111
{
12+
const NAME = 'blog';
13+
1214
public function name()
1315
{
14-
return 'blog';
16+
return self::NAME;
1517
}
1618

1719
public function title()

module/Vendor/Asset/entry/all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

module/Vendor/Provider/SiteUrl/SiteUrlProvider.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,33 @@ public static function get()
3939
/**
4040
* 链接更新/新增触发
4141
* @param $url string 使用绝对路径,不要带 http 协议,如 /xxx/xxx
42-
* @param $title string
42+
* @param $title string 链接标题
43+
* @param $param array ['biz'=>'xxx']
44+
* @example
45+
* SiteUrlProvider::updateBiz('xxx', modstart_web_url('xxx/xxx'));
46+
* SiteUrlProvider::updateBiz('xxx', modstart_web_url('xxx/xxx'), 'xxx');
47+
* SiteUrlProvider::updateBiz('xxx', modstart_web_url('xxx/xxx'), 'xxx', ['biz'=>'xxx']);
48+
*/
49+
public static function updateBiz($biz, $url, $title = '', $param = [])
50+
{
51+
$param['biz'] = $biz;
52+
BizException::throwsIfEmpty('SiteUrlProvider.Error -> url empty', $url);
53+
foreach (self::get() as $instance) {
54+
/** @var AbstractSiteUrlProvider $instance */
55+
$instance->update($url, $title, $param);
56+
}
57+
}
58+
59+
/**
60+
* 链接更新/新增触发
61+
* @param $url string 使用绝对路径,不要带 http 协议,如 /xxx/xxx
62+
* @param $title string 链接标题
4363
* @param $param array ['biz'=>'xxx']
4464
* @example
4565
* SiteUrlProvider::update(modstart_web_url('xxx/xxx'));
4666
* SiteUrlProvider::update(modstart_web_url('xxx/xxx'), 'xxx');
4767
* SiteUrlProvider::update(modstart_web_url('xxx/xxx'), 'xxx', ['biz'=>'xxx']);
68+
* @deprecated delete at 2024-03-14
4869
*/
4970
public static function update($url, $title = '', $param = [])
5071
{

public/asset/common/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/common/lazyLoad.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/entry/basic.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/vendor/iconfont/iconfont.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)