Skip to content

Commit

Permalink
chore: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
EliazTray committed Mar 19, 2021
1 parent 71f2db5 commit 89b48fd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ A Bob plugin for [Ruby Charater](https://en.wikipedia.org/wiki/Ruby_character).

![quickstart](quickstart.gif)


## Installation

- [下载地址](https://github.com/EliazTray/bob-plugin-kuroshiro/releases/)

找到 `kuroshiro.bobplugin.zip` 下载,解压后,双击安装即可。

## API

这是我自己部署在 vercel serverless 上的可用服务。
这是我自己部署在 vercel serverless 上的可用服务。(国内翻墙)

[https://ruby-character.vercel.app/api/ruby?text=感じ取れたら手を繋ごう、重なるのは人生のライン%20and%20 レミリア最高!](https://ruby-character.vercel.app/api/ruby?text=%E6%84%9F%E3%81%98%E5%8F%96%E3%82%8C%E3%81%9F%E3%82%89%E6%89%8B%E3%82%92%E7%B9%8B%E3%81%94%E3%81%86%E3%80%81%E9%87%8D%E3%81%AA%E3%82%8B%E3%81%AE%E3%81%AF%E4%BA%BA%E7%94%9F%E3%81%AE%E3%83%A9%E3%82%A4%E3%83%B3%20and%20%E3%83%AC%E3%83%9F%E3%83%AA%E3%82%A2%E6%9C%80%E9%AB%98%EF%BC%81)

Expand Down
9 changes: 5 additions & 4 deletions kuroshiro.bobplugin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ function supportLanguages() {
/**
* @typedef {Object} failure
* @property {Object} failure.error
* @property {string} failure.error.ab
* @property {string} failure.error.type
* @property {string} failure.error.message
*
*/

Expand Down Expand Up @@ -71,9 +72,9 @@ function translate(query, completion) {
} else {
completion({
error: {
msg: '网络异常',
code: resp.statusCode,
},
type: 'network',
message: resp.error.localizedDescription
}
})
}
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function run() {
version: targetVersion,
desc: `release: ${targetVersion}`,
sha256,
url: '',
url: `https://github.com/EliazTray/bob-plugin-kuroshiro/releases/download/v${targetVersion}/kuroshiro.bobplugin.zip`,
minBobVersion: '0.6.1',
},
].concat(appcast.versions)
Expand Down

0 comments on commit 89b48fd

Please sign in to comment.