Skip to content

Commit ad6f782

Browse files
authored
doc(Coms): remove Coms page (dotnetcore#6349)
* doc: 移除组件总览页面 * doc: 移除相关组件图片 * refactor: 快速上手增加组件总数信息 * doc: 移除组件菜单 * doc: 全屏按钮 Tooltip 增加本地化 * doc: 更改布局模拟器返回链接
1 parent 1dd1e19 commit ad6f782

File tree

128 files changed

+138
-1573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+138
-1573
lines changed

src/BootstrapBlazor.Server/Components/Components/Header.razor

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,9 @@
1414
<li class="nav-item">
1515
<a class="nav-link" href="introduction">@IntroductionText</a>
1616
</li>
17-
<li class="nav-item">
18-
<a class="nav-link" href="components">@ComponentsText</a>
19-
</li>
2017
<li class="nav-item">
2118
<a class="nav-link" href="tutorials">@TutorialsText</a>
2219
</li>
23-
@* @if (CultureInfo.CurrentUICulture.Name == "zh-CN")
24-
{
25-
<li class="nav-item">
26-
<a class="nav-link" href="https://theme.blazor.zone">主题</a>
27-
</li>
28-
} *@
2920
</ul>
3021
</div>
3122
<div class="d-flex flex-fill"></div>
@@ -43,7 +34,7 @@
4334
</a>
4435
</li>
4536
<li class="nav-item">
46-
<FullScreenButton class="nav-link p-2" TooltipText="点击切换全屏模式" />
37+
<FullScreenButton class="nav-link p-2" TooltipText="@Localizer["FullScreenTooltipText"]" />
4738
</li>
4839
</ul>
4940
<a class="btn btn-bd-download d-none d-lg-block mb-3 mb-md-0 ms-md-3" target="_blank" href="@DownloadUrl">@DownloadText</a>

src/BootstrapBlazor.Server/Components/Components/Header.razor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ public partial class Header
3030
[NotNull]
3131
private string? IntroductionText { get; set; }
3232

33-
[NotNull]
34-
private string? ComponentsText { get; set; }
35-
3633
[NotNull]
3734
private string? DownloadText { get; set; }
3835

@@ -53,7 +50,6 @@ protected override void OnInitialized()
5350
DownloadText ??= Localizer[nameof(DownloadText)];
5451
HomeText ??= Localizer[nameof(HomeText)];
5552
IntroductionText ??= Localizer[nameof(IntroductionText)];
56-
ComponentsText ??= Localizer[nameof(ComponentsText)];
5753
TutorialsText ??= Localizer[nameof(TutorialsText)];
5854
_versionString = $"v{PackageVersionService.Version}";
5955
}

src/BootstrapBlazor.Server/Components/Layout/PageLayout.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
</HeadContent>
77

88
<CascadingValue Value="this" IsFixed="true">
9-
<Layout IsPage="true" IsFullSide="@IsFullSide" IsFixedHeader="@IsFixedHeader" IsFixedFooter="@IsFixedFooter" IsFixedTabHeader="IsFixedTabHeader"
9+
<Layout IsPage="true" IsFullSide="@IsFullSide" IsFixedHeader="@IsFixedHeader"
10+
IsFixedFooter="@IsFixedFooter" IsFixedTabHeader="IsFixedTabHeader"
1011
ShowFooter="@ShowFooter" ShowGotoTop="true" ShowCollapseBar="true" Menus="@Menus"
11-
UseTabSet="@UseTabSet" TabDefaultUrl="layout-page" AdditionalAssemblies="new[] { GetType().Assembly }" class="@LayoutClassString">
12+
UseTabSet="@UseTabSet" TabDefaultUrl="layout-page" AdditionalAssemblies="new[] { GetType().Assembly }"
13+
class="@LayoutClassString">
1214
<Header>
1315
<span class="ms-3 flex-fill">Bootstrap of Blazor</span>
1416
<Widget></Widget>

src/BootstrapBlazor.Server/Components/Layout/PageLayout.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override async Task OnInitializedAsync()
6161

6262
Menus = new List<MenuItem>
6363
{
64-
new() { Text = "返回组件库", Icon = "fa-fw fa-solid fa-house", Url = "components" },
64+
new() { Text = "返回文档", Icon = "fa-fw fa-solid fa-house", Url = "introduction" },
6565
new() { Text = "后台模拟器", Icon = "fa-fw fa-solid fa-desktop", Url = "layout-page" },
6666
new() { Text = "示例网页", Icon = "fa-fw fa-solid fa-laptop", Url = "layout-demo/text=Parameter1" }
6767
};

src/BootstrapBlazor.Server/Components/Pages/Coms.razor

Lines changed: 122 additions & 159 deletions
Large diffs are not rendered by default.

src/BootstrapBlazor.Server/Extensions/MenusLocalizerExtensions.cs

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@ public static List<MenuItem> GenerateMenus(this IStringLocalizer<NavMenu> Locali
1313
{
1414
var menus = new List<MenuItem>();
1515

16-
// 快速入门
1716
var item = new DemoMenuItem()
18-
{
19-
Text = Localizer["GetStarted"],
20-
Icon = "fa-solid fa-fw fa-font-awesome"
21-
};
22-
AddQuickStar(item);
23-
24-
item = new DemoMenuItem()
2517
{
2618
Text = Localizer["LayoutComponents"],
2719
Icon = "fa-fw fa-solid fa-desktop"
@@ -124,16 +116,15 @@ public static List<MenuItem> GenerateMenus(this IStringLocalizer<NavMenu> Locali
124116
Text = Localizer["Utility"],
125117
Icon = "fa-fw fa-solid fa-code"
126118
};
127-
128119
AddBootstrapBlazorUtility(item);
129120

121+
// 快速入门
130122
item = new DemoMenuItem()
131123
{
132-
Text = Localizer["Components"],
133-
Icon = "fa-fw fa-solid fa-heart fa-beat icon-summary",
134-
Url = "components"
124+
Text = Localizer["GetStarted"],
125+
Icon = "fa-solid fa-fw fa-font-awesome"
135126
};
136-
AddSummary(item);
127+
AddQuickStar(item);
137128

138129
return menus;
139130

@@ -319,7 +310,7 @@ void AddQuickStar(DemoMenuItem item)
319310
Url = "layout-page"
320311
}
321312
};
322-
AddBadge(item, count: 0);
313+
AddSummary(item);
323314
}
324315

325316
void AddForm(DemoMenuItem item)
@@ -1698,7 +1689,7 @@ void AddSummary(DemoMenuItem item)
16981689
var count = 0;
16991690
count = menus.OfType<DemoMenuItem>().Sum(i => i.Count);
17001691
AddBadge(item, false, count);
1701-
menus.Insert(1, item);
1692+
menus.Insert(0, item);
17021693
}
17031694

17041695
void AddBadge(DemoMenuItem item, bool append = true, int? count = null)

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 2 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,137 +1535,6 @@
15351535
"SkeletonsTreeTitle": "Tree skeleton",
15361536
"SkeletonsTreeIntro": "Display when tree component is loaded"
15371537
},
1538-
"BootstrapBlazor.Server.Components.Pages.Coms": {
1539-
"Search": "Search for the desired component",
1540-
"Text1": "Layout",
1541-
"DividerText": "Divider",
1542-
"LayoutText": "Layout",
1543-
"FooterText": "Footer",
1544-
"RowText": "Row",
1545-
"ScrollText": "Scroll",
1546-
"SkeletonText": "Skeleton",
1547-
"SplitText": "Split",
1548-
"Text2": "Navigation",
1549-
"AnchorText": "Anchor",
1550-
"AnchorLinkText": "AnchorLink",
1551-
"BreadcrumbText": "Breadcrumb",
1552-
"MenuText": "Menu",
1553-
"NavText": "Nav",
1554-
"DropdownText": "Dropdown",
1555-
"FullScreenText": "FullScreen",
1556-
"GoTopText": "GoTop",
1557-
"LogoutText": "Logout",
1558-
"PaginationText": "Pagination",
1559-
"StepsText": "Step",
1560-
"TabText": "Tab",
1561-
"Text3": "Form",
1562-
"EditorFormText": "EditorForm",
1563-
"ValidateFormText": "ValidateForm",
1564-
"AutoCompleteText": "AutoComplete",
1565-
"AutoFillText": "AutoFill",
1566-
"ButtonText": "Button",
1567-
"CascaderText": "CascadingSelection",
1568-
"CheckboxText": "Checkbox",
1569-
"CheckboxListText": "CheckboxList",
1570-
"ColorPickerText": "ColorPicker",
1571-
"DateTimePickerText": "DateTimePicker",
1572-
"DateTimeRangeText": "DateTimeRange",
1573-
"EditorText": "Editor",
1574-
"InputText": "Input",
1575-
"InputNumberText": "InputNumber",
1576-
"InputGroupText": "InputGroup",
1577-
"MarkdownText": "Markdown",
1578-
"FloatingLabelText": "FloatingLabel",
1579-
"RadioText": "Radio",
1580-
"RateText": "Rate",
1581-
"SelectText": "Select",
1582-
"MultiSelectText": "MultiSelect",
1583-
"SliderText": "Slider",
1584-
"SwitchText": "Switch",
1585-
"TextareaText": "Textarea",
1586-
"ToggleText": "Toggle",
1587-
"TransferText": "Transfer",
1588-
"UploadText": "Upload",
1589-
"Text4": "Data",
1590-
"AvatarText": "Avatar",
1591-
"BadgeText": "Badge",
1592-
"CardText": "Card",
1593-
"CalendarText": "Calendar",
1594-
"CaptchaText": "Captcha",
1595-
"CarouselText": "Carousel",
1596-
"CircleText": "Circle",
1597-
"ClientText": "Client",
1598-
"DisplayText": "Display",
1599-
"EmptyText": "Empty",
1600-
"LocatorText": "IpLocator",
1601-
"ImageViewerText": "ImageViewer",
1602-
"IpText": "IpAddress",
1603-
"PrintText": "Print",
1604-
"TitleText": "Title",
1605-
"DownloadText": "Download",
1606-
"TransitionText": "Transition",
1607-
"CollapseText": "Collapse",
1608-
"DropdownWidgetText": "DropdownWidget",
1609-
"GroupBoxText": "GroupBox",
1610-
"LinkButtonText": "LinkButton",
1611-
"ListViewText": "ListView",
1612-
"PopoverText": "Popover",
1613-
"QRCodeText": "QRCode",
1614-
"SearchText": "Search",
1615-
"RecognizerText": "Recognizer",
1616-
"SpeechWaveText": "SpeechWave",
1617-
"SwitchButtonText": "Switch Button",
1618-
"TableText": "Table",
1619-
"TagText": "Tag",
1620-
"TimelineText": "Timeline",
1621-
"TooltipText": "Tooltip",
1622-
"TreeViewText": "TreeView",
1623-
"BarcodeReaderText": "BarcodeReader",
1624-
"BlockText": "Block",
1625-
"CameraText": "Camera",
1626-
"HandwrittenPageText": "Handwritten",
1627-
"Text5": "Notification",
1628-
"AlertText": "Alert",
1629-
"ConsoleText": "Console",
1630-
"DialogText": "Dialog",
1631-
"DrawerText": "Drawer",
1632-
"EditDialogText": "EditDialog",
1633-
"MessageText": "Message",
1634-
"ModalText": "Modal",
1635-
"LightText": "Light",
1636-
"PopoverConfirmText": "PopConfirm",
1637-
"ProgressText": "Progress",
1638-
"ReconnectorText": "Reconnector",
1639-
"ResponsiveText": "Responsive",
1640-
"SpinnerText": "Spinner",
1641-
"SweetAlertText": "SweetAlert",
1642-
"SearchDialogText": "SearchDialog",
1643-
"ToastText": "Toast",
1644-
"TimerText": "Timer",
1645-
"Text6": "Chart",
1646-
"ChartText": "Chart",
1647-
"ChartSummaryText": "Summary",
1648-
"ChartLineText": "Line",
1649-
"ChartBarText": "Bar",
1650-
"ChartPieText": "Pie",
1651-
"ChartDoughnutText": "Doughnut",
1652-
"ChartBubbleText": "Bubble",
1653-
"DispatchText": "Dispatch",
1654-
"GeolocationText": "Geolocation",
1655-
"OnScreenKeyboardText": "OnScreenKeyboard",
1656-
"NotificationsText": "Notification",
1657-
"SignaturePadText": "SignaturePad",
1658-
"BluetoothText": "Bluetooth Service",
1659-
"PdfReaderText": "PDF Reader",
1660-
"VideoPlayerText": "VideoPlayer",
1661-
"FileViewerText": "FileViewer",
1662-
"WebSerialText": "SerialService",
1663-
"MindMapText": "MindMap",
1664-
"MermaidText": "Mermaid",
1665-
"WebSpeechText": "WebSpeech",
1666-
"ImageCropperText": "ImageCropper",
1667-
"BarcodeGeneratorText": "BarcodeGenerator"
1668-
},
16691538
"BootstrapBlazor.Server.Components.Pages.Breakpoints": {
16701539
"Heading": "Breakpoints",
16711540
"Heading1": "Breakpoints are customizable widths that determine how responsive layouts behave in Bootstrap across devices or viewport sizes",
@@ -4633,9 +4502,9 @@
46334502
"BootstrapBlazor.Server.Components.Components.Header": {
46344503
"DownloadText": "Download",
46354504
"HomeText": "Home",
4636-
"ComponentsText": "Components",
46374505
"IntroductionText": "Documents",
4638-
"TutorialsText": "Tutorials"
4506+
"TutorialsText": "Tutorials",
4507+
"FullScreenTooltipText": "Full Screen"
46394508
},
46404509
"BootstrapBlazor.Server.Components.Layout.BaseLayout": {
46414510
"SiteTitle": "Bootstrap Blazor enterprise-level UI component library",

0 commit comments

Comments
 (0)