MM-63327 Config setting for ServiceSettings.FrameAncestors (#30409)
* Add Embedding page to system console, with single setting for Frame Ancestors
Этот коммит содержится в:
@@ -5833,6 +5833,25 @@ const AdminDefinition: AdminDefinitionType = {
|
||||
],
|
||||
},
|
||||
},
|
||||
embedding: {
|
||||
url: 'integrations/embedding',
|
||||
title: defineMessage({id: 'admin.sidebar.embedding', defaultMessage: 'Embedding'}),
|
||||
isHidden: it.not(it.userHasReadPermissionOnResource(RESOURCE_KEYS.INTEGRATIONS.CORS)),
|
||||
schema: {
|
||||
id: 'EmbeddingSettings',
|
||||
name: defineMessage({id: 'admin.integrations.embedding', defaultMessage: 'Embedding'}),
|
||||
settings: [
|
||||
{
|
||||
type: 'text',
|
||||
key: 'ServiceSettings.FrameAncestors',
|
||||
label: defineMessage({id: 'admin.customization.frameAncestorTitle', defaultMessage: 'Frame Ancestors:'}),
|
||||
help_text: defineMessage({id: 'admin.customization.frameAncestorDesc', defaultMessage: 'Allows the Mattermost web client to be embedded in other websites. Enter a space-separated list of domains that are allowed to embed the Mattermost web client. Leave blank to disallow embedding.'}),
|
||||
isDisabled: it.not(it.userHasWritePermissionOnResource(RESOURCE_KEYS.INTEGRATIONS.CORS)),
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
},
|
||||
compliance: {
|
||||
|
||||
@@ -1121,6 +1121,17 @@ exports[`components/AdminSidebar should match snapshot 1`] = `
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<AdminSidebarSection
|
||||
definitionKey="integrations.embedding"
|
||||
key="integrations.embedding"
|
||||
name="integrations/embedding"
|
||||
title={
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="Embedding"
|
||||
id="admin.sidebar.embedding"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</AdminSidebarCategory>
|
||||
<AdminSidebarCategory
|
||||
definitionKey="experimental"
|
||||
@@ -1815,6 +1826,17 @@ exports[`components/AdminSidebar should match snapshot with workspace optimizati
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<AdminSidebarSection
|
||||
definitionKey="integrations.embedding"
|
||||
key="integrations.embedding"
|
||||
name="integrations/embedding"
|
||||
title={
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="Embedding"
|
||||
id="admin.sidebar.embedding"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</AdminSidebarCategory>
|
||||
<AdminSidebarCategory
|
||||
definitionKey="experimental"
|
||||
@@ -2564,6 +2586,17 @@ exports[`components/AdminSidebar should match snapshot, not prevent the console
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<AdminSidebarSection
|
||||
definitionKey="integrations.embedding"
|
||||
key="integrations.embedding"
|
||||
name="integrations/embedding"
|
||||
title={
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="Embedding"
|
||||
id="admin.sidebar.embedding"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</AdminSidebarCategory>
|
||||
<AdminSidebarCategory
|
||||
definitionKey="experimental"
|
||||
@@ -3258,6 +3291,17 @@ exports[`components/AdminSidebar should match snapshot, render plugins without a
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<AdminSidebarSection
|
||||
definitionKey="integrations.embedding"
|
||||
key="integrations.embedding"
|
||||
name="integrations/embedding"
|
||||
title={
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="Embedding"
|
||||
id="admin.sidebar.embedding"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</AdminSidebarCategory>
|
||||
<AdminSidebarCategory
|
||||
definitionKey="experimental"
|
||||
@@ -4062,6 +4106,17 @@ exports[`components/AdminSidebar should match snapshot, with license (with all f
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<AdminSidebarSection
|
||||
definitionKey="integrations.embedding"
|
||||
key="integrations.embedding"
|
||||
name="integrations/embedding"
|
||||
title={
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="Embedding"
|
||||
id="admin.sidebar.embedding"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</AdminSidebarCategory>
|
||||
<AdminSidebarCategory
|
||||
definitionKey="compliance"
|
||||
@@ -4987,6 +5042,17 @@ exports[`components/AdminSidebar should match snapshot, with license (without an
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<AdminSidebarSection
|
||||
definitionKey="integrations.embedding"
|
||||
key="integrations.embedding"
|
||||
name="integrations/embedding"
|
||||
title={
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="Embedding"
|
||||
id="admin.sidebar.embedding"
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</AdminSidebarCategory>
|
||||
<AdminSidebarCategory
|
||||
definitionKey="compliance"
|
||||
|
||||
@@ -680,6 +680,8 @@
|
||||
"admin.customization.enablePermalinkPreviewsTitle": "Enable message link previews:",
|
||||
"admin.customization.enableSVGsDesc": "Enable previews for SVG file attachments and allow them to appear in messages.\n\nEnabling SVGs is not recommended in environments where not all users are trusted.",
|
||||
"admin.customization.enableSVGsTitle": "Enable SVGs:",
|
||||
"admin.customization.frameAncestorDesc": "Allows the Mattermost web client to be embedded in other websites. Enter a space-separated list of domains that are allowed to embed the Mattermost web client. Leave blank to disallow embedding.",
|
||||
"admin.customization.frameAncestorTitle": "Frame Ancestors:",
|
||||
"admin.customization.iosAppDownloadLinkDesc": "Add a link to download the iOS app. Users who access the site on a mobile web browser will be prompted with a page giving them the option to download the app. Leave this field blank to prevent the page from appearing.",
|
||||
"admin.customization.iosAppDownloadLinkTitle": "iOS App Download Link:",
|
||||
"admin.customization.maxMarkdownNodesDesc": "When rendering Markdown text in the mobile app, controls the maximum number of Markdown elements (eg. emojis, links, table cells, etc) that can be in a single piece of text. If set to 0, a default limit will be used.",
|
||||
@@ -1211,6 +1213,7 @@
|
||||
"admin.integrations.botAccounts": "Bot Accounts",
|
||||
"admin.integrations.botAccounts.title": "Bot Accounts",
|
||||
"admin.integrations.cors": "CORS",
|
||||
"admin.integrations.embedding": "Embedding",
|
||||
"admin.integrations.gif": "GIF",
|
||||
"admin.integrations.integrationManagement": "Integration Management",
|
||||
"admin.integrations.integrationManagement.title": "Integration Management",
|
||||
@@ -2441,6 +2444,7 @@
|
||||
"admin.sidebar.developer": "Developer",
|
||||
"admin.sidebar.elasticsearch": "Elasticsearch",
|
||||
"admin.sidebar.email": "Email",
|
||||
"admin.sidebar.embedding": "Embedding",
|
||||
"admin.sidebar.emoji": "Emoji",
|
||||
"admin.sidebar.environment": "Environment",
|
||||
"admin.sidebar.experimental": "Experimental",
|
||||
|
||||
Ссылка в новой задаче
Block a user