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

remove candy

parent 3a77c9fc
import { Component } from '@angular/core';
@Component({
selector: '#candy',
templateUrl: 'app/candy.component.html',
styleUrls: ['app/candy.component.css'],
})
export class CandyComponent {
constructor(){
}
}
......@@ -10,15 +10,9 @@ import {LoginService} from "./login.service";
styleUrls: ['app/lobby.component.css'],
})
export class LobbyComponent {
constructor(private appsService: AppsService, private loginService: LoginService) {
}
candy_url;
get candy_url() {
if (this.loginService.user) {
return './candy/index.html?jid=' + this.loginService.user.username + '@mycard.moe&password=' + this.loginService.user.external_id + '&nickname=' + this.loginService.user.username + '&autojoin=ygopro_china_north@conference.mycard.moe'
} else {
return null
}
constructor(private appsService: AppsService, private loginService: LoginService) {
this.candy_url = './candy/index.html?jid=' + this.loginService.user.username + '@mycard.moe&password=' + this.loginService.user.external_id + '&nickname=' + this.loginService.user.username + '&autojoin=ygopro_china_north@conference.mycard.moe'
}
}
......@@ -66,10 +66,6 @@ a {
cursor: default;
}
#window-buttons.darwin {
display: none;
}
#window-buttons > i {
color: rgba(255, 255, 255, .75);
margin: .5rem;
......
......@@ -25,7 +25,7 @@
<a (click)="loginService.logout()" href="#ygopro" id="logout" class="require-login item">切换账号</a>
<a (click)="refresh()" href="#ygopro" id="refresh" class="item">刷新</a>
</div>
<div id="window-buttons" [class.darwin]="platform == 'darwin'">
<div id="window-buttons" [hidden]="platform == 'darwin'">
<i id="minimize" class="fa fa-minus" aria-hidden="true"></i>
<i id="maximize" class="fa fa-expand" aria-hidden="true"></i>
<i id="restore" class="fa fa-clone" hidden aria-hidden="true"></i>
......@@ -35,7 +35,7 @@
</nav>
<login class="page" *ngIf="!loginService.user"></login>
<store class="page" [hidden]="!loginService.user || currentPage != 'store'"></store>
<lobby class="page" [hidden]="!loginService.user || currentPage != 'lobby'"></lobby>
<webview id="community" class="page" [hidden]="!loginService.user || currentPage != 'community'"
<store class="page" *ngIf="loginService.user" [hidden]="currentPage != 'store'"></store>
<lobby class="page" *ngIf="loginService.user" [hidden]="currentPage != 'lobby'"></lobby>
<webview id="community" class="page" *ngIf="loginService.user" [hidden]="currentPage != 'community'"
src="https://ygobbs.com"></webview>
\ No newline at end of file
......@@ -9,7 +9,6 @@ import {LobbyComponent} from "./lobby.component";
import {AppsComponent} from "./apps.component";
import {AppDetailComponent} from "./app-detail.component";
import {RosterComponent} from "./roster.component";
import {CandyComponent} from "./candy.component";
import {CommunityComponent} from "./community.component";
import {YGOProComponent} from "./ygopro.component";
import {AppsService} from "./apps.service";
......@@ -19,7 +18,7 @@ import {LoginService} from "./login.service";
@NgModule({
imports: [BrowserModule, FormsModule, ReactiveFormsModule, HttpModule, TranslateModule.forRoot()],
declarations: [MyCardComponent, LoginComponent, StoreComponent, LobbyComponent, CommunityComponent, AppsComponent, AppDetailComponent, RosterComponent, CandyComponent, YGOProComponent],
declarations: [MyCardComponent, LoginComponent, StoreComponent, LobbyComponent, CommunityComponent, AppsComponent, AppDetailComponent, RosterComponent, YGOProComponent],
bootstrap: [MyCardComponent],
providers: [AppsService, SettingsService, LoginService],
schemas: [NO_ERRORS_SCHEMA]
......
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