Commit f706d542 authored by 神楽坂玲奈's avatar 神楽坂玲奈

install modal

parent b855fb64
...@@ -78,10 +78,16 @@ ...@@ -78,10 +78,16 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p>即将开始安装 {{name}}</p> <p>即将开始安装 {{name}}</p>
<!-- 安装位置只在 windows 下可选 --> <!-- 安装位置选择只在 windows 下存在, 为了方便调试暂时不加ngif -->
<h4>安装位置</h4> <h4>安装位置</h4>
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" placeholder="安装位置">
<span class="input-group-btn">
<button class="btn btn-secondary" type="button">浏览</button>
</span>
</div>
</div>
<h4>快捷方式</h4> <h4>快捷方式</h4>
<div class="checkbox"> <div class="checkbox">
<label> <label>
...@@ -96,12 +102,13 @@ ...@@ -96,12 +102,13 @@
</label> </label>
</div> </div>
<h4>附加内容</h4> <h4>附加内容</h4>
<!--<div ng-repeat="(id, ref) in references" class="checkbox"> <div *ngFor="let mod of currentApp.references[platform]">
<label> <label>
<input type="checkbox" (ngModel)="ref.install" (ngModel)="ref.disabled"> <input type="checkbox" (ngModel)="__todo__"
{{apps[id].name}} [disabled]="['dependency', 'runtime'].includes(mod.type)">
{{searchApp(mod.id).name[searchApp(mod.id).locales[0]]}}
</label> </label>
</div>--> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
......
...@@ -12,6 +12,7 @@ declare var process; ...@@ -12,6 +12,7 @@ declare var process;
styleUrls: ['app/app-detail.component.css'], styleUrls: ['app/app-detail.component.css'],
}) })
export class AppDetailComponent { export class AppDetailComponent {
platform = process.platform;
constructor(private appsService: AppsService, private appService: AppService, private routingService: RoutingService ) { constructor(private appsService: AppsService, private appService: AppService, private routingService: RoutingService ) {
} }
......
<!-- Begin page content --> <!-- Begin page content -->
<div id="main"> <div id="main">
<apps></apps> <apps></apps>
<app-detail></app-detail> <app-detail *ngIf="routingService.app"></app-detail>
<roster></roster> <roster></roster>
</div> </div>
<webview id="candy" src="https://dev.openflex.net/candy"></webview> <webview id="candy" src="https://dev.openflex.net/candy"></webview>
\ No newline at end of file
/** /**
* Created by zh99998 on 16/9/2. * Created by zh99998 on 16/9/2.
*/ */
import { Component } from '@angular/core'; import {Component} from '@angular/core';
import {RoutingService} from "./routing.service";
@Component({ @Component({
selector: 'lobby', selector: 'lobby',
templateUrl: 'app/lobby.component.html', templateUrl: 'app/lobby.component.html',
styleUrls: ['app/lobby.component.css'], styleUrls: ['app/lobby.component.css'],
}) })
export class LobbyComponent { } export class LobbyComponent {
constructor(private routingService: RoutingService) {
}
}
...@@ -20,7 +20,22 @@ ...@@ -20,7 +20,22 @@
} }
} }
}, },
"references": {}, "references": {
"darwin": [
{
"id": "th105",
"type": "optional"
},
{
"id": "th12_mod1",
"type": "language"
},
{
"id": "th12_mod2",
"type": "runtime"
}
]
},
"locales": [ "locales": [
"zh-CN" "zh-CN"
], ],
......
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