Skip to content

Commit df360c1

Browse files
committed
Release 1.2.0
1 parent 518b872 commit df360c1

34 files changed

+308
-126
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
22
dist/
33
.cache/
4-
temp/
4+
temp/
5+
*.vsix

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ All notable changes to the "vscode-rainbow-fart" extension will be documented in
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7-
## [Unreleased]
7+
## [1.2.0] - 2020-06-20
88

99
### Added
1010

1111
- Enable/Disable voice packages.
12+
- English document.
1213

1314
### Fixed
1415

15-
- Duplicated key in the details modal.
16+
- Duplicated key in the voice package details modal.
17+
- Fixed width of voice package details modal
1618
- Issue: [#8](https://github.com/SaekiRaku/vscode-rainbow-fart/issues/8)
1719

1820
## [1.1.0] - 2020-06-14

README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,30 @@
88
<br>
99
</h1>
1010

11-
## 概述
11+
Languages: [简体中文](./README.zh.md) | English
1212

13-
这是一个在你编程时持续夸你写的牛逼的扩展,可以根据代码关键字播放贴近代码意义的真人语音。由于当前插件内的语音均为中文,因此不方便发布到 VSCode 商店,所以以 VISX 的形式发布。请直接 [查看文档并下载安装](https://saekiraku.github.io/vscode-rainbow-fart/)
13+
## Summary
1414

15-
## English Description
15+
**VSCode Rainbow Fart** is an extension that keeps giving you compliment while you are coding, it will checks the keywords of code to play suitable sounds.
1616

17-
This is a VSCode extension that keeps giving you compliment while you are coding, for example when you type `function` it will play sound that says you wrote a such good function. However the sounds is recorded in Chinese, so it's may not suitable for you. But you can still modify the source code, like add English version compliment sound file.
17+
> Rainbow Fart is a literal translation word from Chinese, it's mean give somebody exaggerated compliment that even seems a little fake. It's not involved any connection to specific group or people.
1818
19-
Rainbow Fart is a literal translation word from Chinese, it's mean give somebody exaggerated compliment that even seems a little fake. It's not involved any connection to specific group or people.
19+
## Document
2020

21-
## Q&A
21+
For more information, please read the [document](https://saekiraku.github.io/vscode-rainbow-fart/
22+
).
2223

23-
Q:安装扩展时 VSCode 提示不兼容。
24-
A:请修改 `package.json``engines.vscode``devDependencies.@types/vscode` 字段为你当前的 VSCode 版本号(如下),然后在进入当前目录的终端运行 `npm i && npm run build`。 此时在工作区目录下将产生新编译的扩展,安装即可。详情请看:[Issue #1](https://github.com/SaekiRaku/vscode-rainbow-fart/issues/1)
24+
## Quick Start
2525

26-
```json
27-
{
28-
"engines": {
29-
"vscode": "^[当前版本号]",
30-
},
31-
"devDependencies": {
32-
"@types/vscode": "^[当前版本号]",
33-
}
34-
}
35-
```
26+
1. Install extension from [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=saekiraku.rainbow-fart)
27+
2. Press `Ctrl + Shift + P`(MacOS `Command + Shift + P`)to bring up `Command Panel`.
28+
3. Type `> Enable Rainbow Fart` into `Command Panel`
29+
4. An notification should be poped up at the corner, click the `Open` on that notification.
30+
5. Click `Authorization` on the opend page.
31+
6. Enjoy coding! try to type `function` in your VSCode.
3632

37-
## 许可
33+
## License
3834

39-
基于 MIT 开源,包括所有设计资源及音频资源。此外,由于仓库中的音频资源大部分由真人录音,并且根据 MIT 被授权人义务。在此明确:尤其的对于仓库中多媒体资源,您有(单独)标明资源原作者、链接、许可的义务。
35+
Open source based on **MIT**, including all design resources and audio resources.
36+
37+
In addition, since most of the audio resources are recorded by real people, and under the obligations of the MIT licensee. Here it is clarify: Especially for multimedia resources in the repo, you have the obligation to (separately) indicate the original author, link, and permission of the resource.

README.zh.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<h1 align="center">
2+
<br>
3+
<img src="https://github.com/SaekiRaku/vscode-rainbow-fart/blob/master/assets/logo.png?raw=true" alt="logo" width="100">
4+
<br>
5+
<br>
6+
🌈 RAINBOW FART
7+
<br>
8+
<br>
9+
</h1>
10+
11+
Languages: 简体中文 | [English](./README.md)
12+
13+
## 概述
14+
15+
**VSCode Rainbow Fart** 是一个在你编程时持续夸你写的牛逼的扩展,可以根据代码关键字播放贴近代码意义的真人语音。
16+
17+
## 文档
18+
19+
详细信息请访问 [文档](https://saekiraku.github.io/vscode-rainbow-fart/
20+
).
21+
22+
## 快速上手
23+
24+
> Rainbow Fart 插件现以发布到 VSCode 商店,安装过 VSIX 版本的用户请卸载之前的版本,从商店安装。
25+
26+
1.[VSCode 扩展商店](https://marketplace.visualstudio.com/items?itemName=saekiraku.rainbow-fart) 下载并安装。
27+
2. 在 VSCode 的菜单栏中找到 `查看 - 命令面板`,或使用快捷键 `Ctrl + Shift + P`(MacOS `Command + Shift + P`)呼出 `命令面板`
28+
3.`命令面板` 中输入 `> Enable Rainbow Fart` 并回车。
29+
4. 此时应该会弹出一个消息通知,点击通知上的 `Open` 按钮。
30+
5. 在打开的页面上点击 `授权`
31+
6. 享受编程吧!请尝试在 VSCode 中输入 `function` 关键字。
32+
33+
## License
34+
35+
基于 MIT 开源,包括所有设计资源及音频资源。由于仓库中的音频资源大部分由真人录音,并且根据 MIT 被授权人义务。在此明确:尤其的对于仓库中多媒体资源,您有(单独)标明资源作者([@JustKowalski](https://github.com/JustKowalski) 提供。)、链接、许可的义务。

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.1
1+
1.2.0

docs/CHANGELOG.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,43 @@
11
# Change Log
2-
All notable changes to this project will be documented in this file.
32

4-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3+
All notable changes to the "vscode-rainbow-fart" extension will be documented in this file.
54

6-
<!--
7-
## [Unreleased]
8-
-->
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
96

10-
## [1.0.0] - 2020-06-14
7+
## [1.2.0] - 2020-06-20
118

12-
Initial Release
9+
### Added
10+
11+
- Enable/Disable voice packages.
12+
- English document.
13+
14+
### Fixed
15+
16+
- Duplicated key in the voice package details modal.
17+
- Fixed width of voice package details modal
18+
- Issue: [#8](https://github.com/SaekiRaku/vscode-rainbow-fart/issues/8)
19+
20+
## [1.1.0] - 2020-06-14
21+
22+
### Added
23+
24+
- Support import voice packages
25+
- New built-in voices for Chinese
26+
- I18N supports for English
27+
- Add document
28+
29+
### Changed
30+
31+
- New user interface
32+
33+
## [1.0.2] - 2020-06-01
34+
35+
- Lower the required version of VSCode.
36+
37+
## [1.0.1] - 2020-05-30
38+
39+
- UI Optimization
40+
41+
## [1.0.0] - 2020-05-29
42+
43+
- Initial release

docs/assets/ui-homepage.png

-1.34 MB
Binary file not shown.

docs/en/README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Summary
2+
3+
**VSCode Rainbow Fart** is an extension that keeps giving you compliment while you are coding, it will checks the keywords of code to play suitable sounds.
4+
5+
<Note label="Demo Video">
6+
7+
<video src="/en/assets/demo-video-en.mp4" controls width="100%"></video>
8+
9+
</Note>
10+
11+
<Note label="Tips">
12+
13+
If you have any suggestions or comments in use, please feedback to [GitHub Issues](https://github.com/saekiraku/vscode-rainbow-fart/issues).
14+
15+
</Note>
16+
17+
## Usage
18+
19+
1. Install extension from [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=saekiraku.rainbow-fart)
20+
2. Press `Ctrl + Shift + P`(MacOS `Command + Shift + P`)to bring up `Command Panel`.
21+
3. Type `> Enable Rainbow Fart` into `Command Panel`
22+
4. An notification should be poped up at the corner, click the `Open` on that notification.
23+
5. Click `Authorization` on the opend page.
24+
6. Enjoy coding! try to type `function` in your VSCode.
25+
26+
## Voice Packages
27+
28+
For now, it has 2 built-in voice package which are Chinese and English edition. In order to avoid the extension being too large, no plan to add more built-in voice. You can find and install voice package of other languages, gender or tone style, etc at [here](https://github.com/topics/rainbow-fart).
29+
30+
The built-in voice package of English edition is created by Speech Synthesis. Because I don't have any friends that use English as mother language, if you are interested in this project, it would be nice to have contribute with your voice, no matter about gender, tone color, personality, language, contry etc.
31+
32+
P.S. The voice of Chinese edition is recorded by real people if you have interests, [take a look](/zh/)
33+
34+
<center>
35+
<a href="https://github.com/topics/rainbow-fart" class="download" target="__blank">Get More Voice Packages</a>
36+
</center>
37+
38+
<style>
39+
.download {
40+
background: #009688;
41+
text-align: center;
42+
color: #FFF;
43+
font-weight: bolder;
44+
display: inline-block;
45+
padding: 0px 32px;
46+
margin: 16px 0px;
47+
line-height: 48px;
48+
border-radius: 48px;
49+
}
50+
.download:hover {
51+
text-decoration: none !important;
52+
opacity: 0.75;
53+
}
54+
</style>
55+
56+
## Awesome Rainbow Fart
57+
58+
### Other Client
59+
60+
* [Emacs Rainbow Fart](https://github.com/stardiviner/emacs-rainbow-fart)
61+
* [IntelliJ Rainbow Fart](https://github.com/izhangzhihao/intellij-rainbow-fart)
62+
63+
## License
64+
65+
Open source based on MIT, including all design resources and audio resources. In addition, since most of the audio resources are recorded by real people, and under the obligations of the MIT licensee. Here it is clarify: Especially for multimedia resources in the repo, you have the obligation to (separately) indicate the original author, link, and permission of the resource.

docs/en/assets/demo-video-en.mp4

886 KB
Binary file not shown.

docs/en/voice-packages.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# TODO
2+
3+
Not translated, welcome to send PR.

docs/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
window.VERSION = "1.1.0";
1+
window.VERSION = "1.2.0";
22
window.URL_PREFIX = location.pathname === "/" ? "" : location.pathname;

docs/zh/README.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,25 @@
1616

1717
## 安装与使用
1818

19+
> Rainbow Fart 插件现以发布到 VSCode 商店,安装过 VSIX 版本的用户请卸载之前的版本,从商店安装。
20+
21+
1.[VSCode 扩展商店](https://marketplace.visualstudio.com/items?itemName=saekiraku.rainbow-fart) 下载并安装。
22+
2. 在 VSCode 的菜单栏中找到 `查看 - 命令面板`,或使用快捷键 `Ctrl + Shift + P`(MacOS `Command + Shift + P`)呼出 `命令面板`
23+
3.`命令面板` 中输入 `> Enable Rainbow Fart` 并回车。
24+
4. 此时应该会弹出一个消息通知,点击通知上的 `Open` 按钮。
25+
5. 在打开的页面上点击 `授权`
26+
6. 享受编程吧!请尝试在 VSCode 中输入 `function` 关键字。
27+
28+
## 语音包
29+
30+
目前,总共有 2 款内置语音包,分别为中文和英文。为了避免扩展体积过大,不再计划增加更多的内置语音包。你可以在 [这里](https://github.com/topics/rainbow-fart) 找到其他语种、性别、嗓音等等的语音包。
31+
32+
内置的中文语音包由 [@JustKowalski](https://github.com/JustKowalski) 提供。
33+
34+
P.S. 内置的英文语音由语音合成技术创建,因为我希望由以英语为母语的人来录制语音,而我身边暂时没有这样的朋友,所以暂时使用语音合成。
35+
1936
<center>
20-
<a :href="URL_PREFIX + '/releases/rainbow-fart-' + VERSION + '.vsix'" class="download">下载插件 Version {{VERSION}}</a>
21-
<br>
22-
<a href="https://github.com/saekiraku/vscode-rainbow-fart/releases">查看历史版本</a>
23-
<!-- <a href="https://github.com/saekiraku/vscode-rainbow-fart/releases">查找更多语音包</a> -->
37+
<a href="https://github.com/topics/rainbow-fart" class="download" target="__blank">Get More Voice Packages</a>
2438
</center>
2539

2640
<style>
@@ -41,27 +55,12 @@
4155
}
4256
</style>
4357

44-
1. 下载插件
45-
2. 在 VSCode 的菜单栏中找到 `查看 - 命令面板`,或使用快捷键 `Ctrl + Shift + P`(MacOS `Command + Shift + P`
46-
3.`命令面板` 中输入 `> Extensions: Install from VSIX` 并回车
47-
4. 在弹出的 `文件选择窗口` 中找到下载的插件并打开
48-
5. 安装完成,再次呼出 `命令面板` 输入 `> Enable Rainbow Fart` 并回车以启动插件
49-
6. 点击右下角弹出通知的 `Open` 按钮(或访问 [http://127.0.0.1:7777/](http://127.0.0.1:7777/)
50-
7. 遵循打开的网页的说明使用本插件
51-
52-
## 特性
53-
54-
* 界面适配暗黑模式,让你深夜加班也能愉快地写代码。
55-
* I18N 支持:简体中文、English。
56-
* 支持导入自定义语音包
57-
58-
### 内置语音包(中文)特性
58+
## 更多炫酷彩虹屁
5959

60-
* 采用真人语音,共计 34 个音频文件。
61-
* 目前支持 JavaScript(ES6 ) 语言的常用关键字
62-
* 提供针对时间的语音:如提醒吃午饭、下班关怀等等
63-
* 提供针对产品经理的语音:如 `fuck`, `shit`
60+
* 其他客户端
61+
* [Emacs Rainbow Fart](https://github.com/stardiviner/emacs-rainbow-fart)
62+
* [IntelliJ Rainbow Fart](https://github.com/izhangzhihao/intellij-rainbow-fart)
6463

6564
## 开源协议
6665

67-
基于 MIT 开源,包括所有设计资源及音频资源。此外,由于仓库中的音频资源大部分由真人录音,并且根据 MIT 被授权人义务。在此明确:尤其的对于仓库中多媒体资源,您有(单独)标明资源原作者、链接、许可的义务。
66+
基于 MIT 开源,包括所有设计资源及音频资源。由于仓库中的音频资源大部分由真人录音,并且根据 MIT 被授权人义务。在此明确:尤其的对于仓库中多媒体资源,您有(单独)标明资源作者([@JustKowalski](https://github.com/JustKowalski) 提供。)、链接、许可的义务。
File renamed without changes.
File renamed without changes.

docs/zh/voice-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
语音包元信息文件还有很多其他字段,可以展示很多额外的信息(如下)。
6161

62-
<ImageZoom :src="URL_PREFIX + '/assets/ui-settings.png'" :border="true" width="300"/>
62+
<ImageZoom src="/zh/assets/ui-settings.png" :border="true" width="300"/>
6363

6464
<Note>以下字段均为可选字段</Note>
6565

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "rainbow-fart",
55
"displayName": "🌈 Rainbow Fart",
66
"description": "This extension will keep giving you compliment while you are coding.",
7-
"version": "1.1.0",
7+
"version": "1.2.0",
88
"engines": {
99
"vscode": "^1.33.0"
1010
},
@@ -52,6 +52,7 @@
5252
"get-port": "^5.1.1",
5353
"glob": "^7.1.6",
5454
"jszip": "^3.4.0",
55+
"lodash": "^4.17.15",
5556
"multer": "^1.4.2",
5657
"open": "^7.0.4",
5758
"vue-hot-reload-api": "^2.3.4",

playground.js

Whitespace-only changes.

scripts/after-build.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ import fs from "fs";
22
import path from "path";
33
import { sync as glob } from "glob";
44

5-
let files = glob("*.vsix", { cwd: path.resolve(__dirname, "../"), absolute: true });
6-
files.forEach((filepath) => {
7-
let targetpath = path.resolve(__dirname, "../docs/releases", path.basename(filepath));
8-
fs.renameSync(filepath, targetpath);
9-
})
5+
// let files = glob("*.vsix", { cwd: path.resolve(__dirname, "../"), absolute: true });
6+
// files.forEach((filepath) => {
7+
// let targetpath = path.resolve(__dirname, "../docs/releases", path.basename(filepath));
8+
// fs.renameSync(filepath, targetpath);
9+
// })
10+
11+
fs.copyFileSync(
12+
path.resolve(__dirname, "../CHANGELOG.md"),
13+
path.resolve(__dirname, "../docs/CHANGELOG.md")
14+
)

0 commit comments

Comments
 (0)