parent
b1340a96e5
commit
2e72ac7faf
@ -155,7 +155,7 @@ export class InfoService {
|
|||||||
private async countDockerHubPulls(): Promise<number> {
|
private async countDockerHubPulls(): Promise<number> {
|
||||||
try {
|
try {
|
||||||
const { pull_count } = (await fetch(
|
const { pull_count } = (await fetch(
|
||||||
`https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio`,
|
'https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio',
|
||||||
{
|
{
|
||||||
headers: { 'User-Agent': 'request' },
|
headers: { 'User-Agent': 'request' },
|
||||||
signal: AbortSignal.timeout(
|
signal: AbortSignal.timeout(
|
||||||
@ -184,7 +184,7 @@ export class InfoService {
|
|||||||
|
|
||||||
return extractNumberFromString({
|
return extractNumberFromString({
|
||||||
value: $(
|
value: $(
|
||||||
`a[href="/ghostfolio/ghostfolio/graphs/contributors"] .Counter`
|
'a[href="/ghostfolio/ghostfolio/graphs/contributors"] .Counter'
|
||||||
).text()
|
).text()
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -197,7 +197,7 @@ export class InfoService {
|
|||||||
private async countGitHubStargazers(): Promise<number> {
|
private async countGitHubStargazers(): Promise<number> {
|
||||||
try {
|
try {
|
||||||
const { stargazers_count } = (await fetch(
|
const { stargazers_count } = (await fetch(
|
||||||
`https://api.github.com/repos/ghostfolio/ghostfolio`,
|
'https://api.github.com/repos/ghostfolio/ghostfolio',
|
||||||
{
|
{
|
||||||
headers: { 'User-Agent': 'request' },
|
headers: { 'User-Agent': 'request' },
|
||||||
signal: AbortSignal.timeout(
|
signal: AbortSignal.timeout(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user