Simon Stier
a7b99d11f0
feat(core): add config var 'wgCitizenTableNowrapClasses' ( #621 )
...
* add config var 'wgCitizenTableNowrapClasses'
* refactor: load config via require
2023-05-18 13:53:58 -04:00
alistair3149
09ffed668d
fix(core): 🐛 ensure loading indicator is removed when script is loaded
2023-05-06 17:51:41 -04:00
alistair3149
cd93b3d679
feat(core): ✨ ignore cargo dynamic table for table wrapper
2023-05-02 01:09:54 -04:00
alistair3149
79daca474a
feat(core): ✨ ignore dataTable for table wrapper
...
It seems that dataTable collide with the wrapper for some reason.
Looking for help on this one if anyone knows.
2023-05-02 00:32:07 -04:00
alistair3149
661fbf0b8f
feat(core): ✨ do not wrap changelist tables
2023-05-01 23:34:18 -04:00
alistair3149
587cea1ee9
feat(core): ✨ check parent container for table nowrap class
2023-05-01 14:50:48 -04:00
alistair3149
3d14f9cf0b
feat(core): ✨ do not wrap nested tables
2023-05-01 14:45:08 -04:00
alistair3149
c10dd046c3
refactor(core): ♻️ minor variable name cleanup
2023-05-01 03:08:08 -04:00
github-actions
8d044aea95
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-05-01 06:38:27 +00:00
alistair3149
81affb88f1
feat(core): ✨ ignore infobox class for table wrapper
2023-05-01 02:37:32 -04:00
github-actions
8bd678a180
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-05-01 06:24:37 +00:00
alistair3149
d1d49e62d5
feat(core): ✨ inherit float classes to table wrapper
...
So that table would have the correct float style
2023-05-01 02:23:40 -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
b2eaf0a41a
feat(core): ✨ add HTML class to disable table wrapper
...
Adding the class `.citizen-table-nowrap` will stop Citizen from adding wrapper to the table
2023-05-01 02:05:58 -04:00
alistair3149
e45af9bbbe
feat(core): ✨ add scroll affordance to tables
2023-04-30 19:54:31 -04:00
alistair3149
ce9963467d
refactor(core): ♻️ load content scripts using wikipage.content hook
2023-04-30 18:01:53 -04:00
github-actions
1945988d6f
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-04-30 21:02:42 +00:00
alistair3149
8c888a7e1f
feat(core): ✨ make tables responsive without breaking table layout
...
Instead of a CSS solution used previously, switch to a JS solution to wrap tables.
This should ensure the table renders correctly and also scrollable.
This lays the groundwork for making table more user-friendly in the future.
2023-04-30 17:01:29 -04:00
alistair3149
90890de53f
feat(core): ✨ add config flag to disable preferences menu
2023-03-27 14:08:38 -04:00
alistair3149
015b1e1b9a
fix(core): 🐛 respect config flag for default theme
...
This should fix the issue where CitizenThemeDefault is not working
2023-03-20 12:21:46 -04:00
alistair3149
e06ed54c83
feat(search): ✨ support MW default search shortcut key
...
It is added as an alternative of the slash key shortcut.
Closes : #582
2023-02-15 16:08:39 -05:00
alistair3149
ee4a7eda4f
refactor(core): ♻️ rename mw-checkbox-hack class to citizen-menu-checkbox
2023-01-25 20:25:40 -05:00
alistair3149
ef955c28a0
feat(core): ✨ use MW core checkboxHack instead
...
We no longer need to emulate the same feature when it is in core
2023-01-25 19:40:52 -05:00
alistair3149
a7406d8e32
fix(core): 🐛 default to auto theme unless set
2023-01-20 20:18:58 -05:00
alistair3149
685a3ad1c4
refactor(core): ♻️ reduce the number of RL modules
...
It will improve the performance in module registration and also caching
2022-12-09 14:48:17 -05:00
alistair3149
48cb80aaa3
refactor(search): ♻️ make renderSuggestions more digestible
2022-12-03 13:42:01 -05:00
github-actions
568405cd5d
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-12-02 23:00:32 +00:00
alistair3149
391266c0a7
feat(core): ✨ allow the use of custom search suggestion module
...
defines the search suggestion ResourceLoader module
used by the skin. It deprecates the config
2022-12-02 17:59:45 -05:00
github-actions
57d50ea5c5
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-12-02 22:39:05 +00:00
alistair3149
1939850369
feat(core): ✨ allow multiple search components on the same page
...
This will allow the search suggestion to hook up to multiple search
boxes with `.citizen-search-box` as container. Do note that the default
Citizen suggestion is hardcoded for the primary search, so it only
works for the old core search suggestion module.
This is also a prereq for implementing the Codex search like the one
from Vector.
2022-12-02 17:35:23 -05:00
alistair3149
9652d4f8ed
refactor(core): ♻️ prepare for heading structure changes
2022-11-24 21:46:23 -05:00
alistair3149
f70d410779
feat(core): ✨ reduce scroll up header delay
2022-11-23 14:11:48 -05:00
alistair3149
6b13da3318
feat(core): ✨ hide navigation on scroll down
2022-11-21 17:46:09 -05:00
alistair3149
b5ddd26de7
perf(core): ⚡ ️ only add beforeunload listener once
2022-11-21 17:46:04 -05:00
alistair3149
9c871764c3
style: 🎨 fix some eslint issues
2022-11-21 17:45:50 -05:00
alistair3149
31c43fa33b
refactor(core): ♻️ do not init observer when not needed
...
Do not init scroll observer if sentinel is set to display:none
2022-11-21 17:45:42 -05:00
github-actions
159bd8a7d2
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-11-21 17:42:28 -05:00
alistair3149
969cd787d6
feat(core): ✨ use different font weight in different themes
...
The same font weight do not provide the same contrast in different themes.
We should be able to change the scaling
2022-11-21 17:42:26 -05:00
alistair3149
ceaf3ed844
feat(core): ✨ tweak responsive layout
2022-11-21 17:42:22 -05:00
alistair3149
a1ce408e43
feat(core): ✨ re-implement responsive toc
2022-11-21 17:42:05 -05:00
alistair3149
3eaeaa15f7
refactor(core): ♻️ pre-work to allow Citizen to render ToC
2022-11-21 17:41:40 -05:00
alistair3149
4f651b41ca
feat(pwa): ✨ add basic support for service worker
...
This is super basic and experimental.
It will be expanded upon in the future, but for now it will satisfy the
requirement for PWA
2022-10-23 16:37:43 -04:00
alistair3149
e72d7c00a3
feat(core): ✨ add sticky body header
2022-09-29 22:33:06 -04:00
alistair3149
e53afa51dc
fix(core): config CitizenThemeDefault should set theme correctly
...
Previously the config did set the theme correctly but get overridden by the inline
script to auto, this will fix it.
Closes : #418
2022-06-29 15:29:44 -04:00
alistair3149
eba22354e5
fix(core): run script when DOM is ready
...
Sometimes the scripts start to run before DOM is fully ready. It causes things
like #475 where the checkbox is not in DOM yet but the script is already asking for it.
2022-06-04 17:44:03 -04:00
alistair3149
da619c793b
refactor(core): remove duplicated auto theme handling
...
Refactor auto theme handling into inline script since theme.js is basically duplicated code
at this point. Also add the event listener whenever auto theme is set.
Closes : #461
2022-05-20 17:33:10 -04:00
alistair3149
9d711d4ee2
refactor(core): use scroll-padding-top
for top margin
2022-05-17 15:35:04 -04:00
alistair3149
1be7f5faaf
refactor(core): rewrite ToC scrollspy based on Vector
2022-05-17 15:11:16 -04:00
alistair3149
c978bb1320
refactor(core): rename title hidden class
2022-05-13 00:30:46 -04:00
alistair3149
d59ca5c83a
refactor(core): move intersection observer into a module
...
* We will likely use it for other things in the future
* Based on Vector's implementation
* Also do not get toc element twice
2022-05-13 00:26:53 -04:00