-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3456112
commit 023a11e
Showing
10 changed files
with
102 additions
and
88 deletions.
There are no files selected for viewing
12 changes: 8 additions & 4 deletions
12
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudCutBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
@inherits CutBlockForm<MudBlazorBlocklyFormOptions> | ||
<AntFormItem Label="@LocalizationProvider["Button text"]" Hint="@LocalizationProvider["Text on button when block rendered in preview list mode"]"> | ||
<Input @bind-Value="@Block.ButtonText"/> | ||
</AntFormItem> | ||
@using global::MudBlazor | ||
@inherits CutBlockForm<MudBlazorBlocklyFormOptions> | ||
<MudItem> | ||
<MudTextField @bind-Value="@Block.ButtonText" Label="@LocalizationProvider["Button text"]" /> | ||
<MudTooltip Text="@LocalizationProvider["Text on button when block rendered in preview list mode"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info" /> | ||
</MudTooltip> | ||
</MudItem > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudIFrameBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 43 additions & 47 deletions
90
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudQuoteBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,43 @@ | ||
@inherits QuoteBlockForm<MudBlazorBlocklyFormOptions> | ||
<Row Gutter="(24,20)"> | ||
<AntDesign.Col Span="24"> | ||
<AntFormItem> | ||
<CKEditor Config="FormOptions.CKEditorConfig" Placeholder="@LocalizationProvider["Quote text"]" @bind-Value="Block.Text"></CKEditor> | ||
<AntBlockValidationMessage BlockForm="this"></AntBlockValidationMessage> | ||
</AntFormItem> | ||
</AntDesign.Col> | ||
<AntDesign.Col Span="24"> | ||
<Row Gutter="24"> | ||
<AntDesign.Col Md="8" Xs="24"> | ||
<AntFormItem Label="@LocalizationProvider["Source"]" Hint="@LocalizationProvider["Author name, site title, etc..."]"> | ||
<Input Placeholder="@LocalizationProvider["Author name, site title, etc..."]" @bind-Value="@Block.Author"/> | ||
</AntFormItem> | ||
</AntDesign.Col> | ||
<AntDesign.Col Md="8" Xs="24"> | ||
<AntFormItem Label="@LocalizationProvider["Url"]" Hint="@LocalizationProvider["Link to page where this quote comes from"]"> | ||
<Input Placeholder="@LocalizationProvider["Link"]" @bind-Value="@Block.Link"/> | ||
</AntFormItem> | ||
</AntDesign.Col> | ||
</Row> | ||
</AntDesign.Col> | ||
<AntDesign.Col Span="24"> | ||
<Row Gutter="24"> | ||
<AntDesign.Col Span="24"> | ||
@if (FormOptions.Storage is not null) | ||
{ | ||
<AntFormItem Label="@LocalizationProvider["Source picture"]" Hint="@LocalizationProvider["Author photo, site logo, etc..."]"> | ||
<AntStorageImageInput | ||
Avatar="true" | ||
Size="small" | ||
Storage="FormOptions.Storage" | ||
ContentTypes="@FormOptions.ImagesOptions.AllowedTypes" | ||
UploadPath="@FormOptions.ImagesOptions.UploadPath" | ||
MaxFileSize="@FormOptions.ImagesOptions.MaxFileSize" | ||
UploadText="@LocalizationProvider["Upload"]" | ||
RemoveText="@LocalizationProvider["Remove"]" | ||
PreviewText="@LocalizationProvider["Preview"]" | ||
GenerateMetadata="FormOptions.ImagesOptions.GenerateMetadata" | ||
@bind-Value="Block.Picture"> | ||
</AntStorageImageInput> | ||
</AntFormItem> | ||
} | ||
</AntDesign.Col> | ||
</Row> | ||
</AntDesign.Col> | ||
</Row> | ||
@using global::MudBlazor | ||
@inherits QuoteBlockForm<MudBlazorBlocklyFormOptions> | ||
<MudGrid> | ||
<MudItem xs="12"> | ||
<CKEditor Config="FormOptions.CKEditorConfig" Placeholder="@LocalizationProvider["Quote text"]" @bind-Value="Block.Text"></CKEditor> | ||
<MudBlockValidationMessage BlockForm="this"></MudBlockValidationMessage> | ||
</MudItem> | ||
|
||
<MudItem md="4" xs="12"> | ||
<MudTextField Placeholder="@LocalizationProvider["Author name, site title, etc..."]" @bind-Value="@Block.Author" Label="@LocalizationProvider["Source"]"/> | ||
<MudTooltip Text="@LocalizationProvider["Author name, site title, etc..."]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info"/> | ||
</MudTooltip> | ||
</MudItem> | ||
|
||
<MudItem md="4" xs="12"> | ||
<MudTextField Placeholder="@LocalizationProvider["Link"]" @bind-Value="@Block.Link" Label="@LocalizationProvider["Url"]"/> | ||
<MudTooltip Text="@LocalizationProvider["Link to page where this quote comes from"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info"/> | ||
</MudTooltip> | ||
</MudItem> | ||
|
||
|
||
@if (FormOptions.Storage is not null) | ||
{ | ||
<MudItem xs="12"> | ||
<MudFileUpload | ||
Storage="FormOptions.Storage" | ||
ContentTypes="@FormOptions.ImagesOptions.AllowedTypes" | ||
UploadPath="@FormOptions.ImagesOptions.UploadPath" | ||
MaxFileSize="@FormOptions.ImagesOptions.MaxFileSize" | ||
UploadText="@LocalizationProvider["Upload"]" | ||
RemoveText="@LocalizationProvider["Remove"]" | ||
PreviewText="@LocalizationProvider["Preview"]" | ||
GenerateMetadata="FormOptions.ImagesOptions.GenerateMetadata" | ||
@bind-Value="Block.Picture"/> | ||
<MudTooltip Text="@LocalizationProvider["Author photo, site logo, etc..."]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info"/> | ||
</MudTooltip> | ||
</MudItem> | ||
} | ||
|
||
</MudGrid> |
6 changes: 3 additions & 3 deletions
6
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTextBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@inherits TextBlockForm<MudBlazorBlocklyFormOptions> | ||
<AntFormItem> | ||
<MudItem> | ||
<CKEditor Config="FormOptions.CKEditorConfig" TextareaClass="ant-input" Placeholder="@LocalizationProvider["Block content"]" @bind-Value="Block.Text"></CKEditor> | ||
<AntBlockValidationMessage BlockForm="this"></AntBlockValidationMessage> | ||
</AntFormItem> | ||
<MudBlockValidationMessage BlockForm="this"></MudBlockValidationMessage> | ||
</MudItem> |
12 changes: 8 additions & 4 deletions
12
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTwitchBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
@inherits TwitchBlockForm<MudBlazorBlocklyFormOptions> | ||
@using global::MudBlazor | ||
@inherits TwitchBlockForm<MudBlazorBlocklyFormOptions> | ||
|
||
<AntFormItem Label="@LocalizationProvider["Url"]" Hint="@LocalizationProvider["Twitch video, channel or collection url"]"> | ||
<Input @bind-Value="Block.Url" Placeholder="@LocalizationProvider["Twitch link"]" AllowClear="true" OnChange="OnChangeAsync" TValue="string"/> | ||
</AntFormItem> | ||
<MudITem> | ||
<MudTextField T="string" @bind-Value="Block.Url" Placeholder="@LocalizationProvider["Twitch link"]" OnChange="OnChangeAsync" AllowClear="true" Label="@LocalizationProvider["Url"]"/> | ||
<MudTooltip Text="@LocalizationProvider["Twitch video, channel or collection url"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info" /> | ||
</MudTooltip> | ||
</MudITem> | ||
<div @ref="ContainerRef" class="twitch-video" id="twitch-@Block.Id"></div> |
12 changes: 8 additions & 4 deletions
12
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudTwitterBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@inherits TwitterBlockForm<MudBlazorBlocklyFormOptions> | ||
@using global::MudBlazor | ||
@inherits TwitterBlockForm<MudBlazorBlocklyFormOptions> | ||
|
||
<AntFormItem Label="@LocalizationProvider["Url"]" Hint="@LocalizationProvider["Full tweet url"]"> | ||
<Input @bind-Value="Block.Url" Placeholder="@LocalizationProvider["Tweet link"]" AllowClear="true" OnChange="OnChangeAsync" TValue="string"/> | ||
</AntFormItem> | ||
<MudItem> | ||
<MudTextField @bind-Value="Block.Url" Label="@LocalizationProvider["Url"]" Placeholder="@LocalizationProvider["Tweet link"]" AllowClear="true" OnChange="OnChangeAsync" T="string"/> | ||
<MudTooltip Text="@LocalizationProvider["Full tweet url"]"> | ||
<MudIconButton Class="mx-2" Icon="@Icons.Material.Outlined.Info" /> | ||
</MudTooltip> | ||
</MudItem> | ||
<div @ref="ContainerRef" class="tweet"> | ||
</div> |
12 changes: 8 additions & 4 deletions
12
src/Sitko.Blockly.MudBlazor/Forms/Blocks/MudYoutubeBlockForm.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters