Skip to content

Commit

Permalink
Merge branch 'release/v04.01.00'
Browse files Browse the repository at this point in the history
  • Loading branch information
tvatavuk committed Feb 15, 2023
2 parents a2e8bbc + ae97924 commit 31a8086
Show file tree
Hide file tree
Showing 172 changed files with 1,703 additions and 1,124 deletions.
Binary file removed Dependency DLLs/DotNetNuke.dll
Binary file not shown.
1 change: 1 addition & 0 deletions DocFx Generator/articles/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* The `AttributeOptions` and `TagOptions` were made read-only for reliable fluid / immutable APIs.
This is kind of a **breaking change** but we believe it won't affect anybody.
since it was basically an internal API which nobody used outside of this.
* Changed minimum requirement on `Razor.Blade.Dnn` to be DNN 9.6.1

## Version 3

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using ToSic.Razor.Html5;

using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;
using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down
8 changes: 6 additions & 2 deletions Razor.Blade/Blade/HtmlTagService/IHtmlTagService_Generated.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using ToSic.Razor.Html5;

using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;
using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down
1 change: 1 addition & 0 deletions Razor.Blade/Blade/Interfaces/IHtmlTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public interface IHtmlTag: ITag
/// So just run AsHtmlTag() so it becomes a more generic object but still has all the common Id, Class, Wrap etc.
/// </summary>
/// <returns></returns>
[PrivateApi("not sure if this is useful")]
IHtmlTag AsHtmlTag();
}
}
10 changes: 2 additions & 8 deletions Razor.Blade/Blade/Tags/SafeUrl.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#if NETFRAMEWORK
using HtmlString = System.Web.HtmlString;
#else
//using IHtmlString = Microsoft.AspNetCore.Html.IHtmlContent;
using HtmlString = Microsoft.AspNetCore.Html.HtmlString;
//using HtmlEncoder = System.Text.Encodings.Web.HtmlEncoder;
#endif
using ToSic.Razor.Internals;
using ToSic.Razor.Markup;

namespace ToSic.Razor.Blade
Expand All @@ -17,6 +11,6 @@ public partial class Tags
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static HtmlString SafeUrl(string url) => new HtmlString(TagBase.UriEncode(url));
public static RawHtmlString SafeUrl(string url) => new RawHtmlString(UriHelpers.UriEncode(url));
}
}
7 changes: 5 additions & 2 deletions Razor.Blade/Html5/GeneratedFormatting.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down
10 changes: 7 additions & 3 deletions Razor.Blade/Html5/GeneratedForms.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -792,7 +796,7 @@ private Input(Input original, CloneChanges changes) : base(original, changes) {
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Input object to enable fluid command chaining</returns>
public Input Src(string value) => this.Attr("src", UriEncode(value));
public Input Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down
10 changes: 7 additions & 3 deletions Razor.Blade/Html5/GeneratedFrames.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -99,7 +103,7 @@ private Iframe(Iframe original, CloneChanges changes) : base(original, changes)
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Iframe object to enable fluid command chaining</returns>
public Iframe Src(string value) => this.Attr("src", UriEncode(value));
public Iframe Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down
10 changes: 7 additions & 3 deletions Razor.Blade/Html5/GeneratedHead.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -59,7 +63,7 @@ private Base(Base original, CloneChanges changes) : base(original, changes) { }
/// <param name="value">what should be in href='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Base object to enable fluid command chaining</returns>
public Base Href(string value) => this.Attr("href", UriEncode(value));
public Base Href(string value) => this.Attr("href", UriHelpers.UriEncode(value));



Expand Down
14 changes: 9 additions & 5 deletions Razor.Blade/Html5/GeneratedImages.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -223,7 +227,7 @@ private Img(Img original, CloneChanges changes) : base(original, changes) { }
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Img object to enable fluid command chaining</returns>
public Img Src(string value) => this.Attr("src", UriEncode(value));
public Img Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand All @@ -235,7 +239,7 @@ private Img(Img original, CloneChanges changes) : base(original, changes) { }
/// <param name="value">what should be in srcset='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Img object to enable fluid command chaining</returns>
public Img Srcset(string value) => this.Attr("srcset", UriEncodeSrcSet(value), ",");
public Img Srcset(string value) => this.Attr("srcset", UriHelpers.UriEncodeSrcSet(value), ",");



Expand All @@ -247,7 +251,7 @@ private Img(Img original, CloneChanges changes) : base(original, changes) { }
/// <param name="name">image name</param>
/// <param name="multiplier">what the images is for - numbers below 8 are used for resolution densities, larger numbers for pixel widths</param>
/// <returns>a Img object to enable fluid command chaining</returns>
public Img Srcset(string name, int multiplier) => this.Attr("srcset", UriEncode(name) + " " + multiplier + (multiplier > 8 ? "w" : "x"), ",");
public Img Srcset(string name, int multiplier) => this.Attr("srcset", UriHelpers.UriEncode(name) + " " + multiplier + (multiplier > 8 ? "w" : "x"), ",");


/// <summary>
Expand Down
12 changes: 8 additions & 4 deletions Razor.Blade/Html5/GeneratedLinks.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -70,7 +74,7 @@ private A(A original, CloneChanges changes) : base(original, changes) { }
/// <param name="value">what should be in href='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a A object to enable fluid command chaining</returns>
public A Href(string value) => this.Attr("href", UriEncode(value));
public A Href(string value) => this.Attr("href", UriHelpers.UriEncode(value));



Expand Down Expand Up @@ -192,7 +196,7 @@ private Link(Link original, CloneChanges changes) : base(original, changes) { }
/// <param name="value">what should be in href='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Link object to enable fluid command chaining</returns>
public Link Href(string value) => this.Attr("href", UriEncode(value));
public Link Href(string value) => this.Attr("href", UriHelpers.UriEncode(value));



Expand Down
22 changes: 13 additions & 9 deletions Razor.Blade/Html5/GeneratedMedia.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -142,7 +146,7 @@ private Audio(Audio original, CloneChanges changes) : base(original, changes) {
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Audio object to enable fluid command chaining</returns>
public Audio Src(string value) => this.Attr("src", UriEncode(value));
public Audio Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down Expand Up @@ -187,7 +191,7 @@ private Source(Source original, CloneChanges changes) : base(original, changes)
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Source object to enable fluid command chaining</returns>
public Source Src(string value) => this.Attr("src", UriEncode(value));
public Source Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand All @@ -199,7 +203,7 @@ private Source(Source original, CloneChanges changes) : base(original, changes)
/// <param name="value">what should be in srcset='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Source object to enable fluid command chaining</returns>
public Source Srcset(string value) => this.Attr("srcset", UriEncodeSrcSet(value), ",");
public Source Srcset(string value) => this.Attr("srcset", UriHelpers.UriEncodeSrcSet(value), ",");



Expand All @@ -211,7 +215,7 @@ private Source(Source original, CloneChanges changes) : base(original, changes)
/// <param name="name">image name</param>
/// <param name="multiplier">what the images is for - numbers below 8 are used for resolution densities, larger numbers for pixel widths</param>
/// <returns>a Source object to enable fluid command chaining</returns>
public Source Srcset(string name, int multiplier) => this.Attr("srcset", UriEncode(name) + " " + multiplier + (multiplier > 8 ? "w" : "x"), ",");
public Source Srcset(string name, int multiplier) => this.Attr("srcset", UriHelpers.UriEncode(name) + " " + multiplier + (multiplier > 8 ? "w" : "x"), ",");


/// <summary>
Expand Down Expand Up @@ -327,7 +331,7 @@ private Track(Track original, CloneChanges changes) : base(original, changes) {
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Track object to enable fluid command chaining</returns>
public Track Src(string value) => this.Attr("src", UriEncode(value));
public Track Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down Expand Up @@ -473,7 +477,7 @@ private Video(Video original, CloneChanges changes) : base(original, changes) {
/// <param name="value">what should be in poster='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Video object to enable fluid command chaining</returns>
public Video Poster(string value) => this.Attr("poster", UriEncode(value));
public Video Poster(string value) => this.Attr("poster", UriHelpers.UriEncode(value));



Expand All @@ -496,7 +500,7 @@ private Video(Video original, CloneChanges changes) : base(original, changes) {
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Video object to enable fluid command chaining</returns>
public Video Src(string value) => this.Attr("src", UriEncode(value));
public Video Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down
14 changes: 9 additions & 5 deletions Razor.Blade/Html5/GeneratedScripts.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down Expand Up @@ -77,7 +81,7 @@ private Embed(Embed original, CloneChanges changes) : base(original, changes) {
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Embed object to enable fluid command chaining</returns>
public Embed Src(string value) => this.Attr("src", UriEncode(value));
public Embed Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down Expand Up @@ -184,7 +188,7 @@ private Object(Object original, CloneChanges changes) : base(original, changes)
/// <param name="value">what should be in data='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Object object to enable fluid command chaining</returns>
public Object Data(string value) => this.Attr("data", UriEncode(value));
public Object Data(string value) => this.Attr("data", UriHelpers.UriEncode(value));



Expand Down Expand Up @@ -411,7 +415,7 @@ private Script(Script original, CloneChanges changes) : base(original, changes)
/// <param name="value">what should be in src='...'.
/// If called multiple times, later values replace the previous value.</param>
/// <returns>a Script object to enable fluid command chaining</returns>
public Script Src(string value) => this.Attr("src", UriEncode(value));
public Script Src(string value) => this.Attr("src", UriHelpers.UriEncode(value));



Expand Down
8 changes: 6 additions & 2 deletions Razor.Blade/Html5/GeneratedSemantics.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using System;
using ToSic.Razor.Blade;
using ToSic.Razor.Html5;
using ToSic.Razor.Markup;

using ToSic.Razor.Internals;
using ToSic.Razor.Internals.Documentation;
// ****
// ****
// This is auto-generated code - don't modify
// Re-run the generation program to recreate
// Created 07.12.2022 00:28
// Created 09.12.2022 16:48
//
// Each tag and attributes of it prepare code, and they return an object of the same type again
// to allow fluid chaining of the commands
Expand Down
Loading

0 comments on commit 31a8086

Please sign in to comment.