rename pay to financicals

This commit is contained in:
jysperm
2014-11-18 07:04:20 +08:00
parent cc8871848d
commit 32fbbdeef7
14 changed files with 35 additions and 32 deletions

View File

@@ -6,7 +6,7 @@ exports = module.exports = class RPVhostPlugin extends pluggable.Plugin
@type: 'extension'
exports.registerHook 'plugin.wiki.pages',
t_category: 'plugins.rpvhost.site_name'
t_category: 'plugins.rpvhost.'
t_title: 'Terms.md'
language: 'zh_CN'
content_markdown: fs.readFileSync("#{__dirname}/wiki/Terms.md").toString()

View File

@@ -1,5 +1,6 @@
{
"site_name": "RP Virtual Hosting",
"": "RP Virtual Hosting",
"greenshadow": "GreenShadow",
"taobao": "Taobao",
"official_blog": "Official Blog",
"view": {

View File

@@ -1,5 +1,6 @@
{
"site_name": "RP 主机",
"": "RP 主机",
"greenshadow": "GreenShadow",
"taobao": "淘宝",
"official_blog": "官方博客",
"view": {

View File

@@ -189,7 +189,8 @@ exports.updateConfigure = (callback) ->
filename = "/etc/shadowsocks/#{method}.json"
ShadowsocksPlugin.writeConfigFile filename, configure, {mode: 0o755}, ->
supervisor.updateProgram {}, {program_name: "shadowsocks-#{method}"}, ->
callback()
supervisor.programControl {}, {program_name: "shadowsocks-#{method}"}, 'restart', ->
callback()
, ->
callback()
@@ -236,7 +237,7 @@ exports.monitoring = ->
amount: -amount
payload:
service: 'shadowsocks'
traffic_mb: (billing_bucket * BILLING_BUCKET) / 1000 * 1000
traffic_mb: (billing_bucket * BILLING_BUCKET) / (1000 * 1000)
, ->
callback()

View File

@@ -1,4 +1,5 @@
.row
header= t('')
table.table.table-hover
tbody
tr