Skip to content

Commit

Permalink
v2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
writ312 committed Jan 28, 2017
1 parent 7d426b8 commit f269203
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
"electron-json-storage": "^2.0.0",
"marked": "^0.3.5",
"mkdirp": "^0.5.1",
"moment": "^2.17.1",
"request-progress": "^2.0.1",
"semver": "^5.1.0",
"moment": "^2.17.1"
"xml2js": "^0.4.17"
}
}
11 changes: 11 additions & 0 deletions scripts/settings/settings.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@
vm.isLatestVersion = function(){
return (vm.thisVersion == vm.latestVersion)?true:false;
}
vm.resetInstalledAddons = function (){

var data = {installedAddons:null}
require('electron-json-storage').set("addons", data, function(error) {
if(error) {
alert(error);
} else {
alert("初期化しました");
}
});
}
function validateDirectory() {
var fs = require("fs");
var exe = vm.treeOfSaviorDirectory + "/release/Client_tos.exe";
Expand Down
4 changes: 3 additions & 1 deletion views/settings.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<md-content class="md-padding">
<h2 class="md-display-2">設定</h2>
<div style="color:red" data-ng-show="!vm.isLatestVersion()" >
<p style="color:black">This Version v<span>{{vm.thisVersion}}</span></p>
<p>Latest Version v<span>{{vm.latestVersion}}</span></p>
Expand All @@ -19,4 +18,7 @@ <h3><strong>最新のマネージャーにアップデートしてください</
<span data-ng-show="!vm.isValidDirectory();"><p class="error">アドオンをインストールする前に、正しいTree of Saviorのインストールフォルダを指定してください。</p></span>
</form>
</md-content>
<h3>インストール履歴を
<md-button class="md-warn md-raised" ng-click="vm.resetInstalledAddons();">初期化する</md-button>
</h3>
</md-content>

0 comments on commit f269203

Please sign in to comment.