diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor deleted file mode 100644 index 2fa2280..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor +++ /dev/null @@ -1,59 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Center - - - - - - - - - @context.Title - -
-
-
-

Active User

-

@FormatWan(context.ActiveUser)

-
-
-

New Users

-

@context.NewUser.ToString("0,0")

-
-
-
-
-
-
- -@code -{ - - private static readonly RenderFragment Download =@ - -; - -private static readonly IList Actions = new List -{ - Download, -@, -@, -@ - }; - - private static RenderFragment FormatWan(int val) { - if (val > 10000) { - val = (int) Math.Floor((double) val / 10000); - } - - return @ - @val - - ; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor.cs deleted file mode 100644 index 5c105a8..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor.cs +++ /dev/null @@ -1,18 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Account.Center -{ - public partial class Applications - { - private readonly ListGridType _listGridType = new ListGridType - { - Gutter = 24, - Column = 4 - }; - - [Parameter] public IList List { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor.css b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor.css deleted file mode 100644 index fc2feff..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Applications/Applications.razor.css +++ /dev/null @@ -1,49 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.filterCardList { - margin-bottom: -24px; -} -.filterCardList :global .ant-card-meta-content { - margin-top: 0; -} -.filterCardList :global .ant-card-meta-avatar { - font-size: 0; -} -.filterCardList :global .ant-list .ant-list-item-content-single { - max-width: 100%; -} -.filterCardList .cardInfo { - margin-top: 16px; - margin-left: 40px; - zoom: 1; -} -.filterCardList .cardInfo::before, -.filterCardList .cardInfo::after { - display: table; - content: ' '; -} -.filterCardList .cardInfo::after { - clear: both; - height: 0; - font-size: 0; - visibility: hidden; -} -.filterCardList .cardInfo > div { - position: relative; - float: left; - width: 50%; - text-align: left; -} -.filterCardList .cardInfo > div p { - margin: 0; - font-size: 24px; - line-height: 32px; -} -.filterCardList .cardInfo > div p:first-child { - margin-bottom: 4px; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; - line-height: 20px; -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/ArticleListContent/ArticleListContent.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Components/ArticleListContent/ArticleListContent.razor deleted file mode 100644 index a34b706..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/ArticleListContent/ArticleListContent.razor +++ /dev/null @@ -1,16 +0,0 @@ -@using Xzy.KnowledgeBase.Models -@namespace Xzy.KnowledgeBase.Pages.Account.Center - -
-
@Data.Content
-
- - @Data.Owner Posted on @Data.Href - @Data.UpdatedAt.ToString("yyyy-MM-dd HH:mm:ss") -
-
- -@code -{ - [Parameter] public ListItemDataType Data { get; set; } -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/ArticleListContent/ArticleListContent.razor.css b/Xzy.KnowledgeBase/Pages/Account/Center/Components/ArticleListContent/ArticleListContent.razor.css deleted file mode 100644 index 5fe424a..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/ArticleListContent/ArticleListContent.razor.css +++ /dev/null @@ -1,33 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.listContent .description { - max-width: 720px; - line-height: 22px; -} -.listContent .extra { - margin-top: 16px; - color: rgba(0, 0, 0, 0.45); - line-height: 22px; -} -.listContent .extra > :global(.ant-avatar) { - position: relative; - top: 1px; - width: 20px; - height: 20px; - margin-right: 8px; - vertical-align: top; -} -.listContent .extra > em { - margin-left: 16px; - color: rgba(0, 0, 0, 0.25); - font-style: normal; -} -@media screen and (max-width: 480px) { - .listContent .extra > em { - display: block; - margin-top: 8px; - margin-left: 0; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor deleted file mode 100644 index be88e03..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor +++ /dev/null @@ -1,16 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Center - - - - - - @context.Title - - - - - \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor.cs deleted file mode 100644 index 0202c37..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Account.Center -{ - public partial class Articles - { - [Parameter] public IList List { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor.css b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor.css deleted file mode 100644 index edf8be9..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Articles/Articles.razor.css +++ /dev/null @@ -1,10 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.articleList :global .ant-list-item:first-child { - padding-top: 0; -} -a.listItemMetaTitle { - color: rgba(0, 0, 0, 0.85); -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor deleted file mode 100644 index a39481d..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor +++ /dev/null @@ -1,7 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Center - -
-
    - @ChildContent -
-
\ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor.cs deleted file mode 100644 index c7ad051..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Account.Center -{ - public partial class AvatarList - { - [Parameter] public RenderFragment ChildContent { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor.css b/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor.css deleted file mode 100644 index c43a5e7..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarList.razor.css +++ /dev/null @@ -1,43 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.avatarList { - display: inline-block; -} -.avatarList ul { - display: inline-block; - margin-left: 8px; - font-size: 0; -} -.avatarItem { - display: inline-block; - width: 32px; - height: 32px; - margin-left: -8px; - font-size: 14px; -} -.avatarItem :global .ant-avatar { - border: 1px solid #d9d9d9; -} -.avatarItemLarge { - width: 40px; - height: 40px; -} -.avatarItemSmall { - width: 24px; - height: 24px; -} -.avatarItemMini { - width: 20px; - height: 20px; -} -.avatarItemMini :global .ant-avatar { - width: 20px; - height: 20px; - line-height: 20px; -} -.avatarItemMini :global .ant-avatar .ant-avatar-string { - font-size: 12px; - line-height: 18px; -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarListItem.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarListItem.razor deleted file mode 100644 index 0b5cb07..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarListItem.razor +++ /dev/null @@ -1,17 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Center -@inherits AntDomComponentBase - -
  • - @if (string.IsNullOrEmpty(Tips)) - { - - - - - - } - else - { - - } -
  • \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarListItem.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarListItem.razor.cs deleted file mode 100644 index fcb3611..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/AvatarList/AvatarListItem.razor.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Account.Center -{ - public partial class AvatarListItem - { - [Parameter] public string Size { get; set; } - [Parameter] public string Tips { get; set; } - [Parameter] public string Src { get; set; } - [Parameter] public EventCallback OnClick { get; set; } - - protected override void OnInitialized() - { - base.OnInitialized(); - SetClassMap(); - } - - protected void SetClassMap() - { - ClassMapper - .Clear() - .Add("avatarItem") - .If("avatarItemLarge", () => Size == "large") - .If("avatarItemSmall", () => Size == "small") - .If("avatarItemMini", () => Size == "mini"); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor deleted file mode 100644 index b0352d9..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor +++ /dev/null @@ -1,35 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Center - - - - - - @context.Title - - - - @context.SubDescription - @context.Title - -
    - @context.UpdatedAt.ToFriendlyDisplay() -
    - - @foreach (var member in context.Members) - { - - } - -
    -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor.cs deleted file mode 100644 index 1ddb4a6..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor.cs +++ /dev/null @@ -1,19 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Account.Center -{ - public partial class Projects - { - private readonly ListGridType _listGridType = new ListGridType - { - Gutter = 24, - Column = 4 - }; - - [Parameter] - public IList List { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor.css b/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor.css deleted file mode 100644 index 68cd496..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Components/Projects/Projects.razor.css +++ /dev/null @@ -1,41 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.coverCardList .card .ant-card-meta-title { - margin-bottom: 4px; -} -.coverCardList .card .ant-card-meta-title > a { - display: inline-block; - max-width: 100%; - color: rgba(0, 0, 0, 0.85); -} -.coverCardList .card .ant-card-meta-description { - height: 44px; - overflow: hidden; - line-height: 22px; -} -.coverCardList .card:hover .ant-card-meta-title > a { - color: #1890ff; -} -.coverCardList .cardItemContent { - display: flex; - height: 20px; - margin-top: 16px; - margin-bottom: -4px; - line-height: 20px; -} -.coverCardList .cardItemContent > span { - flex: 1; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; -} -.coverCardList .cardItemContent .avatarList { - flex: 0 1 auto; -} -.coverCardList .cardList { - margin-top: 24px; -} -.coverCardList .ant-list .ant-list-item-content-single { - max-width: 100%; -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor b/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor deleted file mode 100644 index 5f5314b..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor +++ /dev/null @@ -1,88 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Center -@page "/account/center" - - - - - -
    - -
    @_currentUser.Name
    -
    @_currentUser.Signature
    -
    - -
    -

    - - @_currentUser.Title -

    -

    - - @_currentUser.Group -

    -

    - - - @_currentUser.Geographic.Province.Label - @_currentUser.Geographic.City.Label -

    -
    - - - -
    -
    Tags
    - @foreach (var tag in _currentUser.Tags) { - @tag.Label - } - - @if (_inputVisible) { - - } - else { - - - - } -
    - - - -
    -
    Team
    - -
    -
    -
    - - - - - - Articles (@_fakeList.Count) - - - - - - Applications (@_fakeList.Count) - - - - - - Projects (@_fakeList.Count) - - - - - - - - -
    -
    diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor.cs deleted file mode 100644 index c35735c..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.Account.Center -{ - public partial class Index - { - private CurrentUser _currentUser = new CurrentUser - { - Geographic = new GeographicType { City = new TagType(), Province = new TagType() } - }; - - private IList _fakeList = new List(); - private bool _inputVisible; - public string InputValue { get; set; } - - [Inject] public IProjectService ProjectService { get; set; } - [Inject] public IUserService UserService { get; set; } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _currentUser = await UserService.GetCurrentUserAsync(); - _fakeList = await ProjectService.GetFakeListAsync(); - } - - protected void ShowInput() - { - _inputVisible = true; - } - - protected void HandleInputConfirm() - { - _inputVisible = false; - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor.css b/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor.css deleted file mode 100644 index b4db3b4..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Center/Index.razor.css +++ /dev/null @@ -1,63 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.avatarHolder { - margin-bottom: 24px; - text-align: center; -} -.avatarHolder > img { - width: 104px; - height: 104px; - margin-bottom: 20px; -} -.avatarHolder .name { - margin-bottom: 4px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; - font-size: 20px; - line-height: 28px; -} -.detail p { - position: relative; - margin-bottom: 8px; - padding-left: 26px; -} -.detail p:last-child { - margin-bottom: 0; -} -.detail i { - position: absolute; - top: 4px; - left: 0; - width: 14px; - height: 14px; -} -.tagsTitle, -.teamTitle { - margin-bottom: 12px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; -} -.tags .ant-tag { - margin-bottom: 8px; -} -.team .ant-avatar { - margin-right: 12px; -} -.team a { - display: block; - margin-bottom: 24px; - overflow: hidden; - color: rgba(0, 0, 0, 0.85); - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; - transition: color 0.3s; -} -.team a:hover { - color: #1890ff; -} -.tabsCard .ant-card-head { - padding: 0 16px; -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor deleted file mode 100644 index a43aeec..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor +++ /dev/null @@ -1,60 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    -
    - Avatar -
    -
    - avatar -
    - -
    - -
    -
    -
    -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor.cs deleted file mode 100644 index a3fa03a..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.Account.Settings -{ - public partial class BaseView - { - private CurrentUser _currentUser = new CurrentUser(); - - [Inject] protected IUserService UserService { get; set; } - - private void HandleFinish() - { - } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _currentUser = await UserService.GetCurrentUserAsync(); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor.css b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor.css deleted file mode 100644 index 9c630d1..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BaseView.razor.css +++ /dev/null @@ -1,54 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.baseView { - display: flex; - padding-top: 12px; -} -.baseView :global .ant-legacy-form-item .ant-legacy-form-item-control-wrapper { - width: 100%; -} -.baseView .left { - min-width: 224px; - max-width: 448px; -} -.baseView .right__b__1 { - flex: 1; - padding-left: 104px; -} -.baseView .right__b__1 .avatar_title { - height: 22px; - margin-bottom: 8px; - color: rgba(0, 0, 0, 0.85); - font-size: 14px; - line-height: 22px; -} -.baseView .right__b__1 .avatar { - width: 144px; - height: 144px; - margin-bottom: 12px; - overflow: hidden; -} -.baseView .right__b__1 .avatar img { - width: 100%; -} -.baseView .right__b__1 .button_view { - width: 144px; - text-align: center; -} -@media screen and (max-width: 1200px) { - .baseView { - flex-direction: column-reverse; - } - .baseView .right__b__1 { - display: flex; - flex-direction: column; - align-items: center; - max-width: 448px; - padding: 20px; - } - .baseView .right__b__1 .avatar_title { - display: none; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BindingView.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BindingView.razor deleted file mode 100644 index 6564c75..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BindingView.razor +++ /dev/null @@ -1,21 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings - - - - - - - - - - - -@code -{ - private static RenderFragment _modify = @Bind; - - private readonly RenderFragment[] _actions = {_modify}; -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BindingView.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BindingView.razor.cs deleted file mode 100644 index 7a0d9bf..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/BindingView.razor.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Account.Settings -{ - public partial class BindingView - { - private readonly UserLiteItem[] _data = - { - new UserLiteItem - { - Avater = "taobao", - Title = "Binding Taobao", - Description = "Currently unbound Taobao account" - }, - new UserLiteItem - { - Avater = "alipay", - Title = "Binding Alipay", - Description = "Currently unbound Alipay account" - }, - new UserLiteItem - { - Avater = "dingding", - Title = "Binding DingTalk", - Description = "Currently unbound DingTalk account" - } - }; - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/GeographicView.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/GeographicView.razor deleted file mode 100644 index c55aab5..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/GeographicView.razor +++ /dev/null @@ -1,5 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings - -

    - GeographicView -

    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/GeographicView.razor.css b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/GeographicView.razor.css deleted file mode 100644 index 20905af..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/GeographicView.razor.css +++ /dev/null @@ -1,18 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.row .item { - width: 50%; - max-width: 220px; -} -.row .item:first-child { - width: calc(50% - 8px); - margin-right: 8px; -} -@media screen and (max-width: 576px) { - .item:first-child { - margin: 0; - margin-bottom: 8px; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/NotificationView.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/NotificationView.razor deleted file mode 100644 index 02a9fcb..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/NotificationView.razor +++ /dev/null @@ -1,18 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings - - - - - @context.Title - - - - -@code -{ - private static RenderFragment _switch = @; - private readonly RenderFragment[] _actions = {_switch}; -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/NotificationView.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/NotificationView.razor.cs deleted file mode 100644 index d193ac2..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/NotificationView.razor.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Account.Settings -{ - public partial class NotificationView - { - private readonly UserLiteItem[] _data = - { - new UserLiteItem - { - Title = "Account Password", - Description = "Messages from other users will be notified in the form of a station letter" - }, - new UserLiteItem - { - Title = "System Messages", - Description = "System messages will be notified in the form of a station letter" - }, - new UserLiteItem - { - Title = "To-do Notification", - Description = "The to-do list will be notified in the form of a letter from the station" - } - }; - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/PhoneView.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/PhoneView.razor deleted file mode 100644 index d4ee5b4..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/PhoneView.razor +++ /dev/null @@ -1,5 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings - -

    - PhoneView -

    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/PhoneView.razor.css b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/PhoneView.razor.css deleted file mode 100644 index a3dce2a..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/PhoneView.razor.css +++ /dev/null @@ -1,13 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.area_code { - width: 30%; - max-width: 128px; - margin-right: 8px; -} -.phone_number { - width: calc(70% - 8px); - max-width: 312px; -} diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/SecurityView.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/SecurityView.razor deleted file mode 100644 index 6e41b14..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/SecurityView.razor +++ /dev/null @@ -1,18 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings - - - - - @context.Title - - - - -@code -{ - private static RenderFragment _modify = @Modify; - private readonly RenderFragment[] _actions = {_modify}; -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/SecurityView.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Settings/Components/SecurityView.razor.cs deleted file mode 100644 index bc611e1..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Components/SecurityView.razor.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Account.Settings -{ - public partial class SecurityView - { - private readonly UserLiteItem[] _data = - { - new UserLiteItem - { - Title = "Account Password", - Description = "Current password strength: : Strong" - }, - new UserLiteItem - { - Title = "Security Phone", - Description = "Bound phone: : 138****8293" - }, - new UserLiteItem - { - Title = "Security Question", - Description = - "The security question is not set, and the security policy can effectively protect the account security" - }, - new UserLiteItem - { - Title = "Backup Email", - Description = "Bound Email: : ant***sign.com" - }, - new UserLiteItem - { - Title = "MFA Device", - Description = "Unbound MFA device, after binding, can be confirmed twice" - } - }; - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor b/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor deleted file mode 100644 index f025bbd..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor +++ /dev/null @@ -1,36 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Account.Settings -@page "/account/settings" - - -
    -
    - - @foreach (var item in _menuMap) - { - @item.Value - } - -
    -
    -
    @_menuMap[_selectKey]
    - @switch (_selectKey) - { - case "base": - - break; - case "security": - - break; - case "binding": - - break; - case "notification": - - break; - } -
    -
    -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor.cs b/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor.cs deleted file mode 100644 index 94df4f3..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -using AntDesign; -using System.Collections.Generic; - -namespace Xzy.KnowledgeBase.Pages.Account.Settings -{ - public partial class Index - { - private readonly Dictionary _menuMap = new Dictionary - { - {"base", "Basic Settings"} - - }; - - private string _selectKey = "base"; - - private void SelectKey(MenuItem item) - { - _selectKey = item.Key; - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor.css b/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor.css deleted file mode 100644 index 88eeddc..0000000 --- a/Xzy.KnowledgeBase/Pages/Account/Settings/Index.razor.css +++ /dev/null @@ -1,87 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.main__b__2 { - display: flex; - width: 100%; - height: 100%; - padding-top: 16px; - padding-bottom: 16px; - overflow: auto; - background-color: #fff; -} -.main__b__2 .leftMenu { - width: 224px; - border-right: 1px solid #f0f0f0; -} -.main__b__2 .leftMenu :global .ant-menu-inline { - border: none; -} -.main__b__2 .leftMenu :global .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected { - font-weight: bold; -} -.main__b__2 .right__b__0 { - flex: 1; - padding-top: 8px; - padding-right: 40px; - padding-bottom: 8px; - padding-left: 40px; -} -.main__b__2 .right__b__0 .title { - margin-bottom: 12px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; - font-size: 20px; - line-height: 28px; -} -.main__b__2 .ant-list-split .ant-list-item:last-child { - border-bottom: 1px solid #f0f0f0; -} -.main__b__2 .ant-list-item { - padding-top: 14px; - padding-bottom: 14px; -} -.ant-list-item-meta .taobao { - display: block; - color: #ff4000; - font-size: 48px; - line-height: 48px; - border-radius: 2px; -} -.ant-list-item-meta .dingding { - margin: 2px; - padding: 6px; - color: #fff; - font-size: 32px; - line-height: 32px; - background-color: #2eabff; - border-radius: 2px; -} -.ant-list-item-meta .alipay { - color: #2eabff; - font-size: 48px; - line-height: 48px; - border-radius: 2px; -} -font.strong { - color: #52c41a; -} -font.medium { - color: #faad14; -} -font.weak { - color: #ff4d4f; -} -@media screen and (max-width: 768px) { - .main__b__2 { - flex-direction: column; - } - .main__b__2 .leftMenu { - width: 100%; - border: none; - } - .main__b__2 .right__b__0 { - padding: 40px; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Bar/Bar.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Bar/Bar.razor deleted file mode 100644 index 414d58b..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Bar/Bar.razor +++ /dev/null @@ -1 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis.Bar \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor deleted file mode 100644 index a2aeb19..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor +++ /dev/null @@ -1,26 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inherits AntDomComponentBase - - -
    -
    -
    @Avatar
    -
    -
    - @Title - -
    -
    - @Total -
    -
    -
    -
    -
    @ChildContent
    -
    - -
    -
    - diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor.cs deleted file mode 100644 index b8a0da3..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -{ - public partial class ChartCard - { - [Parameter] - public string Avatar { get; set; } - - [Parameter] - public string Title { get; set; } - - [Parameter] - public RenderFragment Action { get; set; } - - [Parameter] - public string Total { get; set; } - - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public RenderFragment Footer { get; set; } - - [Parameter] - public string ContentHeight { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor.css deleted file mode 100644 index 33bfd50..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/ChartCard/ChartCard.razor.css +++ /dev/null @@ -1,77 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.chartCard { - position: relative; -} -.chartCard .chartTop { - position: relative; - width: 100%; - overflow: hidden; -} -.chartCard .chartTopMargin { - margin-bottom: 12px; -} -.chartCard .chartTopHasMargin { - margin-bottom: 20px; -} -.chartCard .metaWrap { - float: left; -} -.chartCard .avatar { - position: relative; - top: 4px; - float: left; - margin-right: 20px; -} -.chartCard .avatar img { - border-radius: 100%; -} -.chartCard .meta { - height: 22px; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.chartCard .action { - position: absolute; - top: 4px; - right: 0; - line-height: 1; - cursor: pointer; -} -.chartCard .total { - height: 38px; - margin-top: 4px; - margin-bottom: 0; - overflow: hidden; - color: rgba(0, 0, 0, 0.85); - font-size: 30px; - line-height: 38px; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} -.chartCard .content { - position: relative; - width: 100%; - margin-bottom: 12px; -} -.chartCard .contentFixed { - position: absolute; - bottom: 0; - left: 0; - width: 100%; -} -.chartCard .footer { - margin-top: 8px; - padding-top: 9px; - border-top: 1px solid #f0f0f0; -} -.chartCard .footer > * { - position: relative; -} -.chartCard .footerMargin { - margin-top: 20px; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor deleted file mode 100644 index 17002d1..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor +++ /dev/null @@ -1,7 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inherits AntDomComponentBase - -
    - @Label - @Value -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor.cs deleted file mode 100644 index ab1b03c..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -{ - public partial class Field - { - [Parameter] - public string Label { get; set; } - - [Parameter] - public string Value { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor.css deleted file mode 100644 index b19a6e5..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Field/Field.razor.css +++ /dev/null @@ -1,19 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.field { - margin: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.field .label, -.field .number { - font-size: 14px; - line-height: 22px; -} -.field .number { - margin-left: 8px; - color: rgba(0, 0, 0, 0.85); -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Gauge/Gauge.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Gauge/Gauge.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniArea/MiniArea.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniArea/MiniArea.razor deleted file mode 100644 index a518ae1..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniArea/MiniArea.razor +++ /dev/null @@ -1,34 +0,0 @@ -@using Xzy.KnowledgeBase.Services -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inject IChartService ChartService - - - -@code -{ - private IChartComponent _visitChart; - - private readonly AreaConfig _visitChartConfig = new AreaConfig - { - XField = "x", - YField = "y", - Height = 45, - Padding = new[] { 8, 8, 8, 8 }, - AutoFit = true, - XAxis = new ValueCatTimeAxis - { - Visible = false - }, - YAxis = new ValueAxis - { - Visible = false - } - }; - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - var data = await ChartService.GetVisitDataAsync(); - await _visitChart.ChangeData(data); - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniArea/MiniArea.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniArea/MiniArea.razor.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniBar/MiniBar.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniBar/MiniBar.razor deleted file mode 100644 index 53f68d7..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniBar/MiniBar.razor +++ /dev/null @@ -1,32 +0,0 @@ -@using Xzy.KnowledgeBase.Services -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inject IChartService ChartService - - -@code -{ - private IChartComponent _chart; - private ColumnConfig _chartConfig = new ColumnConfig - { - XField = "x", - YField = "y", - Height = 45, - Padding = new[] { 8, 8, 8, 8 }, - AutoFit = true, - XAxis = new CatAxis - { - Visible = false - }, - YAxis = new ValueAxis - { - Visible = false - } - }; - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - var data = await ChartService.GetVisitDataAsync(); - await _chart.ChangeData(data); - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniProgress/MiniProgress.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniProgress/MiniProgress.razor deleted file mode 100644 index df59afa..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniProgress/MiniProgress.razor +++ /dev/null @@ -1,38 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inherits AntDomComponentBase - -
    - - -
    - - -
    -
    -
    -
    -
    -
    -
    - -@code -{ - [Parameter] - public int? Target { get; set; } - - [Parameter] - public string TargetLabel { get; set; } - - [Parameter] - public string Color { get; set; } - - [Parameter] - public int? StrokeWidth { get; set; } - - [Parameter] - public int? Percent { get; set; } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniProgress/MiniProgress.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniProgress/MiniProgress.razor.css deleted file mode 100644 index c76f705..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/MiniProgress/MiniProgress.razor.css +++ /dev/null @@ -1,39 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.miniProgress { - position: relative; - width: 100%; - padding: 5px 0; -} -.miniProgress .progressWrap { - position: relative; - background-color: #f5f5f5; -} -.miniProgress .progress { - width: 0; - height: 100%; - background-color: #1890ff; - border-radius: 1px 0 0 1px; - transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s; -} -.miniProgress .target { - position: absolute; - top: 0; - bottom: 0; - z-index: 9; - width: 20px; -} -.miniProgress .target span { - position: absolute; - top: 0; - left: 0; - width: 2px; - height: 4px; - border-radius: 100px; -} -.miniProgress .target span:last-child { - top: auto; - bottom: 0; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Pie/Pie.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Pie/Pie.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Pie/Pie.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Pie/Pie.razor.css deleted file mode 100644 index 6080e1f..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/Pie/Pie.razor.css +++ /dev/null @@ -1,93 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.pie { - position: relative; -} -.pie .chart { - position: relative; -} -.pie.hasLegend .chart { - width: calc(100% - 240px); -} -.pie .legend { - position: absolute; - top: 50%; - right: 0; - min-width: 200px; - margin: 0 20px; - padding: 0; - list-style: none; - transform: translateY(-50%); -} -.pie .legend li { - height: 22px; - margin-bottom: 16px; - line-height: 22px; - cursor: pointer; -} -.pie .legend li:last-child { - margin-bottom: 0; -} -.pie .dot { - position: relative; - top: -1px; - display: inline-block; - width: 8px; - height: 8px; - margin-right: 8px; - border-radius: 8px; -} -.pie .line { - display: inline-block; - width: 1px; - height: 16px; - margin-right: 8px; - background-color: #f0f0f0; -} -.pie .legendTitle { - color: rgba(0, 0, 0, 0.85); -} -.pie .percent { - color: rgba(0, 0, 0, 0.45); -} -.pie .value { - position: absolute; - right: 0; -} -.pie .title { - margin-bottom: 8px; -} -.pie .total { - position: absolute; - top: 50%; - left: 50%; - max-height: 62px; - text-align: center; - transform: translate(-50%, -50%); -} -.pie .total > h4 { - height: 22px; - margin-bottom: 8px; - color: rgba(0, 0, 0, 0.45); - font-weight: normal; - font-size: 14px; - line-height: 22px; -} -.pie .total > p { - display: block; - height: 32px; - color: rgba(0, 0, 0, 0.85); - font-size: 1.2em; - line-height: 32px; - white-space: nowrap; -} -.legendBlock.hasLegend .chart { - width: 100%; - margin: 0 0 32px 0; -} -.legendBlock .legend { - position: relative; - transform: none; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TagCloud/TagCloud.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TagCloud/TagCloud.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TagCloud/TagCloud.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TagCloud/TagCloud.razor.css deleted file mode 100644 index 38aad10..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TagCloud/TagCloud.razor.css +++ /dev/null @@ -1,6 +0,0 @@ -.tagCloud { - overflow: hidden; -} -.tagCloud canvas { - transform-origin: 0 0; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TimelineChart/TimelineChart.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TimelineChart/TimelineChart.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TimelineChart/TimelineChart.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TimelineChart/TimelineChart.razor.css deleted file mode 100644 index aace13b..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/TimelineChart/TimelineChart.razor.css +++ /dev/null @@ -1,7 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.timelineChart { - background: #fff; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/WaterWave/WaterWave.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/WaterWave/WaterWave.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/WaterWave/WaterWave.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/WaterWave/WaterWave.razor.css deleted file mode 100644 index 0a10643..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/WaterWave/WaterWave.razor.css +++ /dev/null @@ -1,30 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.waterWave { - position: relative; - display: inline-block; - transform-origin: left; -} -.waterWave .text { - position: absolute; - top: 32px; - left: 0; - width: 100%; - text-align: center; -} -.waterWave .text span { - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.waterWave .text h4 { - color: rgba(0, 0, 0, 0.85); - font-size: 24px; - line-height: 32px; -} -.waterWave .waterWaveCanvasWrapper { - transform: scale(0.5); - transform-origin: 0 0; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/index.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/index.css deleted file mode 100644 index 222cd26..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Charts/index.css +++ /dev/null @@ -1,19 +0,0 @@ -.miniChart { - position: relative; - width: 100%; -} -.miniChart .chartContent { - position: absolute; - bottom: -28px; - width: 100%; -} -.miniChart .chartContent > div { - margin: 0 -5px; - overflow: hidden; -} -.miniChart .chartLoading { - position: absolute; - top: 16px; - left: 50%; - margin-left: -7px; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/NumberInfo/NumberInfo.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/NumberInfo/NumberInfo.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/NumberInfo/NumberInfo.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/NumberInfo/NumberInfo.razor.css deleted file mode 100644 index 85146bc..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/NumberInfo/NumberInfo.razor.css +++ /dev/null @@ -1,62 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.numberInfo .suffix { - margin-left: 4px; - color: rgba(0, 0, 0, 0.85); - font-size: 16px; - font-style: normal; -} -.numberInfo .numberInfoTitle { - margin-bottom: 16px; - color: rgba(0, 0, 0, 0.85); - font-size: 16px; - transition: all 0.3s; -} -.numberInfo .numberInfoSubTitle { - height: 22px; - overflow: hidden; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} -.numberInfo .numberInfoValue { - margin-top: 4px; - overflow: hidden; - font-size: 0; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} -.numberInfo .numberInfoValue > span { - display: inline-block; - height: 32px; - margin-right: 32px; - color: rgba(0, 0, 0, 0.85); - font-size: 24px; - line-height: 32px; -} -.numberInfo .numberInfoValue .subTotal { - margin-right: 0; - color: rgba(0, 0, 0, 0.45); - font-size: 16px; - vertical-align: top; -} -.numberInfo .numberInfoValue .subTotal .anticon { - margin-left: 4px; - font-size: 12px; - transform: scale(0.82); -} -.numberInfo .numberInfoValue .subTotal :global .anticon-caret-up { - color: #f5222d; -} -.numberInfo .numberInfoValue .subTotal :global .anticon-caret-down { - color: #52c41a; -} -.numberInfolight .numberInfoValue > span { - color: rgba(0, 0, 0, 0.85); -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/PageLoading/PageLoading.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/PageLoading/PageLoading.razor deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SaleItem.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SaleItem.cs deleted file mode 100644 index 65c6a6d..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SaleItem.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -{ - public partial class SalesCard - { - public class SaleItem - { - public int Id { get; set; } - public string Title { get; set; } - public string Total { get; set; } - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SalesCard.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SalesCard.razor deleted file mode 100644 index 2f0ea87..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SalesCard.razor +++ /dev/null @@ -1,71 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inherits AntDomComponentBase - - - -
    - - - - - - - -
    -

    - Sales Ranking -

    -
      - @foreach (var item in Items) - { -
    • - - @item.Id - - - @item.Title - - - @item.Total - -
    • - } -
    -
    -
    -
    -
    - - - - - - -
    -

    - Visits Ranking -

    -
      - @foreach (var item in Items) - { -
    • - - @item.Id - - - @item.Title - - - @item.Total - -
    • - } -
    -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SalesCard.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SalesCard.razor.cs deleted file mode 100644 index 82b1333..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/SalesCard.razor.cs +++ /dev/null @@ -1,61 +0,0 @@ -using AntDesign.Charts; -using Microsoft.AspNetCore.Components; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -{ - public partial class SalesCard - { - private readonly ColumnConfig _saleChartConfig = new ColumnConfig - { - AutoFit = true, - Padding = "auto", - XField = "x", - YField = "y" - }; - - private readonly ColumnConfig _visitChartConfig = new ColumnConfig - { - AutoFit = true, - Padding = "auto", - XField = "x", - YField = "y" - }; - - private IChartComponent _saleChart; - private IChartComponent _visitChart; - - [Parameter] - public SaleItem[] Items { get; set; } = - { - new SaleItem {Id = 1, Title = "Gongzhuan No.0 shop", Total = "323,234"}, - new SaleItem {Id = 2, Title = "Gongzhuan No.1 shop", Total = "323,234"}, - new SaleItem {Id = 3, Title = "Gongzhuan No.2 shop", Total = "323,234"}, - new SaleItem {Id = 4, Title = "Gongzhuan No.3 shop", Total = "323,234"}, - new SaleItem {Id = 5, Title = "Gongzhuan No.4 shop", Total = "323,234"}, - new SaleItem {Id = 6, Title = "Gongzhuan No.5 shop", Total = "323,234"}, - new SaleItem {Id = 7, Title = "Gongzhuan No.6 shop", Total = "323,234"} - }; - - [Inject] public IChartService ChartService { get; set; } - - protected override async Task OnAfterRenderAsync(bool firstRender) - { - await base.OnAfterRenderAsync(firstRender); - if (firstRender) - { - await OnTabChanged("1"); - } - } - - private async Task OnTabChanged(string activeKey) - { - var data = await ChartService.GetSalesDataAsync(); - if (activeKey == "1") - await _saleChart.ChangeData(data); - else - await _visitChart.ChangeData(data); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor deleted file mode 100644 index 74a3bd8..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor +++ /dev/null @@ -1,13 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@inherits AntDomComponentBase - -
    - @ChildContent - - @if(Flag == "up"){ - - } else { - - } - -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor.cs deleted file mode 100644 index 11f5275..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -{ - public partial class Trend - { - [Parameter] - public RenderFragment ChildContent { get; set; } - - [Parameter] - public string Flag { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor.css deleted file mode 100644 index d7f31be..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Components/Trend/Trend.razor.css +++ /dev/null @@ -1,37 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.trendItem { - display: inline-block; - font-size: 14px; - line-height: 22px; -} -.trendItem .up, -.trendItem .down { - position: relative; - top: 1px; - margin-left: 4px; -} -.trendItem .up span, -.trendItem .down span { - font-size: 12px; - transform: scale(0.83); -} -.trendItem .up { - color: #f5222d; -} -.trendItem .down { - top: -1px; - color: #52c41a; -} -.trendItem.trendItemGrey .up, -.trendItem.trendItemGrey .down { - color: rgba(0, 0, 0, 0.85); -} -.trendItem.reverseColor .up { - color: #52c41a; -} -.trendItem.reverseColor .down { - color: #f5222d; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Index.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Index.razor deleted file mode 100644 index bfe4ecd..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Index.razor +++ /dev/null @@ -1,69 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Analysis -@page "/" -@attribute [ReuseTabsPage(Title ="Home", Pin =true, Closable =false, Order =0)] - - - - - - - - WoW Change - 12% - - - DoD Change - 11% - - -
    - -
    -
    -
    - - - - - -
    - -
    -
    -
    - - - - - -
    - -
    -
    -
    - - - - - -
    - -
    -
    -
    -
    - - -
    diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Index.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Index.razor.css deleted file mode 100644 index bd422fa..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Analysis/Index.razor.css +++ /dev/null @@ -1,161 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.iconGroup span.anticon { - margin-left: 16px; - color: rgba(0, 0, 0, 0.45); - cursor: pointer; - transition: color 0.32s; -} -.iconGroup span.anticon:hover { - color: rgba(0, 0, 0, 0.85); -} -.rankingList { - margin: 25px 0 0; - padding: 0; - list-style: none; -} -.rankingList li { - display: flex; - align-items: center; - margin-top: 16px; - zoom: 1; -} -.rankingList li::before, -.rankingList li::after { - display: table; - content: ' '; -} -.rankingList li::after { - clear: both; - height: 0; - font-size: 0; - visibility: hidden; -} -.rankingList li span { - color: rgba(0, 0, 0, 0.85); - font-size: 14px; - line-height: 22px; -} -.rankingList li .rankingItemNumber { - display: inline-block; - width: 20px; - height: 20px; - margin-top: 1.5px; - margin-right: 16px; - font-weight: 600; - font-size: 12px; - line-height: 20px; - text-align: center; - background-color: #fafafa; - border-radius: 20px; -} -.rankingList li .rankingItemNumber.active { - color: #fff; - background-color: #314659; -} -.rankingList li .rankingItemTitle { - flex: 1; - margin-right: 8px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.salesExtra { - display: inline-block; - margin-right: 24px; -} -.salesExtra a { - margin-left: 24px; - color: rgba(0, 0, 0, 0.85); -} -.salesExtra a:hover { - color: #1890ff; -} -.salesExtra a.currentDate { - color: #1890ff; -} -.salesCard .salesBar { - padding: 0 0 32px 32px; -} -.salesCard .salesRank { - padding: 0 32px 32px 72px; -} -.salesCard :global .ant-tabs-bar, -.salesCard :global .ant-tabs-nav-wrap { - padding-left: 16px; -} -.salesCard :global .ant-tabs-bar .ant-tabs-nav .ant-tabs-tab, -.salesCard :global .ant-tabs-nav-wrap .ant-tabs-nav .ant-tabs-tab { - padding-top: 16px; - padding-bottom: 14px; - line-height: 24px; -} -.salesCard :global .ant-tabs-extra-content { - padding-right: 24px; - line-height: 55px; -} -.salesCard :global .ant-card-head { - position: relative; -} -.salesCard :global .ant-card-head-title { - align-items: normal; -} -.salesCardExtra { - height: inherit; -} -.salesTypeRadio { - position: absolute; - right: 54px; - bottom: 12px; -} -.offlineCard :global .ant-tabs-ink-bar { - bottom: auto; -} -.offlineCard :global .ant-tabs-bar { - border-bottom: none; -} -.offlineCard :global .ant-tabs-nav-container-scrolling { - padding-right: 40px; - padding-left: 40px; -} -.offlineCard :global .ant-tabs-tab-prev-icon::before { - position: relative; - left: 6px; -} -.offlineCard :global .ant-tabs-tab-next-icon::before { - position: relative; - right: 6px; -} -.offlineCard :global .ant-tabs-tab-active h4 { - color: #1890ff; -} -.trendText { - margin-left: 8px; - color: rgba(0, 0, 0, 0.85); -} -@media screen and (max-width: 992px) { - .salesExtra { - display: none; - } - .rankingList li span:first-child { - margin-right: 8px; - } -} -@media screen and (max-width: 768px) { - .rankingTitle { - margin-top: 16px; - } - .salesCard .salesBar { - padding: 16px; - } -} -@media screen and (max-width: 576px) { - .salesExtraWrap { - display: none; - } - .salesCard :global .ant-tabs-content { - padding-top: 30px; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/ActiveChart/ActiveChart.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/ActiveChart/ActiveChart.razor deleted file mode 100644 index adc8186..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/ActiveChart/ActiveChart.razor +++ /dev/null @@ -1,53 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -@using Xzy.KnowledgeBase.Models -@inherits AntDomComponentBase - -
    - -
    - -
    - @if (ActiveData != null) { -
    -
    -

    @(ActiveData.OrderBy(x => x.Y).Last().Y + 200) Billion

    -

    @(ActiveData.OrderBy(x=>x.Y).ToArray()[ActiveData.Length/2].Y) Billion

    -
    -
    -
    -
    -
    -
    -
    -
    - -
    - 00:00 - @ActiveData[ActiveData.Length / 2].X - @ActiveData.Last().X -
    - } - -
    - -@code -{ - public ChartDataItem[] ActiveData { get; set; } - - protected override void OnInitialized() { - base.OnInitializedAsync(); - ActiveData = GetActiveData(); - } - - private ChartDataItem[] GetActiveData() { - var activeData = new ChartDataItem[24]; - var random = new Random(); - for (var i = 0; i < 24; i++) { - activeData[i] = new ChartDataItem { - X = $"{i.ToString().PadRight(2, '0')}: 00", - Y = (int) (Math.Floor(random.NextDouble() * 200) + i * 50) - }; - } - return activeData; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/ActiveChart/ActiveChart.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/ActiveChart/ActiveChart.razor.css deleted file mode 100644 index f6db831..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/ActiveChart/ActiveChart.razor.css +++ /dev/null @@ -1,47 +0,0 @@ -.activeChart { - position: relative; -} -.activeChartGrid p { - position: absolute; - top: 80px; -} -.activeChartGrid p:last-child { - top: 115px; -} -.activeChartLegend { - position: relative; - height: 20px; - margin-top: 8px; - font-size: 0; - line-height: 20px; -} -.activeChartLegend span { - display: inline-block; - width: 33.33%; - font-size: 12px; - text-align: center; -} -.activeChartLegend span:first-child { - text-align: left; -} -.activeChartLegend span:last-child { - text-align: right; -} -.dashedLine { - position: relative; - top: -70px; - left: -3px; - height: 1px; -} -.dashedLine .line { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-image: linear-gradient(to right, transparent 50%, #e9e9e9 50%); - background-size: 6px; -} -.dashedLine:last-child { - top: -36px; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Gauge/Gauge.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Gauge/Gauge.razor deleted file mode 100644 index 6640c53..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Gauge/Gauge.razor +++ /dev/null @@ -1,4 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -@inherits AntDomComponentBase - -
    diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Gauge/Gauge.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Gauge/Gauge.razor.cs deleted file mode 100644 index 643c577..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Gauge/Gauge.razor.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -{ - public partial class Gauge - { - [Parameter] - public string Title { get; set; } - - [Parameter] - public string Color { get; set; } - - [Parameter] - public int? Height { get; set; } - - [Parameter] - public int? BgColor { get; set; } - - [Parameter] - public int Percent { get; set; } - - [Parameter] - public bool? ForceFit { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Map/Map.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Map/Map.razor deleted file mode 100644 index 2c35124..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Map/Map.razor +++ /dev/null @@ -1,9 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -@inherits AntDomComponentBase - -
    - -@code -{ - -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Map/MiniArea.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Map/MiniArea.razor deleted file mode 100644 index c68c31a..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Map/MiniArea.razor +++ /dev/null @@ -1,29 +0,0 @@ -@using Xzy.KnowledgeBase.Models -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor - - - -@code -{ - private IChartComponent _chart; - - private readonly AreaConfig _chartConfig = new AreaConfig - { - XField = "x", - YField = "y", - Height = 84, - Padding = new[] { 8, 8, 8, 8 }, - AutoFit = true, - XAxis = new ValueCatTimeAxis - { - Visible = false - }, - YAxis = new ValueAxis - { - Visible = false - } - }; - - [Parameter] - public ChartDataItem[] Data { get; set; } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Pie/Pie.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Pie/Pie.razor deleted file mode 100644 index 9555f1d..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Pie/Pie.razor +++ /dev/null @@ -1,3 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor - -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Pie/Pie.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Pie/Pie.razor.cs deleted file mode 100644 index af827e7..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/Pie/Pie.razor.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -{ - public partial class Pie - { - [Parameter] - public bool? Animate { get; set; } - - [Parameter] - public int? LineWidth { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/TagCloud/TagCloud.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/TagCloud/TagCloud.razor deleted file mode 100644 index dadad28..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/TagCloud/TagCloud.razor +++ /dev/null @@ -1 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/TagCloud/TagCloud.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/TagCloud/TagCloud.razor.cs deleted file mode 100644 index db5ed34..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/TagCloud/TagCloud.razor.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -{ - public partial class TagCloud - { - [Parameter] - public object[] Data { get; set; } - - [Parameter] - public int? Height { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/WaterWave/WaterWave.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/WaterWave/WaterWave.razor deleted file mode 100644 index f52cd99..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/WaterWave/WaterWave.razor +++ /dev/null @@ -1,3 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor - -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/WaterWave/WaterWave.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/WaterWave/WaterWave.razor.cs deleted file mode 100644 index 325c274..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Components/Charts/WaterWave/WaterWave.razor.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -{ - public partial class WaterWave - { - [Parameter] - public string Title { get; set; } - - [Parameter] - public int Percent { get; set; } - - [Parameter] - public int? Height { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Index.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Index.razor deleted file mode 100644 index f712475..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Index.razor +++ /dev/null @@ -1,69 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Monitor -@page "/dashboard/monitor" - - - - - - - - - - - - - - - - - - - -
    - -
    -
    -
    - - - - - - @* *@ - - -
    - - - - - - - @* *@ - - - @* *@ - - - @* *@ - - - - - - - @* *@ - - - - - @* *@ - - - -
    - -@code -{ - private readonly DateTime _deadline = DateTime.Now.AddMilliseconds(1000 * 60 * 60 * 24 * 2 + 1000 * 30); -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Index.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Index.razor.css deleted file mode 100644 index c7ad894..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Monitor/Index.razor.css +++ /dev/null @@ -1,21 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.mapChart { - height: 452px; - padding-top: 24px; -} -.mapChart img { - display: inline-block; - max-width: 100%; - max-height: 437px; -} -.pieCard :global(.pie-stat) { - font-size: 24px !important; -} -@media screen and (max-width: 992px) { - .mapChart { - height: auto; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor deleted file mode 100644 index 96d649e..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor +++ /dev/null @@ -1,12 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Workplace - -
    - @foreach (var link in Links) - { - @link.Title - } - - -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor.cs deleted file mode 100644 index 9b6e64e..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Workplace -{ - public class EditableLink - { - public string Title { get; set; } - public string Href { get; set; } - public string Id { get; set; } - } - - public partial class EditableLinkGroup - { - [Parameter] public EditableLink[] Links { get; set; } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor.css deleted file mode 100644 index df3886a..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/EditableLinkGroup/EditableLinkGroup.razor.css +++ /dev/null @@ -1,18 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.linkGroup { - padding: 20px 0 8px 24px; - font-size: 0; -} -.linkGroup > a { - display: inline-block; - width: 25%; - margin-bottom: 13px; - color: rgba(0, 0, 0, 0.85); - font-size: 14px; -} -.linkGroup > a:hover { - color: #1890ff; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/AutoHeight.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/AutoHeight.razor deleted file mode 100644 index 4869797..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/AutoHeight.razor +++ /dev/null @@ -1 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Workplace \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/Radar.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/Radar.razor deleted file mode 100644 index 0bd4f6f..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/Radar.razor +++ /dev/null @@ -1,58 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Workplace - - - -@if (HasLegend) -{ - - -
    -

    - - -

    -
    -
    -
    -
    -} - -@inject IChartService ChartService -@code -{ - [Parameter] public bool HasLegend { get; set; } - - [Parameter] public int Height { get; set; } = 343; - - private IChartComponent _chart; - - private readonly RadarConfig _chartConfig = new RadarConfig - { - Height = 343, - AutoFit = true, - XField="label", - YField="value", - RadiusAxis = new ValueAxis - { - Grid = new BaseAxisGrid - { - AlternateColor = new[] { "rgba(0, 0, 0, 0.04)", null } - } - }, - Area = new RadarViewConfigArea - { - Visible = false - }, - Point = new RadarViewConfigPoint - { - Visible = true - } - }; - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - var data = await ChartService.GetRadarDataAsync(); - await _chart.ChangeData(data); - } -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/Radar.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/Radar.razor.css deleted file mode 100644 index 10e4c11..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Components/Radar/Radar.razor.css +++ /dev/null @@ -1,46 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.radar .legend { - margin-top: 16px; -} -.radar .legend .legendItem { - position: relative; - color: rgba(0, 0, 0, 0.45); - line-height: 22px; - text-align: center; - cursor: pointer; -} -.radar .legend .legendItem p { - margin: 0; -} -.radar .legend .legendItem h6 { - margin-top: 4px; - margin-bottom: 0; - padding-left: 16px; - color: rgba(0, 0, 0, 0.85); - font-size: 24px; - line-height: 32px; -} -.radar .legend .legendItem::after { - position: absolute; - top: 8px; - right: 0; - width: 1px; - height: 40px; - background-color: #f0f0f0; - content: ''; -} -.radar .legend > :last-child .legendItem::after { - display: none; -} -.radar .legend .dot { - position: relative; - top: -1px; - display: inline-block; - width: 6px; - height: 6px; - margin-right: 6px; - border-radius: 6px; -} diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor deleted file mode 100644 index d723248..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor +++ /dev/null @@ -1,153 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Dashboard.Workplace -@using System.Text.RegularExpressions -@page "/dashboard/workplace" - - - - - Home - Dashboard - Workplace - - - -
    -
    - -
    -
    -
    - Good Morning, Serati Ma. Have a great day! -
    -
    - Interaction Expert | Ant Financial Service-XX Business Group-XX Platform Department-XX Technology Department-UED -
    -
    -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    - - - - - - All items - - - @foreach (var item in _projectNotice) { - - - - -
    - - @item.Title -
    -
    - - -
    - @item.Description -
    -
    -
    -
    - @item.Member - @if (!string.IsNullOrEmpty(item.UpdatedAt)) { - - - - } -
    -
    -
    - } -
    -
    - - - - - - - - @context.User.Name -   - - @foreach (var str in Regex.Split(context.Template, @"@\{([^{}]*)\}")) { - if (str == "group") { - - @context.Group.Name - - } - else if (str == "project") { - - @context.Project.Name - - } - else { - @str - } - } - - - - - - - -
    - - - - - - -
    - -
    -
    - - -
    - - @foreach (var item in _projectNotice) { - - - - @item.Member - - - } - -
    -
    -
    -
    -
    -
    diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor.cs b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor.cs deleted file mode 100644 index 7fdd6a2..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.Dashboard.Workplace -{ - public partial class Index - { - private readonly EditableLink[] _links = - { - new EditableLink {Title = "Operation 1", Href = ""}, - new EditableLink {Title = "Operation 2", Href = ""}, - new EditableLink {Title = "Operation 3", Href = ""}, - new EditableLink {Title = "Operation 4", Href = ""}, - new EditableLink {Title = "Operation 5", Href = ""}, - new EditableLink {Title = "Operation 6", Href = ""} - }; - - private ActivitiesType[] _activities = { }; - private NoticeType[] _projectNotice = { }; - - [Inject] public IProjectService ProjectService { get; set; } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _projectNotice = await ProjectService.GetProjectNoticeAsync(); - _activities = await ProjectService.GetActivitiesAsync(); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor.css b/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor.css deleted file mode 100644 index a88e752..0000000 --- a/Xzy.KnowledgeBase/Pages/Dashboard/Workplace/Index.razor.css +++ /dev/null @@ -1,224 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.activitiesList { - padding: 0 24px 8px 24px; -} -.activitiesList .username { - color: rgba(0, 0, 0, 0.85); -} -.activitiesList .event { - font-weight: normal; -} -.pageHeaderContent__b__0 { - display: flex; -} -.pageHeaderContent__b__0 .avatar { - flex: 0 1 72px; -} -.pageHeaderContent__b__0 .avatar > span { - display: block; - width: 72px; - height: 72px; - border-radius: 72px; -} -.pageHeaderContent__b__0 .content { - position: relative; - top: 4px; - flex: 1 1 auto; - margin-left: 24px; - color: rgba(0, 0, 0, 0.45); - line-height: 22px; -} -.pageHeaderContent__b__0 .content .contentTitle { - margin-bottom: 12px; - color: rgba(0, 0, 0, 0.85); - font-weight: 500; - font-size: 20px; - line-height: 28px; -} -.extraContent { - zoom: 1; - float: right; - white-space: nowrap; -} -.extraContent::before, -.extraContent::after { - display: table; - content: ' '; -} -.extraContent::after { - clear: both; - height: 0; - font-size: 0; - visibility: hidden; -} -.extraContent .statItem { - position: relative; - display: inline-block; - padding: 0 32px; -} -.extraContent .statItem > p:first-child { - margin-bottom: 4px; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.extraContent .statItem > p { - margin: 0; - color: rgba(0, 0, 0, 0.85); - font-size: 30px; - line-height: 38px; -} -.extraContent .statItem > p > span { - color: rgba(0, 0, 0, 0.45); - font-size: 20px; -} -.extraContent .statItem::after { - position: absolute; - top: 8px; - right: 0; - width: 1px; - height: 40px; - background-color: #f0f0f0; - content: ''; -} -.extraContent .statItem:last-child { - padding-right: 0; -} -.extraContent .statItem:last-child::after { - display: none; -} -.members a { - display: block; - height: 24px; - margin: 12px 0; - color: rgba(0, 0, 0, 0.85); - transition: all 0.3s; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} -.members a .member { - margin-left: 12px; - font-size: 14px; - line-height: 24px; - vertical-align: top; -} -.members a:hover { - color: #1890ff; -} -.projectList .ant-card-meta-description { - height: 44px; - overflow: hidden; - color: rgba(0, 0, 0, 0.45); - line-height: 22px; -} -.projectList .cardTitle { - font-size: 0; -} -.projectList .cardTitle a { - display: inline-block; - height: 24px; - margin-left: 12px; - color: rgba(0, 0, 0, 0.85); - font-size: 14px; - line-height: 24px; - vertical-align: top; -} -.projectList .cardTitle a:hover { - color: #1890ff; -} -.projectList .projectGrid { - width: 33.33%; -} -.projectList .projectItemContent { - display: flex; - height: 20px; - margin-top: 8px; - font-size: 12px; - line-height: 20px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} -.projectList .projectItemContent a { - display: inline-block; - flex: 1 1 0; - color: rgba(0, 0, 0, 0.45); - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - word-break: break-all; -} -.projectList .projectItemContent a:hover { - color: #1890ff; -} -.projectList .projectItemContent .datetime { - flex: 0 0 auto; - float: right; - color: rgba(0, 0, 0, 0.25); -} -.datetime { - color: rgba(0, 0, 0, 0.25); -} -@media screen and (max-width: 1200px) and (min-width: 992px) { - .activeCard { - margin-bottom: 24px; - } - .members { - margin-bottom: 0; - } - .extraContent { - margin-left: -44px; - } - .extraContent .statItem { - padding: 0 16px; - } -} -@media screen and (max-width: 992px) { - .activeCard { - margin-bottom: 24px; - } - .members { - margin-bottom: 0; - } - .extraContent { - float: none; - margin-right: 0; - } - .extraContent .statItem { - padding: 0 16px; - text-align: left; - } - .extraContent .statItem::after { - display: none; - } -} -@media screen and (max-width: 768px) { - .extraContent { - margin-left: -16px; - } - .projectList .projectGrid { - width: 50%; - } -} -@media screen and (max-width: 576px) { - .pageHeaderContent { - display: block; - } - .pageHeaderContent .content { - margin-left: 0; - } - .extraContent .statItem { - float: none; - } -} -@media screen and (max-width: 480px) { - .projectList .projectGrid { - width: 100%; - } -} diff --git a/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor b/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor deleted file mode 100644 index e40dc24..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor +++ /dev/null @@ -1,166 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Form -@page "/form/advanced-form" -@using OneOf - -
    - - Advanced forms are commonly used in scenarios where large quantities of data are entered and submitted at once. - - - - - - - - - - - - http:// - .com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor.cs b/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor.cs deleted file mode 100644 index f4a40ca..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Form -{ - public partial class AdvancedForm - { - private readonly AdvancedFormModel _model = new AdvancedFormModel(); - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor.css b/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor.css deleted file mode 100644 index 34b97eb..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/AdvancedForm/AdvancedForm.razor.css +++ /dev/null @@ -1,53 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.card { - margin-bottom: 24px; -} -.card :global .ant-legacy-form-item .ant-legacy-form-item-control-wrapper { - width: 100%; -} -.errorIcon { - margin-right: 24px; - color: #ff4d4f; - cursor: pointer; -} -.errorIcon span.anticon { - margin-right: 4px; -} -.errorPopover :global .ant-popover-inner-content { - min-width: 256px; - max-height: 290px; - padding: 0; - overflow: auto; -} -.errorListItem { - padding: 8px 16px; - list-style: none; - border-bottom: 1px solid #f0f0f0; - cursor: pointer; - transition: all 0.3s; -} -.errorListItem:hover { - background: #e6f7ff; -} -.errorListItem:last-child { - border: 0; -} -.errorListItem .errorIcon { - float: left; - margin-top: 4px; - margin-right: 12px; - padding-bottom: 22px; - color: #ff4d4f; -} -.errorListItem .errorField { - margin-top: 2px; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; -} -.editable td { - padding-top: 13px !important; - padding-bottom: 12.5px !important; -} diff --git a/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor b/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor deleted file mode 100644 index 8ff6afc..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor +++ /dev/null @@ -1,61 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Form -@page "/form/basic-form" - - - - - Home - Form - Basic Form - - - - Form pages are used to collect or verify information to users, and basic forms are common in scenarios where there are fewer data items. - - - -
    - - - - - - - - - - - - - - - - - - - - - % - - - - Public - Partially public - Private - - - - - - -
    -
    -
    -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor.cs b/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor.cs deleted file mode 100644 index 9ab3a36..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor.cs +++ /dev/null @@ -1,45 +0,0 @@ -using AntDesign; -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Form -{ - public class FormItemLayout - { - public ColLayoutParam LabelCol { get; set; } - public ColLayoutParam WrapperCol { get; set; } - } - - public partial class BasicForm - { - private readonly BasicFormModel _model = new BasicFormModel(); - - private readonly FormItemLayout _formItemLayout = new FormItemLayout - { - LabelCol = new ColLayoutParam - { - Xs = new EmbeddedProperty { Span = 24 }, - Sm = new EmbeddedProperty { Span = 7 }, - }, - - WrapperCol = new ColLayoutParam - { - Xs = new EmbeddedProperty { Span = 24 }, - Sm = new EmbeddedProperty { Span = 12 }, - Md = new EmbeddedProperty { Span = 10 }, - } - }; - - private readonly FormItemLayout _submitFormLayout = new FormItemLayout - { - WrapperCol = new ColLayoutParam - { - Xs = new EmbeddedProperty { Span = 24, Offset = 0 }, - Sm = new EmbeddedProperty { Span = 10, Offset = 7 }, - } - }; - - private void HandleSubmit() - { - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor.css b/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor.css deleted file mode 100644 index 34b97eb..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/BasicForm/BasicForm.razor.css +++ /dev/null @@ -1,53 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.card { - margin-bottom: 24px; -} -.card :global .ant-legacy-form-item .ant-legacy-form-item-control-wrapper { - width: 100%; -} -.errorIcon { - margin-right: 24px; - color: #ff4d4f; - cursor: pointer; -} -.errorIcon span.anticon { - margin-right: 4px; -} -.errorPopover :global .ant-popover-inner-content { - min-width: 256px; - max-height: 290px; - padding: 0; - overflow: auto; -} -.errorListItem { - padding: 8px 16px; - list-style: none; - border-bottom: 1px solid #f0f0f0; - cursor: pointer; - transition: all 0.3s; -} -.errorListItem:hover { - background: #e6f7ff; -} -.errorListItem:last-child { - border: 0; -} -.errorListItem .errorIcon { - float: left; - margin-top: 4px; - margin-right: 12px; - padding-bottom: 22px; - color: #ff4d4f; -} -.errorListItem .errorField { - margin-top: 2px; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; -} -.editable td { - padding-top: 13px !important; - padding-bottom: 12.5px !important; -} diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor deleted file mode 100644 index 0639ca7..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor +++ /dev/null @@ -1,56 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Form - -
    - - - - - - - - - - - - - - - - - - -
    - -
    -

    Description

    -

    Transfer to Alipay account

    -

    - If necessary, some common questions about the product can be put here.If necessary, some common questions about the product can be put here.If necessary, some common questions about the product can be put here. -

    -

    Transfer To Bank Card

    -

    - If necessary, some common questions about the product can be put here.If necessary, some common questions about the product can be put here.If necessary, some common questions about the product can be put here. -

    -
    diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor.cs b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor.cs deleted file mode 100644 index f2e839b..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor.cs +++ /dev/null @@ -1,26 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Form -{ - public partial class Step1 - { - private readonly StepFormModel _model = new StepFormModel(); - private readonly FormItemLayout _formLayout = new FormItemLayout - { - WrapperCol = new ColLayoutParam - { - Xs = new EmbeddedProperty { Span = 24, Offset = 0 }, - Sm = new EmbeddedProperty { Span = 19, Offset = 5 }, - } - }; - - [CascadingParameter] public StepForm StepForm { get; set; } - - public void OnValidateForm() - { - StepForm.Next(); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor.css b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor.css deleted file mode 100644 index 36e72ce..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step1/Step1.razor.css +++ /dev/null @@ -1,71 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.stepForm { - max-width: 500px; - margin: 40px auto 0; -} -.stepFormText { - margin-bottom: 24px; -} -.stepFormText :global .ant-form-item-label, -.stepFormText :global .ant-form-item-control { - line-height: 22px; -} -.result { - max-width: 560px; - margin: 0 auto; - padding: 24px 0 8px; -} -.desc { - padding: 0 56px; - color: rgba(0, 0, 0, 0.45); -} -.desc h3 { - margin: 0 0 12px 0; - color: rgba(0, 0, 0, 0.45); - font-size: 16px; - line-height: 32px; -} -.desc h4 { - margin: 0 0 4px 0; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.desc p { - margin-top: 0; - margin-bottom: 12px; - line-height: 22px; -} -@media screen and (max-width: 768px) { - .desc { - padding: 0; - } -} -.information { - line-height: 22px; -} -.information :global .ant-row:not(:last-child) { - margin-bottom: 24px; -} -.information .label { - padding-right: 8px; - color: rgba(0, 0, 0, 0.85); - text-align: right; -} -@media screen and (max-width: 576px) { - .information .label { - text-align: left; - } -} -.money { - font-weight: 500; - font-size: 20px; - font-family: 'Helvetica Neue', sans-serif; - line-height: 14px; -} -.uppercase { - font-size: 12px; -} diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor deleted file mode 100644 index 1303007..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor +++ /dev/null @@ -1,28 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Form - -
    - - - @_model.PayAccount - @_model.ReceiverAccount - @_model.ReceiverName - - - - - - - - - - - - - diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor.cs b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor.cs deleted file mode 100644 index 692c7b3..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor.cs +++ /dev/null @@ -1,31 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Form -{ - public partial class Step2 - { - private readonly StepFormModel _model = new StepFormModel(); - private readonly FormItemLayout _formLayout = new FormItemLayout - { - WrapperCol = new ColLayoutParam - { - Xs = new EmbeddedProperty { Span = 24, Offset = 0 }, - Sm = new EmbeddedProperty { Span = 19, Offset = 5 }, - } - }; - - [CascadingParameter] public StepForm StepForm { get; set; } - - public void OnValidateForm() - { - StepForm.Next(); - } - - public void Preview() - { - StepForm.Prev(); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor.css b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor.css deleted file mode 100644 index 36e72ce..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step2/Step2.razor.css +++ /dev/null @@ -1,71 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.stepForm { - max-width: 500px; - margin: 40px auto 0; -} -.stepFormText { - margin-bottom: 24px; -} -.stepFormText :global .ant-form-item-label, -.stepFormText :global .ant-form-item-control { - line-height: 22px; -} -.result { - max-width: 560px; - margin: 0 auto; - padding: 24px 0 8px; -} -.desc { - padding: 0 56px; - color: rgba(0, 0, 0, 0.45); -} -.desc h3 { - margin: 0 0 12px 0; - color: rgba(0, 0, 0, 0.45); - font-size: 16px; - line-height: 32px; -} -.desc h4 { - margin: 0 0 4px 0; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.desc p { - margin-top: 0; - margin-bottom: 12px; - line-height: 22px; -} -@media screen and (max-width: 768px) { - .desc { - padding: 0; - } -} -.information { - line-height: 22px; -} -.information :global .ant-row:not(:last-child) { - margin-bottom: 24px; -} -.information .label { - padding-right: 8px; - color: rgba(0, 0, 0, 0.85); - text-align: right; -} -@media screen and (max-width: 576px) { - .information .label { - text-align: left; - } -} -.money { - font-weight: 500; - font-size: 20px; - font-family: 'Helvetica Neue', sans-serif; - line-height: 14px; -} -.uppercase { - font-size: 12px; -} diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor deleted file mode 100644 index 539318f..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor +++ /dev/null @@ -1,25 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Form - - - - - - - -
    - - @_model.PayAccount - @_model.ReceiverAccount - @_model.ReceiverName - - - - -
    -
    -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor.cs b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor.cs deleted file mode 100644 index 37b1780..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Xzy.KnowledgeBase.Models; - -namespace Xzy.KnowledgeBase.Pages.Form -{ - public partial class Step3 - { - private readonly StepFormModel _model = new StepFormModel(); - - public void OnFinish() - { - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor.css b/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor.css deleted file mode 100644 index ae2c51d..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/Components/Step3/Step3.razor.css +++ /dev/null @@ -1,65 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.stepForm { - max-width: 500px; - margin: 40px auto 0; -} -.stepFormText { - margin-bottom: 24px; -} -.stepFormText :global .ant-form-item-label, -.stepFormText :global .ant-form-item-control { - line-height: 22px; -} -.result { - max-width: 560px; - margin: 0 auto; - padding: 24px 0 8px; -} -.desc { - padding: 0 56px; - color: rgba(0, 0, 0, 0.45); -} -.desc h3 { - margin: 0 0 12px 0; - color: rgba(0, 0, 0, 0.45); - font-size: 16px; - line-height: 32px; -} -.desc h4 { - margin: 0 0 4px 0; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.desc p { - margin-top: 0; - margin-bottom: 12px; - line-height: 22px; -} -@media screen and (max-width: 768px) { - .desc { - padding: 0; - } -} -.information { - line-height: 22px; -} -.information :global .ant-row:not(:last-child) { - margin-bottom: 24px; -} -.information .label { - padding-right: 8px; - color: rgba(0, 0, 0, 0.85); - text-align: right; -} -@media screen and (max-width: 576px) { - .information .label { - text-align: left; - } -} -.uppercase { - font-size: 12px; -} diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor b/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor deleted file mode 100644 index 16a4b87..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor +++ /dev/null @@ -1,37 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.Form -@page "/form/step-form" - - - - - Home - Form - Step Form - - - - Divide a lengthy or unfamiliar form task into multiple steps to guide users through. - - - - - - - - - - @switch (_current) { - case 0: - - break; - case 1: - - break; - case 2: - - break; - } - - - - diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor.cs b/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor.cs deleted file mode 100644 index eea114d..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Xzy.KnowledgeBase.Pages.Form -{ - public partial class StepForm - { - private int _current; - - public void Next() - { - // todo: Not re-rendered - _current += 1; - StateHasChanged(); - } - - public void Prev() - { - // todo: Not re-rendered - if (_current <= 0) return; - _current -= 1; - StateHasChanged(); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor.css b/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor.css deleted file mode 100644 index a71fe66..0000000 --- a/Xzy.KnowledgeBase/Pages/Form/StepForm/StepForm.razor.css +++ /dev/null @@ -1,72 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.card { - margin-bottom: 24px; -} -.heading { - margin: 0 0 16px 0; - font-size: 14px; - line-height: 22px; -} -.steps.ant-steps { - max-width: 750px; - margin: 16px auto; -} -.errorIcon { - margin-right: 24px; - color: #ff4d4f; - cursor: pointer; -} -.errorIcon span.anticon { - margin-right: 4px; -} -.errorPopover :global .ant-popover-inner-content { - min-width: 256px; - max-height: 290px; - padding: 0; - overflow: auto; -} -.errorListItem { - padding: 8px 16px; - list-style: none; - border-bottom: 1px solid #f0f0f0; - cursor: pointer; - transition: all 0.3s; -} -.errorListItem:hover { - background: #e6f7ff; -} -.errorListItem:last-child { - border: 0; -} -.errorListItem .errorIcon { - float: left; - margin-top: 4px; - margin-right: 12px; - padding-bottom: 22px; - color: #ff4d4f; -} -.errorListItem .errorField { - margin-top: 2px; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; -} -.editable td { - padding-top: 13px !important; - padding-bottom: 12.5px !important; -} -.advancedForm + div { - padding-bottom: 64px; -} -.advancedForm :global .ant-form .ant-row:last-child .ant-form-item { - margin-bottom: 24px; -} -.advancedForm :global .ant-table td { - transition: none !important; -} -.optional { - color: rgba(0, 0, 0, 0.45); - font-style: normal; -} diff --git a/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor b/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor deleted file mode 100644 index 04ca24d..0000000 --- a/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor +++ /dev/null @@ -1,105 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@page "/list/basic-list" - -
    - - - - Home - List - Basic List - - - -
    - - - - @Info("My to do", "8 tasks", true) - - - @Info("Average task processing time this week", "32 minutes", true) - - - @Info("Number of tasks completed this week", "24 tasks") - - - - - - -
    - - All - Processing - Waiting - - -
    -
    - - - - - - - - @context.Title - - -
    -
    - Owner -

    @context.Owner

    -
    -
    - Starting time -

    @context.CreatedAt.ToString("yyyy-MM-dd HH:mm")

    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -@code -{ - private static readonly RenderFragment Edit = @ - Edit -; - -private readonly RenderFragment[] _actions = -{ - Edit - }; - -private RenderFragment Info(string title, string value, bool bordered = false) { -return @
    - @title -

    @value

    - @if (bordered) { - - } -
    ; -} -} diff --git a/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor.cs b/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor.cs deleted file mode 100644 index 2722acd..0000000 --- a/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor.cs +++ /dev/null @@ -1,36 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class BasicList - { - private readonly BasicListFormModel _model = new BasicListFormModel(); - - private readonly IDictionary _pStatus = new Dictionary - { - {"active", ProgressStatus.Active}, - {"exception", ProgressStatus.Exception}, - {"normal", ProgressStatus.Normal}, - {"success", ProgressStatus.Success} - }; - - private ListItemDataType[] _data = { }; - - [Inject] protected IProjectService ProjectService { get; set; } - - private void ShowModal() - { - } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _data = await ProjectService.GetFakeListAsync(5); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor.css b/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor.css deleted file mode 100644 index 749d74a..0000000 --- a/Xzy.KnowledgeBase/Pages/List/BasicList/BasicList.razor.css +++ /dev/null @@ -1,152 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.standardList .ant-card-head { - border-bottom: none; -} -.standardList .ant-card-head-title { - padding: 24px 0; - line-height: 32px; -} -.standardList .ant-card-extra { - padding: 24px 0; -} -.standardList .ant-list-pagination { - margin-top: 24px; - text-align: right; -} -.standardList .ant-avatar-lg { - width: 48px; - height: 48px; - line-height: 48px; -} -.standardList .headerInfo { - position: relative; - text-align: center; -} -.standardList .headerInfo > span { - display: inline-block; - margin-bottom: 4px; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - line-height: 22px; -} -.standardList .headerInfo > p { - margin: 0; - color: rgba(0, 0, 0, 0.85); - font-size: 24px; - line-height: 32px; -} -.standardList .headerInfo > em { - position: absolute; - top: 0; - right: 0; - width: 1px; - height: 56px; - background-color: #f0f0f0; -} -.standardList .listContent { - font-size: 0; -} -.standardList .listContent .listContentItem { - display: inline-block; - margin-left: 40px; - color: rgba(0, 0, 0, 0.45); - font-size: 14px; - vertical-align: middle; -} -.standardList .listContent .listContentItem > span { - line-height: 20px; -} -.standardList .listContent .listContentItem > p { - margin-top: 4px; - margin-bottom: 0; - line-height: 22px; -} -.standardList .extraContentSearch { - width: 272px; - margin-left: 16px; -} -@media screen and (max-width: 480px) { - .standardList .ant-list-item-content { - display: block; - flex: none; - width: 100%; - } - .standardList .ant-list-item-action { - margin-left: 0; - } - .standardList .listContent { - margin-left: 0; - } - .standardList .listContent > div { - margin-left: 0; - } - .standardList .listCard .ant-card-head-title { - overflow: visible; - } -} -@media screen and (max-width: 576px) { - .standardList .extraContentSearch { - width: 100%; - margin-left: 0; - } - .standardList .headerInfo { - margin-bottom: 16px; - } - .standardList .headerInfo > em { - display: none; - } -} -@media screen and (max-width: 768px) { - .standardList .listContent > div { - display: block; - } - .standardList .listContent > div:last-child { - top: 0; - width: 100%; - } - .listCard .ant-radio-group { - display: block; - margin-bottom: 8px; - } -} -@media screen and (max-width: 992px) and (min-width: 768px) { - .standardList .listContent > div { - display: block; - } - .standardList .listContent > div:last-child { - top: 0; - width: 100%; - } -} -@media screen and (max-width: 1200px) { - .standardList .listContent > div { - margin-left: 24px; - } - .standardList .listContent > div:last-child { - top: 0; - } -} -@media screen and (max-width: 1400px) { - .standardList .listContent { - text-align: right; - } - .standardList .listContent > div:last-child { - top: 0; - } -} -.standardListForm .ant-form-item { - margin-bottom: 12px; -} -.standardListForm .ant-form-item:last-child { - margin-bottom: 32px; - padding-top: 4px; -} -.formResult { - width: 100%; -} -.formResult [class^='title'] { - margin-bottom: 8px; -} diff --git a/Xzy.KnowledgeBase/Pages/List/BasicList/utils/utils.css b/Xzy.KnowledgeBase/Pages/List/BasicList/utils/utils.css deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor b/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor deleted file mode 100644 index 290c83e..0000000 --- a/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor +++ /dev/null @@ -1,85 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@page "/list/card-list" - - - - - Home - List - Card List - - - -
    -

    - Paragraph: Ant.design, the service design platform of Ant Financial, seamlessly connects to the ecosystem of Ant Financial with minimal workload. - Provide experience solutions that span design and development. -

    - -
    -
    - -
    - This is a title -
    -
    - -
    - - - @if (string.IsNullOrEmpty(context.Id)) { - - } - else { - - - - - - - @context.Title - - - - - @context.Description - - - - - } - - -
    -
    -
    - -@code -{ - private static readonly RenderFragment Operate = @Operation one; - -private readonly RenderFragment[] _actions = -{ - Operate, -@Operation two, - }; -} diff --git a/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor.cs b/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor.cs deleted file mode 100644 index ad02f51..0000000 --- a/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor.cs +++ /dev/null @@ -1,36 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class CardList - { - private readonly ListGridType _listGridType = new ListGridType - { - Gutter = 16, - Xs = 1, - Sm = 2, - Md = 3, - Lg = 3, - Xl = 4, - Xxl = 4 - }; - - private ListItemDataType[] _data = { }; - - [Inject] protected IProjectService ProjectService { get; set; } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - var list = new List { new ListItemDataType() }; - var data = await ProjectService.GetFakeListAsync(8); - list.AddRange(data); - _data = list.ToArray(); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor.css b/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor.css deleted file mode 100644 index e18ff7c..0000000 --- a/Xzy.KnowledgeBase/Pages/List/CardList/CardList.razor.css +++ /dev/null @@ -1,110 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.cardList .card .ant-card-meta-title { - margin-bottom: 12px; -} -.cardList .card .ant-card-meta-title > a { - display: inline-block; - max-width: 100%; - color: rgba(0, 0, 0, 0.85); -} -.cardList .card .ant-card-body:hover .ant-card-meta-title > a { - color: #1890ff; -} -.cardList .item { - height: 64px; -} -.cardList .ant-list .ant-list-item-content-single { - max-width: 100%; -} -.extraImg { - width: 155px; - margin-top: -20px; - text-align: center; -} -.extraImg img { - width: 100%; -} -.newButton { - width: 100%; - height: 201px; - color: rgba(0, 0, 0, 0.45); - background-color: #fff; - border-color: #d9d9d9; -} -.cardAvatar { - width: 48px; - height: 48px; - border-radius: 48px; -} -.cardDescription { - position: relative; - max-height: 4.5em; - margin-right: -1em; - padding-right: 1em; - overflow: hidden; - line-height: 1.5em; - text-align: justify; -} -.cardDescription::before { - position: absolute; - right: 14px; - bottom: 0; - padding: 0 1px; - background: #fff; - content: '...'; -} -.cardDescription::after { - position: absolute; - right: 14px; - width: 1em; - height: 1em; - margin-top: 0.2em; - background: white; - content: ''; -} -.pageHeaderContent__b__1 { - position: relative; -} -.contentLink { - margin-top: 16px; -} -.contentLink a { - margin-right: 32px; -} -.contentLink a img { - width: 24px; -} -.contentLink img { - margin-right: 8px; - vertical-align: middle; -} -@media screen and (max-width: 992px) { - .contentLink a { - margin-right: 16px; - } -} -@media screen and (max-width: 768px) { - .extraImg { - display: none; - } -} -@media screen and (max-width: 576px) { - .pageHeaderContent__b__1 { - padding-bottom: 30px; - } - .contentLink { - position: absolute; - bottom: -4px; - left: 0; - width: 1000px; - } - .contentLink a { - margin-right: 16px; - } - .contentLink img { - margin-right: 4px; - } -} diff --git a/Xzy.KnowledgeBase/Pages/List/CardList/utils/utils.css b/Xzy.KnowledgeBase/Pages/List/CardList/utils/utils.css deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor deleted file mode 100644 index 06c1082..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor +++ /dev/null @@ -1,117 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@layout SearchList -@page "/list/search/applications" - -
    - -
    - - - - Category 1 - Category 2 - Category 3 - Category 4 - Category 5 - Category 6 - Category 7 - Category 8 - Category 9 - Category 10 - Category 11 - Category 12 - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - @context.Title - - - - - -
    -
    -
    -

    Active

    -

    @FormatWan(context.ActiveUser)

    -
    -
    -

    New

    -

    @context.NewUser.ToString("0,0")

    -
    -
    -
    -
    -
    -
    -
    - -@code -{ - private static readonly RenderFragment Download =@ - -; - -private static readonly IList Actions = new List -{ - Download, -@, -@, -@ - }; - - private static RenderFragment FormatWan(int val) { - if (val > 10000) { - val = (int) Math.Floor((double) val / 10000); - } - - return @ - @val - k - ; - } -} diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor.cs deleted file mode 100644 index edb4804..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor.cs +++ /dev/null @@ -1,37 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class Applications - { - private readonly ListGridType _listGridType = new ListGridType - { - Gutter = 16, - Xs = 1, - Sm = 2, - Md = 3, - Lg = 3, - Xl = 4, - Xxl = 4, - }; - - private readonly ListFormModel _model = new ListFormModel(); - private readonly IList _selectCategories = new List(); - - private IList _fakeList = new List(); - - - [Inject] public IProjectService ProjectService { get; set; } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _fakeList = await ProjectService.GetFakeListAsync(8); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor.css b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor.css deleted file mode 100644 index 9293eee..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Applications.razor.css +++ /dev/null @@ -1,46 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.filterCardList .ant-card-meta-content { - margin-top: 0; -} -.filterCardList .ant-card-meta-avatar { - font-size: 0; -} -.filterCardList .ant-list .ant-list-item-content-single { - max-width: 100%; -} -.filterCardList .cardInfo { - margin-top: 16px; - margin-left: 40px; - zoom: 1; -} -.filterCardList .cardInfo::before, -.filterCardList .cardInfo::after { - display: table; - content: ' '; -} -.filterCardList .cardInfo::after { - clear: both; - height: 0; - font-size: 0; - visibility: hidden; -} -.filterCardList .cardInfo > div { - position: relative; - float: left; - width: 50%; - text-align: left; -} -.filterCardList .cardInfo > div p { - margin: 0; - font-size: 24px; - line-height: 32px; -} -.filterCardList .cardInfo > div p:first-child { - margin-bottom: 4px; - color: rgba(0, 0, 0, 0.45); - font-size: 12px; - line-height: 20px; -} diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor deleted file mode 100644 index 0e11ac9..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor +++ /dev/null @@ -1,14 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@inherits AntDomComponentBase - -
    - @if (!string.IsNullOrEmpty(Title)) - { -
    - @Title -
    - } -
    - @ChildContent -
    -
    diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor.cs deleted file mode 100644 index db8d7b6..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class StandardFormRow - { - [Parameter] public string Title { get; set; } - - [Parameter] public bool Last { get; set; } - - [Parameter] public bool Block { get; set; } - - [Parameter] public bool Grid { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - - protected override void OnInitialized() - { - base.OnInitialized(); - SetClassMap(); - } - - protected void SetClassMap() - { - ClassMapper - .Clear() - .Add("standardFormRow") - .If("standardFormRowBlock", () => Block) - .If("standardFormRowLast", () => Last) - .If("standardFormRowGrid", () => Grid); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor.css b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor.css deleted file mode 100644 index edc0bad..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/StandardFormRow/StandardFormRow.razor.css +++ /dev/null @@ -1,71 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.standardFormRow { - display: flex; - width: 100%; - margin-bottom: 16px; - padding-bottom: 16px; - border-bottom: 1px dashed #f0f0f0; -} -.standardFormRow .ant-form-item, -.standardFormRow .ant-legacy-form-item { - margin-right: 24px; -} -.standardFormRow .ant-form-item-label label, -.standardFormRow .ant-legacy-form-item-label label { - margin-right: 0; - color: rgba(0, 0, 0, 0.85); -} -.standardFormRow .ant-form-item-label, -.standardFormRow .ant-legacy-form-item-label, -.standardFormRow .ant-form-item-control, -.standardFormRow .ant-legacy-form-item-control { - padding: 0; - line-height: 32px; -} -.standardFormRow .label { - flex: 0 0 auto; - margin-right: 24px; - color: rgba(0, 0, 0, 0.85); - font-size: 14px; - text-align: right; -} -.standardFormRow .label > span { - display: inline-block; - height: 32px; - line-height: 32px; -} -.standardFormRow .label > span::after { - content: ':'; -} -.standardFormRow .content { - flex: 1 1 0; -} -.standardFormRow .content :global .ant-form-item:last-child, -.standardFormRow .content :global .ant-legacy-form-item:last-child { - display: block; - margin-right: 0; -} -.standardFormRowLast { - margin-bottom: 0; - padding-bottom: 0; - border: none; -} -.standardFormRowBlock :global .ant-form-item, -.standardFormRowBlock :global .ant-legacy-form-item, -.standardFormRowBlock :global div.ant-form-item-control-wrapper, -.standardFormRowBlock :global div.ant-legacy-form-item-control-wrapper { - display: block; -} -.standardFormRowGrid .ant-form-item, -.standardFormRowGrid .ant-legacy-form-item, -.standardFormRowGrid div.ant-form-item-control-wrapper, -.standardFormRowGrid div.ant-legacy-form-item-control-wrapper { - display: block; -} -.standardFormRowGrid .ant-form-item-label, -.standardFormRowGrid .ant-legacy-form-item-label { - float: left; -} diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor deleted file mode 100644 index a0691cd..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor +++ /dev/null @@ -1,27 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@inherits AntDomComponentBase - -
    - @if (!HideCheckAll) - { - @SelectAllText - } - - - @ChildContent - - - @if (Expandable) - { - - @if (_expand) - { - @CollapseText - } - else - { - @ExpandText - } - - } -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor.cs deleted file mode 100644 index faf6bb7..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class TagSelect - { - private readonly IList _options = new List(); - private bool _checkedAll; - private bool _expand = false; - - [Parameter] public bool Expandable { get; set; } - - [Parameter] public bool HideCheckAll { get; set; } - - [Parameter] public string SelectAllText { get; set; } = "All"; - - [Parameter] public string CollapseText { get; set; } = "Collapse"; - - [Parameter] public string ExpandText { get; set; } = "Expand"; - - [Parameter] public IList Value { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - - protected override void OnInitialized() - { - base.OnInitialized(); - SetClassMap(); - } - - protected void SetClassMap() - { - ClassMapper - .Clear() - .Add("tagSelect") - .If("hasExpandTag", () => Expandable) - .If("expanded", () => _expand); - } - - private void HandleExpand() - { - _expand = !_expand; - } - - private void HandleCheckedChange(bool isChecked) - { - _checkedAll = isChecked; - foreach (var option in _options) option.Check(_checkedAll); - } - - public void AddOption(TagSelectOption option) - { - _options.Add(option); - } - - public void SelectItem(string value) - { - Value?.Add(value); - } - - public void UnSelectItem(string value) - { - Value?.Remove(value); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor.css b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor.css deleted file mode 100644 index cdd9fd7..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelect.razor.css +++ /dev/null @@ -1,33 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -.tagSelect { - position: relative; - max-height: 32px; - margin-left: -8px; - overflow: hidden; - line-height: 32px; - transition: all 0.3s; - user-select: none; -} -.tagSelect .ant-tag { - margin-right: 24px; - padding: 0 8px; - font-size: 14px; -} -.tagSelect.expanded { - max-height: 200px; - transition: all 0.3s; -} -.tagSelect .trigger { - position: absolute; - top: 0; - right: 0; -} -.tagSelect .trigger span.anticon { - font-size: 12px; -} -.tagSelect.hasExpandTag { - padding-right: 50px; -} diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelectOption.razor b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelectOption.razor deleted file mode 100644 index 6456bac..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelectOption.razor +++ /dev/null @@ -1,4 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@inherits AntDomComponentBase - -@ChildContent \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelectOption.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelectOption.razor.cs deleted file mode 100644 index d4537c0..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Applications/Components/TagSelect/TagSelectOption.razor.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class TagSelectOption - { - [Parameter] public string Value { get; set; } - - [Parameter] public bool Checked { get; set; } - - [Parameter] public RenderFragment ChildContent { get; set; } - - [CascadingParameter] public TagSelect Parent { get; set; } - - protected override void OnInitialized() - { - base.OnInitialized(); - Parent.AddOption(this); - } - - protected void HandleCheckedChange(bool isChecked) - { - Checked = isChecked; - if (isChecked) - Parent.SelectItem(Value); - else - Parent.UnSelectItem(Value); - } - - public void Check(bool isChecked) - { - Checked = isChecked; - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Applications/utils/utils.css b/Xzy.KnowledgeBase/Pages/List/Search/Applications/utils/utils.css deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor b/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor deleted file mode 100644 index 8cf9b05..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor +++ /dev/null @@ -1,90 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@layout SearchList -@page "/list/search/articles" - - -
    - - - Category 1 - Category 2 - Category 3 - Category 4 - Category 5 - Category 6 - Category 7 - Category 8 - Category 9 - Category 10 - Category 11 - Category 12 - - - - - - Only Me - - - - - - - - - - - - - - - - -
    -
    - - - - - - @context.Title - - - - - - diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor.cs deleted file mode 100644 index fa5a2c5..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class Articles - { - private readonly string[] _defaultOwners = { "wzj", "wjh" }; - private readonly ListFormModel _model = new ListFormModel(); - - private readonly Owner[] _owners = - { - new Owner {Id = "wzj", Name = "Myself"}, - new Owner {Id = "wjh", Name = "Wu Jiahao"}, - new Owner {Id = "zxx", Name = "Zhou Xingxing"}, - new Owner {Id = "zly", Name = "Zhao Liying"}, - new Owner {Id = "ym", Name = "Yao Ming"} - }; - - private IList _fakeList = new List(); - - [Inject] public IProjectService ProjectService { get; set; } - - private void SetOwner() - { - } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _fakeList = await ProjectService.GetFakeListAsync(8); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor.css b/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor.css deleted file mode 100644 index 851521f..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Articles/Articles.razor.css +++ /dev/null @@ -1,32 +0,0 @@ -/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ -/* stylelint-disable no-duplicate-selectors */ -/* stylelint-disable */ -/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ -a.listItemMetaTitle { - color: rgba(0, 0, 0, 0.85); -} -.listItemExtra { - width: 272px; - height: 1px; -} -.selfTrigger { - margin-left: 12px; -} -@media screen and (max-width: 480px) { - .selfTrigger { - display: block; - margin-left: 0; - } -} -@media screen and (max-width: 768px) { - .selfTrigger { - display: block; - margin-left: 0; - } -} -@media screen and (max-width: 992px) { - .listItemExtra { - width: 0; - height: 1px; - } -} diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Projects/Projects.razor b/Xzy.KnowledgeBase/Pages/List/Search/Projects/Projects.razor deleted file mode 100644 index c2294f6..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Projects/Projects.razor +++ /dev/null @@ -1,91 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@layout SearchList -@page "/list/search/projects" - -
    - -
    - - - - Category 1 - Category 2 - Category 3 - Category 4 - Category 5 - Category 6 - Category 7 - Category 8 - Category 9 - Category 10 - Category 11 - Category 12 - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - @context.Title - - - - @context.SubDescription - @context.Title - -
    - @context.UpdatedAt.ToFriendlyDisplay() -
    - - @foreach (var member in context.Members) { - - } - -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/Xzy.KnowledgeBase/Pages/List/Search/Projects/Projects.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/Projects/Projects.razor.cs deleted file mode 100644 index be2da9c..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/Projects/Projects.razor.cs +++ /dev/null @@ -1,45 +0,0 @@ -using AntDesign; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; -using System.Threading.Tasks; -using Xzy.KnowledgeBase.Models; -using Xzy.KnowledgeBase.Pages.Form; -using Xzy.KnowledgeBase.Services; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class Projects - { - private readonly ListGridType _listGridType = new ListGridType - { - Gutter = 16, - Xs = 1, - Sm = 2, - Md = 3, - Lg = 3, - Xl = 4, - Xxl = 4, - }; - - private readonly FormItemLayout _formItemLayout = new FormItemLayout - { - WrapperCol = new ColLayoutParam - { - Xs = new EmbeddedProperty { Span = 24 }, - Sm = new EmbeddedProperty { Span = 16 }, - } - }; - - private readonly ListFormModel _model = new ListFormModel(); - - private IList _fakeList = new List(); - - [Inject] public IProjectService ProjectService { get; set; } - - protected override async Task OnInitializedAsync() - { - await base.OnInitializedAsync(); - _fakeList = await ProjectService.GetFakeListAsync(8); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/SearchList.razor b/Xzy.KnowledgeBase/Pages/List/Search/SearchList.razor deleted file mode 100644 index 26c02c9..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/SearchList.razor +++ /dev/null @@ -1,27 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@inherits LayoutComponentBase -@layout Xzy.KnowledgeBase.BasicLayout - - - - - Home - List - Search - - - -
    - -
    -
    - - @Body - -
    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/Search/SearchList.razor.cs b/Xzy.KnowledgeBase/Pages/List/Search/SearchList.razor.cs deleted file mode 100644 index 68edd30..0000000 --- a/Xzy.KnowledgeBase/Pages/List/Search/SearchList.razor.cs +++ /dev/null @@ -1,32 +0,0 @@ -using AntDesign.ProLayout; -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; - -namespace Xzy.KnowledgeBase.Pages.List -{ - public partial class SearchList - { - private readonly IList _tabList = new List - { - new TabPaneItem {Key = "articles", Tab = "Articles"}, - new TabPaneItem {Key = "projects", Tab = "Projects"}, - new TabPaneItem {Key = "applications", Tab = "Applications"} - }; - - [Inject] protected NavigationManager NavigationManager { get; set; } - - private string GetTabKey() - { - var url = NavigationManager.Uri.TrimEnd('/'); - var key = url.Substring(url.LastIndexOf('/') + 1); - return key; - } - - private void HandleTabChange(string key) - { - var url = NavigationManager.Uri.TrimEnd('/'); - url = url.Substring(0, url.LastIndexOf('/')); - NavigationManager.NavigateTo($"{url}/{key}"); - } - } -} \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/TableList/TableList.razor b/Xzy.KnowledgeBase/Pages/List/TableList/TableList.razor deleted file mode 100644 index 7c6b3c2..0000000 --- a/Xzy.KnowledgeBase/Pages/List/TableList/TableList.razor +++ /dev/null @@ -1,6 +0,0 @@ -@namespace Xzy.KnowledgeBase.Pages.List -@page "/list/table-list" - -

    - TODO: Next Version -

    \ No newline at end of file diff --git a/Xzy.KnowledgeBase/Pages/List/TableList/TableList.razor.css b/Xzy.KnowledgeBase/Pages/List/TableList/TableList.razor.css deleted file mode 100644 index e69de29..0000000 diff --git a/Xzy.KnowledgeBase/Xzy.KnowledgeBase.csproj b/Xzy.KnowledgeBase/Xzy.KnowledgeBase.csproj index 5c8e854..0c4837e 100644 --- a/Xzy.KnowledgeBase/Xzy.KnowledgeBase.csproj +++ b/Xzy.KnowledgeBase/Xzy.KnowledgeBase.csproj @@ -17,5 +17,12 @@ + + + + + + +