This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
@using System.Reflection
|
@using System.Reflection
|
||||||
<Bar Padding="Padding.Is1" Background="Background.Dark">
|
<Bar Padding="Padding.Is1" Background="Background.Default">
|
||||||
<Heading TextAlignment="TextAlignment.Center" Width="Width.Is100" TextColor="TextColor.White" Size="HeadingSize.Is6">@($"{Assembly.GetExecutingAssembly().GetName().Name} v{Assembly.GetExecutingAssembly().GetName().Version}")</Heading>
|
<Heading TextAlignment="TextAlignment.Center" Width="Width.Is100" TextColor="TextColor.White" Size="HeadingSize.Is6">@($"{Assembly.GetExecutingAssembly().GetName().Name} v{Assembly.GetExecutingAssembly().GetName().Version}")</Heading>
|
||||||
</Bar>
|
</Bar>
|
||||||
@@ -14,17 +14,17 @@
|
|||||||
<BarItem>
|
<BarItem>
|
||||||
<BarLink To="/">
|
<BarLink To="/">
|
||||||
<BarIcon IconName="IconName.Dashboard" />
|
<BarIcon IconName="IconName.Dashboard" />
|
||||||
Dashboard
|
Дашборд
|
||||||
</BarLink>
|
</BarLink>
|
||||||
</BarItem>
|
</BarItem>
|
||||||
<BarItem>
|
<BarItem>
|
||||||
<BarDropdown @bind-Visible="pagesBarVisible">
|
<BarDropdown @bind-Visible="pagesBarVisible">
|
||||||
<BarDropdownToggle>
|
<BarDropdownToggle>
|
||||||
<BarIcon IconName="IconName.Edit" />
|
<BarIcon IconName="IconName.Edit" />
|
||||||
Pages
|
Настройка
|
||||||
</BarDropdownToggle>
|
</BarDropdownToggle>
|
||||||
<BarDropdownMenu>
|
<BarDropdownMenu>
|
||||||
<BarDropdownItem To="/simple-form">Simple Form</BarDropdownItem>
|
<BarDropdownItem To="/setting/add_objects">Добавить объект</BarDropdownItem>
|
||||||
</BarDropdownMenu>
|
</BarDropdownMenu>
|
||||||
<BarDropdownMenu>
|
<BarDropdownMenu>
|
||||||
<BarDropdownItem To="/simple-datagrid">Simple DataGrid</BarDropdownItem>
|
<BarDropdownItem To="/simple-datagrid">Simple DataGrid</BarDropdownItem>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
</BarDropdown>
|
</BarDropdown>
|
||||||
</BarItem>
|
</BarItem>
|
||||||
</BarStart>
|
</BarStart>
|
||||||
<BarEnd>
|
@* <BarEnd>
|
||||||
<BarItem>
|
<BarItem>
|
||||||
<BarDropdown>
|
<BarDropdown>
|
||||||
<BarDropdownToggle>
|
<BarDropdownToggle>
|
||||||
@@ -46,11 +46,11 @@
|
|||||||
</BarDropdownMenu>
|
</BarDropdownMenu>
|
||||||
</BarDropdown>
|
</BarDropdown>
|
||||||
</BarItem>
|
</BarItem>
|
||||||
</BarEnd>
|
</BarEnd> *@
|
||||||
</BarMenu>
|
</BarMenu>
|
||||||
</Bar>
|
</Bar>
|
||||||
@code {
|
@code {
|
||||||
private bool pagesBarVisible = true;
|
private bool pagesBarVisible = false;
|
||||||
|
|
||||||
RenderFragment customIcon =@<img src="/brand-logo.png" style="width:32px; height: 32px" />;
|
RenderFragment customIcon =@<img src="/brand-logo.png" style="width:32px; height: 32px" />;
|
||||||
}
|
}
|
||||||
@@ -3,8 +3,7 @@
|
|||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
|
|
||||||
|
|
||||||
@if ( layoutType == "fixed-header" )
|
|
||||||
{
|
|
||||||
<Layout Sider>
|
<Layout Sider>
|
||||||
<LayoutSider>
|
<LayoutSider>
|
||||||
<LayoutSiderContent>
|
<LayoutSiderContent>
|
||||||
@@ -12,58 +11,15 @@
|
|||||||
</LayoutSiderContent>
|
</LayoutSiderContent>
|
||||||
</LayoutSider>
|
</LayoutSider>
|
||||||
<Layout>
|
<Layout>
|
||||||
<LayoutHeader Fixed>
|
@* <LayoutHeader Fixed>
|
||||||
<TopMenu ThemeEnabledChanged="@OnThemeEnabledChanged"
|
<TopMenu ThemeEnabledChanged="@OnThemeEnabledChanged"
|
||||||
ThemeGradientChanged="@OnThemeGradientChanged"
|
ThemeGradientChanged="@OnThemeGradientChanged"
|
||||||
ThemeRoundedChanged="@OnThemeRoundedChanged"
|
ThemeRoundedChanged="@OnThemeRoundedChanged"
|
||||||
ThemeColorChanged="@OnThemeColorChanged"
|
ThemeColorChanged="@OnThemeColorChanged"
|
||||||
@bind-LayoutType="@layoutType" />
|
@bind-LayoutType="@layoutType" />
|
||||||
</LayoutHeader>
|
</LayoutHeader> *@
|
||||||
<LayoutContent Padding="Padding.Is4.OnX.Is4.FromTop">
|
<LayoutContent Padding="Padding.Is4.OnX.Is4.FromTop">
|
||||||
@Body
|
@Body
|
||||||
</LayoutContent>
|
</LayoutContent>
|
||||||
</Layout>
|
</Layout>
|
||||||
</Layout>
|
</Layout>
|
||||||
}
|
|
||||||
else if ( layoutType == "fixed-header-footer-only" )
|
|
||||||
{
|
|
||||||
<Layout>
|
|
||||||
<LayoutHeader Fixed>
|
|
||||||
<TopMenu ThemeEnabledChanged="@OnThemeEnabledChanged"
|
|
||||||
ThemeGradientChanged="@OnThemeGradientChanged"
|
|
||||||
ThemeRoundedChanged="@OnThemeRoundedChanged"
|
|
||||||
ThemeColorChanged="@OnThemeColorChanged"
|
|
||||||
@bind-LayoutType="@layoutType" />
|
|
||||||
</LayoutHeader>
|
|
||||||
<LayoutContent Padding="Padding.Is4.OnX.Is4.FromTop">
|
|
||||||
@Body
|
|
||||||
</LayoutContent>
|
|
||||||
<LayoutFooter Fixed>
|
|
||||||
<FooterMenu></FooterMenu>
|
|
||||||
</LayoutFooter>
|
|
||||||
</Layout>
|
|
||||||
}
|
|
||||||
else if ( layoutType == "sider-with-header-on-top" )
|
|
||||||
{
|
|
||||||
<Layout>
|
|
||||||
<LayoutHeader Fixed>
|
|
||||||
<TopMenu ThemeEnabledChanged="@OnThemeEnabledChanged"
|
|
||||||
ThemeGradientChanged="@OnThemeGradientChanged"
|
|
||||||
ThemeRoundedChanged="@OnThemeRoundedChanged"
|
|
||||||
ThemeColorChanged="@OnThemeColorChanged"
|
|
||||||
@bind-LayoutType="@layoutType" />
|
|
||||||
</LayoutHeader>
|
|
||||||
<Layout Sider>
|
|
||||||
<LayoutSider>
|
|
||||||
<LayoutSiderContent>
|
|
||||||
<SideMenu />
|
|
||||||
</LayoutSiderContent>
|
|
||||||
</LayoutSider>
|
|
||||||
<Layout>
|
|
||||||
<LayoutContent Padding="Padding.Is4.OnX.Is4.FromTop">
|
|
||||||
@Body
|
|
||||||
</LayoutContent>
|
|
||||||
</Layout>
|
|
||||||
</Layout>
|
|
||||||
</Layout>
|
|
||||||
}
|
|
||||||
@@ -2,35 +2,4 @@
|
|||||||
@inject IVersionProvider VersionProvider
|
@inject IVersionProvider VersionProvider
|
||||||
<Heading Size="HeadingSize.Is1" Margin="Margin.Is3.FromBottom">Blazorise</Heading>
|
<Heading Size="HeadingSize.Is1" Margin="Margin.Is3.FromBottom">Blazorise</Heading>
|
||||||
|
|
||||||
<Paragraph>
|
|
||||||
Blazorise is a component library built on top of Blazor and CSS frameworks like <Anchor To="https://getbootstrap.com/" Target="Target.Blank">Bootstrap</Anchor>, <Anchor To="https://fluent2.microsoft.design/" Target="Target.Blank">FluentUI2</Anchor>, <Anchor To="https://tailwindcss.com/" Target="Target.Blank">Tailwind</Anchor>, <Anchor To="https://bulma.io/" Target="Target.Blank">Bulma</Anchor>, <Anchor To="https://ant.design/" Target="Target.Blank">Ant Design</Anchor>, and <Anchor To="http://daemonite.github.io/material/" Target="Target.Blank">Material</Anchor>. It can be used to build responsive, single-page web applications.
|
|
||||||
</Paragraph>
|
|
||||||
|
|
||||||
<Alert Color="Color.Info" Visible>
|
|
||||||
<Paragraph>
|
|
||||||
This is a Blazorise Starting Template allowing you to quickly get started building your project!
|
|
||||||
</Paragraph>
|
|
||||||
|
|
||||||
<Paragraph>
|
|
||||||
The following Blazorise packages have been installed for you:
|
|
||||||
</Paragraph>
|
|
||||||
|
|
||||||
<UnorderedList>
|
|
||||||
<UnorderedListItem>Blazorise @($"v{VersionProvider.MilestoneVersion}")</UnorderedListItem>
|
|
||||||
<UnorderedListItem>The <Anchor To="https://blazorise.com/docs/usage/bootstrap5">Blazorise Bootstrap5</Anchor> Provider</UnorderedListItem>
|
|
||||||
<UnorderedListItem>The Blazorise FontAwesome Icon Provider</UnorderedListItem>
|
|
||||||
<UnorderedListItem>The <Anchor To="https://blazorise.com/docs/extensions/datagrid/getting-started">Blazorise DataGrid</Anchor> extension</UnorderedListItem>
|
|
||||||
</UnorderedList>
|
|
||||||
|
|
||||||
<Paragraph>
|
|
||||||
However Blazorise has many more extensions at your disposal.
|
|
||||||
You can find them <Anchor To="https://blazorise.com/docs/extensions" Target="Target.Blank">here</Anchor>.
|
|
||||||
</Paragraph>
|
|
||||||
|
|
||||||
<Paragraph>
|
|
||||||
Please visit the official <Anchor To="https://bootstrapdemo.blazorise.com/" Target="Target.Blank">Blazorise Demo</Anchor> for component examples.
|
|
||||||
</Paragraph>
|
|
||||||
<Paragraph>
|
|
||||||
Please visit the official <Anchor To="https://blazorise.com/docs/" Target="Target.Blank">Blazorise Documentation</Anchor> to learn more about the available components.
|
|
||||||
</Paragraph>
|
|
||||||
</Alert>
|
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
@page "/setting/add_objects"
|
||||||
|
|
||||||
|
<Row>
|
||||||
|
<Column ColumnSize="ColumnSize.Is4">
|
||||||
|
<Button Color="Color.Primary" Outline Clicked="@ShowAddObjetc">
|
||||||
|
<Icon Name="IconName.Add" TextColor="TextColor.Success" />
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</Column>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
<Row>
|
||||||
|
<Label>
|
||||||
|
Тут будет таблица всех объектов
|
||||||
|
</Label>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
<Modal @ref="modalAdd" Centered>
|
||||||
|
<ModalContent>
|
||||||
|
<ModalHeader>
|
||||||
|
<ModalTitle>Добавить объект</ModalTitle>
|
||||||
|
</ModalHeader>
|
||||||
|
<ModalBody>
|
||||||
|
<ModalFooter>
|
||||||
|
<Button Color="Color.Secondary" Clicked="@HideModal">Close</Button>
|
||||||
|
<Button Color="Color.Primary" Clicked="@HideModal">Save Changes</Button>
|
||||||
|
</ModalFooter>
|
||||||
|
</ModalBody>
|
||||||
|
</ModalContent>
|
||||||
|
</Modal>
|
||||||
|
@code {
|
||||||
|
private Modal modalAdd;
|
||||||
|
private Modal modalDel;
|
||||||
|
|
||||||
|
private Task ShowAddObjetc()
|
||||||
|
{
|
||||||
|
return modalAdd.Show();
|
||||||
|
}
|
||||||
|
private Task ShowDelObjetc()
|
||||||
|
{
|
||||||
|
return modalDel.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
private Task HideModal()
|
||||||
|
{
|
||||||
|
return modalAdd.Hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,17 +25,6 @@
|
|||||||
<body>
|
<body>
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
|
|
||||||
<div id="blazor-error-ui">
|
|
||||||
<environment include="Staging,Production">
|
|
||||||
An error has occurred. This application may no longer respond until reloaded.
|
|
||||||
</environment>
|
|
||||||
<environment include="Development">
|
|
||||||
An unhandled exception has occurred. See browser dev tools for details.
|
|
||||||
</environment>
|
|
||||||
<a href="" class="reload">Reload</a>
|
|
||||||
<a class="dismiss">🗙</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="_framework/blazor.server.js"></script>
|
<script src="_framework/blazor.server.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"profiles": {
|
"profiles": {
|
||||||
"Visor": {
|
"Visor": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": false,
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"applicationUrl": "https://localhost:7297;http://localhost:5255",
|
"applicationUrl": "https://localhost:7297;http://localhost:5255",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
|
|||||||
Reference in New Issue
Block a user