Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
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-1
Commits
8728b9c7
Unverified
Commit
8728b9c7
authored
Mar 29, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
site
parent
061ce35e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
src/main/resources/lang_en_US.properties
src/main/resources/lang_en_US.properties
+1
-0
src/main/resources/lang_zh_CN.properties
src/main/resources/lang_zh_CN.properties
+1
-0
src/main/webapp/admin/admin-preference.ftl
src/main/webapp/admin/admin-preference.ftl
+8
-3
src/main/webapp/common-template/macro-user_site.ftl
src/main/webapp/common-template/macro-user_site.ftl
+9
-0
No files found.
src/main/resources/lang_en_US.properties
View file @
8728b9c7
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
# Author: Dongxu Wang
# Author: Dongxu Wang
#
#
configSiteLabel
=
Go to the site link to configure GitHub, Twitter, etc.
hljsThemeLabel
=
hljs theme:
hljsThemeLabel
=
hljs theme:
tocLabel
=
ToC
tocLabel
=
ToC
removeUnusedArchivesLabel
=
Remove Unused Archives
removeUnusedArchivesLabel
=
Remove Unused Archives
...
...
src/main/resources/lang_zh_CN.properties
View file @
8728b9c7
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
# Author: Dongxu Wang
# Author: Dongxu Wang
#
#
configSiteLabel
=
\u
524D
\u
5F80
\u
914D
\u
7F6E GitHub
\u
FF0CTwitter
\u
7B49
\u
7AD9
\u
70B9
\u
94FE
\u
63A5
hljsThemeLabel
=
\u
4EE3
\u7801\u
9AD8
\u
4EAE
\u
4E3B
\u9898\u
FF1A
hljsThemeLabel
=
\u
4EE3
\u7801\u
9AD8
\u
4EAE
\u
4E3B
\u9898\u
FF1A
tocLabel
=
\u
76EE
\u
5F55
tocLabel
=
\u
76EE
\u
5F55
removeUnusedArchivesLabel
=
\u
79FB
\u9664\u
672A
\u
4F7F
\u7528\u
5B58
\u6863
removeUnusedArchivesLabel
=
\u
79FB
\u9664\u
672A
\u
4F7F
\u7528\u
5B58
\u6863
...
...
src/main/webapp/admin/admin-preference.ftl
View file @
8728b9c7
...
@@ -43,7 +43,10 @@
...
@@ -43,7 +43,10 @@
</div>
</div>
<div id="tabPreferencePanel" class="sub-tabs-main">
<div id="tabPreferencePanel" class="sub-tabs-main">
<div id="tabPreferencePanel_config" class="form">
<div id="tabPreferencePanel_config" class="form">
<button onclick="admin.preference.update()" class="fn__right">${updateLabel}</button>
<div class="fn__clear">
<a style="line-height: 32px" href="https://hacpai.com/settings" target="_blank">前往配置 GitHub,Twitter 等站点链接</a>
<button onclick="admin.preference.update()" class="fn__right">${updateLabel}</button>
</div>
<div class="fn__clear"></div>
<div class="fn__clear"></div>
<label for="blogTitle">${blogTitle1Label}</label>
<label for="blogTitle">${blogTitle1Label}</label>
<input id="blogTitle" type="text"/>
<input id="blogTitle" type="text"/>
...
@@ -61,8 +64,10 @@
...
@@ -61,8 +64,10 @@
<textarea rows="6" id="noticeBoard"></textarea>
<textarea rows="6" id="noticeBoard"></textarea>
<label for="footerContent">${footerContent1Label}</label>
<label for="footerContent">${footerContent1Label}</label>
<textarea rows="2" id="footerContent"></textarea><br><br>
<textarea rows="2" id="footerContent"></textarea><br><br>
<button onclick="admin.preference.update()" class="fn__right">${updateLabel}</button>
<div class="fn__clear">
<div class="fn__clear"></div>
<a style="line-height: 32px" href="https://hacpai.com/settings" target="_blank">前往配置 GitHub,Twitter 等站点链接</a>
<button onclick="admin.preference.update()" class="fn__right">${updateLabel}</button>
</div>
</div>
</div>
<div id="tabPreferencePanel_setting" class="fn__none form">
<div id="tabPreferencePanel_setting" class="fn__none form">
<button class="fn__right" onclick="admin.preference.update()">${updateLabel}</button>
<button class="fn__right" onclick="admin.preference.update()">${updateLabel}</button>
...
...
src/main/webapp/common-template/macro-user_site.ftl
View file @
8728b9c7
...
@@ -19,6 +19,15 @@
...
@@ -19,6 +19,15 @@
-->
-->
<#macro userSite dir>
<#macro userSite dir>
<#if usite??>
<#if usite??>
<a href="https://hacpai.com/member/${adminUser.userName}"
<#if dir==''>title<#else>aria-label</#if>="https://hacpai.com/member/${adminUser.userName}"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped </#if>user__site"
target="_blank" rel="noopener nofollow">
<svg viewBox="0 0 32 32" width="100%" height="100%">
<path d="M30.1 0.019c-0.337 0.048-0.885 0.462-1.318 0.986-0.106 0.13-0.25 0.303-0.313 0.385-0.317 0.385-0.592 0.741-0.707 0.914-0.072 0.106-0.197 0.279-0.274 0.385-0.082 0.106-0.192 0.269-0.245 0.361-0.091 0.154-0.164 0.265-0.433 0.649-0.058 0.077-0.149 0.216-0.207 0.308s-0.164 0.255-0.241 0.361c-0.072 0.111-0.168 0.26-0.216 0.332-0.043 0.077-0.139 0.216-0.212 0.308-0.077 0.096-0.135 0.197-0.135 0.231s-0.063 0.139-0.144 0.24c-0.077 0.101-0.144 0.212-0.144 0.245 0 0.038-0.043 0.111-0.096 0.164-0.048 0.048-0.139 0.183-0.202 0.293-0.063 0.106-0.168 0.298-0.241 0.423-0.072 0.12-0.183 0.322-0.245 0.447s-0.144 0.265-0.183 0.308c-0.072 0.087-0.154 0.236-0.438 0.798-0.096 0.192-0.25 0.471-0.341 0.625-0.091 0.149-0.188 0.337-0.216 0.418-0.029 0.087-0.096 0.212-0.154 0.279-0.053 0.067-0.096 0.144-0.096 0.173 0 0.063-0.327 0.741-0.438 0.899-0.043 0.067-0.106 0.216-0.139 0.337-0.034 0.115-0.096 0.265-0.144 0.327-0.053 0.063-0.115 0.192-0.149 0.289-0.029 0.096-0.096 0.231-0.144 0.293-0.053 0.063-0.091 0.149-0.091 0.192 0 0.048-0.077 0.231-0.168 0.418-0.091 0.183-0.168 0.356-0.168 0.385 0 0.034-0.063 0.183-0.144 0.332-0.077 0.149-0.144 0.308-0.144 0.356 0 0.043-0.043 0.144-0.091 0.231-0.053 0.082-0.12 0.245-0.149 0.361-0.034 0.115-0.096 0.269-0.144 0.351-0.048 0.077-0.12 0.265-0.164 0.409s-0.139 0.337-0.216 0.428c-0.139 0.159-0.149 0.159-0.688 0.197-0.298 0.024-0.726 0.087-0.952 0.139s-0.577 0.12-0.784 0.149c-0.207 0.029-0.462 0.087-0.568 0.12-0.106 0.038-0.385 0.106-0.611 0.149-0.231 0.043-0.476 0.106-0.548 0.144s-0.293 0.101-0.491 0.139c-0.197 0.034-0.418 0.096-0.495 0.135-0.072 0.038-0.255 0.096-0.399 0.13-0.245 0.053-0.899 0.25-1.395 0.414-0.438 0.149-0.702 0.212-0.875 0.212-0.149 0-0.183-0.019-0.183-0.096 0-0.188 0.154-0.991 0.221-1.15 0.038-0.091 0.101-0.366 0.139-0.601 0.038-0.241 0.115-0.587 0.168-0.77 0.048-0.183 0.106-0.462 0.125-0.625 0.014-0.159 0.067-0.447 0.12-0.635 0.048-0.188 0.125-0.587 0.159-0.89 0.038-0.303 0.106-0.697 0.149-0.88 0.115-0.486 0.236-2.386 0.236-3.684 0-1.294-0.101-2.472-0.25-2.896-0.053-0.149-0.111-0.366-0.13-0.481s-0.087-0.303-0.149-0.423c-0.063-0.12-0.149-0.293-0.188-0.385s-0.13-0.26-0.207-0.366c-0.072-0.111-0.192-0.289-0.265-0.404-0.375-0.563-1.212-1.106-1.852-1.202-0.178-0.029-0.423-0.072-0.544-0.101-0.168-0.038-0.322-0.034-0.649 0.024-0.236 0.038-0.568 0.087-0.741 0.101-0.173 0.019-0.409 0.077-0.529 0.125s-0.322 0.111-0.457 0.139c-0.13 0.029-0.313 0.096-0.394 0.144-0.087 0.053-0.245 0.115-0.351 0.144-0.173 0.048-0.399 0.168-0.635 0.346-0.048 0.034-0.111 0.168-0.144 0.298-0.058 0.216-0.053 0.245 0.063 0.452 0.091 0.164 0.168 0.236 0.313 0.289 0.26 0.091 0.736 0.048 1.15-0.111 0.39-0.144 0.534-0.139 0.967 0.053 0.39 0.173 0.851 0.669 0.976 1.044 0.034 0.091 0.087 0.197 0.125 0.226 0.034 0.029 0.082 0.125 0.096 0.207 0.019 0.087 0.091 0.346 0.168 0.587 0.226 0.717 0.366 2.472 0.241 3.030-0.024 0.106-0.067 0.587-0.096 1.073-0.029 0.481-0.072 0.938-0.096 1.010-0.063 0.212-0.144 0.77-0.192 1.38-0.029 0.317-0.091 0.76-0.139 0.986-0.053 0.226-0.115 0.625-0.139 0.89-0.029 0.265-0.091 0.697-0.144 0.962s-0.12 0.697-0.149 0.962c-0.029 0.265-0.082 0.601-0.125 0.746-0.038 0.144-0.096 0.467-0.12 0.717-0.053 0.505-0.226 1.010-0.418 1.217-0.13 0.139-0.991 0.726-1.14 0.779-0.048 0.014-0.144 0.072-0.216 0.13-0.067 0.053-0.289 0.202-0.486 0.332s-0.447 0.303-0.553 0.38c-0.106 0.082-0.245 0.183-0.313 0.231-0.067 0.043-0.173 0.13-0.24 0.188-0.067 0.063-0.322 0.289-0.572 0.51-0.515 0.452-1.635 1.563-2.011 1.991-0.313 0.351-0.707 0.851-0.928 1.178-0.091 0.135-0.216 0.303-0.269 0.375-0.058 0.067-0.12 0.178-0.139 0.245s-0.096 0.207-0.173 0.308c-0.077 0.106-0.139 0.216-0.139 0.25 0 0.029-0.048 0.13-0.111 0.221-0.063 0.087-0.139 0.265-0.173 0.394-0.029 0.125-0.087 0.279-0.125 0.332-0.034 0.058-0.091 0.212-0.12 0.346-0.034 0.13-0.106 0.38-0.159 0.553-0.091 0.274-0.106 0.423-0.106 1.178 0 0.813 0.010 0.89 0.135 1.299 0.072 0.236 0.164 0.486 0.202 0.553s0.12 0.216 0.183 0.337c0.101 0.183 0.399 0.491 0.823 0.851 0.048 0.043 0.183 0.106 0.293 0.139 0.115 0.034 0.279 0.101 0.366 0.144 0.135 0.072 0.308 0.091 0.938 0.106 0.452 0.010 0.837 0 0.938-0.029 0.553-0.168 1.015-0.394 1.486-0.731 0.616-0.433 1.525-1.438 1.871-2.078 0.058-0.096 0.12-0.192 0.149-0.207 0.029-0.019 0.111-0.139 0.183-0.274 0.072-0.13 0.197-0.366 0.284-0.515 0.082-0.149 0.188-0.337 0.226-0.423 0.043-0.082 0.13-0.231 0.197-0.332 0.067-0.096 0.12-0.212 0.12-0.255s0.063-0.197 0.139-0.341c0.077-0.144 0.154-0.317 0.173-0.385s0.077-0.178 0.125-0.25c0.053-0.067 0.091-0.154 0.091-0.192 0-0.034 0.063-0.192 0.144-0.351 0.077-0.159 0.144-0.322 0.144-0.361s0.053-0.178 0.115-0.313c0.106-0.226 0.159-0.366 0.418-1.145 0.053-0.164 0.13-0.366 0.173-0.447 0.038-0.087 0.111-0.289 0.159-0.457 0.101-0.346 0.255-0.827 0.366-1.15 0.043-0.12 0.111-0.346 0.149-0.505s0.111-0.399 0.159-0.529c0.053-0.135 0.115-0.351 0.144-0.481 0.029-0.135 0.072-0.293 0.101-0.361 0.067-0.164 0.37-0.385 0.731-0.52 0.707-0.274 0.89-0.341 1.116-0.433 0.856-0.351 2.088-0.774 2.67-0.924 0.197-0.053 0.438-0.125 0.529-0.164s0.337-0.106 0.544-0.144c0.202-0.043 0.433-0.106 0.505-0.144s0.303-0.091 0.515-0.125c0.212-0.029 0.51-0.096 0.664-0.149 0.332-0.111 0.697-0.12 0.736-0.019 0.014 0.038-0.014 0.144-0.072 0.231-0.053 0.087-0.12 0.279-0.149 0.423s-0.096 0.356-0.149 0.476c-0.048 0.12-0.125 0.38-0.159 0.577-0.038 0.197-0.111 0.51-0.164 0.697-0.053 0.183-0.115 0.467-0.144 0.625-0.024 0.159-0.091 0.495-0.144 0.746s-0.125 0.707-0.154 1.010c-0.029 0.303-0.072 0.736-0.096 0.962-0.101 0.924-0.111 1.736-0.024 2.285 0.043 0.289 0.111 0.784 0.144 1.101 0.043 0.361 0.106 0.64 0.164 0.75 0.053 0.101 0.111 0.26 0.125 0.351 0.019 0.091 0.106 0.269 0.197 0.399 0.091 0.125 0.164 0.241 0.164 0.26 0 0.067 0.38 0.428 0.625 0.596 0.231 0.159 0.279 0.173 0.582 0.173 0.313 0 0.341-0.010 0.52-0.173 0.269-0.241 0.322-0.433 0.226-0.794-0.048-0.154-0.144-0.404-0.221-0.553-0.082-0.149-0.144-0.303-0.144-0.351 0-0.043-0.043-0.149-0.096-0.236-0.053-0.082-0.106-0.245-0.125-0.361-0.014-0.111-0.058-0.37-0.096-0.572-0.082-0.414-0.072-0.789 0.043-2.323 0.038-0.544 0.12-1.159 0.178-1.419 0.058-0.25 0.12-0.63 0.149-0.847 0.024-0.216 0.087-0.529 0.139-0.697 0.058-0.168 0.12-0.438 0.144-0.596 0.019-0.159 0.072-0.366 0.111-0.457s0.106-0.337 0.149-0.544c0.043-0.207 0.111-0.423 0.149-0.481s0.091-0.226 0.125-0.37c0.029-0.144 0.106-0.361 0.164-0.481s0.125-0.284 0.139-0.366c0.038-0.183 0.332-0.539 0.491-0.596 0.39-0.149 3.054-0.207 3.531-0.077 0.447 0.12 0.88 0.269 1.068 0.366 0.183 0.096 0.861 0.231 1.366 0.274 0.337 0.029 0.75-0.072 0.948-0.226 0.072-0.058 0.164-0.216 0.221-0.399 0.111-0.322 0.091-0.587-0.058-0.938-0.101-0.241-0.606-0.457-1.371-0.582-0.322-0.053-0.611-0.111-0.64-0.125-0.096-0.063-4.093-0.024-4.319 0.034-0.197 0.058-0.212 0.053-0.303-0.058-0.115-0.139-0.096-0.361 0.048-0.568 0.053-0.072 0.106-0.216 0.125-0.322s0.077-0.26 0.125-0.337c0.048-0.082 0.115-0.255 0.149-0.385 0.029-0.135 0.111-0.327 0.168-0.438 0.063-0.106 0.115-0.236 0.115-0.289 0-0.048 0.067-0.221 0.144-0.38s0.144-0.317 0.144-0.351c0-0.034 0.067-0.183 0.144-0.332 0.082-0.149 0.144-0.298 0.144-0.332 0-0.038 0.067-0.212 0.149-0.39 0.366-0.789 0.428-0.924 0.572-1.241 0.082-0.188 0.183-0.39 0.216-0.457 0.038-0.067 0.091-0.173 0.125-0.241 0.139-0.303 0.192-0.414 0.231-0.481 0.024-0.038 0.087-0.159 0.139-0.265 0.048-0.106 0.13-0.269 0.173-0.361s0.111-0.221 0.149-0.289c0.038-0.067 0.13-0.231 0.197-0.361 0.067-0.135 0.188-0.351 0.265-0.481 0.072-0.135 0.183-0.337 0.241-0.457s0.154-0.279 0.216-0.351c0.063-0.077 0.115-0.159 0.115-0.183 0-0.053 0.601-1.073 0.721-1.222 0.043-0.053 0.115-0.173 0.159-0.265s0.159-0.265 0.25-0.385c0.091-0.12 0.212-0.303 0.269-0.409 0.096-0.178 0.168-0.279 0.438-0.616 0.063-0.077 0.298-0.337 0.524-0.577 0.226-0.245 0.452-0.515 0.5-0.601 0.053-0.082 0.106-0.154 0.125-0.154s0.063-0.082 0.096-0.178c0.034-0.101 0.111-0.279 0.173-0.394 0.115-0.221 0.149-0.568 0.063-0.722-0.024-0.048-0.106-0.101-0.178-0.115s-0.168-0.038-0.207-0.048c-0.038-0.010-0.183-0.005-0.317 0.014zM8.888 21.212c0.014 0.038-0.005 0.135-0.043 0.212s-0.106 0.274-0.144 0.438c-0.034 0.164-0.111 0.39-0.159 0.495-0.111 0.226-0.279 0.635-0.375 0.919-0.038 0.106-0.135 0.332-0.216 0.505s-0.202 0.433-0.269 0.577c-0.168 0.356-0.226 0.481-0.322 0.649-0.043 0.077-0.101 0.197-0.13 0.265s-0.125 0.25-0.216 0.409c-0.091 0.159-0.221 0.394-0.289 0.529-0.067 0.13-0.183 0.346-0.26 0.481-0.077 0.13-0.207 0.361-0.289 0.505s-0.207 0.351-0.279 0.462c-0.072 0.106-0.178 0.269-0.236 0.361-0.298 0.467-0.577 0.784-0.924 1.044-0.173 0.13-0.64 0.298-0.832 0.298-0.216 0-0.481-0.164-0.63-0.385-0.101-0.159-0.13-0.255-0.13-0.471 0-0.154 0.024-0.351 0.048-0.442s0.082-0.308 0.12-0.481c0.043-0.173 0.13-0.423 0.197-0.558 0.063-0.135 0.115-0.265 0.115-0.293 0-0.072 0.337-0.697 0.433-0.808 0.048-0.053 0.12-0.173 0.164-0.265 0.082-0.173 0.236-0.414 0.409-0.625 0.053-0.067 0.202-0.25 0.327-0.409 0.13-0.159 0.269-0.341 0.317-0.409 0.245-0.37 1.674-1.794 2.054-2.054 0.067-0.043 0.245-0.183 0.394-0.303 0.515-0.409 0.582-0.457 0.803-0.582 0.265-0.154 0.322-0.164 0.361-0.063z"></path>
</svg>
</a>
<#if usite.usiteGitHub != ''>
<#if usite.usiteGitHub != ''>
<a href="https://github.com/${usite.usiteGitHub}"
<a href="https://github.com/${usite.usiteGitHub}"
<#if dir==''>title<#else>aria-label</#if>="https://github.com/${usite.usiteGitHub}"
<#if dir==''>title<#else>aria-label</#if>="https://github.com/${usite.usiteGitHub}"
...
...
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