Browse Source

Don't use @shared in models

So other projects can use them
tags/v2.4.0
Chocobozzz 1 month ago
parent
commit
0fecf427d3
No known key found for this signature in database GPG Key ID: 583A612D890159BE
7 changed files with 10 additions and 9 deletions
  1. +1
    -1
      shared/models/activitypub/objects/common-objects.ts
  2. +1
    -1
      shared/models/moderation/abuse/abuse-message.model.ts
  3. +1
    -1
      shared/models/plugins/plugin-video-privacy-manager.model.ts
  4. +2
    -2
      shared/models/server/job.model.ts
  5. +1
    -1
      shared/models/users/user.model.ts
  6. +3
    -2
      shared/models/videos/video-file.model.ts
  7. +1
    -1
      shared/models/videos/video-streaming-playlist.model.ts

+ 1
- 1
shared/models/activitypub/objects/common-objects.ts View File

@@ -1,4 +1,4 @@
import { AbusePredefinedReasonsString } from '@shared/models'
import { AbusePredefinedReasonsString } from '../../moderation/abuse/abuse-reason.model'

export interface ActivityIdentifierObject {
identifier: string


+ 1
- 1
shared/models/moderation/abuse/abuse-message.model.ts View File

@@ -1,4 +1,4 @@
import { AccountSummary } from '@shared/models'
import { AccountSummary } from '../../actors/account.model'

export interface AbuseMessage {
id: number


+ 1
- 1
shared/models/plugins/plugin-video-privacy-manager.model.ts View File

@@ -1,4 +1,4 @@
import { VideoPrivacy } from '@shared/models/videos/video-privacy.enum'
import { VideoPrivacy } from '../videos/video-privacy.enum'

export interface PluginVideoPrivacyManager {
// PUBLIC = 1


+ 2
- 2
shared/models/server/job.model.ts View File

@@ -1,6 +1,6 @@
import { SendEmailOptions } from './emailer.model'
import { VideoResolution } from '@shared/models'
import { ContextType } from '../activitypub/context'
import { VideoResolution } from '../videos/video-resolution.enum'
import { SendEmailOptions } from './emailer.model'

export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'



+ 1
- 1
shared/models/users/user.model.ts View File

@@ -4,7 +4,7 @@ import { UserRole } from './user-role'
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
import { UserNotificationSetting } from './user-notification-setting.model'
import { UserAdminFlag } from './user-flag.model'
import { VideoPlaylistType } from '@shared/models'
import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model'

export interface User {
id: number


+ 3
- 2
shared/models/videos/video-file.model.ts View File

@@ -1,5 +1,6 @@

import { VideoConstant, VideoFileMetadata, VideoResolution } from '@shared/models'
import { VideoConstant } from './video-constant.model'
import { VideoFileMetadata } from './video-file-metadata'
import { VideoResolution } from './video-resolution.enum'

export interface VideoFile {
magnetUri: string


+ 1
- 1
shared/models/videos/video-streaming-playlist.model.ts View File

@@ -1,5 +1,5 @@
import { VideoStreamingPlaylistType } from './video-streaming-playlist.type'
import { VideoFile } from '@shared/models/videos/video-file.model'
import { VideoFile } from './video-file.model'

export class VideoStreamingPlaylist {
id: number


Loading…
Cancel
Save