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
cc7c1990
Unverified
Commit
cc7c1990
authored
Mar 29, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12724
parent
15755212
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
555 additions
and
537 deletions
+555
-537
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-label.ftl
src/main/webapp/admin/admin-label.ftl
+1
-0
src/main/webapp/js/admin/themeList.js
src/main/webapp/js/admin/themeList.js
+10
-7
src/main/webapp/scss/admin.css
src/main/webapp/scss/admin.css
+1
-1
src/main/webapp/scss/admin.scss
src/main/webapp/scss/admin.scss
+541
-529
No files found.
src/main/resources/lang_en_US.properties
View file @
cc7c1990
...
...
@@ -24,6 +24,7 @@
# Author: Dongxu Wang
#
setMobileLabel
=
Set to mobile skin
configSiteLabel
=
Go to the site link to configure GitHub, Twitter, etc.
hljsThemeLabel
=
hljs theme:
tocLabel
=
ToC
...
...
src/main/resources/lang_zh_CN.properties
View file @
cc7c1990
...
...
@@ -24,6 +24,7 @@
# Author: Dongxu Wang
#
setMobileLabel
=
\u
8BBE
\u
7F6E
\u
4E3A
\u
79FB
\u
52A8
\u
7AEF
\u
76AE
\u
80A4
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
tocLabel
=
\u
76EE
\u
5F55
...
...
src/main/webapp/admin/admin-label.ftl
View file @
cc7c1990
...
...
@@ -19,6 +19,7 @@
-->
<#include "../common-template/label.ftl"/>
<script type="text/javascript">
Label.setMobileLabel = '${setMobileLabel}'
Label.pushSuccLabel = '${pushSuccLabel}'
Label.pushToHacpaiLabel = '${pushToHacpaiLabel}'
Label.uploadMsg = '${uploadMsg}'
...
...
src/main/webapp/js/admin/themeList.js
View file @
cc7c1990
...
...
@@ -42,7 +42,6 @@ admin.themeList = {
var
preference
=
result
.
preference
// skin
$
(
'
#skinMain
'
).
data
(
'
skinDirName
'
,
preference
.
skinDirName
)
var
skins
=
eval
(
'
(
'
+
preference
.
skins
+
'
)
'
)
var
skinsHTML
=
''
for
(
var
i
=
0
;
i
<
skins
.
length
;
i
++
)
{
...
...
@@ -56,19 +55,23 @@ admin.themeList = {
skins
[
i
].
skinName
+
'
</div><img class="skinPreview" src="
'
+
Label
.
staticServePath
+
'
/skins/
'
+
skins
[
i
].
skinDirName
+
'
/preview.png"/><div><button class="
update small
" data-name="
'
+
+
'
/preview.png"/><div><button class="
small update fn__left
" data-name="
'
+
skins
[
i
].
skinDirName
+
'
">
'
+
Label
.
enableLabel
+
'
</button><button class="small" onclick="window.open(
\'
'
+
Label
.
servePath
+
'
?skin=
'
+
skins
[
i
].
skinName
+
'
\'
)">
'
+
Label
.
preview
Label
+
'
</button></div></div>
'
'
</button><button class="small
fn__right
" onclick="window.open(
\'
'
+
Label
.
servePath
+
'
?skin=
'
+
skins
[
i
].
skinName
+
'
\'
)">
'
+
Label
.
previewLabel
+
'
</button><button class="small mobile fn__left">
'
+
Label
.
setMobile
Label
+
'
</button></div></div>
'
}
$
(
'
#skinMain
'
).
append
(
skinsHTML
+
'
<div class=
\'
fn__clear
\'
></div>
'
)
$
(
'
.skinItem .update
'
).
click
(
function
()
{
$
(
'
.skinItem
'
).
removeClass
(
'
selected
'
)
$
(
this
).
closest
(
'
.skinItem
'
).
addClass
(
'
selected
'
)
$
(
'
#skinMain
'
).
data
(
'
skinDirName
'
,
$
(
this
).
data
(
'
name
'
))
admin
.
preference
.
update
()
})
$
(
'
.skinItem .mobile
'
).
click
(
function
()
{
$
(
'
.skinItem
'
).
removeClass
(
'
selected
'
)
$
(
this
).
closest
(
'
.skinItem
'
).
addClass
(
'
selected
'
)
admin
.
preference
.
update
()
})
...
...
src/main/webapp/scss/admin.css
View file @
cc7c1990
This diff is collapsed.
Click to expand it.
src/main/webapp/scss/admin.scss
View file @
cc7c1990
This diff is collapsed.
Click to expand it.
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