Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ModStart
ModStartCMS
提交
fed1da31
ModStartCMS
项目概览
ModStart
/
ModStartCMS
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ModStartCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fed1da31
编写于
9月 11, 2021
作者:
S
server
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
develop
上级
6a9e3dd8
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
51 addition
and
92 deletion
+51
-92
module/Cms/Traits/AdminDashboardTrait.php
module/Cms/Traits/AdminDashboardTrait.php
+30
-0
module/Cms/View/pc/cms/index.blade.php
module/Cms/View/pc/cms/index.blade.php
+5
-3
module/ModuleStore/Admin/Controller/ModuleStoreController.php
...le/ModuleStore/Admin/Controller/ModuleStoreController.php
+11
-1
module/ModuleStore/Asset/entry/moduleStore.js
module/ModuleStore/Asset/entry/moduleStore.js
+1
-42
module/ModuleStore/Docs/module/content.md
module/ModuleStore/Docs/module/content.md
+1
-0
module/ModuleStore/resources/asset/gulpfile.js
module/ModuleStore/resources/asset/gulpfile.js
+0
-3
public/vendor/ModuleDeveloper/entry/moduleDeveloper.js
public/vendor/ModuleDeveloper/entry/moduleDeveloper.js
+1
-0
public/vendor/ModuleStore/entry/moduleStore.js
public/vendor/ModuleStore/entry/moduleStore.js
+1
-42
vendor/modstart/modstart/config/modstart.php
vendor/modstart/modstart/config/modstart.php
+1
-1
未找到文件。
module/Cms/Traits/AdminDashboardTrait.php
0 → 100644
浏览文件 @
fed1da31
<?php
namespace
Module\Cms\Traits
;
use
ModStart\Admin\Layout\AdminPage
;
use
ModStart\Admin\Widget\SecurityTooltipBox
;
use
ModStart\Layout\Row
;
use
Module\AdminManager\Widget\ServerInfoWidget
;
use
Module\Cms\Widget\CmsInfoWidget
;
use
Module\Vendor\Admin\Config\AdminWidgetDashboard
;
trait
AdminDashboardTrait
{
public
function
dashboard
()
{
$page
=
app
(
AdminPage
::
class
);
$page
->
pageTitle
(
L
(
'Dashboard'
))
->
row
(
new
SecurityTooltipBox
())
->
append
(
new
Row
(
function
(
Row
$row
)
{
AdminWidgetDashboard
::
callIcon
(
$row
);
}));
AdminWidgetDashboard
::
call
(
$page
);
$page
->
append
(
new
CmsInfoWidget
());
$page
->
append
(
new
ServerInfoWidget
());
return
$page
;
}
}
module/Cms/View/pc/cms/index.blade.php
浏览文件 @
fed1da31
...
...
@@ -85,9 +85,11 @@
@foreach(
$channelTree
as
$channelGroup
)
<a class="
group
-
title
" href="
{{
modstart_web_url
(
'channel/'
.
$channelGroup
[
'alias'
])}}
">
{
{$channelGroup['title']}
}
</a>
<div class="
group
-
list
">
@foreach(
$channelGroup['_child']
as
$channel
)
<a class="
item
" href="
{{
modstart_web_url
(
'channel/'
.
$channel
[
'alias'
])}}
">
{
{$channel['title']}
}
</a>
@endforeach
@if(!empty(
$channelGroup['_child']
))
@foreach(
$channelGroup['_child']
as
$channel
)
<a class="
item
" href="
{{
modstart_web_url
(
'channel/'
.
$channel
[
'alias'
])}}
">
{
{$channel['title']}
}
</a>
@endforeach
@endif
</div>
@endforeach
</div>
...
...
module/ModuleStore/Admin/Controller/ModuleStoreController.php
浏览文件 @
fed1da31
...
...
@@ -70,6 +70,7 @@ class ModuleStoreController extends Controller
$version
=
$dataInput
->
getTrimString
(
'version'
);
BizException
::
throwsIfEmpty
(
'module为空'
,
$module
);
BizException
::
throwsIfEmpty
(
'version为空'
,
$version
);
BizException
::
throwsIf
(
'当前环境禁止操作模块管理相关功能'
,
config
(
'env.MS_MODULE_STORE_DISABLE'
,
false
));
switch
(
$step
)
{
default
:
$ret
=
ModuleManager
::
disable
(
$module
);
...
...
@@ -90,6 +91,8 @@ class ModuleStoreController extends Controller
$version
=
$dataInput
->
getTrimString
(
'version'
);
BizException
::
throwsIfEmpty
(
'module为空'
,
$module
);
BizException
::
throwsIfEmpty
(
'version为空'
,
$version
);
BizException
::
throwsIf
(
'当前环境禁止操作模块管理相关功能'
,
config
(
'env.MS_MODULE_STORE_DISABLE'
,
false
));
switch
(
$step
)
{
default
:
$ret
=
ModuleManager
::
enable
(
$module
);
...
...
@@ -112,6 +115,8 @@ class ModuleStoreController extends Controller
BizException
::
throwsIfEmpty
(
'module为空'
,
$module
);
BizException
::
throwsIfEmpty
(
'version为空'
,
$version
);
BizException
::
throwsIf
(
'系统模块不能动态配置'
,
ModuleManager
::
isSystemModule
(
$module
));
BizException
::
throwsIf
(
'当前环境禁止操作模块管理相关功能'
,
config
(
'env.MS_MODULE_STORE_DISABLE'
,
false
));
if
(
$isLocal
)
{
switch
(
$step
)
{
default
:
...
...
@@ -152,7 +157,9 @@ class ModuleStoreController extends Controller
$version
=
$dataInput
->
getTrimString
(
'version'
);
BizException
::
throwsIfEmpty
(
'module为空'
,
$module
);
BizException
::
throwsIfEmpty
(
'version为空'
,
$version
);
switch
(
$step
)
{
BizException
::
throwsIf
(
'当前环境禁止操作模块管理相关功能'
,
config
(
'env.MS_MODULE_STORE_DISABLE'
,
false
));
switch
(
$step
)
{
case
'installModule'
:
$ret
=
ModuleManager
::
install
(
$module
,
true
);
BizException
::
throwsIfResponseError
(
$ret
);
...
...
@@ -204,6 +211,8 @@ class ModuleStoreController extends Controller
BizException
::
throwsIfEmpty
(
'module为空'
,
$module
);
BizException
::
throwsIfEmpty
(
'version为空'
,
$version
);
BizException
::
throwsIf
(
'系统模块不能动态配置'
,
ModuleManager
::
isSystemModule
(
$module
));
BizException
::
throwsIf
(
'当前环境禁止操作模块管理相关功能'
,
config
(
'env.MS_MODULE_STORE_DISABLE'
,
false
));
if
(
$isLocal
)
{
switch
(
$step
)
{
case
'installModule'
:
...
...
@@ -287,6 +296,7 @@ class ModuleStoreController extends Controller
}
}
return
$builder
->
perform
(
RepositoryUtil
::
itemFromArray
(
$moduleInfo
[
'config'
]),
function
(
Form
$form
)
use
(
$module
)
{
BizException
::
throwsIf
(
'当前环境禁止操作模块管理相关功能'
,
config
(
'env.MS_MODULE_STORE_DISABLE'
,
false
));
ModuleManager
::
saveUserInstalledModuleConfig
(
$module
,
$form
->
dataForming
());
return
Response
::
generate
(
0
,
'保存成功'
,
null
,
CRUDUtil
::
jsDialogClose
());
});
...
...
module/ModuleStore/Asset/entry/moduleStore.js
浏览文件 @
fed1da31
此差异已折叠。
点击以展开。
module/ModuleStore/Docs/module/content.md
0 → 100644
浏览文件 @
fed1da31
提供网站模块管理工作,通过模块市场,可以安装模块市场的所有模块,方便满足您对系统的不同需求。
module/ModuleStore/resources/asset/gulpfile.js
已删除
100644 → 0
浏览文件 @
6a9e3dd8
const
gulp
=
require
(
'
gulp
'
);
const
gulpfile
=
require
(
'
./../../../../vendor/modstart/modstart/resources/asset/src/mod/gulpfile.js
'
);
gulpfile
(
gulp
,
__dirname
)
public/vendor/ModuleDeveloper/entry/moduleDeveloper.js
0 → 100644
浏览文件 @
fed1da31
此差异已折叠。
点击以展开。
public/vendor/ModuleStore/entry/moduleStore.js
浏览文件 @
fed1da31
此差异已折叠。
点击以展开。
vendor/modstart/modstart/config/modstart.php
浏览文件 @
fed1da31
...
...
@@ -34,7 +34,7 @@ return [
'asset'
=>
[
'driver'
=>
\
ModStart\Core\Assets\Driver\LocalAssetsPath
::
class
,
'cdn'
=>
'/'
,
'cdn'
=>
env
(
'CDN_URL'
,
'/'
)
,
'image_none'
=>
''
,
],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录