diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-12 19:02:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-16 11:50:08 +0200 |
commit | 40e87e9ecc54e3513fb586928330a7855eb192c6 (patch) | |
tree | af1111ecba85f9cd8286811ff332a67cf21be2f6 /client/src/app/+admin | |
parent | d4557fd3ecc8d4ed4fb0e5c868929bc36c959ed2 (diff) | |
download | PeerTube-40e87e9ecc54e3513fb586928330a7855eb192c6.tar.gz PeerTube-40e87e9ecc54e3513fb586928330a7855eb192c6.tar.zst PeerTube-40e87e9ecc54e3513fb586928330a7855eb192c6.zip |
Implement captions/subtitles
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | 21 | ||||
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 4 |
2 files changed, 21 insertions, 4 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 1e5308531..97900e523 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | |||
@@ -206,15 +206,17 @@ Check this checkbox, save the configuration and test with a video URL of your in | |||
206 | </div> | 206 | </div> |
207 | </ng-template> | 207 | </ng-template> |
208 | 208 | ||
209 | <div i18n class="inner-form-title">Cache</div> | 209 | <div i18n class="inner-form-title"> |
210 | Cache | ||
210 | 211 | ||
211 | <div class="form-group"> | ||
212 | <label i18n for="cachePreviewsSize">Previews cache size</label> | ||
213 | <my-help | 212 | <my-help |
214 | helpType="custom" i18n-customHtml | 213 | helpType="custom" i18n-customHtml |
215 | customHtml="Previews are not federated. We fetch them directly from the origin instance and cache them." | 214 | customHtml="Some files are not federated (previews, captions). We fetch them directly from the origin instance and cache them." |
216 | ></my-help> | 215 | ></my-help> |
216 | </div> | ||
217 | 217 | ||
218 | <div class="form-group"> | ||
219 | <label i18n for="cachePreviewsSize">Previews cache size</label> | ||
218 | <input | 220 | <input |
219 | type="text" id="cachePreviewsSize" | 221 | type="text" id="cachePreviewsSize" |
220 | formControlName="cachePreviewsSize" [ngClass]="{ 'input-error': formErrors['cachePreviewsSize'] }" | 222 | formControlName="cachePreviewsSize" [ngClass]="{ 'input-error': formErrors['cachePreviewsSize'] }" |
@@ -224,6 +226,17 @@ Check this checkbox, save the configuration and test with a video URL of your in | |||
224 | </div> | 226 | </div> |
225 | </div> | 227 | </div> |
226 | 228 | ||
229 | <div class="form-group"> | ||
230 | <label i18n for="cachePreviewsSize">Video captions cache size</label> | ||
231 | <input | ||
232 | type="text" id="cacheCaptionsSize" | ||
233 | formControlName="cacheCaptionsSize" [ngClass]="{ 'input-error': formErrors['cacheCaptionsSize'] }" | ||
234 | > | ||
235 | <div *ngIf="formErrors.cacheCaptionsSize" class="form-error"> | ||
236 | {{ formErrors.cacheCaptionsSize }} | ||
237 | </div> | ||
238 | </div> | ||
239 | |||
227 | <div i18n class="inner-form-title">Customizations</div> | 240 | <div i18n class="inner-form-title">Customizations</div> |
228 | 241 | ||
229 | <div class="form-group"> | 242 | <div class="form-group"> |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 7b3e72803..8d476393f 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |||
@@ -67,6 +67,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
67 | servicesTwitterUsername: this.customConfigValidatorsService.SERVICES_TWITTER_USERNAME, | 67 | servicesTwitterUsername: this.customConfigValidatorsService.SERVICES_TWITTER_USERNAME, |
68 | servicesTwitterWhitelisted: null, | 68 | servicesTwitterWhitelisted: null, |
69 | cachePreviewsSize: this.customConfigValidatorsService.CACHE_PREVIEWS_SIZE, | 69 | cachePreviewsSize: this.customConfigValidatorsService.CACHE_PREVIEWS_SIZE, |
70 | cacheCaptionsSize: this.customConfigValidatorsService.CACHE_CAPTIONS_SIZE, | ||
70 | signupEnabled: null, | 71 | signupEnabled: null, |
71 | signupLimit: this.customConfigValidatorsService.SIGNUP_LIMIT, | 72 | signupLimit: this.customConfigValidatorsService.SIGNUP_LIMIT, |
72 | adminEmail: this.customConfigValidatorsService.ADMIN_EMAIL, | 73 | adminEmail: this.customConfigValidatorsService.ADMIN_EMAIL, |
@@ -156,6 +157,9 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
156 | cache: { | 157 | cache: { |
157 | previews: { | 158 | previews: { |
158 | size: this.form.value['cachePreviewsSize'] | 159 | size: this.form.value['cachePreviewsSize'] |
160 | }, | ||
161 | captions: { | ||
162 | size: this.form.value['cacheCaptionsSize'] | ||
159 | } | 163 | } |
160 | }, | 164 | }, |
161 | signup: { | 165 | signup: { |