Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ModStart
ModStartCMS
提交
fd5f45e6
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,发现更多精彩内容 >>
提交
fd5f45e6
编写于
12月 11, 2021
作者:
ModStart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
develop
上级
dbb83383
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
1 addition
and
135 deletion
+1
-135
config/module.php
config/module.php
+0
-3
module/LinkExternalJumper/Core/ModuleServiceProvider.php
module/LinkExternalJumper/Core/ModuleServiceProvider.php
+0
-26
module/LinkExternalJumper/Docs/module/content.md
module/LinkExternalJumper/Docs/module/content.md
+0
-1
module/LinkExternalJumper/Docs/module/mobilePreview.md
module/LinkExternalJumper/Docs/module/mobilePreview.md
+0
-0
module/LinkExternalJumper/Docs/module/preview.md
module/LinkExternalJumper/Docs/module/preview.md
+0
-0
module/LinkExternalJumper/Docs/release/1.0.0.md
module/LinkExternalJumper/Docs/release/1.0.0.md
+0
-5
module/LinkExternalJumper/Docs/release/1.1.0.md
module/LinkExternalJumper/Docs/release/1.1.0.md
+0
-5
module/LinkExternalJumper/View/pc/linkExternalJumper/index.blade.php
...ExternalJumper/View/pc/linkExternalJumper/index.blade.php
+0
-31
module/LinkExternalJumper/View/widget/script.blade.php
module/LinkExternalJumper/View/widget/script.blade.php
+0
-15
module/LinkExternalJumper/Web/Controller/IndexController.php
module/LinkExternalJumper/Web/Controller/IndexController.php
+0
-23
module/LinkExternalJumper/Web/routes.php
module/LinkExternalJumper/Web/routes.php
+0
-9
module/LinkExternalJumper/config.json
module/LinkExternalJumper/config.json
+0
-15
module/Vendor/View/public/shareButtons.blade.php
module/Vendor/View/public/shareButtons.blade.php
+1
-2
未找到文件。
config/module.php
浏览文件 @
fd5f45e6
...
...
@@ -49,8 +49,5 @@ return [
'SiteCounter'
=>
[
'enable'
=>
true
,
],
'LinkExternalJumper'
=>
[
'enable'
=>
true
,
],
],
];
module/LinkExternalJumper/Core/ModuleServiceProvider.php
已删除
100644 → 0
浏览文件 @
dbb83383
<?php
namespace
Module\LinkExternalJumper\Core
;
use
Illuminate\Events\Dispatcher
;
use
Illuminate\Support\Facades\View
;
use
Illuminate\Support\ServiceProvider
;
use
ModStart\Admin\Config\AdminMenu
;
use
ModStart\Core\Hook\ModStartHook
;
class
ModuleServiceProvider
extends
ServiceProvider
{
public
function
boot
(
Dispatcher
$events
)
{
ModStartHook
::
subscribe
(
'PageBodyAppend'
,
function
()
{
return
View
::
make
(
'module::LinkExternalJumper.View.widget.script'
)
->
render
();
});
}
public
function
register
()
{
}
}
module/LinkExternalJumper/Docs/module/content.md
已删除
100644 → 0
浏览文件 @
dbb83383
当跳转到外部链接时,网站先跳转到提示页面告知用户
module/LinkExternalJumper/Docs/module/mobilePreview.md
已删除
100644 → 0
浏览文件 @
dbb83383
module/LinkExternalJumper/Docs/module/preview.md
已删除
100644 → 0
浏览文件 @
dbb83383
module/LinkExternalJumper/Docs/release/1.0.0.md
已删除
100644 → 0
浏览文件 @
dbb83383
外链跳转提示插件
---
-
当跳转到外部链接时,网站先跳转到提示页面告知用户
module/LinkExternalJumper/Docs/release/1.1.0.md
已删除
100644 → 0
浏览文件 @
dbb83383
修复跳转异常
---
-
修复:修复链接为相对路径时的跳转异常
module/LinkExternalJumper/View/pc/linkExternalJumper/index.blade.php
已删除
100644 → 0
浏览文件 @
dbb83383
@
extends
(
'modstart::layout.frame'
)
@
section
(
'headAppend'
)
@
parent
<
style
type
=
"text/css"
>
.
pb
-
link
-
external
-
jumper
{
display
:
flex
;
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
20
%
;
align
-
items
:
center
;}
</
style
>
@
endsection
@
section
(
'body'
)
<
div
class
=
"pb-link-external-jumper"
>
<
div
style
=
"margin:0 auto;display:block;max-width:800px;"
class
=
"lg:tw-w-1/2 tw-w-full tw-px-4"
>
<
div
>
<
a
href
=
"
{
{modstart_web_url('')}
}
"
>
<
img
style
=
"height:60px;"
src
=
"
{
{\ModStart\Core\Assets\AssetsUtil::fix(modstart_config('siteLogo'))}
}
"
/>
</
a
>
</
div
>
<
div
class
=
"tw-bg-white tw-rounded-2xl tw-shadow-lg tw-p-8"
>
<
h2
>
您即将离开
{{
modstart_config
(
'siteName'
)}}
,
请注意您的帐号和财产安全
</
h2
>
<
div
class
=
"tw-py-4"
>
<
a
class
=
"tw-text-gray-400"
href
=
"
{
{$target}}">{{$target}
}
</a>
</div>
<div class="
tw
-
text
-
right
tw
-
pt
-
4
tw
-
border
-
0
tw
-
border
-
t
tw
-
border
-
gray
-
200
tw
-
border
-
solid
">
<a class="
btn
btn
-
primary
btn
-
lg
" href="
{{
$target
}}
">继续访问</a>
</div>
</div>
</div>
</div>
@endsection
module/LinkExternalJumper/View/widget/script.blade.php
已删除
100644 → 0
浏览文件 @
dbb83383
<script>
$
(
function
()
{
$
(
document
).
on
(
'
click
'
,
'
a
'
,
function
()
{
var
href
=
this
.
href
;
if
(
!
href
)
return
;
var
l
=
window
.
location
;
var
currentUrl
=
l
.
protocol
+
'
//
'
+
l
.
host
;
if
(
href
.
indexOf
(
'
http://
'
)
===
0
||
href
.
indexOf
(
'
https://
'
)
===
0
||
href
.
indexOf
(
'
//
'
)
===
0
)
{
if
(
href
.
indexOf
(
currentUrl
)
!==
0
)
{
$
(
this
).
attr
(
'
href
'
,
"
{{modstart_web_url('link_external_jumper')}}?target=
"
+
MS
.
util
.
urlencode
(
href
));
}
}
});
});
</script>
module/LinkExternalJumper/Web/Controller/IndexController.php
已删除
100644 → 0
浏览文件 @
dbb83383
<?php
namespace
Module\LinkExternalJumper\Web\Controller
;
use
ModStart\Core\Input\InputPackage
;
use
ModStart\Core\Input\Response
;
use
ModStart\Module\ModuleBaseController
;
class
IndexController
extends
ModuleBaseController
{
public
function
index
()
{
$input
=
InputPackage
::
buildFromInput
();
$target
=
$input
->
getTrimString
(
'target'
);
if
(
empty
(
$target
))
{
return
Response
::
redirect
(
modstart_web_url
(
''
));
}
return
$this
->
view
(
'linkExternalJumper.index'
,
[
'target'
=>
$target
,
]);
}
}
module/LinkExternalJumper/Web/routes.php
已删除
100644 → 0
浏览文件 @
dbb83383
<?php
$router
->
match
([
'get'
,
'post'
],
'link_external_jumper'
,
'IndexController@index'
);
module/LinkExternalJumper/config.json
已删除
100644 → 0
浏览文件 @
dbb83383
{
"name"
:
"LinkExternalJumper"
,
"title"
:
"外链跳转提示插件"
,
"require"
:
[
"Vendor:>=1.2.0"
],
"version"
:
"1.1.0"
,
"modstartVersion"
:
">=1.3.0"
,
"author"
:
"ModStart"
,
"description"
:
"当跳转到外部链接时,网站先跳转到提示页面告知用户"
,
"providers"
:
[
],
"config"
:
{
}
}
module/Vendor/View/public/shareButtons.blade.php
浏览文件 @
fd5f45e6
{
!!
\
ModStart\ModStart
::
js
(
'asset/common/share.js'
)
!!
}
<
div
data
-
share
-
buttons
data
-
sites
=
"weibo,qq,qzone,wechat"
></
div
>
<
div
data
-
share
-
buttons
data
-
sites
=
"weibo,qq,qzone,wechat"
></
div
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录