Commit 602ce234 authored by 神楽坂玲奈's avatar 神楽坂玲奈

ygopro

parent 56b61486
...@@ -88,15 +88,6 @@ ...@@ -88,15 +88,6 @@
</table> </table>
</div> </div>
<!== DEBUG -->
<pre class="debug">
{{appsService.downloadsInfo | json}}
{{appsService.installConfig | json}}
{{appsService.tarQueue | json}}
{{appsService.waitInstallQueue | json}}
</pre>
<button (click)="appsService.doTar()">DOTAR</button>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="install-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" <div class="modal fade" id="install-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true"> aria-hidden="true">
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div> <div>
<button type="button" class="btn btn-primary">竞技匹配</button> <button type="button" class="btn btn-primary">竞技匹配</button>
<button type="button" class="btn btn-secondary">娱乐匹配</button> <button type="button" class="btn btn-secondary">娱乐匹配</button>
<!--<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-create-modal">创建房间</button>--> <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-create-modal">创建房间</button>
<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-list-modal">房间列表</button> <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-list-modal">房间列表</button>
<button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-create-windbot">单人模式</button> <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#game-create-windbot">单人模式</button>
<button (click)="appsService.browse(routingService.app)" type="button" class="btn btn-secondary">浏览本地文件</button> <button (click)="appsService.browse(routingService.app)" type="button" class="btn btn-secondary">浏览本地文件</button>
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
import {AppsService} from "./apps.service"; import {AppsService} from "./apps.service";
import {RoutingService} from "./routing.service"; import {RoutingService} from "./routing.service";
declare var System;
const fs = System._nodeRequire('fs');
@Component({ @Component({
selector: 'ygopro', selector: 'ygopro',
templateUrl: 'app/ygopro.component.html', templateUrl: 'app/ygopro.component.html',
...@@ -12,4 +16,9 @@ import {RoutingService} from "./routing.service"; ...@@ -12,4 +16,9 @@ import {RoutingService} from "./routing.service";
export class YGOProComponent { export class YGOProComponent {
constructor(private appsService: AppsService, private routingService: RoutingService) { constructor(private appsService: AppsService, private routingService: RoutingService) {
} }
decks () {
return new Promise(()=>{
fs.readdir()
})
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment