Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
HuangJunbo
antSword
Commits
f853d26b
Commit
f853d26b
authored
May 02, 2016
by
antoor
Browse files
Options
Browse Files
Download
Plain Diff
Redesign the about page
重新设计关于页面
parents
64a6cdbf
02864bfc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
en.jsx
source/language/en.jsx
+5
-1
zh.jsx
source/language/zh.jsx
+5
-1
about.jsx
source/modules/settings/about.jsx
+6
-6
index.css
static/css/index.css
+4
-0
No files found.
source/language/en.jsx
View file @
f853d26b
...
...
@@ -383,7 +383,11 @@ module.exports = {
},
settings
:
{
about
:
{
title
:
'About'
title
:
'About'
,
header
:
'AntSword'
,
homepage
:
'Home'
,
document
:
'Document'
,
qqgroup
:
'QQ Group'
},
language
:
{
title
:
'Language setting'
,
...
...
source/language/zh.jsx
View file @
f853d26b
...
...
@@ -384,7 +384,11 @@ module.exports = {
},
settings
:
{
about
:
{
title
:
'关于程序'
title
:
'关于程序'
,
header
:
'中国蚁剑'
,
homepage
:
'主页'
,
document
:
'文档'
,
qqgroup
:
'Q群'
},
language
:
{
title
:
'语言设置'
,
...
...
source/modules/settings/about.jsx
View file @
f853d26b
...
...
@@ -2,7 +2,7 @@
* 设置中心::关于
*/
const
LANG
=
antSword
[
'language'
][
'settings'
];
const
LANG
=
antSword
[
'language'
][
'settings'
]
[
'about'
]
;
class
About
{
...
...
@@ -10,19 +10,19 @@ class About {
sidebar
.
addItem
({
id
:
'about'
,
selected
:
true
,
text
:
`<i class="fa fa-heart-o"></i>
${
LANG
[
'
about'
][
'
title'
]}
`
text
:
`<i class="fa fa-heart-o"></i>
${
LANG
[
'title'
]}
`
});
const
cell
=
sidebar
.
cells
(
'about'
);
cell
.
attachHTMLString
(
`
<div align="center" class="about">
<img src="../static/imgs/logo.png" />
<hr/>
<h2>
中国蚁剑
</h2>
<h2>
${
LANG
[
'header'
]}
<span> v
${
antSword
[
'package'
][
'version'
]}
</span>
</h2>
<p>
<a href="https://github.com/antoor/antSword"><i class="fa fa-github-alt"></i> GitHub</a> /
<a href="http://uyu.us"><i class="fa fa-home"></i>
主页
</a> /
<a href="http://doc.uyu.us"><i class="fa fa-book"></i>
文档
</a> /
<a href="http://shang.qq.com/wpa/qunwpa?idkey=51997458a52d534454fd15e901648bf1f2ed799fde954822a595d6794eadc521"><i class="fa fa-qq"></i>
Q群
</a>
<a href="http://uyu.us"><i class="fa fa-home"></i>
${
LANG
[
'homepage'
]}
</a> /
<a href="http://doc.uyu.us"><i class="fa fa-book"></i>
${
LANG
[
'document'
]}
</a> /
<a href="http://shang.qq.com/wpa/qunwpa?idkey=51997458a52d534454fd15e901648bf1f2ed799fde954822a595d6794eadc521"><i class="fa fa-qq"></i>
${
LANG
[
'qqgroup'
]}
</a>
</p>
</div>
`
);
...
...
static/css/index.css
View file @
f853d26b
...
...
@@ -190,6 +190,10 @@ html, body, #container, #loading {
.about
>
p
{
color
:
#ececec
;
}
.about
>
h2
>
span
{
font-size
:
14px
;
color
:
#9E9E9E
;
}
.about
a
{
text-decoration
:
blink
;
color
:
#795548
;
...
...
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