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 @@
"name": "api-freshness",
"urls": [
"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://sapi.moecube.com:444/ygopro/arena/user"
],
......@@ -38,8 +38,8 @@
"urls": [
"https://cdn01.moecube.com/avatars/*",
"https://cdn02.moecube.com:444/avatars/*",
"https://ygobbs.com/user_avatar/*",
"https://ygobbs.com/uploads/**"
"https://ygobbs2.com/user_avatar/*",
"https://ygobbs2.com/uploads/**"
],
"cacheConfig": {
"maxSize": 100,
......
......@@ -77,7 +77,7 @@
<br>编辑卡组
</button>
</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>
<br>社区
</a></mat-grid-tile>
......
......@@ -85,6 +85,6 @@ export class LoginService {
}
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 {
map(_app =>
_app.news['zh-CN'].map(item => {
const url = new URL(item.url);
if (url.origin === 'https://ygobbs.com') {
if (url.origin === 'https://ygobbs2.com') {
url.searchParams.set('login_required', 'true');
}
item.url = url.toString();
......@@ -180,16 +180,16 @@ export class YGOProService {
// this.windbot = app.pipe(map(_app => (<YGOProData>_app.data).windbot['zh-CN'])).toPromise();
this.topics = this.http
.get<TopResponse>('https://ygobbs.com/top/quarterly.json')
.get<TopResponse>('https://ygobbs2.com/top/quarterly.json')
.pipe(
map(data =>
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');
return {
...topic,
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