aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-28 18:04:46 +0100
committerChocobozzz <me@florianbigard.com>2018-02-28 18:04:55 +0100
commit09cababd79f9d445aa027c93cdfe823745fa041a (patch)
treef781d6ba78b5c4ce7220dea55f13b21230f203d6 /shared/models
parent22b59e8099947605085cf65a440f07f37fce6b65 (diff)
downloadPeerTube-09cababd79f9d445aa027c93cdfe823745fa041a.tar.gz
PeerTube-09cababd79f9d445aa027c93cdfe823745fa041a.tar.zst
PeerTube-09cababd79f9d445aa027c93cdfe823745fa041a.zip
Add stats route
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/index.ts4
-rw-r--r--shared/models/server/about.model.ts (renamed from shared/models/config/about.model.ts)0
-rw-r--r--shared/models/server/custom-config.model.ts (renamed from shared/models/config/custom-config.model.ts)0
-rw-r--r--shared/models/server/customization.model.ts (renamed from shared/models/config/customization.model.ts)0
-rw-r--r--shared/models/server/job.model.ts (renamed from shared/models/job.model.ts)0
-rw-r--r--shared/models/server/server-config.model.ts (renamed from shared/models/config/server-config.model.ts)0
-rw-r--r--shared/models/server/server-stats.model.ts12
7 files changed, 14 insertions, 2 deletions
diff --git a/shared/models/index.ts b/shared/models/index.ts
index 1b877774c..ae3a44777 100644
--- a/shared/models/index.ts
+++ b/shared/models/index.ts
@@ -2,7 +2,7 @@ export * from './actors'
2export * from './activitypub' 2export * from './activitypub'
3export * from './users' 3export * from './users'
4export * from './videos' 4export * from './videos'
5export * from './job.model' 5export * from './server/job.model'
6export * from './oauth-client-local.model' 6export * from './oauth-client-local.model'
7export * from './result-list.model' 7export * from './result-list.model'
8export * from './config/server-config.model' 8export * from './server/server-config.model'
diff --git a/shared/models/config/about.model.ts b/shared/models/server/about.model.ts
index 7d11da850..7d11da850 100644
--- a/shared/models/config/about.model.ts
+++ b/shared/models/server/about.model.ts
diff --git a/shared/models/config/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index 46d0a86ef..46d0a86ef 100644
--- a/shared/models/config/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
diff --git a/shared/models/config/customization.model.ts b/shared/models/server/customization.model.ts
index 4e4d0d193..4e4d0d193 100644
--- a/shared/models/config/customization.model.ts
+++ b/shared/models/server/customization.model.ts
diff --git a/shared/models/job.model.ts b/shared/models/server/job.model.ts
index 5ebb75a5c..5ebb75a5c 100644
--- a/shared/models/job.model.ts
+++ b/shared/models/server/job.model.ts
diff --git a/shared/models/config/server-config.model.ts b/shared/models/server/server-config.model.ts
index 004cf6ddb..004cf6ddb 100644
--- a/shared/models/config/server-config.model.ts
+++ b/shared/models/server/server-config.model.ts
diff --git a/shared/models/server/server-stats.model.ts b/shared/models/server/server-stats.model.ts
new file mode 100644
index 000000000..5c1bf3468
--- /dev/null
+++ b/shared/models/server/server-stats.model.ts
@@ -0,0 +1,12 @@
1export interface ServerStats {
2 totalUsers: number
3 totalLocalVideos: number
4 totalLocalVideoViews: number
5 totalLocalVideoComments: number
6
7 totalVideos: number
8 totalVideoComments: number
9
10 totalInstanceFollowers: number
11 totalInstanceFollowing: number
12}