From f6cf8e8d8e9bc61dac266886c873613bb715936d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Feb 2023 15:53:40 +0100 Subject: Fix stats anchor link --- client/src/app/shared/shared-instance/index.ts | 1 - .../instance-statistics.component.html | 101 --------------------- .../instance-statistics.component.scss | 39 -------- .../instance-statistics.component.ts | 24 ----- .../shared-instance/shared-instance.module.ts | 8 +- 5 files changed, 2 insertions(+), 171 deletions(-) delete mode 100644 client/src/app/shared/shared-instance/instance-statistics.component.html delete mode 100644 client/src/app/shared/shared-instance/instance-statistics.component.scss delete mode 100644 client/src/app/shared/shared-instance/instance-statistics.component.ts (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-instance/index.ts b/client/src/app/shared/shared-instance/index.ts index d7172f7b6..d8a69afe0 100644 --- a/client/src/app/shared/shared-instance/index.ts +++ b/client/src/app/shared/shared-instance/index.ts @@ -2,6 +2,5 @@ export * from './feature-boolean.component' export * from './instance-about-accordion.component' export * from './instance-features-table.component' export * from './instance-follow.service' -export * from './instance-statistics.component' export * from './instance.service' export * from './shared-instance.module' diff --git a/client/src/app/shared/shared-instance/instance-statistics.component.html b/client/src/app/shared/shared-instance/instance-statistics.component.html deleted file mode 100644 index 68b209990..000000000 --- a/client/src/app/shared/shared-instance/instance-statistics.component.html +++ /dev/null @@ -1,101 +0,0 @@ -

Loading instance statistics...

- -
-

By users on this instance

- -
-
-
-
-

{{ serverStats.totalUsers | number }}

-

users

-
- -
-
- -
-
-
-

{{ serverStats.totalLocalVideos | number }}

-

videos

-
- -
-
- -
-
-
-

{{ serverStats.totalLocalVideoViews | number }}

-

views

-
- -
-
- -
-
-
-

{{ serverStats.totalLocalVideoComments | number }}

-

comments

-
- -
-
- -
-
-
-

{{ serverStats.totalLocalVideoFilesSize | bytes:1 }}

-

hosted video

-
- -
-
-
- -

In this instance federation

- -
-
-
-
-

{{ serverStats.totalVideos | number }}

-

videos

-
- -
-
- -
-
-
-

{{ serverStats.totalVideoComments | number }}

-

comments

-
- -
-
- -
-
-
-

{{ serverStats.totalInstanceFollowers | number }}

-

followers

-
- -
-
- -
-
-
-

{{ serverStats.totalInstanceFollowing | number }}

-

following

-
- -
-
-
-
diff --git a/client/src/app/shared/shared-instance/instance-statistics.component.scss b/client/src/app/shared/shared-instance/instance-statistics.component.scss deleted file mode 100644 index e1d489d28..000000000 --- a/client/src/app/shared/shared-instance/instance-statistics.component.scss +++ /dev/null @@ -1,39 +0,0 @@ -@use '_variables' as *; -@use '_mixins' as *; - -h3 { - font-size: 1.25rem; -} - -.stat { - text-align: center; - margin-bottom: 1em; - overflow: hidden; - - .stat-value { - font-size: 2.25em; - line-height: 1em; - margin: 0; - } - - .stat-label { - font-size: 1.15em; - margin: 0; - } - - .card-body { - z-index: 2; - } -} - -my-global-icon { - opacity: 0.12; - position: absolute; - left: 16px; - top: -24px; - width: 110px; - - &.icon-bottom { - top: 4px; - } -} diff --git a/client/src/app/shared/shared-instance/instance-statistics.component.ts b/client/src/app/shared/shared-instance/instance-statistics.component.ts deleted file mode 100644 index 0618efe69..000000000 --- a/client/src/app/shared/shared-instance/instance-statistics.component.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Component, OnInit } from '@angular/core' -import { ServerStats } from '@shared/models/server' -import { ServerService } from '@app/core' - -@Component({ - selector: 'my-instance-statistics', - templateUrl: './instance-statistics.component.html', - styleUrls: [ './instance-statistics.component.scss' ] -}) -export class InstanceStatisticsComponent implements OnInit { - serverStats: ServerStats = null - - constructor ( - private serverService: ServerService - ) { - } - - ngOnInit () { - this.serverService.getServerStats() - .subscribe(res => { - this.serverStats = res - }) - } -} diff --git a/client/src/app/shared/shared-instance/shared-instance.module.ts b/client/src/app/shared/shared-instance/shared-instance.module.ts index dfce88e11..4ce98eafe 100644 --- a/client/src/app/shared/shared-instance/shared-instance.module.ts +++ b/client/src/app/shared/shared-instance/shared-instance.module.ts @@ -1,4 +1,3 @@ - import { NgModule } from '@angular/core' import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap' import { SharedGlobalIconModule } from '../shared-icons' @@ -7,7 +6,6 @@ import { FeatureBooleanComponent } from './feature-boolean.component' import { InstanceAboutAccordionComponent } from './instance-about-accordion.component' import { InstanceFeaturesTableComponent } from './instance-features-table.component' import { InstanceFollowService } from './instance-follow.service' -import { InstanceStatisticsComponent } from './instance-statistics.component' import { InstanceService } from './instance.service' @NgModule({ @@ -20,15 +18,13 @@ import { InstanceService } from './instance.service' declarations: [ FeatureBooleanComponent, InstanceAboutAccordionComponent, - InstanceFeaturesTableComponent, - InstanceStatisticsComponent + InstanceFeaturesTableComponent ], exports: [ FeatureBooleanComponent, InstanceAboutAccordionComponent, - InstanceFeaturesTableComponent, - InstanceStatisticsComponent + InstanceFeaturesTableComponent ], providers: [ -- cgit v1.2.3