Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
d0b75da6
Commit
d0b75da6
authored
Mar 19, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/2.0.0-dev'
parents
53582487
19c2fc6b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
137 additions
and
96 deletions
+137
-96
pom.xml
pom.xml
+2
-2
src/main/webapp/skins/9IPHP/css/base.css
src/main/webapp/skins/9IPHP/css/base.css
+25
-5
src/main/webapp/skins/9IPHP/css/base.min.css
src/main/webapp/skins/9IPHP/css/base.min.css
+1
-1
src/main/webapp/skins/9IPHP/js/common.js
src/main/webapp/skins/9IPHP/js/common.js
+31
-14
src/main/webapp/skins/9IPHP/js/common.min.js
src/main/webapp/skins/9IPHP/js/common.min.js
+1
-1
src/main/webapp/skins/9IPHP/js/isotope.pkgd.min.js
src/main/webapp/skins/9IPHP/js/isotope.pkgd.min.js
+0
-0
src/main/webapp/skins/9IPHP/lang/lang_en_US.properties
src/main/webapp/skins/9IPHP/lang/lang_en_US.properties
+2
-1
src/main/webapp/skins/9IPHP/lang/lang_zh_CN.properties
src/main/webapp/skins/9IPHP/lang/lang_zh_CN.properties
+2
-1
src/main/webapp/skins/9IPHP/macro-comments.ftl
src/main/webapp/skins/9IPHP/macro-comments.ftl
+1
-1
src/main/webapp/skins/9IPHP/side.ftl
src/main/webapp/skins/9IPHP/side.ftl
+72
-70
No files found.
pom.xml
View file @
d0b75da6
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: Solo POM.
Version: 3.15.1.3
1, Feb 20
, 2017
Version: 3.15.1.3
2, Mar 19
, 2017
Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a>
-->
...
...
@@ -106,7 +106,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<org.b3log.latke.version>
2.3.
7
</org.b3log.latke.version>
<org.b3log.latke.version>
2.3.
8
</org.b3log.latke.version>
<servlet.version>
3.1.0
</servlet.version>
<slf4j.version>
1.7.5
</slf4j.version>
...
...
src/main/webapp/skins/9IPHP/css/base.css
View file @
d0b75da6
...
...
@@ -18,7 +18,7 @@
* skin style
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 0.
1.1.0, Feb 18
, 2017
* @version 0.
2.1.0, Mar 14
, 2017
*/
/* start common */
html
{
...
...
@@ -574,10 +574,6 @@ a[class*=" icon-"]:hover {
background-position
:
-96px
-48px
;
}
.b3-solo-list
{
display
:
none
;
}
#commentForm
,
#replyForm
{
width
:
100%
;
...
...
@@ -944,6 +940,30 @@ aside .tag.tooltipped {
margin-right
:
10px
;
line-height
:
22px
;
}
aside
.has-toc
>
ul
>
li
{
list-style
:
none
;
float
:
left
;
width
:
50%
;
margin
:
0
;
cursor
:
pointer
;
line-height
:
18px
;
font-size
:
16px
;
text-align
:
center
;
font-weight
:
400
;
}
aside
.has-toc
ul
>
li
.current
{
color
:
#ff4d3a
;
}
aside
.b3-solo-list
{
font-size
:
14px
;
}
aside
.has-toc
>
section
:last-child
{
margin-top
:
20px
;
}
/* end side */
/* start article list */
...
...
src/main/webapp/skins/9IPHP/css/base.min.css
View file @
d0b75da6
This diff is collapsed.
Click to expand it.
src/main/webapp/skins/9IPHP/js/common.js
View file @
d0b75da6
...
...
@@ -72,20 +72,22 @@ var Skin = {
$
(
'
.responsive .list
'
).
slideToggle
();
});
},
_initArticleCommon
:
function
()
{
_initArticleCommon
:
function
(
tocLabel
,
siteViewLabel
)
{
// TOC
if
(
$
(
'
.b3-solo-list li
'
).
length
>
0
&&
$
(
window
).
width
()
>
1000
)
{
// add color to sidebar menu
$
(
'
.sidebar-toggl
e
'
).
addClass
(
'
has-toc
'
);
$
(
'
asid
e
'
).
addClass
(
'
has-toc
'
);
// append toc to sidebar menu
var
articleTocHTML
=
'
<ul><li class="current" data-tab="toc">
'
+
Label
.
tocLabel
+
'
</li><li data-tab="site">
'
+
Label
.
siteViewLabel
+
'
</li></ul><section></section>
'
;
$
(
'
.sidebar
'
).
prepend
(
articleTocHTML
);
var
$sectionF
=
$
(
'
.sidebar section:first
'
).
html
(
$
(
'
.b3-solo-list
'
)),
$sectionL
=
$
(
'
.sidebar section:last
'
);
$sectionF
.
height
(
$
(
window
).
height
()
-
90
);
var
articleTocHTML
=
'
<ul class="fn-clear"><li class="current" data-tab="toc">
'
+
tocLabel
+
'
</li><li data-tab="site">
'
+
siteViewLabel
+
'
</li></ul><section></section>
'
;
$
(
'
aside
'
).
prepend
(
articleTocHTML
);
var
$sectionF
=
$
(
'
aside section:first
'
).
html
(
$
(
'
.b3-solo-list
'
)),
$sectionL
=
$
(
'
aside section:last
'
);
$sectionF
.
height
(
$
(
window
).
height
()
-
154
).
css
({
'
overflow
'
:
'
auto
'
,
'
width
'
:
$
(
'
aside
'
).
width
()
+
'
px
'
});
$sectionL
.
hide
();
// 切换 tab
$
(
'
.sidebar
> ul > li
'
).
click
(
function
()
{
$
(
'
aside
> ul > li
'
).
click
(
function
()
{
if
(
$
(
this
).
data
(
'
tab
'
)
===
'
toc
'
)
{
$sectionL
.
animate
({
"
opacity
"
:
'
0
'
,
...
...
@@ -95,7 +97,7 @@ var Skin = {
$sectionF
.
animate
({
"
opacity
"
:
'
1
'
,
"
top
"
:
'
0
'
},
300
);
},
300
)
.
show
()
;
});
}
else
{
$sectionF
.
animate
({
...
...
@@ -106,16 +108,31 @@ var Skin = {
$sectionL
.
animate
({
"
opacity
"
:
'
1
'
,
"
top
"
:
'
0
'
},
300
);
});
},
300
)
.
show
()
;
})
.
hide
()
;
}
$
(
'
.sidebar
> ul > li
'
).
removeClass
(
'
current
'
);
$
(
'
aside
> ul > li
'
).
removeClass
(
'
current
'
);
$
(
this
).
addClass
(
'
current
'
);
});
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
>
125
)
{
$
(
'
aside section:eq(0)
'
).
css
({
position
:
"
fixed
"
,
top
:
"
51px
"
,
backgroundColor
:
"
#fff
"
})
}
else
{
$
(
'
aside section:eq(0)
'
).
css
({
position
:
"
inherit
"
,
borderLeft
:
0
})
}
});
}
},
initArticle
:
function
()
{
this
.
_initArticleCommon
();
initArticle
:
function
(
tocLabel
,
siteViewLabel
)
{
this
.
_initArticleCommon
(
tocLabel
,
siteViewLabel
);
}
};
Skin
.
init
();
\ No newline at end of file
src/main/webapp/skins/9IPHP/js/common.min.js
View file @
d0b75da6
...
...
@@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var
Skin
=
{
_initCommon
:
function
(
i
){
$
(
"
body
"
).
on
(
"
click
"
,
"
.content-reset img
"
,
function
(){
window
.
open
(
this
.
src
)});
var
t
=
$
(
"
header .banner
"
),
n
=
$
(
"
header .navbar
"
);
$
(
window
).
scroll
(
function
(){
return
$
(
window
).
scrollTop
()
>
125
?
i
.
show
():
i
.
hide
(),
!
(
$
(
window
).
width
()
<
701
)
&&
void
(
$
(
window
).
scrollTop
()
>
t
.
height
()?(
n
.
addClass
(
"
pin
"
),
$
(
"
.main-wrap
"
).
parent
().
css
(
"
margin-top
"
,
"
86px
"
)):(
n
.
removeClass
(
"
pin
"
),
$
(
"
.main-wrap
"
).
parent
().
css
(
"
margin-top
"
,
"
0
"
)))})},
init
:
function
(){
this
.
_initCommon
(
$
(
"
.icon-up
"
)),
$
(
"
.navbar nav a
"
).
each
(
function
(){
this
.
href
===
location
.
href
&&
(
this
.
className
=
"
current
"
)}),
$
(
"
.responsive .list a
"
).
each
(
function
(){
this
.
href
===
location
.
href
&&
$
(
this
).
parent
().
addClass
(
"
current
"
)}),
$
(
"
.responsive .icon-list
"
).
click
(
function
(){
$
(
"
.responsive .list
"
).
slideToggle
()})},
_initArticleCommon
:
function
(){
if
(
$
(
"
.b3-solo-list li
"
).
length
>
0
&&
$
(
window
).
width
()
>
1
e3
){
$
(
"
.sidebar-toggle
"
).
addClass
(
"
has-toc
"
);
var
i
=
'
<ul><li class="current" data-tab="toc">
'
+
Label
.
tocLabel
+
'
</li><li data-tab="site">
'
+
Label
.
siteViewLabel
+
"
</li></ul><section></section>
"
;
$
(
"
.sidebar
"
).
prepend
(
i
);
var
t
=
$
(
"
.sidebar section:first
"
).
html
(
$
(
"
.b3-solo-list
"
)),
n
=
$
(
"
.sidebar section:last
"
);
t
.
height
(
$
(
window
).
height
()
-
90
),
$
(
"
.sidebar > ul > li
"
).
click
(
function
(){
"
toc
"
===
$
(
this
).
data
(
"
tab
"
)?
n
.
animate
({
opacity
:
"
0
"
,
top
:
"
-50px
"
},
300
,
function
(){
t
.
show
().
css
(
"
top
"
,
"
-50px
"
),
t
.
animate
({
opacity
:
"
1
"
,
top
:
"
0
"
},
300
)}):
t
.
animate
({
opacity
:
"
0
"
,
top
:
"
-50px
"
},
300
,
function
(){
t
.
hide
().
css
(
"
top
"
,
"
-50px
"
),
n
.
animate
({
opacity
:
"
1
"
,
top
:
"
0
"
},
300
)}),
$
(
"
.sidebar > ul > li
"
).
removeClass
(
"
current
"
),
$
(
this
).
addClass
(
"
current
"
)})}},
initArticle
:
function
(){
this
.
_initArticleCommon
()}};
Skin
.
init
();
\ No newline at end of file
var
Skin
=
{
_initCommon
:
function
(
i
){
$
(
"
body
"
).
on
(
"
click
"
,
"
.content-reset img
"
,
function
(){
window
.
open
(
this
.
src
)});
var
t
=
$
(
"
header .banner
"
),
n
=
$
(
"
header .navbar
"
);
$
(
window
).
scroll
(
function
(){
return
$
(
window
).
scrollTop
()
>
125
?
i
.
show
():
i
.
hide
(),
!
(
$
(
window
).
width
()
<
701
)
&&
void
(
$
(
window
).
scrollTop
()
>
t
.
height
()?(
n
.
addClass
(
"
pin
"
),
$
(
"
.main-wrap
"
).
parent
().
css
(
"
margin-top
"
,
"
86px
"
)):(
n
.
removeClass
(
"
pin
"
),
$
(
"
.main-wrap
"
).
parent
().
css
(
"
margin-top
"
,
"
0
"
)))})},
init
:
function
(){
this
.
_initCommon
(
$
(
"
.icon-up
"
)),
$
(
"
.navbar nav a
"
).
each
(
function
(){
this
.
href
===
location
.
href
&&
(
this
.
className
=
"
current
"
)}),
$
(
"
.responsive .list a
"
).
each
(
function
(){
this
.
href
===
location
.
href
&&
$
(
this
).
parent
().
addClass
(
"
current
"
)}),
$
(
"
.responsive .icon-list
"
).
click
(
function
(){
$
(
"
.responsive .list
"
).
slideToggle
()})},
_initArticleCommon
:
function
(
i
,
t
){
if
(
$
(
"
.b3-solo-list li
"
).
length
>
0
&&
$
(
window
).
width
()
>
1
e3
){
$
(
"
aside
"
).
addClass
(
"
has-toc
"
);
var
n
=
'
<ul class="fn-clear"><li class="current" data-tab="toc">
'
+
i
+
'
</li><li data-tab="site">
'
+
t
+
"
</li></ul><section></section>
"
;
$
(
"
aside
"
).
prepend
(
n
);
var
o
=
$
(
"
aside section:first
"
).
html
(
$
(
"
.b3-solo-list
"
)),
s
=
$
(
"
aside section:last
"
);
o
.
height
(
$
(
window
).
height
()
-
154
).
css
({
overflow
:
"
auto
"
,
width
:
$
(
"
aside
"
).
width
()
+
"
px
"
}),
s
.
hide
(),
$
(
"
aside > ul > li
"
).
click
(
function
(){
"
toc
"
===
$
(
this
).
data
(
"
tab
"
)?
s
.
animate
({
opacity
:
"
0
"
,
top
:
"
-50px
"
},
300
,
function
(){
o
.
show
().
css
(
"
top
"
,
"
-50px
"
),
o
.
animate
({
opacity
:
"
1
"
,
top
:
"
0
"
},
300
).
show
()}):
o
.
animate
({
opacity
:
"
0
"
,
top
:
"
-50px
"
},
300
,
function
(){
o
.
hide
().
css
(
"
top
"
,
"
-50px
"
),
s
.
animate
({
opacity
:
"
1
"
,
top
:
"
0
"
},
300
).
show
()}).
hide
(),
$
(
"
aside > ul > li
"
).
removeClass
(
"
current
"
),
$
(
this
).
addClass
(
"
current
"
)}),
$
(
window
).
scroll
(
function
(){
$
(
window
).
scrollTop
()
>
125
?
$
(
"
aside section:eq(0)
"
).
css
({
position
:
"
fixed
"
,
top
:
"
51px
"
,
backgroundColor
:
"
#fff
"
}):
$
(
"
aside section:eq(0)
"
).
css
({
position
:
"
inherit
"
,
borderLeft
:
0
})})}},
initArticle
:
function
(
i
,
t
){
this
.
_initArticleCommon
(
i
,
t
)}};
Skin
.
init
();
\ No newline at end of file
src/main/webapp/skins/9IPHP/js/isotope.pkgd.min.js
100755 → 100644
View file @
d0b75da6
File mode changed from 100755 to 100644
src/main/webapp/skins/9IPHP/lang/lang_en_US.properties
View file @
d0b75da6
...
...
@@ -16,10 +16,11 @@
#
# Description: B3log Solo language configurations(en_US).
# Version: 1.
0.0.0, Feb 17
, 2017
# Version: 1.
1.0.0, Mar 14
, 2017
# Author: Liyuan Li
#
siteViewLabel
=
Site
onlineVisitorLabel
=
Visitor
tocLabel
=
Article ToC
readLabel
=
Read More
...
...
src/main/webapp/skins/9IPHP/lang/lang_zh_CN.properties
View file @
d0b75da6
...
...
@@ -16,10 +16,11 @@
#
# Description: B3log Solo default language configurations(zh_CN).
# Version: 1.
0.0.0, Feb 17
, 2017
# Version: 1.
1.0.0, Mar 14
, 2017
# Author: Liyuan Li
#
siteViewLabel
=
\u
7AD9
\u
70B9
\u6982\u8981
onlineVisitorLabel
=
\u
8BBF
\u
5BA2
tocLabel
=
\u6587\u
7AE0
\u
76EE
\u
5F55
readLabel
=
\u9605\u
8BFB
\u5168\u6587
...
...
src/main/webapp/skins/9IPHP/macro-comments.ftl
View file @
d0b75da6
...
...
@@ -91,7 +91,7 @@
};
(function () {
page.load();
Skin.initArticle();
Skin.initArticle(
"${tocLabel}", "${siteViewLabel}"
);
// emotions
page.replaceCommentsEm("#comments .comment-content");
<#nested>
...
...
src/main/webapp/skins/9IPHP/side.ftl
View file @
d0b75da6
<aside>
<#if noticeBoard??>
<div class="ad content-reset">
${noticeBoard}
</div>
</#if>
<#if 0 != mostUsedTags?size>
<div class="module">
<header><h2>${popTagsLabel}</h2></header>
<main>
<#list mostUsedTags as tag>
<a rel="tag" title="${tag.tagTitle}(${tag.tagPublishedRefCount})"
href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
class="tag tooltipped tooltipped-n" aria-label="${tag.tagPublishedRefCount} ${countLabel}${articleLabel}">
${tag.tagTitle}</a>
</#list>
</main>
</div>
</#if>
<div class="module meta">
<header>
<h2>${adminUser.userName}</h2>
</header>
<main class="fn-clear">
<img src="${adminUser.userAvatar}" aria-label="${adminUser.userName}"/>
<div class="fn-right">
<a href="${servePath}/archives.html">
${statistic.statisticPublishedBlogArticleCount}
<span class="ft-gray">${articleLabel}</span></a><br/>
<a href="${servePath}/dynamic.html">
${statistic.statisticPublishedBlogCommentCount}
<span class="ft-gray">${commentLabel}</span></a><br/>
${statistic.statisticBlogViewCount} <span class="ft-gray">${viewLabel}</span><br/>
${onlineVisitorCnt} <span class="ft-gray">${onlineVisitorLabel}</span>
<section>
<#if noticeBoard??>
<div class="ad content-reset">
${noticeBoard}
</div>
</main>
</div>
</#if>
<#if 0 != mostCommentArticles?size>
<div class="module">
<header><h2>${mostCommentArticlesLabel}</h2></header>
<main class="list">
<ul>
<#list mostCommentArticles as article>
<li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}"
class="tooltipped tooltipped-e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
</li>
<#if 0 != mostUsedTags?size>
<div class="module">
<header><h2>${popTagsLabel}</h2></header>
<main>
<#list mostUsedTags as tag>
<a rel="tag" title="${tag.tagTitle}(${tag.tagPublishedRefCount})"
href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
class="tag tooltipped tooltipped-n" aria-label="${tag.tagPublishedRefCount} ${countLabel}${articleLabel}">
${tag.tagTitle}</a>
</#list>
</ul>
</main>
</div>
</#if>
</main>
</div>
</#if>
<#if 0 != mostViewCountArticles?size>
<div class="module">
<header><h2>${mostViewCountArticlesLabel}</h2></header>
<main class="list">
<ul>
<#list mostViewCountArticles as article>
<li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}"
class="tooltipped tooltipped-e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
</li>
</#list>
</ul>
<div class="module meta">
<header>
<h2>${adminUser.userName}</h2>
</header>
<main class="fn-clear">
<img src="${adminUser.userAvatar}" aria-label="${adminUser.userName}"/>
<div class="fn-right">
<a href="${servePath}/archives.html">
${statistic.statisticPublishedBlogArticleCount}
<span class="ft-gray">${articleLabel}</span></a><br/>
<a href="${servePath}/dynamic.html">
${statistic.statisticPublishedBlogCommentCount}
<span class="ft-gray">${commentLabel}</span></a><br/>
${statistic.statisticBlogViewCount} <span class="ft-gray">${viewLabel}</span><br/>
${onlineVisitorCnt} <span class="ft-gray">${onlineVisitorLabel}</span>
</div>
</main>
</div>
</#if>
<#if 0 != mostCommentArticles?size>
<div class="module">
<header><h2>${mostCommentArticlesLabel}</h2></header>
<main class="list">
<ul>
<#list mostCommentArticles as article>
<li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}"
class="tooltipped tooltipped-e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
</li>
</#list>
</ul>
</main>
</div>
</#if>
<#if 0 != mostViewCountArticles?size>
<div class="module">
<header><h2>${mostViewCountArticlesLabel}</h2></header>
<main class="list">
<ul>
<#list mostViewCountArticles as article>
<li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}"
class="tooltipped tooltipped-e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
</li>
</#list>
</ul>
</main>
</div>
</#if>
</section>
</aside>
\ No newline at end of file
Write
Preview
Markdown
is supported
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