From f2749e66a9912b2cbcbf4d870db024e524935a8b Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 9 Nov 2022 09:17:41 +0000 Subject: [PATCH] Ensure valid ExposedSettings for stories (#10334) GitOrigin-RevId: 4f105ee628d55a9ea33f03429fe01a82717ed8b7 --- .../web/frontend/stories/decorators/scope.tsx | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/stories/decorators/scope.tsx b/services/web/frontend/stories/decorators/scope.tsx index f17d570e33..e2bc4f61e5 100644 --- a/services/web/frontend/stories/decorators/scope.tsx +++ b/services/web/frontend/stories/decorators/scope.tsx @@ -118,9 +118,28 @@ const initialize = () => { window.ExposedSettings = { appName: 'Overleaf', + cookieDomain: '.overleaf.stories', + dropboxAppName: 'Overleaf-Stories', + emailConfirmationDisabled: false, + enableSubscriptions: true, + hasAffiliationsFeature: false, + hasLinkUrlFeature: false, + hasLinkedProjectFileFeature: true, + hasLinkedProjectOutputFileFeature: true, + hasSamlFeature: true, + isOverleaf: true, + labsEnabled: true, maxEntitiesPerProject: 10, maxUploadSize: 5 * 1024 * 1024, - enableSubscriptions: true, + recaptchaDisabled: { + invite: true, + login: true, + passwordReset: true, + register: true, + }, + sentryAllowedOriginRegex: '', + siteUrl: 'http://localhost', + templateLinks: [], textExtensions: [ 'tex', 'latex', @@ -152,7 +171,8 @@ const initialize = () => { 'gv', 'mf', ], - } as typeof window.ExposedSettings + validRootDocExtensions: ['tex', 'Rtex', 'ltx'], + } window.project_id = project._id