Commit graph

85 commits

Author SHA1 Message Date
alistair3149 ae7a01f690
refactor(core): ♻️ move some suggestion functions to searchResults 2024-05-22 00:03:49 -04:00
alistair3149 434ec2ebaf
refactor(core): ♻️ various minor refactor 2024-05-21 23:48:09 -04:00
alistair3149 8b1158bc78
refactor(search): ♻️ use data-mw prefix for data attribute names 2024-05-21 22:14:58 -04:00
alistair3149 27c0fb4462
refactor(search): ♻️ various fixes and improvements 2024-05-21 21:43:59 -04:00
github-actions 96171236d7 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-01-27 02:51:04 +00:00
alistair3149 22addebe77
refactor(search): ♻️ start cleaning up search suggestion functions 2024-01-26 21:50:21 -05:00
github-actions dc3ca54d43 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-12-13 22:10:24 +00:00
alistair3149 2a2d6e381f
fix(search): 🐛 show presult during init 2023-09-10 16:38:04 -04:00
alistair3149 6f3d82de04
feat(search): only show edit page action if user has rights
That only works for the main namespace fow now.
2023-09-06 17:33:39 -04:00
alistair3149 dc072f4e5b
refactor(search): ♻️ make search action into a module
Signed-off-by: alistair3149 <alistair31494322@gmail.com>
2023-08-29 20:05:44 -07:00
alistair3149 680d84cfb0
refactor(search): ♻️ rename helper text message keys 2023-08-29 19:39:13 -07:00
alistair3149 3d31d08021
feat(search): add suggestion to edit page 2023-08-29 19:37:17 -07:00
alistair3149 1f0a2e5133
feat(search): reorganize DOM structure of the typeahead 2023-08-29 01:50:55 -07:00
alistair3149 b33d5bbc87
refactor(search): ♻️ rename typeaheadItems to htmlHelper 2023-08-28 19:20:44 -07:00
alistair3149 bf0ed2bd55
refactor(search): ♻️ use faux element to display search query 2023-08-28 18:22:16 -07:00
alistair3149 ff446e61b3
refactor(search): ♻️ use option role to select user-selectable items 2023-08-27 00:50:10 -07:00
alistair3149 0c0f4f4ffb
feat(search): strip wikitext link syntax in search 2023-08-25 18:00:55 -07:00
alistair3149 2f2dc3328c
feat(search): search template namespace when template syntax {{}} is used 2023-08-25 17:28:39 -07:00
alistair3149 f6d3fc95e3
feat(search): add search history to initial state 2023-08-23 17:44:01 -07:00
alistair3149 bd41516190
fix(search): 🐛 do not add empty term to search history 2023-08-22 14:21:06 -07:00
alistair3149 1155b72636
refactor(search): ♻️ use forEach loop for better readability 2023-08-12 14:20:53 -04:00
alistair3149 02662315f8
refactor(search): ♻️ minor cleanup 2023-08-12 14:11:06 -04:00
alistair3149 2016e2a30c
refactor(search): ♻️ break down some of the suggestions functions 2023-08-07 17:00:56 -04:00
alistair3149 59ceaf56cf
refactor(search): ♻️ add groundwork needed for search history 2023-08-04 20:02:42 -04:00
github-actions 70a003d941 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-08-04 21:25:01 +00:00
alistair3149 283aa86888
refactor(search): ♻️ break down updateTypeahead function 2023-08-04 17:24:22 -04:00
alistair3149 c39a4e6796
refactor(search): ♻️ clean up keydown event 2023-08-04 16:33:17 -04:00
alistair3149 c21348d0c7
refactor(search): ♻️ initial state of the elements should be undefined 2023-08-04 16:27:37 -04:00
alistair3149 0aa776b14c
refactor(search): ♻️ clean up composition events 2023-08-04 16:26:19 -04:00
alistair3149 9921a00c17
fix(search): 🐛 ensure that onFocus event are properly fired 2023-08-04 03:37:28 -04:00
alistair3149 0dd3a82c06
fix(search): 🐛 handle multiple redirect key in Action Search Client 2023-08-03 21:20:47 -04:00
alistair3149 e24e0e7429
docs(search): 📚️ add jsdoc type to typeahead elements 2023-08-03 19:30:57 -04:00
alistair3149 fd224071db
refactor(search): ♻️ clean up typeahead init and event functions 2023-08-03 19:25:41 -04:00
alistair3149 eec5c6fd64
feat(search): reimplement multi search command experiment
Search commands start withs slash and includes: action, rest, ask
2023-08-02 22:07:41 -04:00
alistair3149 17593b8202
refactor(search): ♻️ separate search query and client from typeahead.js 2023-08-02 20:16:39 -04:00
alistair3149 9862000b11
refactor(search): ♻️ clean up search query handling 2023-08-02 19:56:09 -04:00
alistair3149 431599cb59
refactor(search): ♻️ reimplement and clean up search clients
This should make the search clients more readable and easier to expand
2023-08-02 18:56:08 -04:00
alistair3149 c2431ebeba
refactor(search): ♻️ clean up result fetch functions
Based on Vector implementation
2023-07-31 20:59:50 -04:00
沈澄心 89a9957cd4
refactor(core): avoid using ES2020+ methods (#669)
Replace ??, ?., and replaceChildren() for better compatibility; hide pref panel in unsupported browsers 

* Update mixins.less

* Update Sections.less

* Update TableOfContents.less

* Update interface-edit-section-links.less

* Update mixins.less

* Update Sections.less

* Update TableOfContents.less

* Update interface-edit-section-links.less

* Update sections.js

* Update tableOfContents.js

* Update mwRestApi.js

* Update mwRestApi.js

* Update skins.citizen.preferences.js

* Update mwActionApi.js

* Update typeahead.js
2023-06-21 14:30:45 -04:00
alistair3149 aaa82d06ef
feat(search): trigger typeahead update when character is composed
Only trigger an update when the character is fully composed.
Examples include various CJK IMEs

Closes: #608
2023-04-03 12:48:10 -04:00
alistair3149 84246c503d
refactor(search): ♻️ do not pass messages var around 2023-04-03 11:52:38 -04:00
alistair3149 ba50defaba
refactor(core): ♻️ make typeahead items more reusuable 2023-03-01 16:31:42 -05:00
alistair3149 b8a1d9c224
refactor(search): ♻️ simplify typeahead styles 2023-03-01 15:27:43 -05:00
alistair3149 4b8e128e4b
feat(search): add search portals to empty state 2023-01-16 18:02:07 -05:00
alistair3149 242413bf4a
fix(search): 🐛 incorrect keyboard navigation on typeahead items 2023-01-06 16:03:02 -05:00
alistair3149 2e9dffb7f0
fix(search): 🐛 correct URL for MediaSearch
Somehow it has to have the type parameter or it'll just go directly to a page if exists
2022-12-17 22:44:36 -05:00
alistair3149 0ca34a5c3f
docs(search): 📚️ document functions and objects 2022-12-14 11:39:18 -05:00
alistair3149 db79f26a66
refactor(search): ♻️ use template literals 2022-12-14 11:22:50 -05:00
alistair3149 c2da5c5ade
fix(search): 🐛 do not collapse whitespace in label text node 2022-12-14 10:40:08 -05:00
alistair3149 203b0b42c3
feat(search): add MediaSearch to typeahead 2022-12-14 10:28:45 -05:00