Commit Graph

33 Commits

Author SHA1 Message Date
Weihan Li
9fa391449a
chore: Enable some code analyze rules (#4126)
* style: update editorconfig

- update editorconfig encoding to utf8
- add CA1852 and IDE0005 rules

* style: apply dotnet-format

* style: add IDE0040 rule

* style: apply dotnet-format

* refactor: sealed SimpleEmbeddedJsonLocalizerFactory

* style: add style rule for modifiers

* fix: resolve dotnet-format unmerged issue

* fix: add back translation

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-28 00:54:33 +08:00
Key Roche
4ad8e7ceab
docs: enhance documentation automation (#3013)
* Documentation automation. Build will generate documentation based on XML comments and attributes in the library. Translation will be done where necessary to generate the Chineese site.

Did some small code clean up on the way.
Removed or removed from public APIs:

AnchorLink.LinkDom
Button.RemoveAnimationAfter
Button.Icons - never used
Calendar.PrefixCls
All date pickers - method OnOkClick
Descriptions.Items
ListItem.PrefixName
AntList.PrefixName
ListItemMeta.PrefixName
Menu.Submenus
Menu.MenuItems
Transfer.ChildContent
Table.ColumnContext
Space.SetClass
Steps.Handler
Radio.OnClick

* Add Azure translation service. Requires adding your own key to a private appsettings JSON file to translate locally with it.

* Make translation services return null when unable to translate, have cache not cache it and return text asked to translate.

* Update documentation markdown file for new translation service

* Update DOCUMENTATION.md

* fix datepickerbase

* fix tree-select

* add docs for Flex and Watermark

* add zh

* add UserSecrets

* fix keywords

* fix button doc

* fix page

* fix internals visible to

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-25 14:37:41 +08:00
James Yeung
5d153a6e05
docs: rerender demo on language changed (#4083) 2024-08-11 15:11:37 +08:00
James Yeung
e644aad4bf
merge feature
merge feature to master
2024-04-22 23:14:39 +08:00
James Yeung
61ed3bd293
docs: add reusetabs documation and demos (#3802)
* docs: add reusetabs demos

* add pages

* fix demo

* delete page

* add more demo

* clean

* fix encoding

* Update dynamic-title.md
2024-04-22 22:07:54 +08:00
James Yeung
036a6e2442
feat(i18n): implement interactive StringLocalizer and simple localization (#3804)
* feat(module: i18n): implement IStringLocalizer

* fix resource name

* add blazor string localizer

* replace localizer

* add proj

* refacor assembly

* fix namespace

* rename

* rename

* clean

* clean

* clean

* add docs
2024-04-19 20:28:55 +08:00
Zhu Lijun
f893456a6e
docs: add blazor webapp hosting project (#3642)
* 测试上传

* 有js报错

* remove ConventionRouter

* fix assets and js interop

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-02-04 23:04:55 +08:00
James Yeung
4b8d70401e
feat(core): setup JS initializers (#3557)
* feat(core): setup js initializers

* remove the script importing section from docs
2023-12-21 22:09:41 +08:00
James Yeung
9e4b34fb04
docs: fix docsearch links (#3576)
* docs: docsearch links was blocked

* fix dark theme for docsearch

* fix docsearch scraper action
2023-12-19 21:45:12 +08:00
James Yeung
6f994d3b7d
docs: Optimize the performance of document navigation (#3347)
* docs: Optimize the performance of document navigation

* fix infinite loop

* add lock json files

* fix

* fix contributor list

* fix contributorlist
2023-07-11 23:38:58 +08:00
kooliokey
1cb64a8e2d
docs(module: anchor): Fix demos due to case sensitive anchors (#2826)
* Fix anchor demo links because there is a capital in the real anchors but not the demos and it is case sensitive

* Remove commented code in demos

* fix demo link

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-11-15 12:09:32 +08:00
kooliokey
538a479afc
test(module: avatar): Add Avatar and AvatarGroup tests (#2648)
Small refactors:
  - Fix typo in Avatar
  - Remove code in Avatar that wasn't affecting visuals as expected
  - Make Avatar shape a constant. Update Skeleton component and demos to use it
  - Update Avatar component to calculate size after parameters set method due to it changing one of the properties it relies on.
2022-08-30 12:03:35 +00:00
kooliokey
eba3f19cc2
refactor(module: message): add IMessageService interface (#2633) 2022-08-26 17:55:52 +08:00
James Yeung
3ac7701da4 merge master to feature 2022-08-21 22:53:33 +08:00
James Yeung
1baaa5be3d
refactor(module: TreeSelect): Expression and selection (#2507)
* refactor(module: tree-select): expression and LabelTemplate

* delete simple tree select
2022-06-11 02:31:35 +08:00
James Yeung
1659aef02d
chore: sync ant-design v4.20.7 (#2497)
* chore: sync ant-design v4.20.7

* fix style build

* clean the style

* fix dropdown overlay

* remove cdk styles

* fix dropdown overwrite styles

* fix doc styles
2022-06-04 00:44:34 +08:00
James Yeung
69cb9e015e docs: update document content
docs: update document content
2022-05-29 19:34:54 +08:00
James Yeung
4d905cc4fa
docs: update docsearch 3 (#2446)
* docs: update docsearch 3

* fix hit conent style
2022-05-15 12:46:07 +08:00
James Yeung
0f0e95e180 Revert "docs: fix broken CDN (#2374)" (#2376)
This reverts commit 72ce92ffd2f9f8e3acaf27bc2a88d29ee7b4c6f8.
2022-03-31 13:30:38 +08:00
James Yeung
2898d8a603 docs: fix broken CDN (#2374) 2022-03-30 23:39:23 +08:00
Hao Sun
e832b04c12 docs: load all contributors for demos (#2202)
* doc: load all contributors for demos

* remove FilePath property

* use selectmany()

* update ContributorsList.razor.cs

* Update ContributorsList.razor.cs

* use SkeletonElement

* Update ContributorsList.raz
2022-01-01 10:07:36 +08:00
Hao Sun
bca2414491 chore: support IE and .net6 for server-side (#2119)
* modify AntDesign.Docs.Server project to support IE

* update docs project

* update _Host.cshtml

* add .net6 target framework

* Update _Host.cshtml

* update github actions

* update github actions
2021-12-06 12:31:27 +08:00
Andrzej Bakun
3d4f7adaaf perf(module: overlay): positioning moved to js (#1848)
* fix(module:overlay): move postion calculation to js

fixes #1836

* docs: TriggerBoundaryAdjustMode explanation

* docs: select & datepicker got BoundaryAdjustmetMode

cleanup

* test: fixes

optimization & cleanup

* fix(module:overlay): recalculate overlay position when trigger resizes

* Minor clean-up

* fix(module:overlay): wait for Show to finish in Hide

* fix: prevent vertical scrollbar on overlay adding

* fix: extract waiting function

* fix: overlay not to repostion when trigger vanishes (menu issue)

* fix: scroll adjustment for position: fixed

* fix: on menu mode change, keep

* merge conflict fix

* fix: nominal calculation reset on failed adjustment

* fix: bugs

* test: exclude log method from test coverage in overlay.ts
2021-09-10 19:06:50 +08:00
gmij
1ff7067f2b docs: fix encoding error (#1760)
* fixed. Fix network error when requesting contributor list in local development environment

* fixed. Fix Chinese garbled code

* Update Dynamic.razor

Co-authored-by: Gmij <chenb@teleware.cn>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-22 19:48:11 +08:00
James Yeung
c264b7d022 docs: document improvement (#1578)
* fix the ordering of menu items

* add ueditor link

* fix icon document search style

* fix affix width for side menu

* add faq doc
2021-05-31 19:45:23 +08:00
James Yeung
0b738663a1 docs: dynamic primary color changing (#1332)
* feat(docs): change color dynamically

* docs: dynamic primary color changing

* fix file path

* delete the script
2021-04-10 12:34:41 +08:00
James Yeung
822ce2dd36 feat: add built-in themes (#1286)
* feat: add themes

* add docs theming styles

* fix the RTL for FixedWidgets

* fix aliyun theme

* fix docs style
2021-03-31 19:23:32 +08:00
James Yeung
d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00
James Yeung
0b065dfb63 docs: add the copyright of .NET Foundation (#1272) 2021-03-23 17:38:41 +08:00
loogn
0d914efb2a docs: add bulmarazor link (#1245) 2021-03-12 18:45:12 +08:00
James Yeung
56ae64007d docs: add contributors list (#1217) 2021-03-08 00:20:41 +08:00
ElderJames
08fec90cd3 docs: add a dialog to navigate to gitee.io for chinese 2021-02-24 23:57:59 +08:00
ElderJames
7e80607ff0 rename the docs project 2021-02-06 20:15:46 +08:00