Commit b8c42002 authored by nanahira's avatar nanahira

Update src/app/layout/layout.component.ts

parent 64d138ee
Pipeline #39336 passed with stages
in 3 minutes and 22 seconds
......@@ -25,16 +25,16 @@ export class LayoutComponent implements OnInit, AfterViewInit {
};
latest_win32 = this.http
.get('https://cdn02.moecube.com:444/downloads/latest.yml', {responseType: 'text'})
.pipe(map(rawData => 'https://cdn02.moecube.com:444/downloads/' + yaml.parse(rawData).path));
.get('https://cdncf.moecube.com/downloads/latest.yml', {responseType: 'text'})
.pipe(map(rawData => 'https://cdncf.moecube.com/downloads/' + yaml.parse(rawData).path));
latest_linux = this.http
.get('https://cdn02.moecube.com:444/downloads/latest-linux.yml', {responseType: 'text'})
.pipe(map(rawData => 'https://cdn02.moecube.com:444/downloads/' + yaml.parse(rawData).path));
.get('https://cdncf.moecube.com/downloads/latest-linux.yml', {responseType: 'text'})
.pipe(map(rawData => 'https://cdncf.moecube.com/downloads/' + yaml.parse(rawData).path));
latest_drawin = this.http
.get('https://cdn02.moecube.com:444/downloads/latest-mac.yml', {responseType: 'text'})
.pipe(map((rawData) => 'https://cdn02.moecube.com:444/downloads/' + yaml.parse(rawData).path.replace('-mac.zip', '.dmg')));
.get('https://cdncf.moecube.com/downloads/latest-mac.yml', {responseType: 'text'})
.pipe(map((rawData) => 'https://cdncf.moecube.com/downloads/' + yaml.parse(rawData).path.replace('-mac.zip', '.dmg')));
latest_current = ''
......@@ -44,7 +44,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
})
.pipe(map((data: any) => data.global_reports.find((item: { type: any; }) => item.type === 'signups').total));
stats_online = this.http.get('https://api.moecube.com/stats/online', {responseType: 'text'}).pipe(
stats_online = this.http.get('https://sapi.moecube.com:444/stats/online', {responseType: 'text'}).pipe(
map(rawText => {
const doc = new DOMParser().parseFromString(rawText, 'text/xml');
const node = doc.querySelector('#content > table > tbody > tr:nth-child(2) > td:nth-child(2)');
......
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