Commit 74809bad authored by nanahira's avatar nanahira

update link

parent 022606be
Pipeline #30127 canceled with stages
in 1 minute and 29 seconds
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"name": "api-freshness", "name": "api-freshness",
"urls": [ "urls": [
"https://sapi.moecube.com:444/apps.json", "https://sapi.moecube.com:444/apps.json",
"https://ygobbs.com/top/quarterly.json", "https://ygobbs2.com/top/quarterly.json",
"https://mycard.moe/ygopro/api/history", "https://mycard.moe/ygopro/api/history",
"https://sapi.moecube.com:444/ygopro/arena/user" "https://sapi.moecube.com:444/ygopro/arena/user"
], ],
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
"urls": [ "urls": [
"https://cdn01.moecube.com/avatars/*", "https://cdn01.moecube.com/avatars/*",
"https://cdn02.moecube.com:444/avatars/*", "https://cdn02.moecube.com:444/avatars/*",
"https://ygobbs.com/user_avatar/*", "https://ygobbs2.com/user_avatar/*",
"https://ygobbs.com/uploads/**" "https://ygobbs2.com/uploads/**"
], ],
"cacheConfig": { "cacheConfig": {
"maxSize": 100, "maxSize": 100,
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<br>编辑卡组 <br>编辑卡组
</button> </button>
</mat-grid-tile> --> </mat-grid-tile> -->
<mat-grid-tile><a mat-raised-button href="https://ygobbs.com/login" target="_blank"> <mat-grid-tile><a mat-raised-button href="https://ygobbs2.com/login" target="_blank">
<mat-icon>forum</mat-icon> <mat-icon>forum</mat-icon>
<br>社区 <br>社区
</a></mat-grid-tile> </a></mat-grid-tile>
...@@ -189,4 +189,4 @@ ...@@ -189,4 +189,4 @@
</mat-card-subtitle> </mat-card-subtitle>
</mat-card-header> </mat-card-header>
</a> </a>
</mat-card> </mat-card>
\ No newline at end of file
...@@ -85,6 +85,6 @@ export class LoginService { ...@@ -85,6 +85,6 @@ export class LoginService {
} }
avatar(username: string) { avatar(username: string) {
return 'https://ygobbs.com/user_avatar/ygobbs.com/' + username + '/25/1.png'; return 'https://ygobbs2.com/user_avatar/ygobbs2.com/' + username + '/25/1.png';
} }
} }
...@@ -168,7 +168,7 @@ export class YGOProService { ...@@ -168,7 +168,7 @@ export class YGOProService {
map(_app => map(_app =>
_app.news['zh-CN'].map(item => { _app.news['zh-CN'].map(item => {
const url = new URL(item.url); const url = new URL(item.url);
if (url.origin === 'https://ygobbs.com') { if (url.origin === 'https://ygobbs2.com') {
url.searchParams.set('login_required', 'true'); url.searchParams.set('login_required', 'true');
} }
item.url = url.toString(); item.url = url.toString();
...@@ -180,16 +180,16 @@ export class YGOProService { ...@@ -180,16 +180,16 @@ export class YGOProService {
// this.windbot = app.pipe(map(_app => (<YGOProData>_app.data).windbot['zh-CN'])).toPromise(); // this.windbot = app.pipe(map(_app => (<YGOProData>_app.data).windbot['zh-CN'])).toPromise();
this.topics = this.http this.topics = this.http
.get<TopResponse>('https://ygobbs.com/top/quarterly.json') .get<TopResponse>('https://ygobbs2.com/top/quarterly.json')
.pipe( .pipe(
map(data => map(data =>
data.topic_list.topics.slice(0, 5).map((topic: any) => { data.topic_list.topics.slice(0, 5).map((topic: any) => {
const url = new URL(`/t/${topic.slug}/${topic.id}`, 'https://ygobbs.com'); const url = new URL(`/t/${topic.slug}/${topic.id}`, 'https://ygobbs2.com');
url.searchParams.set('login_required', 'true'); url.searchParams.set('login_required', 'true');
return { return {
...topic, ...topic,
url: url.toString(), url: url.toString(),
image_url: topic.image_url && new URL(topic.image_url, 'https://ygobbs.com').toString() image_url: topic.image_url && new URL(topic.image_url, 'https://ygobbs2.com').toString()
}; };
}) })
) )
......
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