Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SaekiRaku committed Jun 21, 2020
1 parent 3854662 commit b81530e
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 63 deletions.
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ assets/
docs/
src/page/src/
src/page/.cache/
scripts/
scripts/
temp/
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to the "vscode-rainbow-fart" extension will be documented in

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

## [1.2.1] - 2020-06-21

### Added

- Voice Packages are support multilevel directory now.

### Fixed

- Import failed when import a new Voice Package.

### Changed

- Updated the version of the UI component library.

## [1.2.0] - 2020-06-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1
Binary file modified assets/vscode-rainbow-fart.sketch
Binary file not shown.
14 changes: 14 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to the "vscode-rainbow-fart" extension will be documented in

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

## [1.2.1] - 2020-06-21

### Added

- Voice Packages are support multilevel directory now.

### Fixed

- Import failed when import a new Voice Package.

### Changed

- Updated the version of the UI component library.

## [1.2.0] - 2020-06-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion docs/global.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
window.VERSION = "1.2.0";
window.VERSION = "1.2.1";
window.URL_PREFIX = location.pathname === "/" ? "" : location.pathname;
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "rainbow-fart",
"displayName": "🌈 Rainbow Fart",
"description": "This extension will keep giving you compliment while you are coding.",
"version": "1.2.0",
"version": "1.2.1",
"engines": {
"vscode": "^1.33.0"
},
Expand Down Expand Up @@ -45,7 +45,7 @@
"vue-template-compiler": "^2.6.11"
},
"dependencies": {
"@qiqi1996/qi-design-vue": "^0.10.0",
"@qiqi1996/qi-design-vue": "^0.10.1",
"axios": "^0.19.2",
"body-parser": "^1.19.0",
"express": "^4.17.1",
Expand Down
6 changes: 5 additions & 1 deletion src/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const jszip = require("jszip")

const share = require("./share.js");
const settings = require("./settings.js");
const { file } = require("jszip");

var builtInVoicePackages = [];
const requiredProperties = ["name", "version", "contributes"];
Expand Down Expand Up @@ -96,11 +97,14 @@ async function add(filepath) {

let basepath = path.resolve(share.PATH_VOICE_PACKAGES, manifest.name);
try {
fs.delete(share.uri(basepath), { recursive: true })
await fs.delete(share.uri(basepath), { recursive: true })
} catch (e) {}

fs.createDirectory(share.uri(basepath));
for (let filename in zip.files) {
if (zip.files[filename].dir) {
continue;
}
await fs.writeFile(share.uri(path.resolve(basepath, filename)), await zip.file(filename).async("nodebuffer"));
}
}
Expand Down
14 changes: 8 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ function activate(context) {
share.PATH_SETTINGS = path.resolve(share.PATH_GLOBAL, "settings.json");
share.PATH_VOICE_PACKAGES = path.resolve(share.PATH_GLOBAL, "voice-packages");

settings.load();
assets.init();
initTimerHook();
initInputHook();
initService();

initCommands(context);

process.nextTick(() => {
settings.load();
assets.init();
initTimerHook();
initInputHook();
initService();
})
}

function deactivate() {}
Expand Down
46 changes: 0 additions & 46 deletions src/page/src/components/contributor-list.vue

This file was deleted.

4 changes: 4 additions & 0 deletions src/page/src/components/settings/voice-packages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
.action-bar {
padding: 2 * @grid;
.q-button {
margin-right: @grid;
}
}
.divider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<q-divider type="vertical"></q-divider>
<div class="panel-item">
<q-icon name="user"></q-icon>
<q-icon :name="data.gender=='male'?'male':data.gender=='female'?'female':'gender'"></q-icon>
<q-text>{{ $t(data["gender"]) }}</q-text>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module.exports = async function () {
try {
await assets.add(req.file.path)
} catch (e) {
console.error(e);
res.json({
err: true,
errmsg: e.toString()
Expand Down

0 comments on commit b81530e

Please sign in to comment.