diff --git a/components/icon/IconType.cs b/components/icon/IconType.cs new file mode 100644 index 00000000..faea25d0 --- /dev/null +++ b/components/icon/IconType.cs @@ -0,0 +1,813 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AntDesign +{ + public static class IconType + { + public static class Fill + { + public static string AccountBook => "account-book"; + public static string Alert => "alert"; + public static string AlipayCircle => "alipay-circle"; + public static string AlipaySquare => "alipay-square"; + public static string Aliwangwang => "aliwangwang"; + public static string AmazonCircle => "amazon-circle"; + public static string AmazonSquare => "amazon-square"; + public static string Android => "android"; + public static string Api => "api"; + public static string Apple => "apple"; + public static string Appstore => "appstore"; + public static string Audio => "audio"; + public static string Backward => "backward"; + public static string Bank => "bank"; + public static string BehanceCircle => "behance-circle"; + public static string BehanceSquare => "behance-square"; + public static string Bell => "bell"; + public static string Book => "book"; + public static string BoxPlot => "box-plot"; + public static string Bug => "bug"; + public static string Build => "build"; + public static string Bulb => "bulb"; + public static string Calculator => "calculator"; + public static string Calendar => "calendar"; + public static string Camera => "camera"; + public static string Car => "car"; + public static string CaretDown => "caret-down"; + public static string CaretLeft => "caret-left"; + public static string CaretRight => "caret-right"; + public static string CaretUp => "caret-up"; + public static string CarryOut => "carry-out"; + public static string CheckCircle => "check-circle"; + public static string CheckSquare => "check-square"; + public static string Chrome => "chrome"; + public static string CiCircle => "ci-circle"; + public static string ClockCircle => "clock-circle"; + public static string CloseCircle => "close-circle"; + public static string CloseSquare => "close-square"; + public static string Cloud => "cloud"; + public static string CodeSandboxCircle => "code-sandbox-circle"; + public static string CodeSandboxSquare => "code-sandbox-square"; + public static string Code => "code"; + public static string CodepenCircle => "codepen-circle"; + public static string CodepenSquare => "codepen-square"; + public static string Compass => "compass"; + public static string Contacts => "contacts"; + public static string Container => "container"; + public static string Control => "control"; + public static string Copy => "copy"; + public static string CopyrightCircle => "copyright-circle"; + public static string CreditCard => "credit-card"; + public static string Crown => "crown"; + public static string CustomerService => "customer-service"; + public static string Dashboard => "dashboard"; + public static string Database => "database"; + public static string Delete => "delete"; + public static string Diff => "diff"; + public static string DingtalkCircle => "dingtalk-circle"; + public static string DingtalkSquare => "dingtalk-square"; + public static string Dislike => "dislike"; + public static string DollarCircle => "dollar-circle"; + public static string DownCircle => "down-circle"; + public static string DownSquare => "down-square"; + public static string DribbbleCircle => "dribbble-circle"; + public static string DribbbleSquare => "dribbble-square"; + public static string DropboxCircle => "dropbox-circle"; + public static string DropboxSquare => "dropbox-square"; + public static string Edit => "edit"; + public static string Environment => "environment"; + public static string EuroCircle => "euro-circle"; + public static string ExclamationCircle => "exclamation-circle"; + public static string Experiment => "experiment"; + public static string EyeInvisible => "eye-invisible"; + public static string Eye => "eye"; + public static string Facebook => "facebook"; + public static string FastBackward => "fast-backward"; + public static string FastForward => "fast-forward"; + public static string FileAdd => "file-add"; + public static string FileExcel => "file-excel"; + public static string FileExclamation => "file-exclamation"; + public static string FileImage => "file-image"; + public static string FileMarkdown => "file-markdown"; + public static string FilePdf => "file-pdf"; + public static string FilePpt => "file-ppt"; + public static string FileText => "file-text"; + public static string FileUnknown => "file-unknown"; + public static string FileWord => "file-word"; + public static string FileZip => "file-zip"; + public static string File => "file"; + public static string Filter => "filter"; + public static string Fire => "fire"; + public static string Flag => "flag"; + public static string FolderAdd => "folder-add"; + public static string FolderOpen => "folder-open"; + public static string Folder => "folder"; + public static string FormatPainter => "format-painter"; + public static string Forward => "forward"; + public static string Frown => "frown"; + public static string Fund => "fund"; + public static string FunnelPlot => "funnel-plot"; + public static string Gift => "gift"; + public static string Github => "github"; + public static string Gitlab => "gitlab"; + public static string Gold => "gold"; + public static string Golden => "golden"; + public static string GoogleCircle => "google-circle"; + public static string GooglePlusCircle => "google-plus-circle"; + public static string GooglePlusSquare => "google-plus-square"; + public static string GoogleSquare => "google-square"; + public static string Hdd => "hdd"; + public static string Heart => "heart"; + public static string Highlight => "highlight"; + public static string Home => "home"; + public static string Hourglass => "hourglass"; + public static string Html5 => "html5"; + public static string Idcard => "idcard"; + public static string IeCircle => "ie-circle"; + public static string IeSquare => "ie-square"; + public static string InfoCircle => "info-circle"; + public static string Instagram => "instagram"; + public static string Insurance => "insurance"; + public static string Interaction => "interaction"; + public static string Layout => "layout"; + public static string LeftCircle => "left-circle"; + public static string LeftSquare => "left-square"; + public static string Like => "like"; + public static string Linkedin => "linkedin"; + public static string Lock => "lock"; + public static string MacCommand => "mac-command"; + public static string Mail => "mail"; + public static string MedicineBox => "medicine-box"; + public static string MediumCircle => "medium-circle"; + public static string MediumSquare => "medium-square"; + public static string Meh => "meh"; + public static string Message => "message"; + public static string MinusCircle => "minus-circle"; + public static string MinusSquare => "minus-square"; + public static string Mobile => "mobile"; + public static string MoneyCollect => "money-collect"; + public static string Notification => "notification"; + public static string PauseCircle => "pause-circle"; + public static string PayCircle => "pay-circle"; + public static string Phone => "phone"; + public static string Picture => "picture"; + public static string PieChart => "pie-chart"; + public static string PlayCircle => "play-circle"; + public static string PlaySquare => "play-square"; + public static string PlusCircle => "plus-circle"; + public static string PlusSquare => "plus-square"; + public static string PoundCircle => "pound-circle"; + public static string Printer => "printer"; + public static string Profile => "profile"; + public static string Project => "project"; + public static string PropertySafety => "property-safety"; + public static string Pushpin => "pushpin"; + public static string QqCircle => "qq-circle"; + public static string QqSquare => "qq-square"; + public static string QuestionCircle => "question-circle"; + public static string Read => "read"; + public static string Reconciliation => "reconciliation"; + public static string RedEnvelope => "red-envelope"; + public static string RedditCircle => "reddit-circle"; + public static string RedditSquare => "reddit-square"; + public static string Rest => "rest"; + public static string RightCircle => "right-circle"; + public static string RightSquare => "right-square"; + public static string Robot => "robot"; + public static string Rocket => "rocket"; + public static string SafetyCertificate => "safety-certificate"; + public static string Save => "save"; + public static string Schedule => "schedule"; + public static string SecurityScan => "security-scan"; + public static string Setting => "setting"; + public static string Shop => "shop"; + public static string Shopping => "shopping"; + public static string Signal => "signal"; + public static string SketchCircle => "sketch-circle"; + public static string SketchSquare => "sketch-square"; + public static string Skin => "skin"; + public static string Skype => "skype"; + public static string SlackCircle => "slack-circle"; + public static string SlackSquare => "slack-square"; + public static string Sliders => "sliders"; + public static string Smile => "smile"; + public static string Snippets => "snippets"; + public static string Sound => "sound"; + public static string Star => "star"; + public static string StepBackward => "step-backward"; + public static string StepForward => "step-forward"; + public static string Stop => "stop"; + public static string Switcher => "switcher"; + public static string Tablet => "tablet"; + public static string Tag => "tag"; + public static string Tags => "tags"; + public static string TaobaoCircle => "taobao-circle"; + public static string TaobaoSquare => "taobao-square"; + public static string Thunderbolt => "thunderbolt"; + public static string Tool => "tool"; + public static string TrademarkCircle => "trademark-circle"; + public static string Trophy => "trophy"; + public static string TwitterCircle => "twitter-circle"; + public static string TwitterSquare => "twitter-square"; + public static string Unlock => "unlock"; + public static string UpCircle => "up-circle"; + public static string UpSquare => "up-square"; + public static string Usb => "usb"; + public static string VideoCamera => "video-camera"; + public static string Wallet => "wallet"; + public static string Warning => "warning"; + public static string Wechat => "wechat"; + public static string WeiboCircle => "weibo-circle"; + public static string WeiboSquare => "weibo-square"; + public static string Windows => "windows"; + public static string Yahoo => "yahoo"; + public static string Youtube => "youtube"; + public static string Yuque => "yuque"; + public static string ZhihuCircle => "zhihu-circle"; + public static string ZhihuSquare => "zhihu-square"; + + } + + public static class Outline + { + public static string AccountBook => "account-book"; + public static string Aim => "aim"; + public static string Alert => "alert"; + public static string Alibaba => "alibaba"; + public static string AlignCenter => "align-center"; + public static string AlignLeft => "align-left"; + public static string AlignRight => "align-right"; + public static string AlipayCircle => "alipay-circle"; + public static string Alipay => "alipay"; + public static string Aliwangwang => "aliwangwang"; + public static string Aliyun => "aliyun"; + public static string Amazon => "amazon"; + public static string Android => "android"; + public static string AntCloud => "ant-cloud"; + public static string AntDesign => "ant-design"; + public static string Apartment => "apartment"; + public static string Api => "api"; + public static string Apple => "apple"; + public static string AppstoreAdd => "appstore-add"; + public static string Appstore => "appstore"; + public static string AreaChart => "area-chart"; + public static string ArrowDown => "arrow-down"; + public static string ArrowLeft => "arrow-left"; + public static string ArrowRight => "arrow-right"; + public static string ArrowUp => "arrow-up"; + public static string ArrowsAlt => "arrows-alt"; + public static string AudioMuted => "audio-muted"; + public static string Audio => "audio"; + public static string Audit => "audit"; + public static string Backward => "backward"; + public static string Bank => "bank"; + public static string BarChart => "bar-chart"; + public static string Barcode => "barcode"; + public static string Bars => "bars"; + public static string BehanceSquare => "behance-square"; + public static string Behance => "behance"; + public static string Bell => "bell"; + public static string BgColors => "bg-colors"; + public static string Block => "block"; + public static string Bold => "bold"; + public static string Book => "book"; + public static string BorderBottom => "border-bottom"; + public static string BorderHorizontal => "border-horizontal"; + public static string BorderInner => "border-inner"; + public static string BorderLeft => "border-left"; + public static string BorderOuter => "border-outer"; + public static string BorderRight => "border-right"; + public static string BorderTop => "border-top"; + public static string BorderVerticle => "border-verticle"; + public static string Border => "border"; + public static string BorderlessTable => "borderless-table"; + public static string BoxPlot => "box-plot"; + public static string Branches => "branches"; + public static string Bug => "bug"; + public static string Build => "build"; + public static string Bulb => "bulb"; + public static string Calculator => "calculator"; + public static string Calendar => "calendar"; + public static string Camera => "camera"; + public static string Car => "car"; + public static string CaretDown => "caret-down"; + public static string CaretLeft => "caret-left"; + public static string CaretRight => "caret-right"; + public static string CaretUp => "caret-up"; + public static string CarryOut => "carry-out"; + public static string CheckCircle => "check-circle"; + public static string CheckSquare => "check-square"; + public static string Check => "check"; + public static string Chrome => "chrome"; + public static string CiCircle => "ci-circle"; + public static string Ci => "ci"; + public static string Clear => "clear"; + public static string ClockCircle => "clock-circle"; + public static string CloseCircle => "close-circle"; + public static string CloseSquare => "close-square"; + public static string Close => "close"; + public static string CloudDownload => "cloud-download"; + public static string CloudServer => "cloud-server"; + public static string CloudSync => "cloud-sync"; + public static string CloudUpload => "cloud-upload"; + public static string Cloud => "cloud"; + public static string Cluster => "cluster"; + public static string CodeSandbox => "code-sandbox"; + public static string Code => "code"; + public static string CodepenCircle => "codepen-circle"; + public static string Codepen => "codepen"; + public static string Coffee => "coffee"; + public static string ColumnHeight => "column-height"; + public static string ColumnWidth => "column-width"; + public static string Comment => "comment"; + public static string Compass => "compass"; + public static string Compress => "compress"; + public static string ConsoleSql => "console-sql"; + public static string Contacts => "contacts"; + public static string Container => "container"; + public static string Control => "control"; + public static string Copy => "copy"; + public static string CopyrightCircle => "copyright-circle"; + public static string Copyright => "copyright"; + public static string CreditCard => "credit-card"; + public static string Crown => "crown"; + public static string CustomerService => "customer-service"; + public static string Dash => "dash"; + public static string Dashboard => "dashboard"; + public static string Database => "database"; + public static string DeleteColumn => "delete-column"; + public static string DeleteRow => "delete-row"; + public static string Delete => "delete"; + public static string DeliveredProcedure => "delivered-procedure"; + public static string DeploymentUnit => "deployment-unit"; + public static string Desktop => "desktop"; + public static string Diff => "diff"; + public static string Dingding => "dingding"; + public static string Dingtalk => "dingtalk"; + public static string Disconnect => "disconnect"; + public static string Dislike => "dislike"; + public static string DollarCircle => "dollar-circle"; + public static string Dollar => "dollar"; + public static string DotChart => "dot-chart"; + public static string DoubleLeft => "double-left"; + public static string DoubleRight => "double-right"; + public static string DownCircle => "down-circle"; + public static string DownSquare => "down-square"; + public static string Down => "down"; + public static string Download => "download"; + public static string Drag => "drag"; + public static string DribbbleSquare => "dribbble-square"; + public static string Dribbble => "dribbble"; + public static string Dropbox => "dropbox"; + public static string Edit => "edit"; + public static string Ellipsis => "ellipsis"; + public static string Enter => "enter"; + public static string Environment => "environment"; + public static string EuroCircle => "euro-circle"; + public static string Euro => "euro"; + public static string Exception => "exception"; + public static string ExclamationCircle => "exclamation-circle"; + public static string Exclamation => "exclamation"; + public static string ExpandAlt => "expand-alt"; + public static string Expand => "expand"; + public static string Experiment => "experiment"; + public static string Export => "export"; + public static string EyeInvisible => "eye-invisible"; + public static string Eye => "eye"; + public static string Facebook => "facebook"; + public static string Fall => "fall"; + public static string FastBackward => "fast-backward"; + public static string FastForward => "fast-forward"; + public static string FieldBinary => "field-binary"; + public static string FieldNumber => "field-number"; + public static string FieldString => "field-string"; + public static string FieldTime => "field-time"; + public static string FileAdd => "file-add"; + public static string FileDone => "file-done"; + public static string FileExcel => "file-excel"; + public static string FileExclamation => "file-exclamation"; + public static string FileGif => "file-gif"; + public static string FileImage => "file-image"; + public static string FileJpg => "file-jpg"; + public static string FileMarkdown => "file-markdown"; + public static string FilePdf => "file-pdf"; + public static string FilePpt => "file-ppt"; + public static string FileProtect => "file-protect"; + public static string FileSearch => "file-search"; + public static string FileSync => "file-sync"; + public static string FileText => "file-text"; + public static string FileUnknown => "file-unknown"; + public static string FileWord => "file-word"; + public static string FileZip => "file-zip"; + public static string File => "file"; + public static string Filter => "filter"; + public static string Fire => "fire"; + public static string Flag => "flag"; + public static string FolderAdd => "folder-add"; + public static string FolderOpen => "folder-open"; + public static string FolderView => "folder-view"; + public static string Folder => "folder"; + public static string FontColors => "font-colors"; + public static string FontSize => "font-size"; + public static string Fork => "fork"; + public static string Form => "form"; + public static string FormatPainter => "format-painter"; + public static string Forward => "forward"; + public static string Frown => "frown"; + public static string FullscreenExit => "fullscreen-exit"; + public static string Fullscreen => "fullscreen"; + public static string Function => "function"; + public static string FundProjectionScreen => "fund-projection-screen"; + public static string FundView => "fund-view"; + public static string Fund => "fund"; + public static string FunnelPlot => "funnel-plot"; + public static string Gateway => "gateway"; + public static string Gif => "gif"; + public static string Gift => "gift"; + public static string Github => "github"; + public static string Gitlab => "gitlab"; + public static string Global => "global"; + public static string Gold => "gold"; + public static string GooglePlus => "google-plus"; + public static string Google => "google"; + public static string Group => "group"; + public static string Hdd => "hdd"; + public static string Heart => "heart"; + public static string HeatMap => "heat-map"; + public static string Highlight => "highlight"; + public static string History => "history"; + public static string Home => "home"; + public static string Hourglass => "hourglass"; + public static string Html5 => "html5"; + public static string Idcard => "idcard"; + public static string Ie => "ie"; + public static string Import => "import"; + public static string Inbox => "inbox"; + public static string InfoCircle => "info-circle"; + public static string Info => "info"; + public static string InsertRowAbove => "insert-row-above"; + public static string InsertRowBelow => "insert-row-below"; + public static string InsertRowLeft => "insert-row-left"; + public static string InsertRowRight => "insert-row-right"; + public static string Instagram => "instagram"; + public static string Insurance => "insurance"; + public static string Interaction => "interaction"; + public static string IssuesClose => "issues-close"; + public static string Italic => "italic"; + public static string Key => "key"; + public static string Laptop => "laptop"; + public static string Layout => "layout"; + public static string LeftCircle => "left-circle"; + public static string LeftSquare => "left-square"; + public static string Left => "left"; + public static string Like => "like"; + public static string LineChart => "line-chart"; + public static string LineHeight => "line-height"; + public static string Line => "line"; + public static string Link => "link"; + public static string Linkedin => "linkedin"; + public static string Loading3Quarters =>"loading-3-quarters"; + public static string Loading => "loading"; + public static string Lock => "lock"; + public static string Login => "login"; + public static string Logout => "logout"; + public static string MacCommand => "mac-command"; + public static string Mail => "mail"; + public static string Man => "man"; + public static string MedicineBox => "medicine-box"; + public static string MediumWorkmark => "medium-workmark"; + public static string Medium => "medium"; + public static string Meh => "meh"; + public static string MenuFold => "menu-fold"; + public static string MenuUnfold => "menu-unfold"; + public static string Menu => "menu"; + public static string MergeCells => "merge-cells"; + public static string Message => "message"; + public static string MinusCircle => "minus-circle"; + public static string MinusSquare => "minus-square"; + public static string Minus => "minus"; + public static string Mobile => "mobile"; + public static string MoneyCollect => "money-collect"; + public static string Monitor => "monitor"; + public static string More => "more"; + public static string NodeCollapse => "node-collapse"; + public static string NodeExpand => "node-expand"; + public static string NodeIndex => "node-index"; + public static string Notification => "notification"; + public static string Number => "number"; + public static string OneToOne => "one-to-one"; + public static string OrderedList => "ordered-list"; + public static string PaperClip => "paper-clip"; + public static string Partition => "partition"; + public static string PauseCircle => "pause-circle"; + public static string Pause => "pause"; + public static string PayCircle => "pay-circle"; + public static string Percentage => "percentage"; + public static string Phone => "phone"; + public static string PicCenter => "pic-center"; + public static string PicLeft => "pic-left"; + public static string PicRight => "pic-right"; + public static string Picture => "picture"; + public static string PieChart => "pie-chart"; + public static string PlayCircle => "play-circle"; + public static string PlaySquare => "play-square"; + public static string PlusCircle => "plus-circle"; + public static string PlusSquare => "plus-square"; + public static string Plus => "plus"; + public static string PoundCircle => "pound-circle"; + public static string Pound => "pound"; + public static string Poweroff => "poweroff"; + public static string Printer => "printer"; + public static string Profile => "profile"; + public static string Project => "project"; + public static string PropertySafety => "property-safety"; + public static string PullRequest => "pull-request"; + public static string Pushpin => "pushpin"; + public static string Qq => "qq"; + public static string Qrcode => "qrcode"; + public static string QuestionCircle => "question-circle"; + public static string Question => "question"; + public static string RadarChart => "radar-chart"; + public static string RadiusBottomleft => "radius-bottomleft"; + public static string RadiusBottomright => "radius-bottomright"; + public static string RadiusSetting => "radius-setting"; + public static string RadiusUpleft => "radius-upleft"; + public static string RadiusUpright => "radius-upright"; + public static string Read => "read"; + public static string Reconciliation => "reconciliation"; + public static string RedEnvelope => "red-envelope"; + public static string Reddit => "reddit"; + public static string Redo => "redo"; + public static string Reload => "reload"; + public static string Rest => "rest"; + public static string Retweet => "retweet"; + public static string RightCircle => "right-circle"; + public static string RightSquare => "right-square"; + public static string Right => "right"; + public static string Rise => "rise"; + public static string Robot => "robot"; + public static string Rocket => "rocket"; + public static string Rollback => "rollback"; + public static string RotateLeft => "rotate-left"; + public static string RotateRight => "rotate-right"; + public static string SafetyCertificate => "safety-certificate"; + public static string Safety => "safety"; + public static string Save => "save"; + public static string Scan => "scan"; + public static string Schedule => "schedule"; + public static string Scissor => "scissor"; + public static string Search => "search"; + public static string SecurityScan => "security-scan"; + public static string Select => "select"; + public static string Send => "send"; + public static string Setting => "setting"; + public static string Shake => "shake"; + public static string ShareAlt => "share-alt"; + public static string Shop => "shop"; + public static string ShoppingCart => "shopping-cart"; + public static string Shopping => "shopping"; + public static string Shrink => "shrink"; + public static string Sisternode => "sisternode"; + public static string Sketch => "sketch"; + public static string Skin => "skin"; + public static string Skype => "skype"; + public static string SlackSquare => "slack-square"; + public static string Slack => "slack"; + public static string Sliders => "sliders"; + public static string SmallDash => "small-dash"; + public static string Smile => "smile"; + public static string Snippets => "snippets"; + public static string Solution => "solution"; + public static string SortAscending => "sort-ascending"; + public static string SortDescending => "sort-descending"; + public static string Sound => "sound"; + public static string SplitCells => "split-cells"; + public static string Star => "star"; + public static string StepBackward => "step-backward"; + public static string StepForward => "step-forward"; + public static string Stock => "stock"; + public static string Stop => "stop"; + public static string Strikethrough => "strikethrough"; + public static string Subnode => "subnode"; + public static string SwapLeft => "swap-left"; + public static string SwapRight => "swap-right"; + public static string Swap => "swap"; + public static string Switcher => "switcher"; + public static string Sync => "sync"; + public static string Table => "table"; + public static string Tablet => "tablet"; + public static string Tag => "tag"; + public static string Tags => "tags"; + public static string TaobaoCircle => "taobao-circle"; + public static string Taobao => "taobao"; + public static string Team => "team"; + public static string Thunderbolt => "thunderbolt"; + public static string ToTop => "to-top"; + public static string Tool => "tool"; + public static string TrademarkCircle => "trademark-circle"; + public static string Trademark => "trademark"; + public static string Transaction => "transaction"; + public static string Translation => "translation"; + public static string Trophy => "trophy"; + public static string Twitter => "twitter"; + public static string Underline => "underline"; + public static string Undo => "undo"; + public static string Ungroup => "ungroup"; + public static string Unlock => "unlock"; + public static string UnorderedList => "unordered-list"; + public static string UpCircle => "up-circle"; + public static string UpSquare => "up-square"; + public static string Up => "up"; + public static string Upload => "upload"; + public static string Usb => "usb"; + public static string UserAdd => "user-add"; + public static string UserDelete => "user-delete"; + public static string UserSwitch => "user-switch"; + public static string User => "user"; + public static string UsergroupAdd => "usergroup-add"; + public static string UsergroupDelete => "usergroup-delete"; + public static string Verified => "verified"; + public static string VerticalAlignBottom => "vertical-align-bottom"; + public static string VerticalAlignMiddle => "vertical-align-middle"; + public static string VerticalAlignTop => "vertical-align-top"; + public static string VerticalLeft => "vertical-left"; + public static string VerticalRight => "vertical-right"; + public static string VideoCameraAdd => "video-camera-add"; + public static string VideoCamera => "video-camera"; + public static string Wallet => "wallet"; + public static string Warning => "warning"; + public static string Wechat => "wechat"; + public static string WeiboCircle => "weibo-circle"; + public static string WeiboSquare => "weibo-square"; + public static string Weibo => "weibo"; + public static string WhatsApp => "whats-app"; + public static string Wifi => "wifi"; + public static string Windows => "windows"; + public static string Woman => "woman"; + public static string Yahoo => "yahoo"; + public static string Youtube => "youtube"; + public static string Yuque => "yuque"; + public static string Zhihu => "zhihu"; + public static string ZoomIn => "zoom-in"; + + } + + public static class TwoTone + { + public static string AccountBook => "account-book"; + public static string Alert => "alert"; + public static string Api => "api"; + public static string Appstore => "appstore"; + public static string Audio => "audio"; + public static string Bank => "bank"; + public static string Bell => "bell"; + public static string Book => "book"; + public static string BoxPlot => "box-plot"; + public static string Bug => "bug"; + public static string Build => "build"; + public static string Bulb => "bulb"; + public static string Calculator => "calculator"; + public static string Calendar => "calendar"; + public static string Camera => "camera"; + public static string Car => "car"; + public static string CarryOut => "carry-out"; + public static string CheckCircle => "check-circle"; + public static string CheckSquare => "check-square"; + public static string CiCircle => "ci-circle"; + public static string Ci => "ci"; + public static string ClockCircle => "clock-circle"; + public static string CloseCircle => "close-circle"; + public static string CloseSquare => "close-square"; + public static string Cloud => "cloud"; + public static string Code => "code"; + public static string Compass => "compass"; + public static string Contacts => "contacts"; + public static string Container => "container"; + public static string Control => "control"; + public static string Copy => "copy"; + public static string CopyrightCircle => "copyright-circle"; + public static string Copyright => "copyright"; + public static string CreditCard => "credit-card"; + public static string Crown => "crown"; + public static string CustomerService => "customer-service"; + public static string Dashboard => "dashboard"; + public static string Database => "database"; + public static string Delete => "delete"; + public static string Diff => "diff"; + public static string Dislike => "dislike"; + public static string DollarCircle => "dollar-circle"; + public static string Dollar => "dollar"; + public static string DownCircle => "down-circle"; + public static string DownSquare => "down-square"; + public static string Edit => "edit"; + public static string Environment => "environment"; + public static string EuroCircle => "euro-circle"; + public static string Euro => "euro"; + public static string ExclamationCircle => "exclamation-circle"; + public static string Experiment => "experiment"; + public static string EyeInvisible => "eye-invisible"; + public static string Eye => "eye"; + public static string FileAdd => "file-add"; + public static string FileExcel => "file-excel"; + public static string FileExclamation => "file-exclamation"; + public static string FileImage => "file-image"; + public static string FileMarkdown => "file-markdown"; + public static string FilePdf => "file-pdf"; + public static string FilePpt => "file-ppt"; + public static string FileText => "file-text"; + public static string FileUnknown => "file-unknown"; + public static string FileWord => "file-word"; + public static string FileZip => "file-zip"; + public static string File => "file"; + public static string Filter => "filter"; + public static string Fire => "fire"; + public static string Flag => "flag"; + public static string FolderAdd => "folder-add"; + public static string FolderOpen => "folder-open"; + public static string Folder => "folder"; + public static string Frown => "frown"; + public static string Fund => "fund"; + public static string FunnelPlot => "funnel-plot"; + public static string Gift => "gift"; + public static string Gold => "gold"; + public static string Hdd => "hdd"; + public static string Heart => "heart"; + public static string Highlight => "highlight"; + public static string Home => "home"; + public static string Hourglass => "hourglass"; + public static string Html5 => "html5"; + public static string Idcard => "idcard"; + public static string InfoCircle => "info-circle"; + public static string Insurance => "insurance"; + public static string Interaction => "interaction"; + public static string Layout => "layout"; + public static string LeftCircle => "left-circle"; + public static string LeftSquare => "left-square"; + public static string Like => "like"; + public static string Lock => "lock"; + public static string Mail => "mail"; + public static string MedicineBox => "medicine-box"; + public static string Meh => "meh"; + public static string Message => "message"; + public static string MinusCircle => "minus-circle"; + public static string MinusSquare => "minus-square"; + public static string Mobile => "mobile"; + public static string MoneyCollect => "money-collect"; + public static string Notification => "notification"; + public static string PauseCircle => "pause-circle"; + public static string Phone => "phone"; + public static string Picture => "picture"; + public static string PieChart => "pie-chart"; + public static string PlayCircle => "play-circle"; + public static string PlaySquare => "play-square"; + public static string PlusCircle => "plus-circle"; + public static string PlusSquare => "plus-square"; + public static string PoundCircle => "pound-circle"; + public static string Printer => "printer"; + public static string Profile => "profile"; + public static string Project => "project"; + public static string PropertySafety => "property-safety"; + public static string Pushpin => "pushpin"; + public static string QuestionCircle => "question-circle"; + public static string Reconciliation => "reconciliation"; + public static string RedEnvelope => "red-envelope"; + public static string Rest => "rest"; + public static string RightCircle => "right-circle"; + public static string RightSquare => "right-square"; + public static string Rocket => "rocket"; + public static string SafetyCertificate => "safety-certificate"; + public static string Save => "save"; + public static string Schedule => "schedule"; + public static string SecurityScan => "security-scan"; + public static string Setting => "setting"; + public static string Shop => "shop"; + public static string Shopping => "shopping"; + public static string Skin => "skin"; + public static string Sliders => "sliders"; + public static string Smile => "smile"; + public static string Snippets => "snippets"; + public static string Sound => "sound"; + public static string Star => "star"; + public static string Stop => "stop"; + public static string Switcher => "switcher"; + public static string Tablet => "tablet"; + public static string Tag => "tag"; + public static string Tags => "tags"; + public static string Thunderbolt => "thunderbolt"; + public static string Tool => "tool"; + public static string TrademarkCircle => "trademark-circle"; + public static string Trophy => "trophy"; + public static string Unlock => "unlock"; + public static string UpCircle => "up-circle"; + public static string UpSquare => "up-square"; + public static string Usb => "usb"; + public static string VideoCamera => "video-camera"; + public static string Wallet => "wallet"; + public static string Warning => "warning"; + + } + } +} diff --git a/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs b/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs new file mode 100644 index 00000000..0696b7b3 --- /dev/null +++ b/site/AntDesign.Docs.Build.CLI/Utils/StaticClassGenerator.cs @@ -0,0 +1,116 @@ +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text.RegularExpressions; + +namespace AntDesign.Docs.Build.CLI.Utils +{ + /// + /// Creates convenience static classes that can be used as enums + /// Example: Icon component needs a string as its Type. + /// This creates a static class that can be used as `IconType.Fill.AccountBook` + /// Wich produces the string "account-book" + /// + internal static class StaticClassGenerator + { + private const string OpenBracket = "{\n"; + private const string CloseBracket = "}\n"; + private const string Warning = "//This is a generated file. Any changes to it will be discarded in the next run\n"; + private const string NameSpace = "namespace AntDesign"; + + //IconType specific + private const string IconTypeFileName = "IconType.cs"; + + private const string IconTypeClassName = "IconType"; + + //Generates the static class IconType.cs + internal static void GenerateIconTypeFile(string path) + { + var fileContent = GetIconTypeStaticClassString(); + GenerateFile(fileContent, path, IconTypeFileName); + } + + //Gets the text of the static class IconType + //This class has 3 classes, one for each theme Fill, Outline, Twotone + internal static string GetIconTypeStaticClassString() + { + //creates one string representating a c# class by icon theme + var iconsByTheme = new string[0]; //IconStore.GetAllIconNames() .Select(item => GetClassString(item.Key, item.Value)); + + //all icons classes joined + var iconsByThemeAggregated = iconsByTheme.Aggregate((a, b) => a + b); + + var result = NameSpace + + OpenBracket + + $"public static class {IconTypeClassName}\n" + + OpenBracket + + $"{iconsByThemeAggregated}" + + CloseBracket + + CloseBracket; + + //Add warning on top + return Warning + result; + } + + //Gets the aggregated text for the given properties collection + //produces `public static string PropertyName => "property-name";` for each property + //and then concatenate in a string + internal static string GetPropertiesString(IEnumerable values) + { + var properties = values + .Select(v => GetLine(2, $"public static string {ToCamelCase(v)} => \"{v}\";")) + .Aggregate((a, b) => a + b); + + return properties; + } + + //Gets the content for a static class with the given collection of static string properties + internal static string GetClassString(string className, IEnumerable properties) + { + var classString = GetLine(1, $"public static class {ToCamelCase(className)}") + + GetLine(1, OpenBracket) + + GetPropertiesString(properties) + + GetLine(1, CloseBracket); + + return classString; + } + + //produces a line of text with identation and new line at the end + private static string GetLine(int indentation, string text) + { + return $"{Indentation(indentation)}{text}\n"; + } + + //converts a string to CamelCase + //ex.: home-page =>HomePage + private static string ToCamelCase(string word) + { + if (string.IsNullOrEmpty(word)) return word; + + var result = Regex.Replace(word.ToLowerInvariant() + , @"\b[a-z]" + , m => m.Value.ToUpperInvariant()) + .Replace("-", ""); + + return result; + } + + //Creates `n` indent characters + private static string Indentation(int level = 1, int indentCharsPerLevel = 4, string indentChar = " ") + { + var indentation = ""; + for (var i = 0; i < level * indentCharsPerLevel; i++) + { + indentation += indentChar; + } + return indentation; + } + + //Creates a file with the given text, path and fileName + internal static void GenerateFile(string text, string path, string fileName) + { + using var outputFile = new StreamWriter(Path.Combine(path, fileName)); + outputFile.WriteLine(text); + } + } +}