Chat export parameter customisation (#7647)
* use export settings and hide fields Signed-off-by: Kerry Archibald <kerrya@element.io> * fix exporter tests Signed-off-by: Kerry Archibald <kerrya@element.io> * test ExportDialog with settings Signed-off-by: Kerry Archibald <kerrya@element.io> * tidy debugs, rename setting to Parameters Signed-off-by: Kerry Archibald <kerrya@element.io> * use reasonable 100gb limit Signed-off-by: Kerry Archibald <kerrya@element.io> * use normal setting instead of UIFeature Signed-off-by: Kerry Archibald <kerrya@element.io> * use a customisation Signed-off-by: Kerry Archibald <kerrya@element.io> * move validateNumberInRange to utils Signed-off-by: Kerry Archibald <kerrya@element.io> * use nullish coalesce Signed-off-by: Kerry Archibald <kerrya@element.io> * use 8gb size limit for customisation Signed-off-by: Kerry Archibald <kerrya@element.io> * update comments Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
ad87ee0a0f
commit
085ecc7f5f
13 changed files with 501 additions and 189 deletions
|
@ -105,14 +105,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
class="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<label
|
||||
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
||||
>
|
||||
|
@ -235,7 +235,7 @@ Array [
|
|||
</span>
|
||||
</div>
|
||||
<span
|
||||
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
id="include-attachments"
|
||||
|
@ -326,14 +326,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
class="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<label
|
||||
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
||||
>
|
||||
|
@ -456,7 +456,7 @@ Array [
|
|||
</span>
|
||||
</div>
|
||||
<span
|
||||
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
id="include-attachments"
|
||||
|
@ -563,14 +563,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
className="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<StyledRadioGroup
|
||||
definitions={
|
||||
Array [
|
||||
|
@ -790,12 +790,12 @@ Array [
|
|||
</Field>
|
||||
<StyledCheckbox
|
||||
checked={false}
|
||||
className=""
|
||||
className="mx_ExportDialog_attachments-checkbox"
|
||||
id="include-attachments"
|
||||
onChange={[Function]}
|
||||
>
|
||||
<span
|
||||
className="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
className="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
checked={false}
|
||||
|
@ -962,14 +962,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
class="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<label
|
||||
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
||||
>
|
||||
|
@ -1092,7 +1092,7 @@ Array [
|
|||
</span>
|
||||
</div>
|
||||
<span
|
||||
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
id="include-attachments"
|
||||
|
@ -1183,14 +1183,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
class="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<label
|
||||
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
||||
>
|
||||
|
@ -1313,7 +1313,7 @@ Array [
|
|||
</span>
|
||||
</div>
|
||||
<span
|
||||
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
id="include-attachments"
|
||||
|
@ -1420,14 +1420,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
className="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<StyledRadioGroup
|
||||
definitions={
|
||||
Array [
|
||||
|
@ -1647,12 +1647,12 @@ Array [
|
|||
</Field>
|
||||
<StyledCheckbox
|
||||
checked={false}
|
||||
className=""
|
||||
className="mx_ExportDialog_attachments-checkbox"
|
||||
id="include-attachments"
|
||||
onChange={[Function]}
|
||||
>
|
||||
<span
|
||||
className="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
className="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
checked={false}
|
||||
|
@ -1806,14 +1806,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
class="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<label
|
||||
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
||||
>
|
||||
|
@ -1936,7 +1936,7 @@ Array [
|
|||
</span>
|
||||
</div>
|
||||
<span
|
||||
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
id="include-attachments"
|
||||
|
@ -2027,14 +2027,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
class="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
class="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<label
|
||||
class="mx_StyledRadioButton mx_StyledRadioButton_enabled mx_StyledRadioButton_checked"
|
||||
>
|
||||
|
@ -2157,7 +2157,7 @@ Array [
|
|||
</span>
|
||||
</div>
|
||||
<span
|
||||
class="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
class="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
id="include-attachments"
|
||||
|
@ -2264,14 +2264,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
className="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<StyledRadioGroup
|
||||
definitions={
|
||||
Array [
|
||||
|
@ -2491,12 +2491,12 @@ Array [
|
|||
</Field>
|
||||
<StyledCheckbox
|
||||
checked={false}
|
||||
className=""
|
||||
className="mx_ExportDialog_attachments-checkbox"
|
||||
id="include-attachments"
|
||||
onChange={[Function]}
|
||||
>
|
||||
<span
|
||||
className="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
className="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
checked={false}
|
||||
|
@ -2613,14 +2613,14 @@ Array [
|
|||
<p>
|
||||
Select from the options below to export chats from your timeline
|
||||
</p>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<div
|
||||
className="mx_ExportDialog_options"
|
||||
>
|
||||
<span
|
||||
className="mx_ExportDialog_subheading"
|
||||
>
|
||||
Format
|
||||
</span>
|
||||
<StyledRadioGroup
|
||||
definitions={
|
||||
Array [
|
||||
|
@ -2840,12 +2840,12 @@ Array [
|
|||
</Field>
|
||||
<StyledCheckbox
|
||||
checked={false}
|
||||
className=""
|
||||
className="mx_ExportDialog_attachments-checkbox"
|
||||
id="include-attachments"
|
||||
onChange={[Function]}
|
||||
>
|
||||
<span
|
||||
className="mx_Checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
className="mx_Checkbox mx_ExportDialog_attachments-checkbox mx_Checkbox_hasKind mx_Checkbox_kind_solid"
|
||||
>
|
||||
<input
|
||||
checked={false}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue