alistair3149
f7e73cf171
feat: add security header deprecation message for upcoming version
2021-08-05 11:41:31 -04:00
alistair3149
f5a2a831d1
feat: add user customizable line height
2021-08-05 11:24:52 -04:00
alistair3149
7dc0d14c70
feat: simplify background color variables in core styles
...
--background-color-dp-XX is soft depreciated, please use --color-surface-X instead
2021-07-25 19:16:05 -04:00
alistair3149
63d21cf318
fix: add additional check for ToC elements
...
that should fix the null querySelector bug:
2021-07-12 15:11:11 -04:00
alistair3149
5f168f03ee
feat: add page load progress bar
2021-06-12 09:54:47 -04:00
alistair3149
19119f2b5d
feat: add auto theme to preferences
2021-06-09 14:40:44 -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
alistair3149
3202c1d9e6
fix: prevent Firefox quickfind overriding the search toggle shortcut
2021-05-10 13:36:44 -04:00
github-actions
fef76149d1
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-10 17:27:36 +00:00
alistair3149
74873da01f
refactor: better detection for slash toggle
2021-05-10 13:26:39 -04:00
alistair3149
e79e707ce3
fix: disable search shortcut when VE is activated
2021-04-30 13:28:51 -04:00
alistair3149
51ac47691e
feat: implement reading preferences
...
allow visitor to adjust theme, font size, and page width
2021-04-27 13:51:03 -04:00
alistair3149
e2b4a4e49a
feat: show page title on header after scroll
...
The page header also acts as a jump to top link
2021-04-26 11:39:27 -04:00
alistair3149
4bbb59f978
refactor: improve search loading indicator behavior
2021-04-22 12:09:14 -04:00
alistair3149
546fa36d33
refactor: drop dependency for mediawiki.page.ready
2021-04-22 11:44:48 -04:00
alistair3149
38882334c8
refactor: use checkboxHack module for search script
2021-04-21 18:47:03 -04:00
alistair3149
8129ca0e5b
feat: use MW core checkboxHack scripts instead
...
Cloned and tweaked to a local file as the core file can be different across MW builds
2021-04-21 16:45:52 -04:00
alistair3149
f44aaa4e4c
refactor: refactor skins.citizen.scripts to ES6
2021-04-21 13:44:28 -04:00
alistair3149
117d839f00
doc: fix lettercase for Window and Document object
2021-04-21 11:32:44 -04:00
alistair3149
c4c607d154
fix: theme toggle button not appearing in initial load
2021-04-20 23:54:32 -04:00
alistair3149
2cec33906e
refactor: integrate skins.citizen.scripts.theme into core scripts
2021-04-20 23:42:45 -04:00
github-actions
3f9117a2cd
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-04-17 04:07:47 +00:00
alistair3149
ad78883461
fix: search shortcut being triggered in textarea
2021-04-17 00:06:57 -04:00
alistair3149
8ef0e927f8
refactor: simplify search key handler
2021-04-12 16:22:16 -04:00
alistair3149
5a3b64252d
feat: tweak search shortcut key behavior
2021-04-12 15:55:59 -04:00
alistair3149
670641e903
feat: use slash as shortcut for search
2021-04-12 15:09:28 -04:00
alistair3149
abffe590b5
refactor: remove cookie theme for local storage
...
Co-authored-by: H. C. Kruse <6594492+octfx@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-04-05 14:24:18 -04:00
alistair3149
4a0f7af3e0
doc: add missing param document
2021-03-13 12:45:03 -05:00
alistair3149
1b3fff4170
fix: CSS animation flash on page load on Chromium
2021-03-13 12:43:28 -05:00
alistair3149
09b399ccf0
feat: collapse ToC when clicked outside
...
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-03-08 14:32:29 -05:00
alistair3149
00448a095d
feat: add drawer subsearch part 2
2021-02-03 15:47:32 -05:00
H. C. Kruse
407d367e37
feat: add drawer subsearch ( #264 )
...
* bug: Fix display of theme toggle button if set to auto
* feat: Add subsearch script to drawer
An input in the drawer allows to search portal headings and links for matching text
- Hides all portals / links based on the search value
Feature can be enabled by setting `$wgCitizenEnableDrawerSubSearch = true;` in LocalSettings.
* bug: Fix subsearch
2021-02-03 15:01:50 -05:00
alistair3149
6633f89033
fix: fix display of theme toggle button if set to auto ( #261 )
...
Co-authored-by: Hannes <hannes@octofox.de>
2021-01-31 12:38:37 -05:00
Hannes
1769510dae
refactor: Move ESC handler
2021-01-29 19:50:20 +01:00
Hannes
b901ac7891
refactor: Hide drawer on esc and outside click
2021-01-29 19:02:09 +01:00
alistair3149
2836831335
fix: allow checkbox button to uncheck when clicked
2021-01-21 21:43:20 -05:00
alistair3149
3ba3a0cb8d
feat: hide menu when clicked outside
2021-01-21 21:08:55 -05:00
alistair3149
56de894f6e
refactor: convert skin.citizen.scripts to packagedFiles
2021-01-16 17:01:58 -05:00
alistair3149
25822463a0
fix: incorrect selector in search toggle script
2021-01-16 16:35:23 -05:00
H. C. Kruse
b4488f8ddb
fix: fix theme switcher logic ( #202 )
...
* refactor: Fix switching theme
* ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-11 17:13:01 -05:00
H. C. Kruse
e30e6ce52c
feat: implement theme toggle ( #201 )
2021-01-11 12:13:59 -05:00
alistair3149
2110aa8d55
Add search loading indicator
2020-10-16 15:23:15 -04:00
github-actions
ac343ce893
Make a dinner reservation - MediaWiki CI
...
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149
0398f5f9f6
Contain scripts inside functions
2020-08-12 12:59:57 -04:00
github-actions
57cf0cd5c8
Make a dinner reservation - MediaWiki CI
...
I clean up code to MediaWiki standards
2020-07-05 21:07:36 +00:00
alistair3149
9045398201
Add documentation to Citizen scripts
2020-06-16 23:16:45 -04:00
alistair3149
6ba5f41470
Use module name for stylesheets and scripts
2020-06-16 23:03:28 -04:00
alistair3149
32a0af35d4
Separate ToC from core module
2020-06-15 22:32:55 -04:00
alistair3149
d2845859c7
Open search when shortcut key is pressed
2020-06-09 00:30:24 -04:00
alistair3149
4ab77674e4
Reorganized file structure for a few ResourceLoader modules
2020-06-07 15:02:52 -04:00