Skip to content

Commit 22dbba0

Browse files
committed
新增:富文本全新升级
1 parent 5b13e9c commit 22dbba0

File tree

341 files changed

+39028
-32024
lines changed

Some content is hidden

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

341 files changed

+39028
-32024
lines changed

module/Banner/Docs/release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.8.0
2+
3+
- 优化:视频 `Banner` 概率不播放问题
4+
5+
---
6+
17
## 1.7.0 调用方式,增加remark参数,手机支持视频背景
28

39
- 新增:模块快速调用方式

module/Banner/View/inc/banner.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<div class="cover">
6262
<video class="video-player"
6363
src="{{\ModStart\Core\Assets\AssetsUtil::fix($b['video'])}}"
64-
autoplay="autoplay" loop="loop" muted="muted"></video>
64+
autoplay loop muted playsinline></video>
6565
</div>
6666
</a>
6767
@endif

module/Banner/View/pc/public/banner.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<div class="cover">
6363
<video class="video-player"
6464
src="{{\ModStart\Core\Assets\AssetsUtil::fix($b['video'])}}"
65-
autoplay="autoplay" loop="loop" muted="muted"></video>
65+
autoplay loop muted playsinline></video>
6666
</div>
6767
</a>
6868
@endif

module/Banner/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"modstartVersion": ">=2.6.0",
1515
"title": "通用轮播",
16-
"version": "1.7.0",
16+
"version": "1.8.0",
1717
"author": "官方",
1818
"description": "提供多位置轮播图片基础管理功能",
1919
"config": {

module/Site/Admin/Controller/ConfigController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ public function setting(AdminConfigBuilder $builder)
3838
$builder->text('Site_ContactAddress', '地址');
3939
$builder->image('Site_ContactQrcode', '联系二维码')->help('可传带二维码的公众号/微信/QQ等,方便用户扫码联系');
4040

41+
$builder->layoutSeparator('其他配置');
42+
$builder->complexFieldsList('Site_PublicInternalUrlMap', '内外网链接节流映射')
43+
->fields([
44+
['name' => 'public', 'title' => '外网地址', 'type' => 'text', 'defaultValue' => '', 'placeholder' => 'https://public.example.com', 'tip' => '',],
45+
['name' => 'internal', 'title' => '内网地址', 'type' => 'text', 'defaultValue' => '', 'placeholder' => 'https://internal.example.com', 'tip' => '',],
46+
])
47+
->help('在使用第三方存储时,程序拉取外网地址会造成流量浪费,使用此功能可将外网地址映射为内网地址,节省流量');
48+
4149
$builder->formClass('wide');
4250
return $builder->perform();
4351
}

module/Site/Docs/release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.7.0
2+
3+
- 新增:内外网链接节流映射配置
4+
5+
---
6+
17
## 1.6.0 增加联系客服页面 site/contact(支持弹窗)
28

39
- 新增:增加联系客服页面 site/contact(支持弹窗)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
4+
namespace Module\Vendor\Command;
5+
6+
use Illuminate\Console\Command;
7+
use Illuminate\Support\Facades\Log;
8+
use Illuminate\Support\Str;
9+
use ModStart\Core\Util\ArrayUtil;
10+
use ModStart\Core\Util\FileUtil;
11+
use ModStart\Core\Util\ShellUtil;
12+
use ModStart\Core\Util\TimeUtil;
13+
use ModStart\ModStart;
14+
use Module\Vendor\Util\CacheUtil;
15+
16+
class ScheduleRunAllCommand extends Command
17+
{
18+
protected $signature = 'modstart:schedule-run-all {php} {dir}';
19+
20+
public function handle()
21+
{
22+
$php = $this->argument('php');
23+
$dir = $this->argument('dir');
24+
$hash = md5($php . ':' . $dir);
25+
$projects = CacheUtil::remember("Vendor:ScheduleRunAll:Projects:" . $hash,
26+
3600,
27+
function () use ($dir) {
28+
$projects = FileUtil::listFiles($dir);
29+
$projects = array_filter($projects, function ($p) {
30+
return $p['isDir']
31+
&& @file_exists($p['pathname'] . '/artisan')
32+
&& @file_exists($p['pathname'] . '/.env')
33+
&& !Str::startsWith($p['filename'], '_delete.')
34+
&& @file_exists($p['pathname'] . '/vendor/modstart/modstart-' . ModStart::env());
35+
});
36+
shuffle($projects);
37+
return ArrayUtil::keepItemsKeys($projects, ['pathname']);
38+
});
39+
foreach ($projects as $project) {
40+
$start = TimeUtil::millitime();
41+
$command = "$php {$project['pathname']}/artisan schedule:run";
42+
Log::info("Vendor.ScheduleRunAllCommand.Run - {$command}");
43+
$result = ShellUtil::run($command, false);
44+
$result = str_replace([
45+
"\r"
46+
], "", $result);
47+
$result = str_replace("\n", " ", $result);
48+
$result = str_replace("Running scheduled command: Closure", "", $result);
49+
$result = str_replace("No scheduled commands are ready to run.", "", $result);
50+
$ms = TimeUtil::millitime() - $start;
51+
Log::info("Vendor.ScheduleRunAllCommand.Result - {$result} - {$ms}ms");
52+
}
53+
}
54+
}

module/Vendor/Core/ModuleServiceProvider.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
use Illuminate\Events\Dispatcher;
66
use Illuminate\Support\ServiceProvider;
7+
use Module\Vendor\Command\ScheduleRunAllCommand;
78
use Module\Vendor\Command\ScheduleRunnerCommand;
9+
use Module\Vendor\Provider\Schedule\ScheduleBiz;
10+
use Module\Vendor\Schedule\DataTempCleanScheduleBiz;
11+
use Module\Vendor\Schedule\TempFileCleanScheduleBiz;
812

913
class ModuleServiceProvider extends ServiceProvider
1014
{
@@ -17,7 +21,12 @@ public function boot(Dispatcher $events)
1721
{
1822
$this->commands([
1923
ScheduleRunnerCommand::class,
24+
ScheduleRunAllCommand::class,
2025
]);
26+
if (class_exists(DataTempCleanScheduleBiz::class)) {
27+
ScheduleBiz::register(DataTempCleanScheduleBiz::class);
28+
ScheduleBiz::register(TempFileCleanScheduleBiz::class);
29+
}
2130
}
2231

2332
/**

module/Vendor/Docs/release.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 4.2.0
2+
3+
- 新增:临时上传文件data_temp自动清除调度任务
4+
- 新增:临时缓存文件自动清理任务调度
5+
6+
---
7+
18
## 4.1.0 功能特性优化,已知问题修复
29

310
- 功能特性优化,已知问题修复

module/Vendor/Installer/function.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function env($key, $defaultValue = '')
286286
{
287287
static $values = null;
288288
if (null === $values) {
289-
$values = \ModStart\Core\Env\EnvUtil::all(ENV_FILE_EXAMPLE);
289+
$values = \ModStart\Core\Util\EnvUtil::all(ENV_FILE_EXAMPLE);
290290
}
291291
return isset($values[$key]) ? $values[$key] : $defaultValue;
292292
}

0 commit comments

Comments
 (0)