diff options
-rw-r--r-- | client/src/app/+accounts/account-about/account-about.component.html | 4 | ||||
-rw-r--r-- | client/src/app/+accounts/account-about/account-about.component.scss | 10 | ||||
-rw-r--r-- | client/src/app/+my-account/index.ts (renamed from client/src/app/my-account/index.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-routing.module.ts (renamed from client/src/app/my-account/my-account-routing.module.ts) | 8 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/index.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/index.ts (renamed from client/src/app/my-account/my-account-settings/my-account-profile/index.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-settings.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-settings.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-settings.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-settings.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-settings.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-settings.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-videos/my-account-videos.component.html (renamed from client/src/app/my-account/my-account-videos/my-account-videos.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-videos/my-account-videos.component.scss (renamed from client/src/app/my-account/my-account-videos/my-account-videos.component.scss) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account-videos/my-account-videos.component.ts (renamed from client/src/app/my-account/my-account-videos/my-account-videos.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account.component.html (renamed from client/src/app/my-account/my-account.component.html) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account.component.ts (renamed from client/src/app/my-account/my-account.component.ts) | 0 | ||||
-rw-r--r-- | client/src/app/+my-account/my-account.module.ts (renamed from client/src/app/my-account/my-account.module.ts) | 8 | ||||
-rw-r--r-- | client/src/app/app-routing.module.ts | 4 | ||||
-rw-r--r-- | client/src/app/app.component.scss | 2 | ||||
-rw-r--r-- | client/src/app/app.module.ts | 3 | ||||
-rw-r--r-- | client/src/sass/application.scss | 4 | ||||
-rw-r--r-- | server/initializers/constants.ts | 9 | ||||
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-broadcast.ts | 5 | ||||
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-fetcher.ts | 5 | ||||
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-unicast.ts | 4 | ||||
-rw-r--r-- | server/lib/job-queue/job-queue.ts | 24 |
42 files changed, 59 insertions, 31 deletions
diff --git a/client/src/app/+accounts/account-about/account-about.component.html b/client/src/app/+accounts/account-about/account-about.component.html index 003a8045e..eae1cb509 100644 --- a/client/src/app/+accounts/account-about/account-about.component.html +++ b/client/src/app/+accounts/account-about/account-about.component.html | |||
@@ -1,10 +1,10 @@ | |||
1 | <div *ngIf="account" class="row"> | 1 | <div *ngIf="account" class="row"> |
2 | <div class="description col-md-6 col-sm-12"> | 2 | <div class="block col-md-6 col-sm-12"> |
3 | <div class="small-title">Description</div> | 3 | <div class="small-title">Description</div> |
4 | <div class="content">{{ getAccountDescription() }}</div> | 4 | <div class="content">{{ getAccountDescription() }}</div> |
5 | </div> | 5 | </div> |
6 | 6 | ||
7 | <div class="stats col-md-6 col-sm-12"> | 7 | <div class="block col-md-6 col-sm-12"> |
8 | <div class="small-title">Stats</div> | 8 | <div class="small-title">Stats</div> |
9 | 9 | ||
10 | <div class="content">Joined {{ account.createdAt | date }}</div> | 10 | <div class="content">Joined {{ account.createdAt | date }}</div> |
diff --git a/client/src/app/+accounts/account-about/account-about.component.scss b/client/src/app/+accounts/account-about/account-about.component.scss index b1be7d4ed..5bcd4b561 100644 --- a/client/src/app/+accounts/account-about/account-about.component.scss +++ b/client/src/app/+accounts/account-about/account-about.component.scss | |||
@@ -1,8 +1,12 @@ | |||
1 | @import '_variables'; | 1 | @import '_variables'; |
2 | @import '_mixins'; | 2 | @import '_mixins'; |
3 | 3 | ||
4 | .small-title { | 4 | .block { |
5 | @include in-content-small-title; | 5 | margin-bottom: 40px; |
6 | 6 | ||
7 | margin-bottom: 20px; | 7 | .small-title { |
8 | @include in-content-small-title; | ||
9 | |||
10 | margin-bottom: 20px; | ||
11 | } | ||
8 | } | 12 | } |
diff --git a/client/src/app/my-account/index.ts b/client/src/app/+my-account/index.ts index 3df96dd7a..3df96dd7a 100644 --- a/client/src/app/my-account/index.ts +++ b/client/src/app/+my-account/index.ts | |||
diff --git a/client/src/app/my-account/my-account-routing.module.ts b/client/src/app/+my-account/my-account-routing.module.ts index 96f52c1da..7e19cd994 100644 --- a/client/src/app/my-account/my-account-routing.module.ts +++ b/client/src/app/+my-account/my-account-routing.module.ts | |||
@@ -5,13 +5,13 @@ import { LoginGuard } from '../core' | |||
5 | import { MyAccountComponent } from './my-account.component' | 5 | import { MyAccountComponent } from './my-account.component' |
6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' | 6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' |
7 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' | 7 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' |
8 | import { MyAccountVideoChannelsComponent } from '@app/my-account/my-account-video-channels/my-account-video-channels.component' | 8 | import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component' |
9 | import { MyAccountVideoChannelCreateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-create.component' | 9 | import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component' |
10 | import { MyAccountVideoChannelUpdateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-update.component' | 10 | import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component' |
11 | 11 | ||
12 | const myAccountRoutes: Routes = [ | 12 | const myAccountRoutes: Routes = [ |
13 | { | 13 | { |
14 | path: 'my-account', | 14 | path: '', |
15 | component: MyAccountComponent, | 15 | component: MyAccountComponent, |
16 | canActivateChild: [ MetaGuard, LoginGuard ], | 16 | canActivateChild: [ MetaGuard, LoginGuard ], |
17 | children: [ | 17 | children: [ |
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/index.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts index 644047c5f..644047c5f 100644 --- a/client/src/app/my-account/my-account-settings/my-account-change-password/index.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html index b0e3cada4..b0e3cada4 100644 --- a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss index f8279ffd3..f8279ffd3 100644 --- a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts index 80af668f9..80af668f9 100644 --- a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/index.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/index.ts index 3cc049f8f..3cc049f8f 100644 --- a/client/src/app/my-account/my-account-settings/my-account-profile/index.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/index.ts | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html index 306f3a12c..306f3a12c 100644 --- a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss index fc2b92c89..fc2b92c89 100644 --- a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts index 2b7ba353c..2b7ba353c 100644 --- a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html index 0fcc7782e..0fcc7782e 100644 --- a/client/src/app/my-account/my-account-settings/my-account-settings.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.scss b/client/src/app/+my-account/my-account-settings/my-account-settings.component.scss index ec0d40b93..ec0d40b93 100644 --- a/client/src/app/my-account/my-account-settings/my-account-settings.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.scss | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts index 06d1138e7..06d1138e7 100644 --- a/client/src/app/my-account/my-account-settings/my-account-settings.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts index 1253bd369..1253bd369 100644 --- a/client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html index 0e8598e9e..0e8598e9e 100644 --- a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss index ed59e4689..ed59e4689 100644 --- a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss | |||
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts index acc70c14d..acc70c14d 100644 --- a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts index 0f03548ad..0f03548ad 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html index d5fb6262a..d5fb6262a 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss index 6fbb8ae8b..6fbb8ae8b 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts index e56f46262..e56f46262 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts index c0dc6a939..c0dc6a939 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html index 90c401bc5..90c401bc5 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss index bcb58eac2..bcb58eac2 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss | |||
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts index eeaca11df..eeaca11df 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts | |||
diff --git a/client/src/app/my-account/my-account-videos/my-account-videos.component.html b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html index 66ce3a77b..66ce3a77b 100644 --- a/client/src/app/my-account/my-account-videos/my-account-videos.component.html +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html | |||
diff --git a/client/src/app/my-account/my-account-videos/my-account-videos.component.scss b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss index f276ea389..f276ea389 100644 --- a/client/src/app/my-account/my-account-videos/my-account-videos.component.scss +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss | |||
diff --git a/client/src/app/my-account/my-account-videos/my-account-videos.component.ts b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts index c1b53bcd5..c1b53bcd5 100644 --- a/client/src/app/my-account/my-account-videos/my-account-videos.component.ts +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts | |||
diff --git a/client/src/app/my-account/my-account.component.html b/client/src/app/+my-account/my-account.component.html index 591d58cf9..591d58cf9 100644 --- a/client/src/app/my-account/my-account.component.html +++ b/client/src/app/+my-account/my-account.component.html | |||
diff --git a/client/src/app/my-account/my-account.component.ts b/client/src/app/+my-account/my-account.component.ts index 7bb461d3c..7bb461d3c 100644 --- a/client/src/app/my-account/my-account.component.ts +++ b/client/src/app/+my-account/my-account.component.ts | |||
diff --git a/client/src/app/my-account/my-account.module.ts b/client/src/app/+my-account/my-account.module.ts index ba9dea71e..7e6b8c03e 100644 --- a/client/src/app/my-account/my-account.module.ts +++ b/client/src/app/+my-account/my-account.module.ts | |||
@@ -6,10 +6,10 @@ import { MyAccountVideoSettingsComponent } from './my-account-settings/my-accoun | |||
6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' | 6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' |
7 | import { MyAccountComponent } from './my-account.component' | 7 | import { MyAccountComponent } from './my-account.component' |
8 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' | 8 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' |
9 | import { MyAccountProfileComponent } from '@app/my-account/my-account-settings/my-account-profile/my-account-profile.component' | 9 | import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component' |
10 | import { MyAccountVideoChannelsComponent } from '@app/my-account/my-account-video-channels/my-account-video-channels.component' | 10 | import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component' |
11 | import { MyAccountVideoChannelCreateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-create.component' | 11 | import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component' |
12 | import { MyAccountVideoChannelUpdateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-update.component' | 12 | import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component' |
13 | 13 | ||
14 | @NgModule({ | 14 | @NgModule({ |
15 | imports: [ | 15 | imports: [ |
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 799748cfa..936912d28 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -9,6 +9,10 @@ const routes: Routes = [ | |||
9 | loadChildren: './+admin/admin.module#AdminModule' | 9 | loadChildren: './+admin/admin.module#AdminModule' |
10 | }, | 10 | }, |
11 | { | 11 | { |
12 | path: 'my-account', | ||
13 | loadChildren: './+my-account/my-account.module#MyAccountModule' | ||
14 | }, | ||
15 | { | ||
12 | path: 'accounts', | 16 | path: 'accounts', |
13 | loadChildren: './+accounts/accounts.module#AccountsModule' | 17 | loadChildren: './+accounts/accounts.module#AccountsModule' |
14 | }, | 18 | }, |
diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 8e88bceff..6edf966f9 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss | |||
@@ -39,7 +39,7 @@ | |||
39 | min-width: 0; | 39 | min-width: 0; |
40 | 40 | ||
41 | .icon { | 41 | .icon { |
42 | @include icon(22px); | 42 | @include icon(24px); |
43 | 43 | ||
44 | &.icon-menu { | 44 | &.icon-menu { |
45 | background-image: url('../assets/images/header/menu.svg'); | 45 | background-image: url('../assets/images/header/menu.svg'); |
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index c22632fb8..f0d2be279 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -6,8 +6,6 @@ import { ResetPasswordModule } from '@app/reset-password' | |||
6 | 6 | ||
7 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | 7 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
8 | 8 | ||
9 | import { MyAccountModule } from './my-account' | ||
10 | |||
11 | import { AppRoutingModule } from './app-routing.module' | 9 | import { AppRoutingModule } from './app-routing.module' |
12 | import { AppComponent } from './app.component' | 10 | import { AppComponent } from './app.component' |
13 | import { CoreModule } from './core' | 11 | import { CoreModule } from './core' |
@@ -46,7 +44,6 @@ export function metaFactory (serverService: ServerService): MetaLoader { | |||
46 | 44 | ||
47 | AppRoutingModule, | 45 | AppRoutingModule, |
48 | 46 | ||
49 | MyAccountModule, | ||
50 | CoreModule, | 47 | CoreModule, |
51 | LoginModule, | 48 | LoginModule, |
52 | ResetPasswordModule, | 49 | ResetPasswordModule, |
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 9aef0c56d..2e1e5bf65 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss | |||
@@ -111,6 +111,10 @@ label { | |||
111 | &:hover, &:active, &:focus { | 111 | &:hover, &:active, &:focus { |
112 | color: #000; | 112 | color: #000; |
113 | } | 113 | } |
114 | |||
115 | @media screen and (max-width: 500px) { | ||
116 | margin-right: 20px; | ||
117 | } | ||
114 | } | 118 | } |
115 | 119 | ||
116 | .admin-sub-header { | 120 | .admin-sub-header { |
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 365b8617d..6556aa168 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -78,9 +78,10 @@ const JOB_CONCURRENCY: { [ id in JobType ]: number } = { | |||
78 | 'video-file': 1, | 78 | 'video-file': 1, |
79 | 'email': 5 | 79 | 'email': 5 |
80 | } | 80 | } |
81 | const BROADCAST_CONCURRENCY = 5 // How many requests in parallel we do in activitypub-http-broadcast job | 81 | const BROADCAST_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-http-broadcast job |
82 | // 2 days | 82 | const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds |
83 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 | 83 | const JOB_REQUEST_TTL = 60000 * 10 // 10 minutes |
84 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | ||
84 | 85 | ||
85 | // 1 hour | 86 | // 1 hour |
86 | let SCHEDULER_INTERVAL = 60000 * 60 | 87 | let SCHEDULER_INTERVAL = 60000 * 60 |
@@ -466,6 +467,8 @@ export { | |||
466 | VIDEO_RATE_TYPES, | 467 | VIDEO_RATE_TYPES, |
467 | VIDEO_MIMETYPE_EXT, | 468 | VIDEO_MIMETYPE_EXT, |
468 | VIDEO_TRANSCODING_FPS, | 469 | VIDEO_TRANSCODING_FPS, |
470 | JOB_REQUEST_TIMEOUT, | ||
471 | JOB_REQUEST_TTL, | ||
469 | USER_PASSWORD_RESET_LIFETIME, | 472 | USER_PASSWORD_RESET_LIFETIME, |
470 | IMAGE_MIMETYPE_EXT, | 473 | IMAGE_MIMETYPE_EXT, |
471 | SCHEDULER_INTERVAL, | 474 | SCHEDULER_INTERVAL, |
diff --git a/server/lib/job-queue/handlers/activitypub-http-broadcast.ts b/server/lib/job-queue/handlers/activitypub-http-broadcast.ts index 38b8393f4..d8b8ec222 100644 --- a/server/lib/job-queue/handlers/activitypub-http-broadcast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-broadcast.ts | |||
@@ -4,7 +4,7 @@ import { logger } from '../../../helpers/logger' | |||
4 | import { doRequest } from '../../../helpers/requests' | 4 | import { doRequest } from '../../../helpers/requests' |
5 | import { ActorFollowModel } from '../../../models/activitypub/actor-follow' | 5 | import { ActorFollowModel } from '../../../models/activitypub/actor-follow' |
6 | import { buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' | 6 | import { buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' |
7 | import { BROADCAST_CONCURRENCY } from '../../../initializers' | 7 | import { BROADCAST_CONCURRENCY, JOB_REQUEST_TIMEOUT } from '../../../initializers' |
8 | 8 | ||
9 | export type ActivitypubHttpBroadcastPayload = { | 9 | export type ActivitypubHttpBroadcastPayload = { |
10 | uris: string[] | 10 | uris: string[] |
@@ -24,7 +24,8 @@ async function processActivityPubHttpBroadcast (job: kue.Job) { | |||
24 | method: 'POST', | 24 | method: 'POST', |
25 | uri: '', | 25 | uri: '', |
26 | json: body, | 26 | json: body, |
27 | httpSignature: httpSignatureOptions | 27 | httpSignature: httpSignatureOptions, |
28 | timeout: JOB_REQUEST_TIMEOUT | ||
28 | } | 29 | } |
29 | 30 | ||
30 | const badUrls: string[] = [] | 31 | const badUrls: string[] = [] |
diff --git a/server/lib/job-queue/handlers/activitypub-http-fetcher.ts b/server/lib/job-queue/handlers/activitypub-http-fetcher.ts index 062211c85..4683beb2f 100644 --- a/server/lib/job-queue/handlers/activitypub-http-fetcher.ts +++ b/server/lib/job-queue/handlers/activitypub-http-fetcher.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import * as kue from 'kue' | 1 | import * as kue from 'kue' |
2 | import { logger } from '../../../helpers/logger' | 2 | import { logger } from '../../../helpers/logger' |
3 | import { doRequest } from '../../../helpers/requests' | 3 | import { doRequest } from '../../../helpers/requests' |
4 | import { ACTIVITY_PUB } from '../../../initializers' | 4 | import { ACTIVITY_PUB, JOB_REQUEST_TIMEOUT } from '../../../initializers' |
5 | import { processActivities } from '../../activitypub/process' | 5 | import { processActivities } from '../../activitypub/process' |
6 | import { ActivitypubHttpBroadcastPayload } from './activitypub-http-broadcast' | 6 | import { ActivitypubHttpBroadcastPayload } from './activitypub-http-broadcast' |
7 | 7 | ||
@@ -18,7 +18,8 @@ async function processActivityPubHttpFetcher (job: kue.Job) { | |||
18 | method: 'GET', | 18 | method: 'GET', |
19 | uri: '', | 19 | uri: '', |
20 | json: true, | 20 | json: true, |
21 | activityPub: true | 21 | activityPub: true, |
22 | timeout: JOB_REQUEST_TIMEOUT | ||
22 | } | 23 | } |
23 | 24 | ||
24 | for (const uri of payload.uris) { | 25 | for (const uri of payload.uris) { |
diff --git a/server/lib/job-queue/handlers/activitypub-http-unicast.ts b/server/lib/job-queue/handlers/activitypub-http-unicast.ts index e1e1824e5..173f3bb52 100644 --- a/server/lib/job-queue/handlers/activitypub-http-unicast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-unicast.ts | |||
@@ -3,6 +3,7 @@ import { logger } from '../../../helpers/logger' | |||
3 | import { doRequest } from '../../../helpers/requests' | 3 | import { doRequest } from '../../../helpers/requests' |
4 | import { ActorFollowModel } from '../../../models/activitypub/actor-follow' | 4 | import { ActorFollowModel } from '../../../models/activitypub/actor-follow' |
5 | import { buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' | 5 | import { buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' |
6 | import { JOB_REQUEST_TIMEOUT } from '../../../initializers' | ||
6 | 7 | ||
7 | export type ActivitypubHttpUnicastPayload = { | 8 | export type ActivitypubHttpUnicastPayload = { |
8 | uri: string | 9 | uri: string |
@@ -23,7 +24,8 @@ async function processActivityPubHttpUnicast (job: kue.Job) { | |||
23 | method: 'POST', | 24 | method: 'POST', |
24 | uri, | 25 | uri, |
25 | json: body, | 26 | json: body, |
26 | httpSignature: httpSignatureOptions | 27 | httpSignature: httpSignatureOptions, |
28 | timeout: JOB_REQUEST_TIMEOUT | ||
27 | } | 29 | } |
28 | 30 | ||
29 | try { | 31 | try { |
diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts index bf40a9206..acc69ef24 100644 --- a/server/lib/job-queue/job-queue.ts +++ b/server/lib/job-queue/job-queue.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import * as kue from 'kue' | 1 | import * as kue from 'kue' |
2 | import { JobState, JobType } from '../../../shared/models' | 2 | import { JobState, JobType } from '../../../shared/models' |
3 | import { logger } from '../../helpers/logger' | 3 | import { logger } from '../../helpers/logger' |
4 | import { CONFIG, JOB_ATTEMPTS, JOB_COMPLETED_LIFETIME, JOB_CONCURRENCY } from '../../initializers' | 4 | import { CONFIG, JOB_ATTEMPTS, JOB_COMPLETED_LIFETIME, JOB_CONCURRENCY, JOB_REQUEST_TTL } from '../../initializers' |
5 | import { Redis } from '../redis' | 5 | import { Redis } from '../redis' |
6 | import { ActivitypubHttpBroadcastPayload, processActivityPubHttpBroadcast } from './handlers/activitypub-http-broadcast' | 6 | import { ActivitypubHttpBroadcastPayload, processActivityPubHttpBroadcast } from './handlers/activitypub-http-broadcast' |
7 | import { ActivitypubHttpFetcherPayload, processActivityPubHttpFetcher } from './handlers/activitypub-http-fetcher' | 7 | import { ActivitypubHttpFetcherPayload, processActivityPubHttpFetcher } from './handlers/activitypub-http-fetcher' |
@@ -27,6 +27,13 @@ const handlers: { [ id in JobType ]: (job: kue.Job) => Promise<any>} = { | |||
27 | 'email': processEmail | 27 | 'email': processEmail |
28 | } | 28 | } |
29 | 29 | ||
30 | const jobsWithTLL: JobType[] = [ | ||
31 | 'activitypub-http-broadcast', | ||
32 | 'activitypub-http-unicast', | ||
33 | 'activitypub-http-fetcher', | ||
34 | 'activitypub-follow' | ||
35 | ] | ||
36 | |||
30 | class JobQueue { | 37 | class JobQueue { |
31 | 38 | ||
32 | private static instance: JobQueue | 39 | private static instance: JobQueue |
@@ -77,16 +84,21 @@ class JobQueue { | |||
77 | 84 | ||
78 | createJob (obj: CreateJobArgument, priority = 'normal') { | 85 | createJob (obj: CreateJobArgument, priority = 'normal') { |
79 | return new Promise((res, rej) => { | 86 | return new Promise((res, rej) => { |
80 | this.jobQueue | 87 | let job = this.jobQueue |
81 | .create(obj.type, obj.payload) | 88 | .create(obj.type, obj.payload) |
82 | .priority(priority) | 89 | .priority(priority) |
83 | .attempts(JOB_ATTEMPTS[obj.type]) | 90 | .attempts(JOB_ATTEMPTS[obj.type]) |
84 | .backoff({ delay: 60 * 1000, type: 'exponential' }) | 91 | .backoff({ delay: 60 * 1000, type: 'exponential' }) |
85 | .save(err => { | ||
86 | if (err) return rej(err) | ||
87 | 92 | ||
88 | return res() | 93 | if (jobsWithTLL.indexOf(obj.type) !== -1) { |
89 | }) | 94 | job = job.ttl(JOB_REQUEST_TTL) |
95 | } | ||
96 | |||
97 | return job.save(err => { | ||
98 | if (err) return rej(err) | ||
99 | |||
100 | return res() | ||
101 | }) | ||
90 | }) | 102 | }) |
91 | } | 103 | } |
92 | 104 | ||