feat(about): add manual of FAQ

This commit is contained in:
OldHawk
2018-03-19 17:19:56 +08:00
parent 8effa9d6cc
commit f4166ff530
9 changed files with 24 additions and 4 deletions

View File

@@ -123,6 +123,14 @@
pageTitle: 'PAGETITLE.REPORT_RULES'
}
})
.state('about.manual.faq', {
url: '/faq',
templateUrl: '/modules/about/client/views/faq.client.view.html',
data: {
roles: ['user', 'oper', 'admin'],
pageTitle: 'PAGETITLE.MANUAL_FAQ'
}
})
.state('about.black', {
url: '/black',
templateUrl: '/modules/about/client/views/black.client.view.html',

View File

@@ -0,0 +1 @@
## MANUAL FAQ

View File

@@ -0,0 +1 @@
## 问题解答

View File

@@ -4,7 +4,7 @@
 
#### How to calculate the level?
#### :white_small_square: How to calculate the level?
1. User score level calculation formula is: `sqrt(score number / %(scoreConfig.levelStep)s)`.
1. Level`1` score is: `1 * 1 * %(scoreConfig.levelStep)s`.
1. Level`2` score is: `2 * 2 * %(scoreConfig.levelStep)s`.
@@ -14,5 +14,5 @@
 
#### How to use the level?
#### :white_small_square: How to use the level?
_The management group is making relevant level rights and interests, please keep the attention, thank you!_

View File

@@ -4,7 +4,7 @@
 
#### 如何计算用户等级?
#### :white_small_square: 如何计算用户等级?
1. 用户积分级别数学计算公式为: `sqrt(score number / %(scoreConfig.levelStep)s)`.
1. 级别`1` 需要积分累计: `1 * 1 * %(scoreConfig.levelStep)s`.
1. 级别`2` 需要积分累计: `2 * 2 * %(scoreConfig.levelStep)s`.
@@ -14,5 +14,5 @@
 
#### 如何使用用户等级?
#### :white_small_square: 如何使用用户等级?
_管理组正在制定相关的级别权益请保持关注谢谢_

View File

@@ -0,0 +1,4 @@
<section ng-controller="AboutController as vm"
ng-init="vm.getTemplateFileContent('/modules/about/client/templates/manual-faq-'+vm.lang+'.md')">
<span ng-bind-html="vm.getTemplateMarkedContent()"></span>
</section>

View File

@@ -28,6 +28,8 @@
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_REQUEST_RULES' | translate}}</a>
<a ui-sref="about.manual.reportRules" class="list-group-item"
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_REPORT_RULES' | translate}}</a>
<a ui-sref="about.manual.faq" class="list-group-item"
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_FAQ' | translate}}</a>
</div>
</div>
<div class="col-sm-8 col-md-9 padding-bottom-30 manual-line-height">

View File

@@ -208,6 +208,7 @@
FORBID_RULES: 'Forbid And Punish Rules',
REQUEST_RULES: 'Requests Rules',
REPORT_RULES: 'Report Rules',
MANUAL_FAQ: 'FAQ',
BLACK: 'Client Black List',
MAKER: 'Torrents Maker Group',
OPERLIST: 'Admin/Oper List',
@@ -624,6 +625,7 @@
MENU_ABOUT_MANUAL_FORBID_PUNISH_RULES: 'Forbid And Punish Rules Detail',
MENU_ABOUT_MANUAL_REQUEST_RULES: 'Requests Rules Detail',
MENU_ABOUT_MANUAL_REPORT_RULES: 'Report Rules Detail',
MENU_ABOUT_MANUAL_FAQ: 'FAQ',
CLIENT_BLACK_LIST: 'Client Black List',
MAKER_GROUP: 'Torrents Maker Group',
BLACK_TOOLTIP: '<h4>Note:</h4>All the clients in the list was forbidden by server and can not announce or get any torrent data, For more help, please contact our <strong><a href="mailto:{{admin}}">administrator</a></strong>.',

View File

@@ -208,6 +208,7 @@
FORBID_RULES: '禁令与处罚细则',
REQUEST_RULES: '求种细则',
REPORT_RULES: '投诉与举报细则',
MANUAL_FAQ: '问题解答',
BLACK: '禁止客户端列表',
MAKER: '资源压制小组',
OPERLIST: 'Admin/Oper 列表',
@@ -624,6 +625,7 @@
MENU_ABOUT_MANUAL_FORBID_PUNISH_RULES: '禁令与处罚细则',
MENU_ABOUT_MANUAL_REQUEST_RULES: '求种细则',
MENU_ABOUT_MANUAL_REPORT_RULES: '投诉与举报细则',
MENU_ABOUT_MANUAL_FAQ: '问题解答',
CLIENT_BLACK_LIST: '禁止客户端列表',
MAKER_GROUP: '资源压制小组',
BLACK_TOOLTIP: '<h4>提示:</h4>下面列出的所有客户端都已被服务器禁止,使用它们将不能下载到任何数据, 如需其它帮助,请与我们的 <strong><a href="mailto:{{admin}}">系统管理员</a> </strong>联系.',