Commit graph

2214 commits

Author SHA1 Message Date
alistair3149 429b462d3f
chore(ci): more robust linter
* Only run linter if there are changes
* Cancel previous running workflow
* Cache dependencies
2022-04-30 16:58:36 -04:00
alistair3149 76a84d9e00 feat(core): add ARIA support to collaspible sections
* Also renamed toggle to indicator since it is misleading. The whole heading is the toggle itself.
2022-04-30 14:48:09 -04:00
alistair3149 b69ca82650
fix: lower header z-index to 4
The original z-index is way too high (10) and would overlap dialogs.
It should be set to 4 (same as Vector 2022) to ensure compatiblity with OOUI elements.

Closes #447
2022-04-30 13:50:49 -04:00
Lens0021 2787d49a96
fix: find toolbox explicitly (#448)
The last item in the sidebar is not always the toolbox in some wikis, as result, a wrong portlet is displayed.
2022-04-30 02:54:13 -04:00
alistair3149 0f381493f1
feat(skinStyles): tweak CookieWarning styles
* Add a 720px max width to the cookie banner so it does not span the whole page
* Remove border
2022-04-29 14:42:02 -04:00
alistair3149 7800f701c3
feat(skinStyles): update Lingo to grade B 2022-04-29 13:39:40 -04:00
dependabot[bot] 3b5ad2818f
build(deps-dev): bump @commitlint/cli from 16.2.3 to 16.2.4 (#446)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 16.2.3 to 16.2.4.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.2.4/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 02:03:31 -04:00
dependabot[bot] a43516c8e7
build(deps-dev): bump @commitlint/config-conventional (#445)
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) from 16.2.1 to 16.2.4.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.2.4/@commitlint/config-conventional)

---
updated-dependencies:
- dependency-name: "@commitlint/config-conventional"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 02:01:29 -04:00
alistair3149 39225d6f36
perf(core): improve rendering performance of drawer menu 2022-04-28 21:54:54 -04:00
alistair3149 87f6e4fa19
feat(core): tweak sitestats style
* Left align the drawer header
* Hide file count when width is smaller than 480px
2022-04-28 21:41:41 -04:00
alistair3149 774731bacf chore(release): 1.14.1 2022-04-28 16:15:36 -04:00
alistair3149 af548969f3 chore: standard-version should also bump skin.json 2022-04-28 16:15:24 -04:00
alistair3149 1a7860ecb8
feat(skinStyles): tweak Popup styles 2022-04-28 15:53:25 -04:00
alistair3149 c23a1d7838
feat: unify modal styles
All modals should follow the same styles
2022-04-28 15:18:41 -04:00
alistair3149 13ed0f07fa
chore: fix incorrect version in skin.json
Somehow standard-release forgot to bump up the version in skin.json
2022-04-28 01:49:07 -04:00
alistair3149 eb9cd37cb7
fix: add missing selector in older MW version
mw-portlet is not available in older MW version, added mw-portal as backup
2022-04-28 01:22:20 -04:00
alistair3149 571704f3a9
feat(core): tweak code block styles
* Add rounded corner
* Update background color
2022-04-27 19:38:12 -04:00
alistair3149 da0174c17e feat(skinStyles): update StructuredDiscussions to grade B
It should also fix all the error that comes with using Citizen with the extension

Closes #438
2022-04-27 18:53:06 -04:00
github-actions 39d28d2f9b ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-04-27 21:07:47 +00:00
alistair3149 5eb212ad53 chore: fix various error messages in GitHub Actions 2022-04-27 17:06:38 -04:00
alistair3149 ae4dc16121
docs: remove references unused SkinStyles grades
Grade C and D SkinStyles are all updated to at least grade B, so there is no need to mention those grades anymore.
2022-04-27 16:58:04 -04:00
alistair3149 840b7b8fa0 chore(release): 1.14.0 2022-04-27 16:49:13 -04:00
alistair3149 d22f562816
fix: uncaught value when no theme value is saved
Users are unable to open the preference panel when there are no theme option saved in localStorage.
It is because prefValue.theme will return null which will stop the script from executing.
Now when prefValue.theme is null, it will default to auto.
2022-04-27 16:44:53 -04:00
alistair3149 37efe85bb7
feat: allow scripts to run when MobileFrontend is active 2022-04-27 16:43:53 -04:00
alistair3149 f0b9879fbd
feat: add skinStyles for collapsible toggles in MobileFrontend 2022-04-27 16:27:12 -04:00
alistair3149 9eeac80bf5
feat: tweak collapsible toggle size 2022-04-27 16:15:23 -04:00
alistair3149 8eaaecf957
feat: do not format body content if MobileFrontend is active (#409)
MobileFrontend formats body content to enable features such as collasible headers.
Citizen should not attempt to format it as it will break features in MF.
2022-04-27 15:58:16 -04:00
alistair3149 7e068dd4b1
refactor: simplify unnessecary selectors 2022-04-27 14:43:02 -04:00
alistair3149 b9b795ff11
refactor: use gap instead of margin-right for spacing 2022-04-27 14:02:10 -04:00
alistair3149 a61635ea8f
feat: tweak edit button styles when both visual and source edit are present 2022-04-27 13:35:03 -04:00
alistair3149 0177a06a22 feat: use wikiText icon for source edit when VE is present
* Use wikitext icon to indicate source edit instead of regular edit icon.
* Visual edit would now use regular edit icon
2022-04-27 13:12:59 -04:00
alistair3149 37beda8e87 feat: show namespace (e.g. Discussion) on page tools 2022-04-27 13:12:59 -04:00
alistair3149 d6415ecde6
docs: update skinStyles grade 2022-04-27 11:33:03 -04:00
alistair3149 77caba9d05 chore: do not proceed if there are no diff 2022-04-26 12:52:32 -04:00
github-actions 84570162b9 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-04-26 16:41:52 +00:00
alistair3149 8f5a50af30
chore: regenerate lock file 2022-04-26 12:40:54 -04:00
github-actions 0a6cf86486 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-04-26 16:25:56 +00:00
alistair3149 01e783187f style: use tabs instead of spaces in package.json 2022-04-26 12:24:39 -04:00
alistair3149 cbc95c36b3 chore(release): 1.13.0 2022-04-26 12:19:45 -04:00
alistair3149 69ef0ed68c
chore: add additional config for standard-release 2022-04-26 12:19:22 -04:00
alistair3149 e71225be1b chore: use standard-version to generate changelog 2022-04-26 12:10:33 -04:00
alistair3149 309ae7cec9
chore: enforce conventional commit at git commit 2022-04-26 12:06:20 -04:00
alistair3149 47e3e5c0ca
build: bump to 1.13.0 2022-04-25 22:33:35 -04:00
alistair3149 96013bb126
feat: deprecate --background-color-dp-XX in favor of --color-surface-X
--background-color-dp-XX is now fully deprecated in favor of a simpler 4 color surface system. It can be accessed through the --color-surface-X CSS var.
2022-04-25 22:27:52 -04:00
alistair3149 fed5369847
fix: add null check for checkboxObj.target
It should no longer throw an exception which causes other script to fail

Closes #432
2022-04-25 21:48:52 -04:00
alistair3149 fd0346bebb
docs: add link to the adapting Citizen style wiki page 2022-04-25 21:29:20 -04:00
alistair3149 2c79c061c4 feat: pass styles as style element instead of inline 2022-04-25 20:34:40 -04:00
alistair3149 00f35a7fab
build: bump to 1.12.1 2022-04-25 02:04:57 -04:00
alistair3149 7dbbc6b777
fix: add null check for user tagline
$editCount can return as null sometimes and throw an error
2022-04-25 02:03:13 -04:00
alistair3149 9041cc6f22
feat: tweak category styles 2022-04-24 15:38:17 -04:00