ADefWebserver / ADefWebserver.Module.HtmlTextV2

MIT License
4 stars 1 forks source link

Index.razor static rendering #17

Closed thabaum closed 5 months ago

thabaum commented 5 months ago

This sets the Index.razor component back to using default component. Not sure if we want to or can use the HtmlBase.razor component instead.

Part 1 of fix #7

Part 2 is a work in progress... if this gets merged wait for part 2 as it will not have any working POC to share until the Edit.razor component is merged.

This is a placeholder but can be merged if you are going to add the Edit.razor interactive component to the module. I will attempt what I can. We can worry about localization later.

This PR also cleans up a lot of namespaces that are not used in files in order to build using latest .NET 8.0.6

image

ADefWebserver commented 5 months ago

I really want the project to build. HtmlEditor.Blazorproject still won't build for me. I get:

Build started at 6:07 AM...
1>------ Build started: Project: HtmlEditor.Blazor, Configuration: Debug Any CPU ------
1>Sass compile files
1>Sass files compiled
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\wwwroot\HtmlEditorTextArea.razor(6,77,6,85): error CS0103: The name 'ReadOnly' does not exist in the current context
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\wwwroot\HtmlEditorTextArea.razor(6,107,6,111): error CS0103: The name 'Rows' does not exist in the current context
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\wwwroot\HtmlEditorTextArea.razor(6,120,6,124): error CS0103: The name 'Cols' does not exist in the current context
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\wwwroot\HtmlEditorTextArea.razor(7,54,7,63): error CS0103: The name 'MaxLength' does not exist in the current context
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\wwwroot\HtmlEditorTextArea.razor(7,92,7,100): error CS0103: The name 'OnChange' does not exist in the current context
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\FormComponent.cs(122,26,122,31): warning BL0007: Component parameter 'HtmlEditor.FormComponent<T>.Value' should be auto property
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\HtmlEditorComponentBase.cs(48,28,48,35): warning BL0007: Component parameter 'HtmlEditor.HtmlEditorComponentBase.Culture' should be auto property
1>C:\Users\webma\Source\Repos\ADefWebserver\ADefWebserver.Module.HtmlTextV2\HtmlEditor.Blazor\HtmlEditorNumeric.razor.cs(80,32,80,37): warning BL0007: Component parameter 'HtmlEditor.Blazor.HtmlEditorNumeric<TValue>.Value' should be auto property
1>Done building project "HtmlEditor.Blazor.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 6:07 AM and took 09.244 seconds ==========

I think the problem is this file is here: https://github.com/ADefWebserver/ADefWebserver.Module.HtmlTextV2/blob/76d2b0d6d021731e760efe07fb6d9dc928e44246/HtmlEditor.Blazor/HtmlEditorTextArea.razor

and here (note it has wwwroot): https://github.com/ADefWebserver/ADefWebserver.Module.HtmlTextV2/blob/76d2b0d6d021731e760efe07fb6d9dc928e44246/HtmlEditor.Blazor/wwwroot/HtmlEditorTextArea.razor

ADefWebserver commented 5 months ago

I removed it because when I do the project builds for me:

image