Skip to content

feat: upgrade to vben main branch #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 812 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
812 commits
Select commit Hold shift + click to select a range
d23db32
docs: typo (#4748)
AnonymXXX Oct 29, 2024
e600d78
chore: add vxe-table toolbar example (#4765)
anncwb Oct 29, 2024
c2d59de
chore: add vxe-table export example (#4769)
gee1k Oct 30, 2024
353e8be
fix: long text style in sidemenu. fixed #4749 (#4770)
mynetfan Oct 30, 2024
06ba7cb
feat: add opened and closed events for dialog (#4775)
mynetfan Oct 31, 2024
f78cc31
fix(@vben-core/menu-ui): fix horizontal layout top menu language swit…
13982720426 Oct 31, 2024
566f357
chore: add a different way for pnpm to manage nodejs version, because…
ArthurDarkstone Nov 2, 2024
cf130b2
chore: update loading.md (#4787)
eamd-wq Nov 2, 2024
4b94d62
fix: When multiple Tables are loaded on a page, a warning will be rep…
ORACLE128G Nov 2, 2024
faf18d0
fix: try to fix win32 startup error (#4792)
anncwb Nov 2, 2024
43d95cc
fix: remove vite-plugin-lib-inject-css (#4793)
anncwb Nov 2, 2024
a64a06b
chore: disable the default form configuration of vke-table (#4794)
ORACLE128G Nov 2, 2024
422936a
fix: docker image build failed (#4796)
anncwb Nov 2, 2024
35eef33
refactor: upgrade unbuild to 3.0.0 rc version (#4797)
anncwb Nov 2, 2024
d31535c
docs(@vben/docs): add public static resources path documentation (#47…
9ilfoyl3 Nov 4, 2024
5999a86
perf: expose the formApi for a login form (#4806)
anncwb Nov 4, 2024
44440d0
chore: release v5.4.4
anncwb Nov 4, 2024
bbc426c
chore: vxe-table's renderDefault is deprecated, use renderTableDefaul…
wdzyy Nov 5, 2024
488ccb5
fix: page title is not updated after language switch. fixed: #4799 (#…
mynetfan Nov 5, 2024
6b54cb7
chore: update vscode settings to configure stylelint for .vue files (…
zhaoweijie1213 Nov 6, 2024
33ce4d3
docs: add vxe-table doc (#4807)
ArthurDarkstone Nov 6, 2024
4e88ef0
perf: improve the usage documentation of vben-vxe-table (#4829)
anncwb Nov 6, 2024
dcdebaf
docs: remove unnecessary commas (#4833)
ArthurDarkstone Nov 7, 2024
8f1e397
fix: when the form is destroyed, the form parameters still exist (#4834)
anncwb Nov 7, 2024
da7d61b
feat: add click-to-click event support to the WorkenchProject and Wor…
dingdayu Nov 9, 2024
9cf0573
perf: optimize local startup speed and add header Class configuration…
anncwb Nov 9, 2024
2c6edaf
fix: when opening the tool separately, there is no need to pass the t…
anncwb Nov 9, 2024
6b9acf0
feat: add fieldMapToTime prop to FormRenderProps (#4838)
DesignHhuang Nov 9, 2024
632081e
feat: add icon-picker component (#4832)
DesignHhuang Nov 9, 2024
8617d3d
perf: formApi added validateAndSubmitForm & filedMapToTime renamed fi…
anncwb Nov 9, 2024
4005023
fix: drawer component header does not take effect (#4844)
anncwb Nov 9, 2024
26bec42
fix: pages cannot be quickly moved back by hand gestures (#4845)
anncwb Nov 9, 2024
5e44aa9
fix: drawer header is missing (#4846)
anncwb Nov 9, 2024
546c092
fix: form data that is not submitted by the form should not be carrie…
anncwb Nov 9, 2024
57d5a91
chore: release v5.4.5
anncwb Nov 9, 2024
ba36ce8
feat: pinInput supports disabled props (#4851)
anncwb Nov 10, 2024
90dc00b
fix: unable to preventDefault inside passive event listener invocatio…
anncwb Nov 10, 2024
a3d0d2e
feat: added file download examples (#4853)
anncwb Nov 10, 2024
94efcec
chore: release v5.4.6
anncwb Nov 10, 2024
dc15acc
fix: clipboard demo not working with a-input (#4856)
ArthurDarkstone Nov 11, 2024
ea8af98
docs: add route config desc (#4857)
ArthurDarkstone Nov 11, 2024
1ff1e4a
fix: form enter event handling, fixed #4865 (#4867)
mynetfan Nov 12, 2024
67c2b13
fix: drawer console warning (#4871)
vince292007 Nov 12, 2024
a897116
chore: update eslint configuration (#4872)
vince292007 Nov 12, 2024
8cc73cf
feat: add reize components & demo (#4862)
ArthurDarkstone Nov 13, 2024
5b07947
fix: resolve issue with grid reload parameter not working (#4888)
anncwb Nov 13, 2024
9ddaba5
fix: correct grid styling issue (#4889)
anncwb Nov 13, 2024
86e52ce
fix: resolve onChange issue in form component (#4890)
anncwb Nov 13, 2024
3bd5ef4
fix(@vben/common-ui): pagination current page error (#4893)
wdzyy Nov 14, 2024
788a29a
chore: release v5.4.7
anncwb Nov 14, 2024
b87d41b
fix: adjust `useWatermark` logic (#4896)
mynetfan Nov 15, 2024
ec53bf8
docs: optimize the introduction in both Chinese and English (#4913)
Mintnoii Nov 17, 2024
1302092
fix: dialog `opened/closed` event triggered incorrectly,fixed #4902 (…
mynetfan Nov 17, 2024
77083ab
feat: add 3 resize examples (#4907)
ArthurDarkstone Nov 17, 2024
94c68c9
fix: fieldMappingTime data error when clear inputvalue (#4906)
DesignHhuang Nov 17, 2024
fe58af2
fix: form-api.setValues can't resolve nested fields (#4915)
ryomahan Nov 17, 2024
dbcb713
fix: resolve issue with Upload component not working correctly inside…
anncwb Nov 17, 2024
3587ec5
fix: supplement datepicker component (#4943)
anncwb Nov 24, 2024
c8dd9bb
chore: release 5.4.8
anncwb Nov 24, 2024
12f25cf
style: typo (#4948)
yanquanfahei Nov 25, 2024
f85badf
fix: the route path did not synchronize with the page (#4947)
DesignHhuang Nov 25, 2024
dedba18
feat: add `confirmDisabled` for `Dialog` (#4959)
mynetfan Nov 27, 2024
7350267
feat: add `placement` for `Drawer` (#4958)
mynetfan Nov 27, 2024
54a9ff0
feat: upgrade vite version to 6.0.0 (#4961)
vince292007 Nov 27, 2024
5f55799
fix: button-control page mistake (#4963)
jeff-fe Nov 28, 2024
253abc5
chore: tailwind css icon example (#4969)
mynetfan Nov 28, 2024
3fb286b
fix: element hover style in dark theme (#4983)
mynetfan Nov 30, 2024
7b98661
chore: update deprecated document link in .github/ISSUE_TEMPLATE (#4986)
richex-cn Nov 30, 2024
e3a9397
fix: when VxeTable toolbarConfig.refresh is enabled, it will carry in…
imdap Nov 30, 2024
3c4af23
fix: 修复 Form Api 根据字段名移除表单项,字段取反了的问题 (#4971)
gee1k Nov 30, 2024
e8992a1
chore: update modal.vue (#4987)
huangfe1 Nov 30, 2024
32117b7
docs: add form slots docs (#4992)
mynetfan Dec 1, 2024
ae3f7cb
fix: mixed menu layout in full content mode (#4990)
mynetfan Dec 1, 2024
12f216c
fix: form 表单不支持field.xxx.xx格式的defaultValue配置 (#4965)
leizhiyou Dec 1, 2024
014e6d3
chore: update deps (#4993)
anncwb Dec 1, 2024
24b9aa4
chore: Revert "fix: form 表单不支持field.xxx.xx格式的defaultValue配置 (#4965)"
anncwb Dec 1, 2024
17c7ce8
feat: improve `page` component (#5013)
mynetfan Dec 4, 2024
935df71
fix: app config support `.env.local` (#5012)
mynetfan Dec 4, 2024
e23486d
feat: form component `IconPicker` (#5005)
mynetfan Dec 4, 2024
fccbe44
feat: v-loading support for `element plus` (#5008)
mynetfan Dec 4, 2024
9b73792
fix: extra menu title follow locale change (#5006)
mynetfan Dec 4, 2024
845f2a2
fix: header left padding fixed (#5007)
mynetfan Dec 4, 2024
db38ef5
fix: `Page` header class in fixed mode (#5023)
mynetfan Dec 4, 2024
9896a67
feat: add api-select component (#5024)
anncwb Dec 4, 2024
7ab0025
chore: release 5.5.0
anncwb Dec 4, 2024
05b4b61
fix: select Long option style problem (#5030)
DesignHhuang Dec 5, 2024
fe236ea
feat: add submitOnChange props to vben form (#5032)
DesignHhuang Dec 5, 2024
21d37a1
fix: `dialog` and `drawer` footer gap in small screen (#5025)
mynetfan Dec 5, 2024
f0db3d6
chore: codeowners update (#5048)
mynetfan Dec 6, 2024
d1862fb
fix: replace input component in `IconPicker` (#5047)
mynetfan Dec 6, 2024
d42daf9
fix: modal radius not follow preferences (#5063)
mynetfan Dec 7, 2024
03f166f
fix: `form` prop `handleValuesChange` no effect (#5060)
mynetfan Dec 7, 2024
4c1fc4a
fix: validate message not display, fix #5034 (#5038)
mynetfan Dec 7, 2024
68ab73b
fix: range picker props fixed for element-plus (#5042)
mynetfan Dec 7, 2024
b75a8e6
fix: form setValues not support `dayjs` and `Date` value (#5064)
mynetfan Dec 7, 2024
0fc0f13
fix: layout overflow style (#5066)
mynetfan Dec 7, 2024
bac0275
chore: page prop type check (#5067)
mynetfan Dec 7, 2024
3737666
chore: remove useless `fixedHeader` prop for `Page` (#5069)
mynetfan Dec 7, 2024
958c8b4
feat: imporve naive form component (#5071)
mynetfan Dec 8, 2024
305549e
feat: improve element plus form component (#5072)
mynetfan Dec 8, 2024
d085736
feat: improve `ApiSelect` component (#5075)
mynetfan Dec 9, 2024
018ddc7
feat: add default `placeholder` for `ApiSelect` (#5078)
mynetfan Dec 9, 2024
e419b03
feat: modal&drawer support appendToMain and zIndex (#5092)
mynetfan Dec 10, 2024
07b1ad1
chore: remove redundant test code (#5094)
mynetfan Dec 10, 2024
2cc918f
feat: replace `ElSelect` with `ElSelectV2` in component adapter for b…
ArthurDarkstone Dec 11, 2024
eec6f41
refactor: `ApiComponent` with docs (#5099)
mynetfan Dec 11, 2024
4a20156
fix: table auto height (#5101)
mynetfan Dec 11, 2024
43adc94
docs: fix typos (#5105)
mynetfan Dec 11, 2024
991ada3
chore: update deps (#5107)
mynetfan Dec 11, 2024
7c4dfdc
feat: form support reverse action buttons (#5108)
mynetfan Dec 11, 2024
d308da6
fix: resolve table toolbar error (#5109)
mynetfan Dec 11, 2024
ed465d2
feat: table search form visible control (#5121)
mynetfan Dec 12, 2024
cbca9ff
chore: release 5.5.1
anncwb Dec 12, 2024
1d3729a
fix: form submission not appropriate (#5126)
mynetfan Dec 13, 2024
be208fe
fix: form support `disabledOnInputListener` (#5127)
mynetfan Dec 13, 2024
7fbf7b1
feat: tabbar support mouse wheel vertical (#5129)
mynetfan Dec 13, 2024
0410f1e
fix: element plus validate failed style (#5130)
mynetfan Dec 13, 2024
698daf4
fix: form component events bind (#5137)
mynetfan Dec 14, 2024
e558087
fix: vscode debug profile (#5140)
mynetfan Dec 15, 2024
bedf199
fix: vxeGrid default sort data no effect in first query (#5141)
mynetfan Dec 15, 2024
7581fb3
fix: pinInput value synchronous update (#5142)
mynetfan Dec 15, 2024
f446cbf
feat: user-dropdown support `hover` trigger (#5143)
mynetfan Dec 15, 2024
ce4af37
fix: login expired modal z-index (#5145)
mynetfan Dec 15, 2024
22c1f86
fix: `disabledOnChangeListener` not work in form (#5146)
mynetfan Dec 15, 2024
2efb5b7
feat: auto activate subMenu on select root menu (#5147)
mynetfan Dec 15, 2024
f6faeb0
feat: `autoActivateChild` support more layout mode (#5148)
mynetfan Dec 15, 2024
0f75650
feat: add demo for modify menu badge data
mynetfan Dec 16, 2024
38805a0
feat: improve code login demo (#5154)
mynetfan Dec 16, 2024
593916d
feat: form `colon` support (#5156)
mynetfan Dec 16, 2024
4fe4461
docs: fix docs-link and add `EllipsisText` docs (#5158)
mynetfan Dec 17, 2024
181e387
fix: form auto submit no effect when showDefaultActions is false (#5163)
mynetfan Dec 17, 2024
b22d900
feat: form compact mode support (#5165)
mynetfan Dec 17, 2024
a97c998
fix: user homePath no effect sometimes (#5166)
mynetfan Dec 17, 2024
10b3a16
fix: sidebar style on focus (#5178)
mynetfan Dec 18, 2024
db5b727
feat: page content class override (#5179)
mynetfan Dec 18, 2024
3201b84
fix: resolve eslint errors as well as TS type errors (#5172)
chengazhen Dec 19, 2024
968c445
docs: fix typos (#5169)
Booshaw Dec 19, 2024
85cbb3b
fix: remove the overlap caused by border-b (#5160)
lonewolfyx Dec 19, 2024
1853ba1
fix: sidebar header height (#5183)
mynetfan Dec 19, 2024
acd87b2
feat: add `resizable` and `ColPage` component (#5188)
mynetfan Dec 19, 2024
a44ff73
fix: grid tools in toolbar config not working as expected (#5190)
mynetfan Dec 19, 2024
9a66082
fix: vxeGrid top padding (#5193)
mynetfan Dec 20, 2024
24a4935
fix: build error (#5199)
anncwb Dec 20, 2024
68a7e79
fix: grid form submit button locale switch (#5205)
mynetfan Dec 21, 2024
cb5ecf4
chore: add apiSelect remote search demo (#5246)
mynetfan Dec 26, 2024
15fe82c
chore: update deps
mynetfan Dec 28, 2024
ec2c6ef
feat: header menu align support (#5256)
mynetfan Dec 28, 2024
548c2e5
chore: downgrade vue-tsc version
mynetfan Dec 28, 2024
07c4ad0
chore: release 5.5.2
anncwb Dec 28, 2024
ff8d5ca
feat: header mixed layout (#5263)
mynetfan Dec 30, 2024
2eb7fed
fix: header-mixed layout side-menu active (#5265)
mynetfan Dec 30, 2024
4a8e6ab
feat: modal support destroy on close
mynetfan Dec 30, 2024
e86a790
feat: drawer support `onOpened` & `onClosed`
mynetfan Dec 30, 2024
de17007
feat: drawer support destroy on close
mynetfan Dec 30, 2024
27ba45a
docs: update dialog and drawer docs
mynetfan Dec 30, 2024
376aad5
feat: drawer close icon placement (#5269)
mynetfan Dec 30, 2024
2135cb8
feat: new layout `sidebar nav with full header` (#5270)
mynetfan Dec 30, 2024
3af22f7
fix: header logo may not be collapsed in `header-sidebar-nav` layout …
mynetfan Dec 31, 2024
e9dc613
fix: breadcrumb setting not valid for `header-sidebar-nav` layout (#5…
mynetfan Dec 31, 2024
4d81b9d
fix: sidebar preferences fixed (#5276)
mynetfan Dec 31, 2024
081d2ae
perf: format code with better style (#5283)
anncwb Jan 1, 2025
801c640
fix: vben select placeholder color (#5286)
mynetfan Jan 2, 2025
06cccc5
chore: update quick-start.md (#5303)
f2ngwx Jan 5, 2025
bbbdbfa
feat: useEcharts exports echarts instance#5294 (#5299)
clddup Jan 5, 2025
16162c0
fix: download from url triggered twice sometimes (#5319)
wangwenting-dev Jan 8, 2025
2828e7a
fix: form `fieldMappingTime` is not working (#5333)
mynetfan Jan 9, 2025
99c7fd7
fix: code lint
mynetfan Jan 9, 2025
516d0b8
fix: form `fieldMappingTime` improve and `modelPropName` support (#5335)
mynetfan Jan 9, 2025
c979c23
fix: form valid-error style in naive (#5336)
mynetfan Jan 9, 2025
d34838b
fix: primaryColor calculation (#5337)
mynetfan Jan 9, 2025
e10cbe2
chore: update deps
mynetfan Jan 10, 2025
7606b86
fix: vxeGrid init without search form (#5342)
mynetfan Jan 10, 2025
624beb6
fix: locale switching logic correction (#5344)
mynetfan Jan 10, 2025
b8bffd8
feat: allow close tab when mouse middle button click (#5347)
mynetfan Jan 10, 2025
1a04a05
perf: modal and drawer api support chain calls (#5351)
mynetfan Jan 11, 2025
4676895
perf: add nested modal demo (#5353)
mynetfan Jan 11, 2025
a263731
feat: integrate new component `Tippy` with demo (#5355)
mynetfan Jan 11, 2025
cb9c8db
feat: improve `tippy` demo (#5357)
mynetfan Jan 11, 2025
6719e26
feat: popup component support overlay blur effect (#5359)
mynetfan Jan 11, 2025
b785bc5
fix: useEcharts return invalid instance (#5360)
mynetfan Jan 12, 2025
79d4d2f
ci: retry deploy while faild
mynetfan Jan 12, 2025
8cf6e8e
style: popover bgColor is too close to common (#5364)
mynetfan Jan 12, 2025
42e3220
fix: spinner may stop playing animation after dismiss (#5365)
mynetfan Jan 12, 2025
1ad5456
feat: add `noBasicLayout` in route meta (#5386)
mynetfan Jan 14, 2025
5965755
fix: root router config fixed (#5389)
mynetfan Jan 14, 2025
e1c503e
feat: support set default props for drawer and modal (#5390)
mynetfan Jan 14, 2025
76c4aa2
fix: hide root route in breadcrumb
mynetfan Jan 14, 2025
fb0ec05
perf: improve fieldMappingTime to support format function (#5392)
mynetfan Jan 14, 2025
27a3888
style: element plus loading style fixed (#5393)
mynetfan Jan 14, 2025
13087a1
refactor: fix popup component zIndex (#5397)
mynetfan Jan 15, 2025
8cc903c
feat: modal state locked on submitting (#5401)
mynetfan Jan 15, 2025
816d1f5
fix: demos route fixed (#5405)
mynetfan Jan 15, 2025
c312966
fix: form update state error before form mounted (#5406)
mynetfan Jan 15, 2025
509b268
docs: update docs (#5408)
mynetfan Jan 16, 2025
2d0859a
fix: mouse events ignored on modal loading (#5409)
mynetfan Jan 16, 2025
3f0f4d5
fix: antd button icon style (#5421)
mynetfan Jan 17, 2025
5611f6c
perf: request support to set how to return response (#5436)
mynetfan Jan 19, 2025
22e6f28
perf: easy to define fieldName of response data (#5442)
mynetfan Jan 20, 2025
5bd7386
feat: auto fetch icon list in iconPicker (#5446)
mynetfan Jan 21, 2025
195ceec
chore: release 5.5.3
anncwb Jan 21, 2025
e225159
fix: request download and upload not support `responseReturn` (#5456)
mynetfan Jan 21, 2025
cb7c0ec
fix: menu data for backend mode fixed (#5465)
mynetfan Jan 26, 2025
67d1f29
fix: renderComponentContent lose slot props data (#5466)
mynetfan Jan 26, 2025
a832edc
docs: update request and access docs (#5468)
jsxzhub Feb 3, 2025
f8bb396
fix: ant tag icon default style (#5473)
mynetfan Feb 4, 2025
7e7a5f3
chore: remove testing code
mynetfan Feb 4, 2025
061fcf9
chore: update deps
mynetfan Feb 4, 2025
a9f9031
docs: update form docs (#5485)
mynetfan Feb 6, 2025
5262233
feat: tabbar support max count limit (#5490)
mynetfan Feb 6, 2025
e7b0097
fix: width for ellipsisText tooltip in popover content (#5517)
mynetfan Feb 12, 2025
182f1c9
fix: userDropdown triggered unnecessary while overlay shown (#5520)
mynetfan Feb 12, 2025
f9504ce
chore: add qq group 5 (#5530)
jinmao88 Feb 13, 2025
6cba181
feat: new component jsonViewer (#5544)
mynetfan Feb 16, 2025
cd258fb
chore: update deps
mynetfan Feb 16, 2025
10ebf03
fix: auth api definition
mynetfan Feb 16, 2025
7999341
style: code style fixed
mynetfan Feb 16, 2025
b6b97ac
feat: add more event for `jsonViewer` (#5546)
mynetfan Feb 17, 2025
e0eb57d
fix: nitro server cors support with cookie (#5549)
mynetfan Feb 17, 2025
9f82052
feat: demo of motion plugin (#5550)
mynetfan Feb 17, 2025
cddf71e
fix: playground route missing
mynetfan Feb 17, 2025
24bad09
refactor: new `CountTo` component with demo (#5551)
mynetfan Feb 17, 2025
c07281b
fix: form item slot context fixed (#5552)
mynetfan Feb 17, 2025
c5c6760
chore: eslint rules update
mynetfan Feb 18, 2025
ccd99eb
fix: solve the problem of inconsistent returns of formSchema custom f…
anyup Feb 20, 2025
a221d2b
fix: form item overflow fixed and layout improved (#5572)
mynetfan Feb 20, 2025
1a12687
fix: vben count to animator event name fixed (#5573)
mynetfan Feb 20, 2025
5aff8ba
fix: `CountTo` component resolve `separator` prop not taking effect (…
fzq1998 Feb 21, 2025
c9ccd2b
fix: form label and control style (#5580)
mynetfan Feb 21, 2025
eba3720
feat: improve form demo (#5582)
mynetfan Feb 21, 2025
579b1b4
feat: loading and spinner component with directive (#5587)
mynetfan Feb 23, 2025
d49e3e8
fix: loading and spinner style fixed and improved (#5588)
mynetfan Feb 23, 2025
4570d5b
feat: add `VbenButtonGroup` and `VbenCheckButtonGroup` with demo (#5…
mynetfan Feb 24, 2025
d9799fe
fix: `search` take no effect in `icon-picker` with antd (#5592)
mynetfan Feb 24, 2025
12ffb31
fix: Fix inconsistent spacing around search form (issue #5429) (#5495)
littlesparklet Feb 24, 2025
7041c6a
chore: output console error for invalid route component (#5593)
mynetfan Feb 24, 2025
d33261d
chore: demo page for system/department (#5611)
mynetfan Feb 25, 2025
0c3dd92
fix: getPopupContainer will return closet form first (#5612)
mynetfan Feb 25, 2025
1d8676f
chore: remove sleep in department list api
mynetfan Feb 25, 2025
5e421ce
chore: demo page menu management (#5619)
mynetfan Feb 26, 2025
7a47637
fix: useDrawer中closeIconPlacement设置无效 (#5624)
jinmao88 Feb 27, 2025
c3eb4fa
docs: fix zod rules docs
mynetfan Feb 27, 2025
86ce65e
fix: hideChildrenInMenu demo code (#5626)
mynetfan Feb 27, 2025
0e0661f
fix: breadcrumb style is affected by the globally-imported antd style…
mynetfan Feb 27, 2025
86fdd6c
fix: drawer close icon placement default value
mynetfan Feb 28, 2025
a53ca3f
chore: update depts
mynetfan Feb 28, 2025
5ea6b4a
fix: logo style in login page is affected by the globally-imported an…
mynetfan Feb 28, 2025
e815f0f
docs: `vbenVxeTable` slots docs update
mynetfan Mar 1, 2025
27b9763
feat: update fba-admin to web-antd
wu-clan Mar 3, 2025
13bcfcc
feat: bump to vben main branch
wu-clan Mar 3, 2025
49af0ff
feat: update lock file
wu-clan Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=space
indent_size=2
max_line_length = 100
trim_trailing_whitespace = true
quote_type = single

[*.{yml,yaml,json}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[core]
ignorecase = false
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,24 @@ vite.config.ts.*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.history

# 升级vben时需要删除的文件
.vscode
.changeset
.github
backend-mock
web-ele
web-naive
docs
playground
.gitpod.yml
README.*.md
tea.yaml
vben-admin.code-workspace
scripts/deploy
6 changes: 6 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo Start running commit-msg hook...

# Check whether the git commit information is standardized
pnpm exec commitlint --edit "$1"

echo Run commit-msg hook done.
3 changes: 3 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 每次 git pull 之后, 安装依赖

pnpm install
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# update `.vscode/vben-admin.code-workspace` file
pnpm vsh code-workspace --auto-commit

# Format and submit code according to lintstagedrc.js configuration
pnpm exec lint-staged

echo Run pre-commit hook done.
14 changes: 7 additions & 7 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export default {
'*.md': ['prettier --cache --ignore-unknown --write'],
'*.vue': [
'prettier --write',
'eslint --cache --fix',
'stylelint --fix --allow-empty-input',
],
'*.{js,jsx,ts,tsx}': [
'prettier --cache --ignore-unknown --write',
'eslint --cache --fix',
Expand All @@ -7,14 +13,8 @@ export default {
'prettier --cache --ignore-unknown --write',
'stylelint --fix --allow-empty-input',
],
'*.md': ['prettier --cache --ignore-unknown --write'],
'*.vue': [
'prettier --write',
'eslint --cache --fix',
'stylelint --fix --allow-empty-input',
],
'package.json': ['prettier --cache --write'],
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': [
'prettier --cache --write--parser json',
],
'package.json': ['prettier --cache --write'],
};
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.14.0
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
registry = "https://registry.npmmirror.com"
public-hoist-pattern[]=husky
public-hoist-pattern[]=eslint
public-hoist-pattern[]=prettier
public-hoist-pattern[]=prettier-plugin-tailwindcss
Expand Down
10 changes: 0 additions & 10 deletions apps/fba-admin/vite.config.mts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions apps/fba-admin/package.json → apps/web-antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit --skipLibCheck"
},
"type": "module",
"imports": {
"#/*": "./src/*"
},
Expand Down
File renamed without changes.
Binary file added apps/web-antd/public/favicon.ico
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
* 可用于 vben-form、vben-modal、vben-drawer 等组件使用,
*/

import type { Component, SetupContext } from 'vue';

import type { BaseFormComponentType } from '@vben/common-ui';

import type { Component, SetupContext } from 'vue';
import { h } from 'vue';

import { ApiComponent, globalShareState, IconPicker } from '@vben/common-ui';
Expand Down Expand Up @@ -124,7 +125,13 @@ async function initComponentAdapter() {
IconPicker: (props, { attrs, slots }) => {
return h(
IconPicker,
{ iconSlot: 'addonAfter', inputComponent: Input, ...props, ...attrs },
{
iconSlot: 'addonAfter',
inputComponent: Input,
modelValueProp: 'value',
...props,
...attrs,
},
slots,
);
},
Expand Down
File renamed without changes.
File renamed without changes.
51 changes: 51 additions & 0 deletions apps/web-antd/src/api/core/auth.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { baseRequestClient, requestClient } from '#/api/request';

export namespace AuthApi {
/** 登录接口参数 */
export interface LoginParams {
password?: string;
username?: string;
}

/** 登录接口返回值 */
export interface LoginResult {
accessToken: string;
}

export interface RefreshTokenResult {
data: string;
status: number;
}
}

/**
* 登录
*/
export async function loginApi(data: AuthApi.LoginParams) {
return requestClient.post<AuthApi.LoginResult>('/auth/login', data);
}

/**
* 刷新accessToken
*/
export async function refreshTokenApi() {
return baseRequestClient.post<AuthApi.RefreshTokenResult>('/auth/refresh', {
withCredentials: true,
});
}

/**
* 退出登录
*/
export async function logoutApi() {
return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
}

/**
* 获取用户权限码
*/
export async function getAccessCodesApi() {
return requestClient.get<string[]>('/auth/codes');
}
3 changes: 3 additions & 0 deletions apps/web-antd/src/api/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './auth';
export * from './menu';
export * from './user';
10 changes: 10 additions & 0 deletions apps/web-antd/src/api/core/menu.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { RouteRecordStringComponent } from '@vben/types';

import { requestClient } from '#/api/request';

/**
* 获取用户所有菜单
*/
export async function getAllMenusApi() {
return requestClient.get<RouteRecordStringComponent[]>('/menu/all');
}
10 changes: 10 additions & 0 deletions apps/web-antd/src/api/core/user.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { UserInfo } from '@vben/types';

import { requestClient } from '#/api/request';

/**
* 获取用户信息
*/
export async function getUserInfoApi() {
return requestClient.get<UserInfo>('/user/info');
}
1 change: 1 addition & 0 deletions apps/web-antd/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './core';
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
/**
* 该文件可自行根据业务逻辑进行调整
*/
import type { HttpResponse } from '@vben/request';
import type { RequestClientOptions } from '@vben/request';

import { useAppConfig } from '@vben/hooks';
import { preferences } from '@vben/preferences';
import {
authenticateResponseInterceptor,
defaultResponseInterceptor,
errorMessageResponseInterceptor,
RequestClient,
} from '@vben/request';
import { useAccessStore } from '@vben/stores';

import { message } from 'ant-design-vue';

import { refreshTokenApi } from '#/api/auth';
import { useAuthStore } from '#/store';

import { refreshTokenApi } from './core';

const { apiURL } = useAppConfig(import.meta.env, import.meta.env.PROD);

function createRequestClient(baseURL: string) {
function createRequestClient(baseURL: string, options?: RequestClientOptions) {
const client = new RequestClient({
...options,
baseURL,
});

Expand Down Expand Up @@ -68,19 +71,14 @@ function createRequestClient(baseURL: string) {
},
});

// response数据解构
client.addResponseInterceptor<HttpResponse>({
fulfilled: (response) => {
const { data: responseData, status } = response;

const { code, data } = responseData;
if (status >= 200 && status < 400 && code === 200) {
return data;
}

throw Object.assign({}, response, { response });
},
});
// 处理返回的响应数据格式
client.addResponseInterceptor(
defaultResponseInterceptor({
codeField: 'code',
dataField: 'data',
successCode: 0,
}),
);

// token过期的处理
client.addResponseInterceptor(
Expand All @@ -96,15 +94,20 @@ function createRequestClient(baseURL: string) {
// 通用的错误处理,如果没有进入上面的错误处理逻辑,就会进入这里
client.addResponseInterceptor(
errorMessageResponseInterceptor((msg: string, error) => {
// 这里可以根据业务进行定制,你可以拿到 error 内的信息进行定制化处理,根据不同的 code 做不同的提示,而不是直接使用 message.error 提示 msg
// 当前mock接口返回的错误字段是 error 或者 message
const responseData = error?.response?.data ?? {};
const errorMessage = responseData?.error ?? responseData?.message ?? '';
// 如果没有错误信息,则会根据状态码进行提示
message.error(errorMessage || msg);
}),
);

return client;
}

export const requestClient = createRequestClient(apiURL);
export const requestClient = createRequestClient(apiURL, {
responseReturn: 'data',
});

export const baseRequestClient = new RequestClient({ baseURL: apiURL });
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions apps/fba-admin/src/bootstrap.ts → apps/web-antd/src/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createApp, watchEffect } from 'vue';

import { registerAccessDirective } from '@vben/access';
import { initTippy, registerLoadingDirective } from '@vben/common-ui';
import { MotionPlugin } from '@vben/plugins/motion';
import { preferences } from '@vben/preferences';
import { initStores } from '@vben/stores';
import '@vben/styles';
Expand All @@ -18,8 +20,23 @@ async function bootstrap(namespace: string) {
// 初始化组件适配器
await initComponentAdapter();

// // 设置弹窗的默认配置
// setDefaultModalProps({
// fullscreenButton: false,
// });
// // 设置抽屉的默认配置
// setDefaultDrawerProps({
// zIndex: 1020,
// });

const app = createApp(App);

// 注册v-loading指令
registerLoadingDirective(app, {
loading: 'loading', // 在这里可以自定义指令名称,也可以明确提供false表示不注册这个指令
spinning: 'spinning',
});

// 国际化 i18n 配置
await setupI18n(app);

Expand All @@ -29,9 +46,15 @@ async function bootstrap(namespace: string) {
// 安装权限指令
registerAccessDirective(app);

// 初始化 tippy
initTippy(app);

// 配置路由及路由守卫
app.use(router);

// 配置Motion插件
app.use(MotionPlugin);

// 动态更新标题
watchEffect(() => {
if (preferences.app.dynamicTitle) {
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions apps/web-antd/src/locales/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# locale

每个app使用的国际化可能不同,这里用于扩展国际化的功能,例如扩展 dayjs、antd组件库的多语言切换,以及app本身的国际化文件。
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { LocaleSetupOptions, SupportedLanguagesType } from '@vben/locales';
import type { Locale } from 'ant-design-vue/es/locale';

import type { App } from 'vue';

import type { LocaleSetupOptions, SupportedLanguagesType } from '@vben/locales';

import { ref } from 'vue';

import {
Expand Down
12 changes: 12 additions & 0 deletions apps/web-antd/src/locales/langs/en-US/demos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Demos",
"antd": "Ant Design Vue",
"vben": {
"title": "Project",
"about": "About",
"document": "Document",
"antdv": "Ant Design Vue Version",
"naive-ui": "Naive UI Version",
"element-plus": "Element Plus Version"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dashboard": {
"title": "Dashboard",
"analytics": "Analytics",
"workspace": "Workspace"
}
}
Loading