Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
mycard
Commits
3a77c9fc
Commit
3a77c9fc
authored
Oct 26, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lobby
parent
6ec19f15
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
11 deletions
+21
-11
app/app-detail.component.html
app/app-detail.component.html
+4
-4
app/apps.component.html
app/apps.component.html
+4
-4
app/lobby.component.html
app/lobby.component.html
+1
-1
app/lobby.component.ts
app/lobby.component.ts
+11
-1
app/main.ts
app/main.ts
+1
-1
No files found.
app/app-detail.component.html
View file @
3a77c9fc
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<br>
<br>
<h2
*ngIf=
"news"
>
新闻
</h2>
<h2
*ngIf=
"news
.length
"
>
新闻
</h2>
<div
id=
"news"
*ngFor=
"let item of news"
>
<div
id=
"news"
*ngFor=
"let item of news"
>
<h3>
{{item.title}}
</h3>
<h3>
{{item.title}}
</h3>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<a
*ngIf=
"item.url"
[href]=
"item.url"
>
了解更多
</a>
<a
*ngIf=
"item.url"
[href]=
"item.url"
>
了解更多
</a>
</div>
</div>
<div
*ngIf=
"friends"
>
<
!--<
div *ngIf="friends">
<h2>好友</h2>
<h2>好友</h2>
<p>好友信息</p>
<p>好友信息</p>
<br>
<br>
...
@@ -45,9 +45,9 @@
...
@@ -45,9 +45,9 @@
<h2>成就</h2>
<h2>成就</h2>
<p>成就信息</p>
<p>成就信息</p>
<br>
<br>
</div>
</div>
-->
<div
*ngIf=
"mods"
>
<div
*ngIf=
"mods
&& mods.length
"
>
<h2>
Mods
</h2>
<h2>
Mods
</h2>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<thead
class=
"thead-inverse"
>
<thead
class=
"thead-inverse"
>
...
...
app/apps.component.html
View file @
3a77c9fc
<span
*ngIf=
"grouped_apps.installed"
>
已安装
</span>
<span
*ngIf=
"grouped_apps.installed
.length
"
>
已安装
</span>
<ul
*ngIf=
"grouped_apps.installed"
class=
"nav nav-sidebar"
>
<ul
*ngIf=
"grouped_apps.installed"
class=
"nav nav-sidebar"
>
<li
*ngFor=
"let app of grouped_apps.installed"
[class.active]=
"app===appsService.currentApp"
>
<li
*ngFor=
"let app of grouped_apps.installed"
[class.active]=
"app===appsService.currentApp"
>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
</li>
</li>
</ul>
</ul>
<span
*ngIf=
"grouped_apps.yugioh"
>
游戏王
</span>
<span
*ngIf=
"grouped_apps.yugioh
.length
"
>
游戏王
</span>
<ul
*ngIf=
"grouped_apps.yugioh"
class=
"nav nav-sidebar"
>
<ul
*ngIf=
"grouped_apps.yugioh"
class=
"nav nav-sidebar"
>
<li
*ngFor=
"let app of grouped_apps.yugioh"
[class.active]=
"app===appsService.currentApp"
>
<li
*ngFor=
"let app of grouped_apps.yugioh"
[class.active]=
"app===appsService.currentApp"
>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
</li>
</li>
</ul>
</ul>
<span
*ngIf=
"grouped_apps.touhou"
>
东方 Project
</span>
<span
*ngIf=
"grouped_apps.touhou
.length
"
>
东方 Project
</span>
<ul
*ngIf=
"grouped_apps.touhou"
class=
"nav nav-sidebar"
>
<ul
*ngIf=
"grouped_apps.touhou"
class=
"nav nav-sidebar"
>
<li
*ngFor=
"let app of grouped_apps.touhou"
[class.active]=
"app===appsService.currentApp"
>
<li
*ngFor=
"let app of grouped_apps.touhou"
[class.active]=
"app===appsService.currentApp"
>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
</li>
</li>
</ul>
</ul>
<span
*ngIf=
"grouped_apps.touhou_pc98"
>
东方旧作
</span>
<span
*ngIf=
"grouped_apps.touhou_pc98
.length
"
>
东方旧作
</span>
<ul
*ngIf=
"grouped_apps.touhou_pc98"
class=
"nav nav-sidebar"
>
<ul
*ngIf=
"grouped_apps.touhou_pc98"
class=
"nav nav-sidebar"
>
<li
*ngFor=
"let app of grouped_apps.touhou_pc98"
[class.active]=
"app===appsService.currentApp"
>
<li
*ngFor=
"let app of grouped_apps.touhou_pc98"
[class.active]=
"app===appsService.currentApp"
>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
<a
(click)=
"chooseApp(app)"
href=
"#"
>
{{app.name[app.locales[0]]}}
</a>
...
...
app/lobby.component.html
View file @
3a77c9fc
...
@@ -5,5 +5,5 @@
...
@@ -5,5 +5,5 @@
<roster></roster>
<roster></roster>
</div>
</div>
<webview
id=
"candy"
<webview
id=
"candy"
src=
"./candy/index.html?jid=zh99998@mycard.moe&password=&nickname=zh99998测试&autojoin=ygopro_china_north@conference.mycard.moe
"
[src]=
"candy_url
"
nodeintegration
></webview>
nodeintegration
></webview>
\ No newline at end of file
app/lobby.component.ts
View file @
3a77c9fc
...
@@ -3,12 +3,22 @@
...
@@ -3,12 +3,22 @@
*/
*/
import
{
Component
}
from
"
@angular/core
"
;
import
{
Component
}
from
"
@angular/core
"
;
import
{
AppsService
}
from
"
./apps.service
"
;
import
{
AppsService
}
from
"
./apps.service
"
;
import
{
LoginService
}
from
"
./login.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
appsService
:
AppsService
)
{
constructor
(
private
appsService
:
AppsService
,
private
loginService
:
LoginService
)
{
}
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
}
}
}
}
}
app/main.ts
View file @
3a77c9fc
import
{
platformBrowserDynamic
}
from
'
@angular/platform-browser-dynamic
'
;
import
{
platformBrowserDynamic
}
from
'
@angular/platform-browser-dynamic
'
;
import
{
MyCard
}
from
'
./mycard.module
'
;
import
{
MyCard
}
from
'
./mycard.module
'
;
import
{
enableProdMode
}
from
'
@angular/core
'
;
import
{
enableProdMode
}
from
'
@angular/core
'
;
enableProdMode
();
//
enableProdMode();
platformBrowserDynamic
().
bootstrapModule
(
MyCard
);
platformBrowserDynamic
().
bootstrapModule
(
MyCard
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment