alistair3149
88a5d4de9d
fix(search): 🐛 abort search request if there are no query
2023-07-07 20:44:45 -04:00
alistair3149
4ef5376cab
refactor(core): ♻️ clean up various eslint errors
2023-07-07 18:00:14 -04:00
alistair3149
608a2be932
feat(search): ✨ support all existing gateway in multi search
2023-07-07 17:56:01 -04:00
alistair3149
6adc0d7eab
feat(search): ✨ add experimental multi gateway search
...
This is experiemental and just a proof of concept for further work.
For now, typing `\/ask` in the search query will trigger SMW Ask search
2023-07-07 17:24:34 -04:00
github-actions
657c6cf294
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-06-21 18:31:20 +00: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
github-actions
97e6714cc4
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-05-18 17:58:40 +00:00
Simon Stier
2e3e5feb9b
feat(search): add SMW Ask API as search backend option ( #625 )
...
* feat: add SMW Ask API as search backend option
* feat: allow namespace prefix in smw ask query
2023-05-18 13:57:43 -04:00
github-actions
ee90992a89
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-05-01 06:06:54 +00:00
alistair3149
1e47e95a8d
fix(search): 🐛 more robust null check for description
2023-01-09 16:24:28 -05:00
alistair3149
242413bf4a
fix(search): 🐛 incorrect keyboard navigation on typeahead items
2023-01-06 16:03:02 -05:00
alistair3149
bb0eb49aaa
chore(ci): 🔧 👷 make es-x eslint rules warn instead of error
...
They will be addressed when we are rewriting the modules to ES6
2022-12-05 15:08:34 -05:00
alistair3149
9fe063acb9
feat(core): use URL-safe key for search suggestions
...
Use `title` in Action API and `key` in REST API to generate result link
Related: Miraheze T9428
2022-06-21 16:20:43 -04:00
alistair3149
a5c52e48b7
feat(core): indicate when search results are from redirects
...
For REST API, search results will now indicate if they are from redirects.
The current implementation is that it will always show up, the logic to
trim redundant info will come later
Related: T303013
2022-05-20 19:10:36 -04:00
github-actions
df7abc4010
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-12-16 03:20:34 +00:00
github-actions
ea428465b8
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-18 16:35:05 +00:00
alistair3149
48deb87709
fix: add null check when accessing undefined keys
...
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-05-18 12:34:08 -04:00
alistair3149
b2bd79196d
feat: rework search module ( #386 )
...
* feat: rewrite search module (WIP)
There are some caveats because it is a WIP
- Messages are not i18n yet
- Missing placeholder suggestion thumbnail
- Only REST mode works
- Missing greeting message when there is no search query
- Code might look like a mess (I learned JS not long ago)
* refactor: remove old search module
* feat: clean up search suggestion styles
* feat: hide overflow for suggestion text
* feat: add action API and various cleanup
* feat: re-add abort controller
* feat: add message support and tweaks
* feat: use virtual config instead of ResourceLoader hook
* fix: missing comma in const definition
* feat: add ARIA attributes
2021-05-17 16:34:14 -04:00