From 24cac52f15340685352477a418f415556a101559 Mon Sep 17 00:00:00 2001 From: Nutti Date: Wed, 29 Nov 2017 21:42:13 +0900 Subject: [PATCH] Version 1.1 released --- README.md | 97 +++++++-- README_jp.md | 116 ++++++++++- images/favorite_button.png | 3 + images/favorite_button_favorited.png | 3 + images/migrate_addon.png | 3 + images/migrate_addon_hover.png | 3 + package.json | 2 +- src/client/html/index.html | 1 + .../html/partials/addon-info/buttons.html | 8 +- .../html/partials/addon-info/github.html | 46 +++-- .../html/partials/addon-info/installed.html | 46 +++-- .../html/partials/customdir-list-popup.html | 2 +- src/client/html/partials/error-popup.html | 2 +- src/client/html/partials/footer.html | 8 +- src/client/html/partials/header.html | 11 +- .../html/partials/ignore-list-popup.html | 2 +- src/client/html/partials/menu.html | 10 +- .../html/partials/migrate-addon-popup.html | 40 ++++ src/client/js/addon.js | 8 +- src/client/js/app.js | 185 +++++++++++++++++- src/client/js/db.js | 12 +- src/client/js/task.js | 5 +- src/client/js/ui.js | 11 ++ src/client/sass/components/_button.scss | 1 - src/client/sass/components/_popup.scss | 62 ++++++ src/client/sass/lib/_mixins.scss | 16 +- src/client/sass/lib/_variables.scss | 2 +- src/client/sass/modules/_app.scss | 2 +- src/client/sass/modules/_container.scss | 123 +++++++----- src/client/sass/modules/_footer.scss | 18 +- src/client/sass/modules/_menu.scss | 4 +- src/lib/js/blam-constants.js | 9 +- src/lib/js/blam-custom-dir.js | 4 +- src/lib/js/blam-db-writer.js | 13 ++ src/lib/js/blam-db.js | 56 ++---- src/lib/js/blam-favorite.js | 61 ++++++ src/lib/js/blam-os.js | 3 +- src/lib/js/blam-translations.js | 54 +++++ src/lib/js/blam.js | 13 +- src/lib/js/lang/lang-es.js | 39 ++++ src/lib/js/task.js | 6 +- src/lib/js/utils.js | 9 +- src/server/js/bladdon_cleaner.js | 115 ++++++++++- src/server/server.py | 124 ++++++++++-- 44 files changed, 1123 insertions(+), 235 deletions(-) create mode 100644 images/favorite_button.png create mode 100644 images/favorite_button_favorited.png create mode 100644 images/migrate_addon.png create mode 100644 images/migrate_addon_hover.png create mode 100644 src/client/html/partials/migrate-addon-popup.html create mode 100644 src/lib/js/blam-favorite.js create mode 100644 src/lib/js/blam-translations.js create mode 100644 src/lib/js/lang/lang-es.js diff --git a/README.md b/README.md index 98dbaf7..a8f4fea 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ You can install/uninstall/update all add-on's released on GitHub with this appli |Version|Download URL| |---|---| +|1.1|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v1.1)| |1.0|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v1.0)| |0.3|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v0.3)| |0.2|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v0.2)| @@ -16,8 +17,12 @@ You can install/uninstall/update all add-on's released on GitHub with this appli ## Support Languages -**English** only. +The list of languages supported by this application is shown below. +If you want to support other languages, please send me translated strings. +* English (Default) +* Spanish + * Contributed by @Oxer ## Features @@ -28,6 +33,8 @@ This application has features as follows. * Install add-on released on GitHub * Uninstall add-on which is already installed (only **External** support level) * Update add-on released on GitHub + * Favorite +* Migrate add-ons among different Blender version ## Tutorials @@ -47,9 +54,10 @@ See the link below for further details. |Version|Release Date|Change Log| |---|---|---| -|1.0|2017.X.XX|[1] Manage Custom Add-on Folder
[2] Ignore List
[3] Sorting Option in Add-on List
[4] Delete Add-on whose link is already broken automatically (server).
[5] Fix bug
- Failed to detect add-ons whose path contains "."| -|0.3|2017.4.11|[1] Move config/DB file to user directory
[2] Improve server's stability
[3] Error popup
[4] Fix bug
- Failed to run application developed by unidentified developer on macOS
- Failed to load add-on at Blender installed by this application| -|0.2|2017.4.2|[1] Support macOS
[2] Add features
- Link button to Add-on repository
- Case-insensitive search
[3]Fix bug
- Failed to install when ```__init__.py``` is located on the top directory| +|1.1|2017.11.29|[1] Add features
- Favorite
- Migrate Add-on among different Blender version
[2] Support Language
- Spanish
[3] Add scroll bar
[4] Update Add-on Database API (server)
[5] Improve deletion algorithm on the add-on DB cleaner (server)| +|1.0|2017.11.9|[1] Add features
- Manage Custom Add-on Folder
- Ignore List
[2] Add Sorting Option in Add-on List
[3] Delete Add-on whose link is already broken automatically (server)
[4] Fix bug
- Failed to detect add-ons whose path contains "."| +|0.3|2017.4.11|[1] Move config/DB file to user directory
[2] Improve server's stability
[3] Error popup
[4] Fix bug
- Failed to run application developed by unidentified developer on macOS
- Failed to load add-on installed by this application at Blender| +|0.2|2017.4.2|[1] Support macOS
[2] Add feature
- Link button to Add-on repository
[3] Add Case-insensitive search
[4] Fix bug
- Failed to install when ```__init__.py``` is located on the top directory| |0.1|2017.3.25|First release for testing| @@ -67,31 +75,84 @@ DO NOT send pull request to **master** branch. https://github.com/nutti/Blender-Add-on-Manager/tree/develop +### Testing + +only application is available. + +#### Application + To build and run application for testing. ```sh -$ git clone https://github.com/nutti/Blender-Add-on-Manager.git -$ cd Blender-Add-on-Manager -$ npm install -$ bower install -$ gulp -$ gulp start + $ git clone https://github.com/nutti/Blender-Add-on-Manager.git + $ cd Blender-Add-on-Manager + $ npm install + $ bower install + $ gulp + $ gulp start ``` -To build application for relase. +### Release + +#### Application + +To build and pack application for release. ```sh -$ git clone https://github.com/nutti/Blender-Add-on-Manager.git -$ cd Blender-Add-on-Manager -$ npm install -$ bower install -$ gulp + $ git clone https://github.com/nutti/Blender-Add-on-Manager.git + $ cd Blender-Add-on-Manager + $ npm install + $ bower install + $ gulp -$ npm run build # for Windows/linux + $ npm run build # for Windows/linux or -$ node build_mac.js # for macOS + $ git-lfs pull + $ node build_mac.js # for macOS +``` + +#### Server + +To build and launch server for release. (Linux only) + +```sh + $ git clone https://github.com/nutti/Blender-Add-on-Manager.git + $ cd Blender-Add-on-Manager + $ vim src/lib/js/blam-constants.js +# comment constant definition "USER_DIR" for client, +# and uncomment constant definition "USER_DIR" for server. + + $ npm install + $ npm install electron@1.7.9 + $ bower install + $ gulp + +# make configuration file for logging into GitHub + $ vim config.json +# { +# "github": { +# "username": , +# "password": +# } +# } + +# install python dependencies + $ mkdir venv + $ virtualenv venv + $ source venv/bin/activate + $ pip install -r requirements.txt + +# run API server + $ cd src/server + $ sh run.sh +# run Blender add-on information collector + $ cd ../.. + $ cd build/server/js + $ forever start bladdon_collector.js +# run Blender add-on information cleaner (optional) + $ node bladdon_cleaner.js ``` diff --git a/README_jp.md b/README_jp.md index f3ad718..3bb2cbb 100644 --- a/README_jp.md +++ b/README_jp.md @@ -3,17 +3,27 @@ GitHubで公開されているアドオンを管理するためのツールです。 本ツールを利用することで、GitHubで公開されている全てのアドオンについて管理することができます。 -**現在、テスト目的でツールを公開しています。不具合の修正は適宜行っていますが、まだ多数の潜在的な不具合が存在すると考えられますので、ご利用は自己責任で行ってください。** ## ダウンロードURL |バージョン|URL| |---|---| -|0.1|Download| +|1.1|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v1.1)| +|1.0|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v1.0)| +|0.3|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v0.3)| +|0.2|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v0.2)| +|0.1|[Download](https://github.com/nutti/Blender-Add-on-Manager/releases/tag/v0.1)| + ## 対応言語 -英語のみ +現在、本アプリケーションでサポートしている言語は以下の通りです。 +サポートしたい言語がありましたら、翻訳内容を送ってください。 + +* 英語(デフォルト) +* スペイン語 + * 提供者:@Oxer + ## 提供機能 @@ -24,6 +34,9 @@ GitHubで公開されているアドオンを管理するためのツールで * GitHub上で公開されているアドオンのインストール * インストール済みのアドオンのアンインストール(サポートレベルがExternalのアドオンのみ) * GitHub上で公開されているアドオンのアップデート + * お気に入り +* 異なるバージョンのBlender間でのアドオン移行 + ## 使い方 @@ -35,11 +48,19 @@ GitHubで公開されているアドオンを管理するためのツールで Blenderアドオンマネージャは現在進行中のプロジェクトです。 より詳細な情報については、以下のリンク先を参照してください。 +* [Blender Artist Thread](https://blenderartists.org/forum/showthread.php?418833-Blender-Add-on-Manager-(About-2-000-add-ons-are-available)) + + ## 更新履歴 -|バージョン|URL| -|---|---| -|0.1|テスト版公開| +|バージョン|リリース日|更新内容| +|---|---|---| +|1.1|2017.11.29|[1] 新機能追加
- お気に入り
- 異なるバージョン間でのアドオン移行
[2] 言語サポート
- スペイン語
[3] スクロールバー追加
[4] データベースのAPIを更新 (サーバ)
[5] データベースからのアドオン削除アルゴリズム改良 (サーバ)| +|1.0|2017.11.9|[1] 新機能追加
- カスタムディレクトリ上に配置されたアドオンの管理
- アドオンのブロック
[2] アドオンの表示順序選択
[3] リンク切れのアドオン削除 (サーバ)
[4] バグ修正
- パスに "." を含むアドオン情報の取得に失敗| +|0.3|2017.4.11|[1] configファイルとデータベースファイルをユーザのホームディレクトリに配置
[2] サーバサイドプログラムの安定性向上
[3] エラー時にポップアップ表示
[4] バグ修正
- 開発元が未確認のためにmacOSでアプリを起動できない
- 本アプリでインストールしたアドオンをBlenderで開けない| +|0.2|2017.4.2|[1] macOSサポート
[2] 新機能追加
- アドオンのリポジトリへのリンクジャンプ
[3] 大文字/小文字を判別しない検索
[4] バグ修正
- ```__init__.py``` がディレクトリ直下に置かれていた場合にインストールできない| +|0.1|2017.3.25|テスト向けリリース| + ## 不具合報告、機能追加依頼 @@ -52,6 +73,89 @@ https://github.com/nutti/Blender-Add-on-Manager-for-GitHub/issues 本ツールの開発に対する修正などを行いたい方は **develop** ブランチへPull Requestすることで修正依頼を行ってください。 **master** ブランチへのPull Requestは禁止します。 +https://github.com/nutti/Blender-Add-on-Manager/tree/develop + + +### テスト + +テストはアプリケーションのみ対応しています。 + +#### アプリケーション + +アプリケーションをビルド&テストするためには、以下の手順に従います。 + +```sh + $ git clone https://github.com/nutti/Blender-Add-on-Manager.git + $ cd Blender-Add-on-Manager + $ npm install + $ bower install + $ gulp + $ gulp start +``` + +### リリース + +#### アプリケーション + +アプリケーションのリリース版は、以下の手順で作成します。 + +```sh + $ git clone https://github.com/nutti/Blender-Add-on-Manager.git + $ cd Blender-Add-on-Manager + $ npm install + $ bower install + $ gulp + + $ npm run build # Windows/Linux向け + +or + + $ node build_mac.js # MacOS向け +``` + +#### サーバ + +サーバサイドプログラムのリリース版のビルドと、各種サーバの立ち上げは以下の手順で行います(Linux上でのみ動作可能です)。 + + +```sh + $ git clone https://github.com/nutti/Blender-Add-on-Manager.git + $ cd Blender-Add-on-Manager + $ vim src/lib/js/blam-constants.js +# クライアントの定数定義 "USER_DIR" をコメント +# サーバの定数定義 "USER_DIR" のコメントを外す + + $ npm install + $ npm install electron@1.7.9 + $ bower install + $ gulp + +# GitHubにログインするための設定ファイルを作成 + $ vim config.json +# { +# "github": { +# "username": , +# "password": +# } +# } + +# Pythonの依存するパッケージをインストール + $ mkdir venv + $ virtualenv venv + $ source venv/bin/activate + $ pip install -r requirements.txt + +# APIサーバを立ち上げ + $ cd src/server + $ sh run.sh +# GitHubからのアドオン情報収集デーモンを立ち上げ + $ cd ../.. + $ cd build/server/js + $ forever start bladdon_collector.js +# アドオンデータベースクリーナの立ち上げ (任意) + $ node bladdon_cleaner.js +``` + ## ライセンス 本ツールは **MIT** ライセンスが適用されています。 diff --git a/images/favorite_button.png b/images/favorite_button.png new file mode 100644 index 0000000..07c6629 --- /dev/null +++ b/images/favorite_button.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b0094e5d62743d7c331739e92f27d86fca7b78e7bf7285a66d8c42122dca6c4 +size 17525 diff --git a/images/favorite_button_favorited.png b/images/favorite_button_favorited.png new file mode 100644 index 0000000..43d2aa3 --- /dev/null +++ b/images/favorite_button_favorited.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa88f855449ae20210ca08caf251446599f2937ee99f2b4355c046bc7acfb3e6 +size 12421 diff --git a/images/migrate_addon.png b/images/migrate_addon.png new file mode 100644 index 0000000..9909082 --- /dev/null +++ b/images/migrate_addon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73f1611b58e924619e827cb060b6d99df458784420b9c88b37ee7c1b73e8fda4 +size 7246 diff --git a/images/migrate_addon_hover.png b/images/migrate_addon_hover.png new file mode 100644 index 0000000..425993e --- /dev/null +++ b/images/migrate_addon_hover.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cde98be59a96cb0af80bcfa81697498bb752607ea26d5b689ed7694fad5bf2bc +size 7194 diff --git a/package.json b/package.json index db37f93..da55a87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Blender_Add-on_Manager", - "version": "1.0.0", + "version": "1.1.0", "description": "Blender Add-on Manager", "main": "main.js", "scripts": { diff --git a/src/client/html/index.html b/src/client/html/index.html index e2a7710..2da760f 100755 --- a/src/client/html/index.html +++ b/src/client/html/index.html @@ -46,6 +46,7 @@
+
diff --git a/src/client/html/partials/addon-info/buttons.html b/src/client/html/partials/addon-info/buttons.html index 1c9e4e2..d14a6db 100644 --- a/src/client/html/partials/addon-info/buttons.html +++ b/src/client/html/partials/addon-info/buttons.html @@ -1,20 +1,20 @@
- Install + {{blamTranslate('Install');}}
- Update + {{blamTranslate('Update');}}
- Remove + {{blamTranslate('Remove');}}
diff --git a/src/client/html/partials/addon-info/github.html b/src/client/html/partials/addon-info/github.html index b3bfa3b..7a4203f 100644 --- a/src/client/html/partials/addon-info/github.html +++ b/src/client/html/partials/addon-info/github.html @@ -1,22 +1,36 @@
-
- {{blStr('name', addonStatus[key].github.bl_info.name);}} +
+
+
+
+ +
+
+ +
+
+
+ {{blStr('name', addonStatus[key].github.bl_info.name);}} +
+
+
+ {{blamTranslate(blStr('description', addonStatus[key].github.bl_info.description));}} +
+
+ {{blStr('author', addonStatus[key].github.bl_info.author);}} +
-
- {{blStr('description', addonStatus[key].github.bl_info.description);}} -
-
- {{blStr('author', addonStatus[key].github.bl_info.author);}} -
-
- {{blStr('version', addonStatus[key].github.bl_info.version);}} -
-
- {{blStr('bl-version', addonStatus[key].github.bl_info.blender);}} -
-
- {{blStr('category', addonStatus[key].github.bl_info.category);}} +
+
+ {{blStr('version', addonStatus[key].github.bl_info.version);}} +
+
+ {{blStr('bl-version', addonStatus[key].github.bl_info.blender);}} +
+
+ {{blStr('category', addonStatus[key].github.bl_info.category);}} +
diff --git a/src/client/html/partials/addon-info/installed.html b/src/client/html/partials/addon-info/installed.html index 0a23964..5fbd696 100644 --- a/src/client/html/partials/addon-info/installed.html +++ b/src/client/html/partials/addon-info/installed.html @@ -1,22 +1,36 @@
-
- {{blStr('name', addonStatus[key].installed[targetDir].bl_info.name);}} +
+
+
+
+ +
+
+ +
+
+
+ {{blStr('name', addonStatus[key].installed[targetDir].bl_info.name);}} +
+
+
+ {{blamTranslate(blStr('description', addonStatus[key].installed[targetDir].bl_info.description));}} +
+
+ {{blStr('author', addonStatus[key].installed[targetDir].bl_info.author);}} +
-
- {{blStr('description', addonStatus[key].installed[targetDir].bl_info.description);}} -
-
- {{blStr('author', addonStatus[key].installed[targetDir].bl_info.author);}} -
-
- {{blStr('version', addonStatus[key].installed[targetDir].bl_info.version);}} -
-
- {{blStr('bl-version', addonStatus[key].installed[targetDir].bl_info.blender);}} -
-
- {{blStr('category', addonStatus[key].installed[targetDir].bl_info.category);}} +
+
+ {{blStr('version', addonStatus[key].installed[targetDir].bl_info.version);}} +
+
+ {{blStr('bl-version', addonStatus[key].installed[targetDir].bl_info.blender);}} +
+
+ {{blStr('category', addonStatus[key].installed[targetDir].bl_info.category);}} +
diff --git a/src/client/html/partials/customdir-list-popup.html b/src/client/html/partials/customdir-list-popup.html index 4e3112e..77d0e27 100644 --- a/src/client/html/partials/customdir-list-popup.html +++ b/src/client/html/partials/customdir-list-popup.html @@ -59,7 +59,7 @@

Add New Custom Directory

- Close + {{blamTranslate('Close');}}
diff --git a/src/client/html/partials/error-popup.html b/src/client/html/partials/error-popup.html index e237886..e42514c 100644 --- a/src/client/html/partials/error-popup.html +++ b/src/client/html/partials/error-popup.html @@ -10,7 +10,7 @@

{{ errMsg }}

- Close + {{blamTranslate('Close');}}
diff --git a/src/client/html/partials/footer.html b/src/client/html/partials/footer.html index 724739c..87c717f 100644 --- a/src/client/html/partials/footer.html +++ b/src/client/html/partials/footer.html @@ -1,8 +1,14 @@ +
+
+ +
+
- {{ task.progress }} + {{ task.progress }} .
diff --git a/src/client/html/partials/header.html b/src/client/html/partials/header.html index 126d11b..39c92be 100644 --- a/src/client/html/partials/header.html +++ b/src/client/html/partials/header.html @@ -19,6 +19,11 @@ Manage Custom Installation Target
+