|
| 1 | +using Microsoft.AspNetCore.Components; |
| 2 | +using System.Text; |
| 3 | + |
| 4 | +namespace Blazor.AdminLte |
| 5 | +{ |
| 6 | + public partial class Badge |
| 7 | + { |
| 8 | + [Parameter] |
| 9 | + public RenderFragment ChildContent { get; set; } |
| 10 | + } |
| 11 | + |
| 12 | + public static class badge |
| 13 | + { |
| 14 | + public static FluentBadge right { get { return new FluentBadge("badge","right"); } } |
| 15 | + |
| 16 | + public static FluentBadge _ { get { return new FluentBadge(""); } } |
| 17 | + public static FluentBadge @default { get { return new FluentBadge(" badge-default"); } } |
| 18 | + public static FluentBadge danger { get { return new FluentBadge(" badge-danger"); } } |
| 19 | + public static FluentBadge warning { get { return new FluentBadge(" badge-warning"); } } |
| 20 | + public static FluentBadge primary { get { return new FluentBadge(" badge-primary"); } } |
| 21 | + public static FluentBadge secondary { get { return new FluentBadge(" badge-secondary"); } } |
| 22 | + public static FluentBadge info { get { return new FluentBadge(" badge-info"); } } |
| 23 | + public static FluentBadge success { get { return new FluentBadge(" badge-success"); } } |
| 24 | + public static FluentBadge black { get { return new FluentBadge(" badge-black"); } } |
| 25 | + public static FluentBadge gray_dark { get { return new FluentBadge(" badge-gray-dark"); } } |
| 26 | + public static FluentBadge gray { get { return new FluentBadge(" badge-gray"); } } |
| 27 | + public static FluentBadge light { get { return new FluentBadge(" badge-light"); } } |
| 28 | + public static FluentBadge indigo { get { return new FluentBadge(" badge-indigo"); } } |
| 29 | + public static FluentBadge navy { get { return new FluentBadge(" badge-navy"); } } |
| 30 | + public static FluentBadge purple { get { return new FluentBadge(" badge-purple"); } } |
| 31 | + public static FluentBadge fuchsia { get { return new FluentBadge(" badge-fuchsia"); } } |
| 32 | + public static FluentBadge pink { get { return new FluentBadge(" badge-pink"); } } |
| 33 | + public static FluentBadge maroon { get { return new FluentBadge(" badge-maroon"); } } |
| 34 | + public static FluentBadge orange { get { return new FluentBadge(" badge-orange"); } } |
| 35 | + public static FluentBadge lime { get { return new FluentBadge(" badge-lime"); } } |
| 36 | + public static FluentBadge teal { get { return new FluentBadge(" badge-teal"); } } |
| 37 | + public static FluentBadge olive { get { return new FluentBadge(" badge-olive"); } } |
| 38 | + public static FluentBadge white { get { return new FluentBadge(" badge-white"); } } |
| 39 | + } |
| 40 | + |
| 41 | + public class FluentBadge : FluentClass |
| 42 | + { |
| 43 | + public FluentBadge(string s, string col = "badge") |
| 44 | + { |
| 45 | + this._class = new StringBuilder(); |
| 46 | + _class.Append(col + s); |
| 47 | + } |
| 48 | + |
| 49 | + public FluentBadge() |
| 50 | + { |
| 51 | + this._class = new StringBuilder(); |
| 52 | + _class.Append("col"); |
| 53 | + } |
| 54 | + public FluentBadge(FluentClass root) |
| 55 | + { |
| 56 | + this._class = root._class; |
| 57 | + |
| 58 | + } |
| 59 | + |
| 60 | + public FluentBadge _ { get { return new FluentBadge(""); } } |
| 61 | + public FluentBadge @default { get { return new FluentBadge(" badge-default"); } } |
| 62 | + public FluentBadge danger { get { return new FluentBadge(" badge-danger"); } } |
| 63 | + public FluentBadge warning { get { return new FluentBadge(" badge-warning"); } } |
| 64 | + public FluentBadge primary { get { return new FluentBadge(" badge-primary"); } } |
| 65 | + public FluentBadge secondary { get { return new FluentBadge(" badge-secondary"); } } |
| 66 | + public FluentBadge info { get { return new FluentBadge(" badge-info"); } } |
| 67 | + public FluentBadge success { get { return new FluentBadge(" badge-success"); } } |
| 68 | + public FluentBadge black { get { return new FluentBadge(" badge-black"); } } |
| 69 | + public FluentBadge gray_dark { get { return new FluentBadge(" badge-gray-dark"); } } |
| 70 | + public FluentBadge gray { get { return new FluentBadge(" badge-gray"); } } |
| 71 | + public FluentBadge light { get { return new FluentBadge(" badge-light"); } } |
| 72 | + public FluentBadge indigo { get { return new FluentBadge(" badge-indigo"); } } |
| 73 | + public FluentBadge navy { get { return new FluentBadge(" badge-navy"); } } |
| 74 | + public FluentBadge purple { get { return new FluentBadge(" badge-purple"); } } |
| 75 | + public FluentBadge fuchsia { get { return new FluentBadge(" badge-fuchsia"); } } |
| 76 | + public FluentBadge pink { get { return new FluentBadge(" badge-pink"); } } |
| 77 | + public FluentBadge maroon { get { return new FluentBadge(" badge-maroon"); } } |
| 78 | + public FluentBadge orange { get { return new FluentBadge(" badge-orange"); } } |
| 79 | + public FluentBadge lime { get { return new FluentBadge(" badge-lime"); } } |
| 80 | + public FluentBadge teal { get { return new FluentBadge(" badge-teal"); } } |
| 81 | + public FluentBadge olive { get { return new FluentBadge(" badge-olive"); } } |
| 82 | + public FluentBadge white { get { return new FluentBadge(" badge-white"); } } |
| 83 | + |
| 84 | + } |
| 85 | +} |
0 commit comments