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
351b9dd3
Commit
351b9dd3
authored
Oct 09, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace urls
parent
2346afde
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
32 additions
and
38 deletions
+32
-38
app/app-detail.component.html
app/app-detail.component.html
+2
-2
app/app-detail.component.ts
app/app-detail.component.ts
+1
-1
app/end_YGOPro_single.html
app/end_YGOPro_single.html
+2
-4
app/end_YGOPro_single.ts
app/end_YGOPro_single.ts
+1
-3
app/lobby.component.html
app/lobby.component.html
+8
-8
app/login.component.ts
app/login.component.ts
+4
-4
app/mycard.component.html
app/mycard.component.html
+1
-1
app/roster.component.html
app/roster.component.html
+5
-6
app/ygopro.component.html
app/ygopro.component.html
+2
-2
app/ygopro.component.ts
app/ygopro.component.ts
+4
-4
lang.js
lang.js
+1
-1
update.html
update.html
+1
-2
No files found.
app/app-detail.component.html
View file @
351b9dd3
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<a
i18n
href=
"https://mycard.
moe
/ygopro/arena/"
target=
"_blank"
class=
"moreinfo"
>
更多资料
</a>
<a
i18n
href=
"https://mycard.
world
/ygopro/arena/"
target=
"_blank"
class=
"moreinfo"
>
更多资料
</a>
</div>
</div>
<div
*ngIf=
"currentApp.description"
class=
"d-flex"
>
<div
*ngIf=
"currentApp.description"
class=
"d-flex"
>
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
<p>
{{item.text}}
</p>
<p>
{{item.text}}
</p>
<a
i18n
*ngIf=
"item.url"
[href]=
"item.url"
target=
"_blank"
>
了解更多
</a>
<a
i18n
*ngIf=
"item.url"
[href]=
"item.url"
target=
"_blank"
>
了解更多
</a>
</div>
</div>
<!--<a href="https://mycard.
moe
/ygopro/arena/" target="_blank" class="moreinfo">查看所有新闻</a>-->
<!--<a href="https://mycard.
world
/ygopro/arena/" target="_blank" class="moreinfo">查看所有新闻</a>-->
</div>
</div>
...
...
app/app-detail.component.ts
View file @
351b9dd3
...
@@ -78,7 +78,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
...
@@ -78,7 +78,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
this
.
el
.
nativeElement
.
style
.
background
=
'
white
'
;
this
.
el
.
nativeElement
.
style
.
background
=
'
white
'
;
}
}
// let top = await this.http.get('https://ygobbs.com/top.json').map(response => response.json()).toPromise();
// let top = await this.http.get('https://ygobbs
2
.com/top.json').map(response => response.json()).toPromise();
// console.log(top.topic_list.topics);
// console.log(top.topic_list.topics);
// (adsbygoogle = window['adsbygoogle'] || []).push({});
// (adsbygoogle = window['adsbygoogle'] || []).push({});
}
}
...
...
app/end_YGOPro_single.html
View file @
351b9dd3
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<div
id=
"title"
></div>
<div
id=
"title"
></div>
<div>
<div>
<div
class=
"icon"
>
<div
class=
"icon"
>
<img
id=
"icon"
src=
"https://ygobbs.com/user_avatar/ygobbs.com/breakegg/25/1.png"
/>
<img
id=
"icon"
src=
"https://ygobbs
2
.com/user_avatar/ygobbs.com/breakegg/25/1.png"
/>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<span
id=
"myName"
>
myname
</span>
<span
id=
"myName"
>
myname
</span>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
<!--<div id="title">竞技匹配</div>-->
<!--<div id="title">竞技匹配</div>-->
<!--<div>-->
<!--<div>-->
<!--<div class="icon">-->
<!--<div class="icon">-->
<!--<img src="https://ygobbs.com/user_avatar/ygobbs.com/breakegg/25/1.png"/>-->
<!--<img src="https://ygobbs
2
.com/user_avatar/ygobbs.com/breakegg/25/1.png"/>-->
<!--</div>-->
<!--</div>-->
<!--<div class="info">-->
<!--<div class="info">-->
<!--<span id="myName">myname</span>-->
<!--<span id="myName">myname</span>-->
...
@@ -200,5 +200,3 @@
...
@@ -200,5 +200,3 @@
</body>
</body>
</html>
</html>
app/end_YGOPro_single.ts
View file @
351b9dd3
...
@@ -36,7 +36,7 @@ let data_str = data_url.get('data');
...
@@ -36,7 +36,7 @@ let data_str = data_url.get('data');
let
data
=
JSON
.
parse
(
data_str
!
);
let
data
=
JSON
.
parse
(
data_str
!
);
let
titleStr
;
let
titleStr
;
let
icon
=
'
https://ygobbs
.com/user_avatar/ygobbs
.com/
'
+
data
.
myname
+
'
/120/1.png
'
;
let
icon
=
'
https://ygobbs
2.com/user_avatar/ygobbs2
.com/
'
+
data
.
myname
+
'
/120/1.png
'
;
let
myMame
=
data
.
myname
;
let
myMame
=
data
.
myname
;
let
winTimes
,
loseTimes
,
rank
,
rank_up
,
DP
,
DP_up
,
DP_up_sum
,
EXP
,
EXP_up
;
let
winTimes
,
loseTimes
,
rank
,
rank_up
,
DP
,
DP_up
,
DP_up_sum
,
EXP
,
EXP_up
;
let
winOrLose
=
0
;
let
winOrLose
=
0
;
...
@@ -146,5 +146,3 @@ let t = setTimeout(function () {
...
@@ -146,5 +146,3 @@ let t = setTimeout(function () {
$
(
'
html
'
).
hover
(
function
()
{
$
(
'
html
'
).
hover
(
function
()
{
clearTimeout
(
t
);
clearTimeout
(
t
);
});
});
app/lobby.component.html
View file @
351b9dd3
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<span
i18n
*ngIf=
"grouped_apps.installed"
>
已安装
</span>
<span
i18n
*ngIf=
"grouped_apps.installed"
>
已安装
</span>
<ul
*ngIf=
"grouped_apps.installed"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.installed"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.installed"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.installed"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
class=
"nav-link"
[class.active]=
"app===currentApp"
[href]=
"'https://mycard.
moe
/' + app.id"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
class=
"nav-link"
[class.active]=
"app===currentApp"
[href]=
"'https://mycard.
world
/' + app.id"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
<i
*ngIf=
"!app.isReady() && !app.status.total"
class=
"spin fa fa-circle-o-notch fa-spin fa-fw"
></i>
{{app.name}}
<i
*ngIf=
"!app.isReady() && !app.status.total"
class=
"spin fa fa-circle-o-notch fa-spin fa-fw"
></i>
<div
*ngIf=
"!app.isReady() && app.status.total"
class=
"progress"
>
<div
*ngIf=
"!app.isReady() && app.status.total"
class=
"progress"
>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<span
*ngIf=
"grouped_apps.test"
>
测试
</span>
<span
*ngIf=
"grouped_apps.test"
>
测试
</span>
<ul
*ngIf=
"grouped_apps.test"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.test"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.test"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.test"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<span
i18n
*ngIf=
"grouped_apps.recommend"
>
推荐
</span>
<span
i18n
*ngIf=
"grouped_apps.recommend"
>
推荐
</span>
<ul
*ngIf=
"grouped_apps.recommend"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.recommend"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.recommend"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.recommend"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<span
i18n
*ngIf=
"grouped_apps.ygopro"
>
YGOPro 各发行版
</span>
<span
i18n
*ngIf=
"grouped_apps.ygopro"
>
YGOPro 各发行版
</span>
<ul
*ngIf=
"grouped_apps.ygopro"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.ygopro"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.ygopro"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.ygopro"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<span
i18n
*ngIf=
"grouped_apps.mysterious"
>
迷之物体
</span>
<span
i18n
*ngIf=
"grouped_apps.mysterious"
>
迷之物体
</span>
<ul
*ngIf=
"grouped_apps.mysterious"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.mysterious"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.mysterious"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.mysterious"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<span
i18n
*ngIf=
"grouped_apps.touhou"
>
东方 Project
</span>
<span
i18n
*ngIf=
"grouped_apps.touhou"
>
东方 Project
</span>
<ul
*ngIf=
"grouped_apps.touhou"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.touhou"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.touhou"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.touhou"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<span
i18n
*ngIf=
"grouped_apps.touhou_pc98"
>
东方旧作
</span>
<span
i18n
*ngIf=
"grouped_apps.touhou_pc98"
>
东方旧作
</span>
<ul
*ngIf=
"grouped_apps.touhou_pc98"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.touhou_pc98"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.touhou_pc98"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.touhou_pc98"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<span
i18n
*ngIf=
"grouped_apps.runtime_installed"
>
已安装的运行库
</span>
<span
i18n
*ngIf=
"grouped_apps.runtime_installed"
>
已安装的运行库
</span>
<ul
*ngIf=
"grouped_apps.runtime_installed"
class=
"nav nav-pills flex-column"
>
<ul
*ngIf=
"grouped_apps.runtime_installed"
class=
"nav nav-pills flex-column"
>
<li
*ngFor=
"let app of grouped_apps.runtime_installed"
class=
"nav-item"
>
<li
*ngFor=
"let app of grouped_apps.runtime_installed"
class=
"nav-item"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
moe
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<a
(click)=
"$event.preventDefault(); chooseApp(app)"
[href]=
"'https://mycard.
world
/' + app.id"
class=
"nav-link"
[class.active]=
"app===currentApp"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
<img
*ngIf=
"app.icon"
class=
"icon"
[src]=
"app.icon"
>
{{app.name}}
{{app.name}}
</a>
</a>
...
...
app/login.component.ts
View file @
351b9dd3
...
@@ -14,7 +14,7 @@ import {shell} from 'electron';
...
@@ -14,7 +14,7 @@ import {shell} from 'electron';
})
})
export
class
LoginComponent
{
export
class
LoginComponent
{
url
:
string
;
url
:
string
;
readonly
return_sso_url
=
'
https://mycard.
moe
/login_callback
'
;
// 这个url不会真的被使用,可以填写不存在的
readonly
return_sso_url
=
'
https://mycard.
world
/login_callback
'
;
// 这个url不会真的被使用,可以填写不存在的
constructor
(
private
loginService
:
LoginService
)
{
constructor
(
private
loginService
:
LoginService
)
{
...
@@ -30,18 +30,18 @@ export class LoginComponent {
...
@@ -30,18 +30,18 @@ export class LoginComponent {
this
.
url
=
url
.
toString
();
this
.
url
=
url
.
toString
();
if
(
this
.
loginService
.
logging_out
)
{
if
(
this
.
loginService
.
logging_out
)
{
url
=
new
URL
(
'
https://ygobbs.com/logout
'
);
url
=
new
URL
(
'
https://ygobbs
2
.com/logout
'
);
params
=
url
[
'
searchParams
'
];
params
=
url
[
'
searchParams
'
];
// params.set('redirect', this.url);
// params.set('redirect', this.url);
// 暂时 hack 一下登出,因为聊天室现在没办法重新初始化,于是登出后刷新页面。
// 暂时 hack 一下登出,因为聊天室现在没办法重新初始化,于是登出后刷新页面。
params
.
set
(
'
redirect
'
,
'
https://mycard.
moe
/logout_callback
'
);
params
.
set
(
'
redirect
'
,
'
https://mycard.
world
/logout_callback
'
);
this
.
url
=
url
.
toString
();
this
.
url
=
url
.
toString
();
}
}
}
}
return_sso
(
return_url
:
string
)
{
return_sso
(
return_url
:
string
)
{
if
(
return_url
===
'
https://mycard.
moe
/logout_callback
'
)
{
if
(
return_url
===
'
https://mycard.
world
/logout_callback
'
)
{
return
location
.
reload
();
return
location
.
reload
();
}
}
if
(
!
return_url
.
startsWith
(
this
.
return_sso_url
))
{
if
(
!
return_url
.
startsWith
(
this
.
return_sso_url
))
{
...
...
app/mycard.component.html
View file @
351b9dd3
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<login
class=
"page"
*ngIf=
"!loginService.logged_in"
></login>
<login
class=
"page"
*ngIf=
"!loginService.logged_in"
></login>
<store
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'store'"
></store>
<store
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'store'"
></store>
<lobby
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'lobby'"
></lobby>
<lobby
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'lobby'"
></lobby>
<webview
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'community'"
src=
"https://ygobbs.com"
(new-window)=
"openExternal($event.url)"
></webview>
<webview
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'community'"
src=
"https://ygobbs
2
.com"
(new-window)=
"openExternal($event.url)"
></webview>
<!--<webview #moesound preload="./moesound.js" class="page" *ngIf="loginService.logged_in" [hidden]="currentPage != 'moesound'" src="http://moesound.com/" (new-window)="moesound_newwindow($event.url)" (did-finish-load)="moesound_loaded()"></webview>-->
<!--<webview #moesound preload="./moesound.js" class="page" *ngIf="loginService.logged_in" [hidden]="currentPage != 'moesound'" src="http://moesound.com/" (new-window)="moesound_newwindow($event.url)" (did-finish-load)="moesound_loaded()"></webview>-->
<about
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'about'"
></about>
<about
class=
"page"
*ngIf=
"loginService.logged_in"
[hidden]=
"currentPage != 'about'"
></about>
...
...
app/roster.component.html
View file @
351b9dd3
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<!--<div id="friend_list">-->
<!--<div id="friend_list">-->
<!--<ul>-->
<!--<ul>-->
<!--<li *ngFor="let contact of roster">-->
<!--<li *ngFor="let contact of roster">-->
<!--<img class="fl" src="https://ygobbs.com//letter_avatar_proxy/v2/letter/q/cdc98d/45.png">-->
<!--<img class="fl" src="https://ygobbs
2
.com//letter_avatar_proxy/v2/letter/q/cdc98d/45.png">-->
<!--<i class="fa fa-circle green_light"></i>-->
<!--<i class="fa fa-circle green_light"></i>-->
<!--<div class="fl">-->
<!--<div class="fl">-->
<!--<p>{{contact.getName()}}</p>-->
<!--<p>{{contact.getName()}}</p>-->
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<!--<div style="clear: both"></div>-->
<!--<div style="clear: both"></div>-->
<!--</li>-->
<!--</li>-->
<!--<li>-->
<!--<li>-->
<!--<img class="fl" src="https://ygobbs.com//letter_avatar_proxy/v2/letter/q/cdc98d/45.png">-->
<!--<img class="fl" src="https://ygobbs
2
.com//letter_avatar_proxy/v2/letter/q/cdc98d/45.png">-->
<!--<i class="fa fa-circle green_light"></i>-->
<!--<i class="fa fa-circle green_light"></i>-->
<!--<div class="fl">-->
<!--<div class="fl">-->
<!--<p>我叫什么名来着</p>-->
<!--<p>我叫什么名来着</p>-->
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<!--</li>-->
<!--</li>-->
<!--<li>-->
<!--<li>-->
<!--<img class="fl" src="https://ygobbs.com/user_avatar/ygobbs.com/sky%E7%A5%9E%E6%99%BA/45/16501_1.png">-->
<!--<img class="fl" src="https://ygobbs
2
.com/user_avatar/ygobbs.com/sky%E7%A5%9E%E6%99%BA/45/16501_1.png">-->
<!--<i class="fa fa-play-circle red_light"></i>-->
<!--<i class="fa fa-play-circle red_light"></i>-->
<!--<div class="fl">-->
<!--<div class="fl">-->
<!--<p>我叫什么名来着</p>-->
<!--<p>我叫什么名来着</p>-->
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<!--</li>-->
<!--</li>-->
<!--<li>-->
<!--<li>-->
<!--<img class="fl" src="https://ygobbs.com/user_avatar/ygobbs.com/%E6%98%9F%E5%85%89pokeboy/45/10237_1.png">-->
<!--<img class="fl" src="https://ygobbs
2
.com/user_avatar/ygobbs.com/%E6%98%9F%E5%85%89pokeboy/45/10237_1.png">-->
<!--<i class="fa fa-question-circle blue_light"></i>-->
<!--<i class="fa fa-question-circle blue_light"></i>-->
<!--<div class="fl">-->
<!--<div class="fl">-->
<!--<p>我叫什么名来着</p>-->
<!--<p>我叫什么名来着</p>-->
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<!--</li>-->
<!--</li>-->
<!--<li>-->
<!--<li>-->
<!--<img class="fl" src="https://ygobbs.com//user_avatar/ygobbs.com/%E7%B1%B3%E7%B1%B3%E7%B1%B3%E5%BE%B7%E6%8B%89%E4%BB%80/45/17187_1.png">-->
<!--<img class="fl" src="https://ygobbs
2
.com//user_avatar/ygobbs.com/%E7%B1%B3%E7%B1%B3%E7%B1%B3%E5%BE%B7%E6%8B%89%E4%BB%80/45/17187_1.png">-->
<!--<i class="fa fa-clock-o grey"></i>-->
<!--<i class="fa fa-clock-o grey"></i>-->
<!--<div class="fl">-->
<!--<div class="fl">-->
<!--<p>我叫什么名来着</p>-->
<!--<p>我叫什么名来着</p>-->
...
@@ -70,4 +70,3 @@
...
@@ -70,4 +70,3 @@
<!--</ul>-->
<!--</ul>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
app/ygopro.component.html
View file @
351b9dd3
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
<td
class=
"title"
>
{{ room.title }}
</td>
<td
class=
"title"
>
{{ room.title }}
</td>
<td
class=
"users"
>
<td
class=
"users"
>
<img
*ngFor=
"let user of room.users"
class=
"avatar rounded"
<img
*ngFor=
"let user of room.users"
class=
"avatar rounded"
[src]=
"'https://ygobbs.com/user_avatar/ygobbs.com/' + user.username + '/25/1.png'"
[src]=
"'https://ygobbs
2
.com/user_avatar/ygobbs.com/' + user.username + '/25/1.png'"
data-toggle=
"tooltip"
data-placement=
"bottom"
[title]=
"user.username"
data-toggle=
"tooltip"
data-placement=
"bottom"
[title]=
"user.username"
(error)=
"avatar_fallback($event)"
>
(error)=
"avatar_fallback($event)"
>
</td>
</td>
...
@@ -420,7 +420,7 @@
...
@@ -420,7 +420,7 @@
</td>
</td>
<td
class=
"users"
>
<td
class=
"users"
>
<img
*ngFor=
"let user of room.users"
class=
"avatar rounded"
<img
*ngFor=
"let user of room.users"
class=
"avatar rounded"
[src]=
"'https://ygobbs.com/user_avatar/ygobbs.com/' + user.username + '/25/1.png'"
[src]=
"'https://ygobbs
2
.com/user_avatar/ygobbs.com/' + user.username + '/25/1.png'"
data-toggle=
"tooltip"
data-placement=
"bottom"
[title]=
"user.username"
data-toggle=
"tooltip"
data-placement=
"bottom"
[title]=
"user.username"
(error)=
"avatar_fallback($event)"
>
(error)=
"avatar_fallback($event)"
>
</td>
</td>
...
...
app/ygopro.component.ts
View file @
351b9dd3
...
@@ -544,9 +544,9 @@ export class YGOProComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -544,9 +544,9 @@ export class YGOProComponent implements OnInit, OnDestroy, OnChanges {
this
.
replays
=
await
this
.
get_replays
();
this
.
replays
=
await
this
.
get_replays
();
this
.
replays2
=
await
this
.
get_replays2
();
this
.
replays2
=
await
this
.
get_replays2
();
// https://
mycard.moe/ygopro/api
/user?username=ozxdno
// https://
sapi.moecube.com:444/ygopro/arena
/user?username=ozxdno
try
{
try
{
let
points
=
await
this
.
http
.
get
(
'
https://
mycard.moe/ygopro/api
/user
'
,
{
let
points
=
await
this
.
http
.
get
(
'
https://
sapi.moecube.com:444/ygopro/arena
/user
'
,
{
search
:
{
search
:
{
username
:
this
.
loginService
.
user
.
username
username
:
this
.
loginService
.
user
.
username
}
}
...
@@ -745,7 +745,7 @@ export class YGOProComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -745,7 +745,7 @@ export class YGOProComponent implements OnInit, OnDestroy, OnChanges {
win
.
restore
();
win
.
restore
();
});
});
try
{
try
{
this
.
http
.
get
(
'
https://
mycard.moe/ygopro/api
/history
'
,
{
this
.
http
.
get
(
'
https://
sapi.moecube.com:444/ygopro/arena
/history
'
,
{
search
:
{
search
:
{
page
:
1
,
page
:
1
,
username
:
this
.
loginService
.
user
.
username
,
username
:
this
.
loginService
.
user
.
username
,
...
@@ -774,7 +774,7 @@ export class YGOProComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -774,7 +774,7 @@ export class YGOProComponent implements OnInit, OnDestroy, OnChanges {
}
}
});
});
try
{
try
{
await
this
.
http
.
get
(
'
https://
mycard.moe/ygopro/api
/history
'
,
{
await
this
.
http
.
get
(
'
https://
sapi.moecube.com:444/ygopro/arena
/history
'
,
{
search
:
{
search
:
{
page
:
1
,
page
:
1
,
username
:
this
.
loginService
.
user
.
username
,
username
:
this
.
loginService
.
user
.
username
,
...
...
lang.js
View file @
351b9dd3
...
@@ -10,7 +10,7 @@ module.exports = {
...
@@ -10,7 +10,7 @@ module.exports = {
],
],
"
updateFailed
"
:{
"
updateFailed
"
:{
"
p1
"
:
"
如果自动更新失败,请至
"
,
"
p1
"
:
"
如果自动更新失败,请至
"
,
"
p2
"
:
"
https://mycard.
moe
"
,
"
p2
"
:
"
https://mycard.
world
"
,
"
p3
"
:
"
手动下载最新版本
"
"
p3
"
:
"
手动下载最新版本
"
},
},
"
actions
"
:{
"
actions
"
:{
...
...
update.html
View file @
351b9dd3
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"container"
>
<div
class=
"container"
>
<h1>
{{pageText.updateTitle}}
</h1>
<h1>
{{pageText.updateTitle}}
</h1>
<p
v-for=
"(msg, index) in pageText.updateMsg"
>
{{msg}}
</p>
<p
v-for=
"(msg, index) in pageText.updateMsg"
>
{{msg}}
</p>
<p>
{{pageText.updateFailed.p1}}
<a
href=
"https://mycard.
moe
"
target=
"_blank"
>
{{pageText.updateFailed.p2}}
</a>
{{pageText.updateFailed.p3}}
</p>
<p>
{{pageText.updateFailed.p1}}
<a
href=
"https://mycard.
world
"
target=
"_blank"
>
{{pageText.updateFailed.p2}}
</a>
{{pageText.updateFailed.p3}}
</p>
<p
id=
"actions"
>
<p
id=
"actions"
>
<button
@
click=
"onClose"
type=
"button"
class=
"btn btn-secondary"
>
{{pageText.actions.close}}
</button>
<button
@
click=
"onClose"
type=
"button"
class=
"btn btn-secondary"
>
{{pageText.actions.close}}
</button>
<button
@
click=
"onUpdate"
type=
"button"
class=
"btn btn-primary"
>
{{pageText.actions.update}}
</button>
<button
@
click=
"onUpdate"
type=
"button"
class=
"btn btn-primary"
>
{{pageText.actions.update}}
</button>
...
@@ -76,4 +76,3 @@
...
@@ -76,4 +76,3 @@
</script>
</script>
</body>
</body>
</html>
</html>
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