Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ModStart
ModStartCMS
提交
db25b644
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 搜索 >>
提交
db25b644
编写于
9月 13, 2021
作者:
S
server
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
develop
上级
a6d6bcb4
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
86 addition
and
26 deletion
+86
-26
app/Admin/Controller/IndexController.php
app/Admin/Controller/IndexController.php
+4
-19
module/Cms/View/pc/cms/post/show.blade.php
module/Cms/View/pc/cms/post/show.blade.php
+2
-0
module/Member/Docs/release/1.2.0.md
module/Member/Docs/release/1.2.0.md
+1
-0
module/Member/View/pc/memberProfile/avatar.blade.php
module/Member/View/pc/memberProfile/avatar.blade.php
+1
-1
module/Member/config.json
module/Member/config.json
+1
-1
module/Vendor/Docs/release/1.1.0.md
module/Vendor/Docs/release/1.1.0.md
+2
-1
module/Vendor/Provider/RandomImage/AbstractRandomImageProvider.php
...ndor/Provider/RandomImage/AbstractRandomImageProvider.php
+10
-0
module/Vendor/Provider/RandomImage/DefaultRandomImageProvider.php
...endor/Provider/RandomImage/DefaultRandomImageProvider.php
+19
-0
module/Vendor/Provider/RandomImage/RandomImageProvider.php
module/Vendor/Provider/RandomImage/RandomImageProvider.php
+27
-0
vendor/modstart/modstart/resources/asset/src/mod/webpack.js
vendor/modstart/modstart/resources/asset/src/mod/webpack.js
+7
-2
vendor/modstart/modstart/resources/asset/src/svue/lib/date-util.js
...dstart/modstart/resources/asset/src/svue/lib/date-util.js
+3
-0
vendor/modstart/modstart/src/ModStart.php
vendor/modstart/modstart/src/ModStart.php
+1
-1
vendor/modstart/modstart/views/admin/frame.blade.php
vendor/modstart/modstart/views/admin/frame.blade.php
+6
-0
vendor/modstart/modstart/views/admin/login.blade.php
vendor/modstart/modstart/views/admin/login.blade.php
+2
-1
未找到文件。
app/Admin/Controller/IndexController.php
浏览文件 @
db25b644
...
...
@@ -5,28 +5,13 @@ namespace App\Admin\Controller;
use
Illuminate\Routing\Controller
;
use
ModStart\Admin\Layout\AdminPage
;
use
ModStart\Admin\Widget\DashboardItemA
;
use
ModStart\Admin\Widget\SecurityTooltipBox
;
use
ModStart\Core\Dao\ModelUtil
;
use
ModStart\Core\Util\ColorUtil
;
use
ModStart\Layout\Row
;
use
Module\AdminManager\Widget\ServerInfoWidget
;
use
Module\Cms\Widget\CmsInfoWidget
;
use
Module\Vendor\Admin\Config\AdminWidgetDashboard
;
use
Module\Cms\Traits\AdminDashboardTrait
;
class
IndexController
extends
Controller
{
public
function
index
(
AdminPage
$page
)
use
AdminDashboardTrait
;
public
function
index
()
{
$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
;
return
$this
->
dashboard
();
}
}
module/Cms/View/pc/cms/post/show.blade.php
浏览文件 @
db25b644
...
...
@@ -106,11 +106,13 @@
</
div
>
@
if
(
0
)
<
div
class
=
"ub-container margin-top"
style
=
"max-width:35rem;"
>
<
div
>
@
include
(
'module::MemberComment.View.pc.public.comment'
,[
'biz'
=>
'post'
,
'bizId'
=>
$post
[
'id'
]])
</
div
>
</
div
>
@
endif
@
endsection
...
...
module/Member/Docs/release/1.2.0.md
浏览文件 @
db25b644
...
...
@@ -6,3 +6,4 @@
-
增加我的积分功能
-
启用我的钱包提现功能
-
增加VIP功能
-
修复用户头像为PNG图片背景黑色问题
module/Member/View/pc/memberProfile/avatar.blade.php
浏览文件 @
db25b644
...
...
@@ -32,7 +32,7 @@
$cropper
.
cropper
(
'zoom'
,
0.1
);
});
$
(
'#avatarSave'
)
.
on
(
'click'
,
function
()
{
var
image
=
$cropper
.
cropper
(
'getCroppedCanvas'
)
.
toDataURL
(
'image/
jpe
g'
);
var
image
=
$cropper
.
cropper
(
'getCroppedCanvas'
)
.
toDataURL
(
'image/
pn
g'
);
window
.
api
.
dialog
.
loadingOn
();
$
.
post
(
'?'
,
{
type
:
'cropper'
,
avatar
:
image
},
function
(
res
)
{
window
.
api
.
dialog
.
loadingOff
();
...
...
module/Member/config.json
浏览文件 @
db25b644
...
...
@@ -4,7 +4,7 @@
"require"
:
[
"Vendor"
],
"version"
:
"1.
2
.0"
,
"version"
:
"1.
1
.0"
,
"author"
:
"官方"
,
"description"
:
"提供基础的用户管理服务"
,
"providers"
:
[
...
...
module/Vendor/Docs/release/1.1.0.md
浏览文件 @
db25b644
...
...
@@ -2,4 +2,5 @@ ModStart基础包
---
-
增加通用验证抽象包
-
增加通用验证Provider
-
增加随机图片生成器Provider
module/Vendor/Provider/RandomImage/AbstractRandomImageProvider.php
0 → 100644
浏览文件 @
db25b644
<?php
namespace
Module\Vendor\Provider\RandomImage
;
abstract
class
AbstractRandomImageProvider
{
abstract
public
function
get
(
$param
=
[]);
}
module/Vendor/Provider/RandomImage/DefaultRandomImageProvider.php
0 → 100644
浏览文件 @
db25b644
<?php
namespace
Module\Vendor\Provider\RandomImage
;
use
ModStart\Core\Assets\AssetsUtil
;
class
DefaultRandomImageProvider
extends
AbstractRandomImageProvider
{
public
function
get
(
$param
=
[])
{
return
[
'url'
=>
AssetsUtil
::
fix
(
'asset/image/none.png'
),
'width'
=>
400
,
'height'
=>
400
,
];
}
}
module/Vendor/Provider/RandomImage/RandomImageProvider.php
0 → 100644
浏览文件 @
db25b644
<?php
namespace
Module\Vendor\Provider\RandomImage
;
class
RandomImageProvider
{
public
static
function
get
()
{
static
$instance
=
null
;
if
(
null
===
$instance
)
{
$driver
=
config
(
'RandomImageProvider'
);
if
(
empty
(
$driver
))
{
$driver
=
DefaultRandomImageProvider
::
class
;
}
$instance
=
app
(
$driver
);
}
return
$instance
;
}
public
static
function
getImage
(
$biz
=
''
,
$param
=
[])
{
return
self
::
get
()
->
get
(
array_merge
([
'biz'
=>
$biz
],
$param
));
}
}
vendor/modstart/modstart/resources/asset/src/mod/webpack.js
浏览文件 @
db25b644
...
...
@@ -17,6 +17,8 @@ module.exports = function (dirname) {
const
WebpackBuildNotifierPlugin
=
require
(
'
webpack-build-notifier
'
);
const
CleanObsoleteChunks
=
require
(
'
webpack-clean-obsolete-chunks
'
);
const
WebpackShellPlugin
=
require
(
'
webpack-shell-plugin
'
);
const
WebpackDynamicPublicPathPlugin
=
require
(
"
webpack-dynamic-public-path
"
);
const
glob
=
require
(
"
glob
"
);
const
UglifyJS
=
require
(
"
uglify-js
"
);
// const files = glob.readDirSync('*.js', {});
...
...
@@ -50,13 +52,16 @@ module.exports = function (dirname) {
output
:
{
path
:
path
.
resolve
(
config
.
dist
),
filename
:
'
[name].js
'
,
publicPath
:
config
.
cdn
+
'
/
'
,
publicPath
:
'
publicPathPlaceholder
'
,
chunkFilename
:
'
entry-chunk-[id]-[hash:8].js
'
,
},
performance
:
{
hints
:
false
},
plugins
:
[
new
WebpackDynamicPublicPathPlugin
({
externalPublicPath
:
"
window.__msCDN+'
"
+
config
.
cdn
.
substring
(
1
)
+
"
/'
"
}),
new
WebpackShellPlugin
({
onBuildStart
:
[
files
.
length
>
0
?
'
rm -rv
'
+
files
.
join
(
'
'
)
:
'
pwd
'
,
...
...
@@ -221,7 +226,7 @@ module.exports = function (dirname) {
output
:
{
path
:
path
.
resolve
(
config
.
distAsset
),
filename
:
'
[name].js
'
,
publicPath
:
config
.
cdn
+
'
/
'
,
publicPath
:
'
publicPathPlaceholder
'
,
chunkFilename
:
'
entry-chunk-[id]-[hash:8].js
'
,
},
}))
...
...
vendor/modstart/modstart/resources/asset/src/svue/lib/date-util.js
浏览文件 @
db25b644
let
date
=
require
(
'
date-and-time
'
)
if
(
date
.
default
)
{
date
=
date
.
default
}
if
(
!
date
.
format
)
{
date
=
date
.
format
}
...
...
vendor/modstart/modstart/src/ModStart.php
浏览文件 @
db25b644
...
...
@@ -10,7 +10,7 @@ use ModStart\Support\Manager\WidgetManager;
class
ModStart
{
public
static
$version
=
'1.
0
.0'
;
public
static
$version
=
'1.
1
.0'
;
public
static
$script
=
[];
public
static
$style
=
[];
...
...
vendor/modstart/modstart/views/admin/frame.blade.php
浏览文件 @
db25b644
...
...
@@ -12,6 +12,12 @@
window
.
__msAdminRoot
=
"
{
{modstart_admin_url(null)}
}
"
;
window
.
__selectorDialogServer
=
"
{
{modstart_admin_url('data/file_manager')}
}
"
;
</
script
>
{
!!
\
ModStart\Core\Hook\ModStartHook
::
fireInView
(
'AdminPageHeadAppend'
,
$this
);
!!
}
@
endsection
@
section
(
'bodyAppend'
)
@
parent
{
!!
\
ModStart\Core\Hook\ModStartHook
::
fireInView
(
'AdminPageBodyAppend'
,
$this
);
!!
}
@
endsection
@
section
(
'body'
)
...
...
vendor/modstart/modstart/views/admin/login.blade.php
浏览文件 @
db25b644
...
...
@@ -33,4 +33,5 @@
</form>
</div>
</div>
@endsection
\ No newline at end of file
@endsection
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录