-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
feat[Search]: route search supports pinyin #2643
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PanJiaChen
reviewed
Oct 10, 2019
@@ -65,6 +72,23 @@ export default { | |||
this.searchPool = this.generateRoutes(this.routes) | |||
}, | |||
methods: { | |||
addPinyinField(list) { | |||
const pinyin = require('pinyin') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://webpack.js.org/guides/code-splitting/#dynamic-imports
通过dynamic-imports
引入吧。
PanJiaChen
reviewed
Oct 10, 2019
package.json
Outdated
@@ -58,6 +58,7 @@ | |||
"normalize.css": "7.0.0", | |||
"nprogress": "0.2.0", | |||
"path-to-regexp": "2.4.0", | |||
"pinyin": "^2.9.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写死版本号
已改 |
PanJiaChen
changed the title
支持国际化中文 菜单拼音模糊搜索(可配置)
feat[Search]: route search supports pinyin
May 4, 2020
yamelsenih
added a commit
to adempiere/adempiere-vue
that referenced
this pull request
Jun 19, 2020
* chore: remove i18n (#1828) * [release] 4.1.0 * perf[Profile]: adapt the profile page to the mobile (PanJiaChen#2020) * Revert "perf: optimize page scrolling when setting fixedHeader" This reverts commit e8e6c7e. * perf[Style]: refine fixed-header style when open el-dialog * doc: add new article * chore: use mockjs in production environment * fix[sidebar.css]: remove redundant css * perf[style]: refine dashboard style in mobile (PanJiaChen#2060) * feat[ErrorLog]: add a clear button in ErrorLog component (PanJiaChen#2065) * fix[redirect]: fix redirect bug in vue-devtools (PanJiaChen#2066) * perf[Tinymce]: update tinymce cdn version * fix[redirect]: fix redirect bug in vue-devtool again * docs: add support to readme for Spanish (PanJiaChen#2070) * docs[es]: add some translation(PanJiaChen#2080) * perf[Exapme]: set page title according to article id * perf[RightPanel]: tidy css (PanJiaChen#2101) * feat[SvgIcon]: support import svg from url (PanJiaChen#2052) * fix: fixed change roles bug (PanJiaChen#2072) * perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (PanJiaChen#2086) * perf[store]: add support to sub-modules (PanJiaChen#2047) * perf[Login]: support other query (PanJiaChen#2013) * refactor[chore]: generate postcss.config.js instead of .postcssrc.js consistent with vue-cli * perf[Tinymce]: dynamic import tinymce(PanJiaChen#2102) * [release] 4.2.0 * docs: add support to readme for Spanish (PanJiaChen#2070) * docs[es]: add some translation(PanJiaChen#2080) * perf[Exapme]: set page title according to article id * perf[RightPanel]: tidy css (PanJiaChen#2101) * feat[SvgIcon]: support import svg from url (PanJiaChen#2052) * fix: fixed change roles bug (PanJiaChen#2072) * perf[Breadcrumb]: do not update breadcrumbs when go to redirect page (PanJiaChen#2086) * perf[store]: add support to sub-modules (PanJiaChen#2047) * perf[Login]: support other query (PanJiaChen#2013) * refactor[chore]: generate postcss.config.js instead of .postcssrc.js consistent with vue-cli * perf[Tinymce]: dynamic import tinymce(PanJiaChen#2102) * [release] 4.2.0 * perf[Style]: refine example css * fix[Chart]: fixed chart bug in keep-alive (PanJiaChen#2119) * perf[Style]: refine example css * fix[Chart]: fixed chart bug in keep-alive (PanJiaChen#2119) * Create FUNDING.yml * chore: set localhost => 127.0.0.1 (PanJiaChen#2142) * update github ISSUE_TEMPLATE * chore: add autoprefixer to devDependencies * perf[Tinymce]: add language option (PanJiaChen#2159) * fix[Tinymce]: fixed bug when init multiple tinymces at the same time (PanJiaChen#2152) * feat: add tab url demo (PanJiaChen#2114) * perf[request.js]: refine error reject (PanJiaChen#2160) * [release] 4.2.1 * Create FUNDING.yml * chore: set localhost => 127.0.0.1 (PanJiaChen#2142) * update github ISSUE_TEMPLATE * chore: add autoprefixer to devDependencies * fix[Tinymce]: fixed bug when init multiple tinymces at the same time (PanJiaChen#2152) * feat: add tab url demo (PanJiaChen#2114) * perf[request.js]: refine error reject (PanJiaChen#2160) * [release] 4.2.1 * perf: default not set withCredentials * fix[ImageCropper]: removeEventListener when destroyed(PanJiaChen#2169) * docs: fix typo (PanJiaChen#2170) * fix: input attribute autocomplete error (PanJiaChen#2191) * perf: default not set withCredentials * fix[ImageCropper]: removeEventListener when destroyed(PanJiaChen#2169) * docs: fix typo (PanJiaChen#2170) * fix: input attribute autocomplete error (PanJiaChen#2191) * perf[PanThumb]: Replace the image tag with background-image to prevent the stretching (PanJiaChen#2202) * docs: fix typo README.zh-CN.md (PanJiaChen#2283) 修改错别字 * perf[clipboard.js]: remove redundant code (PanJiaChen#2307) * bump: update axios for security vulnerability * bump: update @vue/cli-plugin-eslint version (PanJiaChen#2327) FIx cannot find module '.../node_modules/eslint/lib/api.js/package.json' bug,see vuejs/vue-cli#4231. * chore: allow dynamic set port * fix[complex-table]: form header sort icon is out of sync (PanJiaChen#2382) * fix: fixed missing icons * fix: typos (PanJiaChen#2532) Role Nmae => Role Name * docs: add awesome-project * fix[Dashboard]: fixed debounce bug (PanJiaChen#2586) (PanJiaChen#2597) To fixed PanJiaChen#2586 * perf: VS Code support webpack alias file jump (PanJiaChen#2609) * perf: optimize import file-saver way(PanJiaChen#2347) * refactor[ImageCropper]: fix lint error (PanJiaChen#2365) * fix: fixed numberFormatter bug PanJiaChen#2568 * fix[example]: fixed create.vue cache error PanJiaChen#2608 * perf[utils.js]: perf parseTime function (PanJiaChen#2625) * perf[tagsView]: pref DEL_CACHED_VIEW and DEL_OTHERS_CACHED_VIEWS function (PanJiaChen#2626) * fix[tagsView]: fixed DEL_OTHERS_CACHED_VIEWS bug * fix[logout]: empty tagsview when logout (PanJiaChen#2632) * fix[TagsView]: fixed toLastView bug (PanJiaChen#2634) * perf[SvgIcon]: change xlink:href to href(PanJiaChen#2645) https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href * fix[TagsView]: fixed click.middle can close affixed tag bug (PanJiaChen#2649) * docs: add job ad * perf[PanThumb]: Replace the image tag with background-image to prevent the stretching (PanJiaChen#2202) * docs: fix typo README.zh-CN.md (PanJiaChen#2283) 修改错别字 * perf[clipboard.js]: remove redundant code (PanJiaChen#2307) * bump: update axios for security vulnerability * bump: update @vue/cli-plugin-eslint version (PanJiaChen#2327) FIx cannot find module '.../node_modules/eslint/lib/api.js/package.json' bug,see vuejs/vue-cli#4231. * chore: allow dynamic set port * fix[complex-table]: form header sort icon is out of sync (PanJiaChen#2382) * fix: fixed missing icons * fix: typos (PanJiaChen#2532) Role Nmae => Role Name * docs: add awesome-project * fix[Dashboard]: fixed debounce bug (PanJiaChen#2586) (PanJiaChen#2597) To fixed PanJiaChen#2586 * perf: VS Code support webpack alias file jump (PanJiaChen#2609) * perf: optimize import file-saver way(PanJiaChen#2347) * refactor[ImageCropper]: fix lint error (PanJiaChen#2365) * fix: fixed numberFormatter bug PanJiaChen#2568 * fix[example]: fixed create.vue cache error PanJiaChen#2608 * perf[utils.js]: perf parseTime function (PanJiaChen#2625) * perf[tagsView]: pref DEL_CACHED_VIEW and DEL_OTHERS_CACHED_VIEWS function (PanJiaChen#2626) * fix[tagsView]: fixed DEL_OTHERS_CACHED_VIEWS bug * fix[logout]: empty tagsview when logout (PanJiaChen#2632) * fix[TagsView]: fixed toLastView bug (PanJiaChen#2634) * perf[SvgIcon]: change xlink:href to href(PanJiaChen#2645) https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href * fix[TagsView]: fixed click.middle can close affixed tag bug (PanJiaChen#2649) * docs: add job ad * feat: add job * docs: improved README.md (PanJiaChen#2656) * style: fix el-date-picker css style * perf: format dropdown menu code (PanJiaChen#2720) * perf: format inline edit table (PanJiaChen#2725) move one format `{row}` * perf: format drag table (PanJiaChen#2733) move one format `{row}` * perf: complex table (PanJiaChen#2732) * perf: text i18n (PanJiaChen#2739) * update 'MarkdownEditor' components name * format: space in user card (PanJiaChen#2744) * perf: format pdf download (PanJiaChen#2791) * perf[views/icons]: use grid (PanJiaChen#2803) * feat: plop new generate store (PanJiaChen#2805) * fix[icons]:fixed eslint 1 error and 2 warnings (PanJiaChen#2835) * perf[documentation]: refine css * fix[Logout]: click blank area of dropDown able to logout (PanJiaChen#2896) * perf: import mockXHR only in production (PanJiaChen#2910) * 自动排除mock 生产环境,使用webpack的条件编译自动排除mock数据 * perf: refine Co-authored-by: 花裤衩 <panfree23@gmail.com> * perf[Menu]: remove unused menu-wrapper (PanJiaChen#2903) * perf[complex-table]:refine code (PanJiaChen#2825) * perf: optimize checkCapslock method (PanJiaChen#2635) * optimize checkCapslock method * update Co-authored-by: 花裤衩 <panfree23@gmail.com> * fix[Charts]: fix charts resize in keep-alive bug (PanJiaChen#2922) * fix[Charts]: fix charts resize in keep-alive bug * refine * fix: fixed mock server (PanJiaChen#2929) * init * refine * update * bump: update element-ui version * fix: fixed require mock bug in production * feat[Search]: route search supports pinyin (PanJiaChen#2643) * fix: fixed redirect path regex (PanJiaChen#2933) * perf[Mock]: set responseFake to mock-server.js(PanJiaChen#2966) * modify 把mock/index.js中与mock-server相关的代码转移到mock-server.js中去,实现两则功能分割 * docs: improve Japanese translation (PanJiaChen#2970) * perf: change script-loader to dependencies * fix[profile/UserCard]: fixed wrong key name (PanJiaChen#3056) roles => role * fix:fixed parseTime bug in ie and safari(PanJiaChen#3066) * /src/utils/index.js parseTime 添加IE浏览器(版本10以下,包括版本10)兼容。 * perf: update Co-authored-by: aisen60 <aisen60@qq.com> Co-authored-by: 花裤衩 <panfree23@gmail.com> * perf: format component names as PascalCase (PanJiaChen#3074) format: component names should be PascalCase * docs: add smallsticker * Update README.zh-CN.md * fix: svg support old broswer (PanJiaChen#3085) * fixed typo (PanJiaChen#3091) * fix: use vue-cli default source-map (PanJiaChen#3097) cheap-module-eval-source-map * perf[Tinymce]: editor try to keep these URLs intact (PanJiaChen#3141) * fix[element-variables]: missing space in element-variables (PanJiaChen#3144) * fix: compatibility with vetur (#1700) * feat: add option to try project on CodeSandbox (PanJiaChen#2976) * docs: add tips * perf: when tags-view scroll close the right-menu * fix[parseTime]: fixed when pass null (PanJiaChen#3038) * fix[css]: min btn width (PanJiaChen#3164) * Add contributor into package.json file. * fixed before merge. Co-authored-by: 花裤衩 <panfree23@gmail.com> Co-authored-by: toruksmakto <42709228+toruksmakto@users.noreply.github.com> Co-authored-by: Yamel Senih <ysenih@erpya.com> Co-authored-by: Yamel Senih <yamelsenih@gmail.com> Co-authored-by: liugq <liugq5713@gmail.com> Co-authored-by: bpzhang <bpzhang@users.noreply.github.com> Co-authored-by: Serge <gaosj1993@foxmail.com> Co-authored-by: MaYuanhai <414199639@qq.com> Co-authored-by: Jessynt <xr5299@gmail.com> Co-authored-by: 肖敏 <392716797@qq.com> Co-authored-by: TinaryTree <mbdkhss@gmail.com> Co-authored-by: itsccn <chen.sun@itsccn.com> Co-authored-by: why <w.why@163.com> Co-authored-by: Baskerville* <wszdlm@gmail.com> Co-authored-by: Francis <31059354+FrancisSano@users.noreply.github.com> Co-authored-by: monkeycf <41945134+monkeycf@users.noreply.github.com> Co-authored-by: BradyBromley <51128276+BradyBromley@users.noreply.github.com> Co-authored-by: Phạm Ngọc Hòa <thaycacac@gmail.com> Co-authored-by: bbigcd <bbigcd@163.com> Co-authored-by: xuanzai <43233731+MikuBlog@users.noreply.github.com> Co-authored-by: flitrue <812863096@qq.com> Co-authored-by: 韬 <605682551@qq.com> Co-authored-by: 任羽飞 <ren12345@126.com> Co-authored-by: Kaitian Xie <xkaitian@gmail.com> Co-authored-by: AndyLZC/AndyLZC.github.io <34624589+AndyLZC@users.noreply.github.com> Co-authored-by: RussXD <shangtouWeb@foxmail.com> Co-authored-by: 李小斐 <623536309@qq.com> Co-authored-by: RoBlues <robluesmail@gmail.com> Co-authored-by: Shota Aratono <195194+artn@users.noreply.github.com> Co-authored-by: echofly <36875450+echofly@users.noreply.github.com> Co-authored-by: Aisen60 <1147319086@qq.com> Co-authored-by: aisen60 <aisen60@qq.com> Co-authored-by: Alex S <50220345+sabatale@users.noreply.github.com> Co-authored-by: Aisen <caixusheng60@gmail.com> Co-authored-by: ntnyq <ntnyq13@gmail.com> Co-authored-by: garethx <gareth.wilson@gmail.com> Co-authored-by: AiMe1991 <sxd.08@163.com> Co-authored-by: cooper <1322849632@qq.com> Co-authored-by: Nickbing Lao <giscafer@outlook.com>
EdwinBetanc0urt
added a commit
to EdwinBetanc0urt/adempiere-vue
that referenced
this pull request
Sep 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.