Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
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
GaiaXalter
Mycard Mobile
Commits
8104fb67
Commit
8104fb67
authored
Jul 21, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社区热帖
parent
7be813f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
29 deletions
+10
-29
src/app/lobby/lobby.component.html
src/app/lobby/lobby.component.html
+9
-28
src/app/ygopro.service.ts
src/app/ygopro.service.ts
+1
-1
No files found.
src/app/lobby/lobby.component.html
View file @
8104fb67
...
...
@@ -84,31 +84,12 @@
</a>
</md-card>
<!--<md-card *ngFor="let item of ygopro.topics | async">-->
<!--<a [href]="item.url" target="_blank">-->
<!--<md-card-header>-->
<!--<img *ngIf="item.image_url" md-card-avatar [src]="item.image_url">-->
<!--<md-card-title>{{item.title}}</md-card-title>-->
<!--<md-card-subtitle>by {{item.last_poster_username}} / {{item.last_posted_at | date:"mediumDate"}}</md-card-subtitle>-->
<!--</md-card-header>-->
<!--</a>-->
<!---->
<!--<md-card-header>-->
<!--<img [src]="item.created_by.avatar_url" md-card-avatar class="example-header-image">-->
<!--<md-card-title>{{item.title}}</md-card-title>-->
<!--<!–<md-card-subtitle>Dog Breed</md-card-subtitle>–>-->
<!--</md-card-header>-->
<!--<img md-card-image [src]="item.image_url">-->
<!--<md-card-content>-->
<!--<!–<p [innerHTML]="item.description">–>-->
<!--<!–The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan.–>-->
<!--<!–A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally–>-->
<!--<!–bred for hunting.–>-->
<!--<!–</p>–>-->
<!--</md-card-content>-->
<!--<md-card-actions>-->
<!--<button md-button>LIKE</button>-->
<!--<button md-button>SHARE</button>-->
<!--</md-card-actions>-->
<!--</md-card>-->
<md-card
*ngFor=
"let item of ygopro.topics | async"
>
<a
[href]=
"item.url"
target=
"_blank"
>
<md-card-header>
<img
*ngIf=
"item.image_url"
md-card-avatar
[src]=
"item.image_url"
>
<md-card-title>
{{item.title}}
</md-card-title>
<md-card-subtitle>
by {{item.last_poster_username}} / {{item.last_posted_at | date:"mediumDate"}}
</md-card-subtitle>
</md-card-header>
</a>
</md-card>
src/app/ygopro.service.ts
View file @
8104fb67
...
...
@@ -115,7 +115,7 @@ export class YGOProService {
// console.log(doc['rss'].channel[0].item)
// return doc['rss'].channel[0].item;
// });
this
.
topics
=
this
.
http
.
get
(
'
https://ygobbs.com/top/quarterly.json
'
).
map
(
response
=>
response
.
json
().
topic_list
.
topics
.
map
(
topic
=>
({
this
.
topics
=
this
.
http
.
get
(
'
https://ygobbs.com/top/quarterly.json
'
).
map
(
response
=>
response
.
json
().
topic_list
.
topics
.
slice
(
0
,
5
).
map
(
topic
=>
({
...
topic
,
url
:
new
URL
(
`/t/
${
topic
.
slug
}
/
${
topic
.
id
}
`
,
'
https://ygobbs.com
'
).
toString
(),
image_url
:
topic
.
image_url
&&
new
URL
(
topic
.
image_url
,
'
https://ygobbs.com
'
).
toString
()
...
...
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