Commit 45621de1 authored by wudizhanche1000's avatar wudizhanche1000

合并

parent 3bdfcb80
......@@ -13,6 +13,8 @@ import {RosterComponent} from './roster.component';
import {CandyComponent} from './candy.component';
import {CommunityComponent} from './community.component';
import {YGOProComponent} from './ygopro.component';
import {RoutingService} from './routing.service';
import {AppsService} from './apps.service';
......@@ -20,7 +22,7 @@ import {TranslateModule} from 'ng2-translate';
@NgModule({
imports: [BrowserModule, FormsModule, HttpModule, TranslateModule.forRoot()],
declarations: [MyCardComponent, LoginComponent, StoreComponent, LobbyComponent, CommunityComponent, AppsComponent, AppDetailComponent, RosterComponent, CandyComponent],
declarations: [MyCardComponent, LoginComponent, StoreComponent, LobbyComponent, CommunityComponent, AppsComponent, AppDetailComponent, RosterComponent, CandyComponent, YGOProComponent],
bootstrap: [MyCardComponent],
providers: [RoutingService, AppsService],
schemas: [NO_ERRORS_SCHEMA]
......
<form class="form-inline">
<div class="form-group">
<label for="exampleSelect1">卡组</label>
<select class="form-control" id="exampleSelect1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<button type="submit" class="btn btn-secondary">编辑</button>
<button type="submit" class="btn btn-secondary">删除</button>
</form>
<div>
<button type="button" class="btn btn-primary">竞技匹配</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-list-modal">房间列表</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>
</div>
\ No newline at end of file
/**
* Created by zh99998 on 16/9/2.
*/
import {Component} from '@angular/core';
import {AppsService} from "./apps.service";
import {RoutingService} from "./routing.service";
declare var System;
const fs = System._nodeRequire('fs');
@Component({
selector: 'ygopro',
templateUrl: 'app/ygopro.component.html',
styleUrls: ['app/ygopro.component.css'],
})
export class YGOProComponent {
constructor(private appsService: AppsService, private routingService: RoutingService) {
}
decks () {
return new Promise(()=>{
fs.readdir()
})
}
}
This diff is collapsed.
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