Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dapang liu
Halo
Commits
b3294c81
Commit
b3294c81
authored
6 years ago
by
ruibaby
Browse files
Options
Download
Email Patches
Plain Diff
0.2.0
parent
4c2b118f
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/main/java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java
+1
-1
...ava/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java
src/main/resources/static/halo-backend/plugins/quicklink/quicklink.js
+0
-1
...ources/static/halo-backend/plugins/quicklink/quicklink.js
src/main/resources/templates/admin/module/_footer.ftl
+1
-1
src/main/resources/templates/admin/module/_footer.ftl
src/main/resources/templates/admin/module/_macro.ftl
+0
-2
src/main/resources/templates/admin/module/_macro.ftl
with
2 additions
and
5 deletions
+2
-5
src/main/java/cc/ryanc/halo/service/impl/AttachmentServiceImpl.java
+
1
-
1
View file @
b3294c81
...
...
@@ -129,7 +129,7 @@ public class AttachmentServiceImpl implements AttachmentService {
Map
<
String
,
String
>
resultMap
;
String
attachLoc
=
HaloConst
.
OPTIONS
.
get
(
BlogPropertiesEnum
.
ATTACH_LOC
.
getProp
());
if
(
StrUtil
.
isEmpty
(
attachLoc
))
{
return
null
;
attachLoc
=
"server"
;
}
switch
(
attachLoc
)
{
case
"server"
:
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/static/halo-backend/plugins/quicklink/quicklink.js
deleted
100644 → 0
+
0
-
1
View file @
4c2b118f
!
function
(
e
,
n
){
"
object
"
==
typeof
exports
&&
"
undefined
"
!=
typeof
module
?
module
.
exports
=
n
():
"
function
"
==
typeof
define
&&
define
.
amd
?
define
(
n
):
e
.
quicklink
=
n
()}(
this
,
function
(){
var
e
=
{};
function
n
(
e
){
return
new
Promise
(
function
(
n
,
t
){
var
r
=
new
XMLHttpRequest
;
r
.
open
(
"
GET
"
,
e
,
r
.
withCredentials
=!
0
),
r
.
onload
=
function
(){
200
===
r
.
status
?
n
():
t
()},
r
.
send
()})}
var
t
,
r
,
i
=
(
t
=
"
prefetch
"
,((
r
=
document
.
createElement
(
"
link
"
)).
relList
||
{}).
supports
&&
r
.
relList
.
supports
(
t
)?
function
(
e
){
return
new
Promise
(
function
(
n
,
t
){
var
r
=
document
.
createElement
(
"
link
"
);
r
.
rel
=
"
prefetch
"
,
r
.
href
=
e
,
r
.
onload
=
n
,
r
.
onerror
=
t
,
document
.
head
.
appendChild
(
r
)})}:
n
);
function
o
(
t
,
r
,
o
){
if
(
!
(
e
[
t
]
||
(
o
=
navigator
.
connection
)
&&
((
o
.
effectiveType
||
""
).
includes
(
"
2g
"
)
||
o
.
saveData
)))
return
(
r
?
function
(
e
){
return
null
==
self
.
fetch
?
n
(
e
):
fetch
(
e
,{
credentials
:
"
include
"
})}:
i
)(
t
).
then
(
function
(){
e
[
t
]
=!
0
})}
var
u
=
u
||
function
(
e
){
var
n
=
Date
.
now
();
return
setTimeout
(
function
(){
e
({
didTimeout
:
!
1
,
timeRemaining
:
function
(){
return
Math
.
max
(
0
,
50
-
(
Date
.
now
()
-
n
))}})},
1
)},
c
=
new
Set
,
f
=
new
IntersectionObserver
(
function
(
e
){
e
.
forEach
(
function
(
e
){
if
(
e
.
isIntersecting
){
var
n
=
e
.
target
.
href
;
c
.
has
(
n
)
&&
a
(
n
)}})});
function
a
(
e
){
c
.
delete
(
e
),
o
(
new
URL
(
e
,
location
.
href
).
toString
(),
f
.
priority
)}
return
function
(
e
){
e
=
Object
.
assign
({
timeout
:
2
e3
,
priority
:
!
1
,
timeoutFn
:
u
,
el
:
document
},
e
),
f
.
priority
=
e
.
priority
;
var
n
=
e
.
origins
||
[
location
.
hostname
],
t
=
e
.
ignores
||
[];
e
.
timeoutFn
(
function
(){
e
.
urls
?
e
.
urls
.
forEach
(
a
):
Array
.
from
(
e
.
el
.
querySelectorAll
(
"
a
"
),
function
(
e
){
f
.
observe
(
e
),
n
.
length
&&!
n
.
includes
(
e
.
hostname
)
||
function
e
(
n
,
t
){
return
Array
.
isArray
(
t
)?
t
.
some
(
function
(
t
){
return
e
(
n
,
t
)}):(
t
.
test
||
t
).
call
(
t
,
n
.
href
,
n
)}(
e
,
t
)
||
c
.
add
(
e
.
href
)})},{
timeout
:
e
.
timeout
})}});
This diff is collapsed.
Click to expand it.
src/main/resources/templates/admin/module/_footer.ftl
+
1
-
1
View file @
b3294c81
<
footer
class="main-footer">
<#-- 虽然Halo使用了宽松的GPL协议,但开发不易,希望您可以保留一下版权声明。笔芯~ -->
<div class="pull-right hidden-xs"><a target="_blank" href="https://github.com/ruibaby/halo/releases/tag/v0.
1.1
">0.
1.1
</a></div>
<div class="pull-right hidden-xs"><a target="_blank" href="https://github.com/ruibaby/halo/releases/tag/v0.
2.0
">0.
2.0
</a></div>
Thanks for using <strong><a data-pjax="true" href="/admin/halo">Halo</a>.</strong>
</
footer
>
This diff is collapsed.
Click to expand it.
src/main/resources/templates/admin/module/_macro.ftl
+
0
-
2
View file @
b3294c81
...
...
@@ -49,7 +49,6 @@
<#
if
(options.blog_locale!'zh_CN') == 'zh_CN'>
<
script
src="/static/halo-backend/plugins/fileinput/zh.min.js"></script>
</#
if
>
<
script
src="/static/halo-backend/plugins/quicklink/quicklink.js"></script>
<
script
src="/static/halo-backend/js/halo.min.js"></script>
<@
compress
single_line=true>
<
script
>
...
...
@@ -58,7 +57,6 @@
<#if (options.admin_pjax!'true') == 'true'>
$(document).pjax('a[data-pjax=true]', '.content-wrapper',
{
fragment
:
'
.content-wrapper
'
,
timeout
:
8000
}
);
</#if>
quicklink();
var heading = "<@spring.message code='common.text.tips' />";
</
script
>
</@
compress
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help