diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/index.ts | 4 | ||||
-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.ts | 12 |
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' | |||
2 | export * from './activitypub' | 2 | export * from './activitypub' |
3 | export * from './users' | 3 | export * from './users' |
4 | export * from './videos' | 4 | export * from './videos' |
5 | export * from './job.model' | 5 | export * from './server/job.model' |
6 | export * from './oauth-client-local.model' | 6 | export * from './oauth-client-local.model' |
7 | export * from './result-list.model' | 7 | export * from './result-list.model' |
8 | export * from './config/server-config.model' | 8 | export * 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 @@ | |||
1 | export 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 | } | ||