aboutsummaryrefslogtreecommitdiffstats
path: root/mw-config
Commit message (Collapse)AuthorAgeFilesLines
* installer: Allow customisation of $wgServerTim Starling2025-03-041-0/+4
| | | | | | | | | | | | | | | | | | | | | * Add a box to the name page allowing $wgServer to be reviewed and customised. * Stay on the default server for LocalSettings.php download. Just use the customised URL for the "enter your wiki" link. For the Refresh header, use a relative URL, since that is safer. It is a footgun. Ideally there would be client-side validation by fetching a URL. For now, using a relative URL for the LocalSettings download means you can fix LocalSettings by editing it. Also add a little bit of padding between the textbox and the following label so that the grouping is more clear. Remove the <br> from the DBConnect page, otherwise there was excessive whitespace in combination with the new padding. Bug: T2061 Bug: T64950 Change-Id: I23951ac40faeae9447a2feb2bf5861f0bb81f664
* installer: Fix class name in example overrideTaavi Väänänen2025-01-251-1/+1
| | | | Change-Id: I9092eb14befff800ea62f38de14dd5695ce486e3
* resources: Use simple for-in instead of Object.keys().forEach()Timo Tijhof2025-01-141-4/+4
| | | | | | Follows-up If16d0a3682047537d0a089cddaec58b7c1dec7c8. Change-Id: I725bb89cfa8330ce29876f3e3f6720c92a72b020
* eslint: Manually enforce prefer-const in all remaining codeEd Sanders2024-10-051-1/+1
| | | | Change-Id: Ic9f254b55d3936f351ba9c7cc3b553544fc63a58
* Move services state management out of DatabaseInstallerTim Starling2024-10-011-0/+5
| | | | | | | | | | | | | | | | | | * Remove the scattered enableLB() calls from DatabaseInstaller. The table creation step should not be responsible for managing the state of the service container. We have a full installer step called restore-services, and deferring enableLB() until then only affects populateInterwikiTable, populateSiteStats, generateKeys and insertUpdateKeys, which all use local connection management, not LBFactory. This is a breaking change only for the overrides mechanism, not for extensions. * Move DatabaseInstaller::doUpgrade() and its helper outputHandler() to WebInstaller, since it is specific to web upgrade. Move state management logic from WebInstallerUpgrade to the new method. * Fix the excessively narrow width of the upgrade output box, which was annoying me during testing. Change-Id: Ica42c4c2e104d5581702e83ae8f9dafadd0053e5
* eslint: Autofix var to let/constEd Sanders2024-09-121-32/+32
| | | | | | | Temporarily disable no-var & prefer-const as resulting errors need to be fixed manually. Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
* Installer: Ignore parameter uselang on an invalid language codeFomafix2024-08-191-6/+14
| | | | | | | | | | | | | | | $languageFactory->getLanguage() throws an exception on an invalid language code. Therefore first validate the values by $languageNameUtils->isKnownLanguageTag(). Also use getRawVal() instead if getVal() because the UTF-8 normalization is not needed here. Also use getRawLanguage instead of getLanguage because a replacement of dummy language codes is not needed here. Bug: T207981 Change-Id: If4823eca18c5f2dab02368740c3fd95b58738e2b
* Remove superfluous spacesFomafix2024-07-031-1/+1
| | | | Change-Id: I6ef0953be7b9a0baac5fb96df4d254a463fb7298
* build: Update stylelint-config-wikimedia to 0.17.2Ed Sanders2024-06-131-3/+3
| | | | Change-Id: I8d68bcae416463ceec6d7b617e38d34c57360698
* ESLint: Enforce prefer-arrow-callback and autofixEd Sanders2024-06-111-9/+9
| | | | Change-Id: Iddfa574e42e569ac5e2a2b098ad2f11ca80c5955
* Installer: Use getCheck( 'css' ) instead of getVal( 'css' )Fomafix2024-05-131-1/+1
| | | | | | | For detecting the URL parameter css=1 the Unicode normalization of WebRequest::getVal is not needed. Change-Id: Ic1af273e617e062e0716406007cbd23dd455c7b3
* Namespace includes/contextJames D. Forrester2024-02-081-0/+1
| | | | | Bug: T353458 Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
* installer: Make logo preview use codex elementsAmir Sarabadani2024-02-062-11/+53
| | | | | | | Currently, it is unstyled divs that don't look very well. Alternative approach to I85e38a9ff16979f Change-Id: Ic5cb76dbc4c919e059a6648200feecc037326230
* installer: Namespace more installer classesReedy2024-01-131-1/+3
| | | | Change-Id: If58d96c311bef728446b517bb7a81316b23aad4d
* Installer: Remove Creative Commons license chooser iframeTim Starling2024-01-112-80/+0
| | | | | | | | | | | | | This chooser has been removed from the Creative Commons website, and the URL we are using now redirects to an apparently random 2006 blog post. There is a new license chooser, with source at https://github.com/creativecommons/chooser , but it does not support the kind of embedding we need. So, remove the feature. Change-Id: I400777b2ae80198ba1db6bd105de38903afced6f
* Redesign the installer with CodexAmir Sarabadani2023-12-133-291/+125
| | | | | | | | | It is not perfect, but it's a major improvement compared the existing one. We need to clean up a lot more once it has landed but it's a good start. Bug: T337435 Change-Id: I1f85110e754546c797d3325b8dd6878093790266
* Make use of jQuery method chaining where it makes sensethiemowmde2023-02-141-6/+2
| | | | | | | | | | It's not always better to arrange code this way because it makes the lines depend on each other and makes it a little harder to change one line without changing the others. But I feel like it makes a lot of sense in these cases. These method calls are not independend from each other. Change-Id: I6b223018d900b907933e9d4ed010af47f92ed37d
* Merge "Use SVG instead of GIF for help-questionmark"jenkins-bot2022-10-265-2/+12
|\
| * Use SVG instead of GIF for help-questionmarkFomafix2022-10-265-2/+12
| | | | | | | | Change-Id: Ibcaba746b912aa17da8423115d633a074c2f6038
* | Installer: Disable logo dropper for nowJon Robson2022-10-061-9/+1
|/ | | | | | | | A follow up will restore this with required functionality Bug: T318753 Change-Id: I1a41d83594497ea7c64f358145d4eb24429fd7a5
* WebInstaller: Increase `#mw-panel` width to `11em`Volker E2022-09-301-1/+1
| | | | | | | | Take all available space to improve rendering of portal contents in languages like German and Russian with long words. Bug: T318205 Change-Id: I6e8a5fe4e8358751085ecadf0a6c63a007095584
* WebInstaller: Lighten success message and add top marginVolker E2022-09-301-1/+3
| | | | | | | | | Lighten success message slightly while still complying to WCAG 2.0 AA contrast ratio. Also add top margin to the message to set it better apart from installer config messages above. Bug: T318204 Change-Id: Ic9b8b940f1598667bb5e184ac14dc3b9ab474d38
* WebInstaller: Remove inlined inconsistent bullet image and indentVolker E2022-09-302-4/+2
| | | | | | | | Removing the bullet image and indent the (fake) list items to makes the text more readable. Bug: T318203 Change-Id: I495b0a6a3c4c28a40fadbf054396d38ada1d550c
* WebInstaller: Unify background colors and sort background props firstVolker E2022-09-301-12/+12
| | | | | | | | | Use one background color shade `#f7f7f7` and not two similar ones including `#f6f6f6`. Also sort the background properties first to better orientate in the code aligning to CSS property order proposal. Change-Id: I70ed641521640218c8d17c10a021df9b1e52dc30
* WebInstaller: Increase `line-height` for legibilityVolker E2022-09-301-1/+1
| | | | | Bug: T318202 Change-Id: Ie0d0e177b8c8aad9db295bc5bfabf1abbff1bc87
* WebInstaller: Increase color contrast of coming installation stepsVolker E2022-09-301-1/+2
| | | | | Bug: T318200 Change-Id: I9ff6e79842ea8a8aa746897854712e0cf4cca838
* build: Update stylelint-config-wikimedia to 0.13.0Ed Sanders2022-05-041-0/+1
| | | | Change-Id: I59c7507fef057a880bca62a156662ee66f89ed94
* Update installer to reflect modern logosJon Robson2022-03-102-1/+192
| | | | | | | | | | | | | There are now 4 types of logos, only one of which is needed. Update documentation in installer to reflect this. Also make it possible to drag and drop files into the installer and see live previews of what the logos will look like to aid setup. The 1x is no longer required. Bug: T255913 Change-Id: I58226ae8fb02c32d2eeea65a50aaabbc193cb51c
* eslint: Only apply client rules to client filesEd Sanders2022-02-091-0/+5
| | | | Change-Id: I757b9616ce69b6020e9f0e556e006d39de59eb01
* build: Upgrade stylelint-config-wikimedia from 0.10.3 to 0.11.1James D. Forrester2021-06-292-0/+8
| | | | | | | | Just disabling the `declaration-property-unit-disallowed-list` failures for now, but it looks like at least most of these could be switched over to ems without breaking anything. For another patch! Change-Id: I9220334d670f71eba1b0e392da826036d54bc2f3
* stylelint: Enforce no-unsupported-browser-featuresEd Sanders2021-06-051-0/+1
| | | | Change-Id: Ic4fb9d27aa94594584327a3d1fc5495861e09ebd
* Unify `list-style` CSSVolker E2021-05-031-3/+2
| | | | | | | | `list-style: none none` was a workaround for an IE 6 & 7 rendering issue. Same goes for `list-style-image: none; list-style-type: none;` combination. Let's unify to shorthand `list-style: none` for any non-ancient browser. Change-Id: I05f00db8a08a9fc1523ea00fab91e91d3c00cab3
* Installer: Simplify stylesheetjdlrobson2021-04-201-0/+4
| | | | | | | | | The installer needs a handful of the styles provided by ResourceLoaderSkinModule. Reduce it to the minimum required in preparation for the deprecation of the `legacy` feature. Bug: T232903 Change-Id: I6a718232897448a94fe1ddda547ae5a5c671b7aa
* Installer: The installer should use `.warningbox` for styling warnings, not ↵jdlrobson2021-04-151-10/+2
| | | | | | | `.mw-infobox` Bug: T232903 Change-Id: Ibf6426ab90445d7aac94d59336e25957cf48fc1f
* Use the new mediawiki logosAmir Sarabadani2021-04-011-0/+0
| | | | | | | | | | | | | These logos are approved as part of a community decision making in https://w.wiki/33kx (Long URL [1]). The rights have been transferred to WMF now. License: CC-BY-SA 4.0 Author: https://commons.wikimedia.org/wiki/User:Serhio_Magpie Source: https://commons.wikimedia.org/wiki/Category:MediaWiki_logo_(2020) [1]: https://www.mediawiki.org/wiki/Project:Proposal_for_changing_logo_of_MediaWiki,_2020 Bug: T268230 Change-Id: Ia588ca79a721f4796e7fe688dd7e538a009f706d
* Mark .mw-infobox styles as deprecatedjdlrobson2021-02-091-0/+20
| | | | | | | | | | | | | | Now that Html::infobox is deprecated in 1.36 let's make sure it's clear the styles are too. No release note is needed given the already existing note about Html::infobox. Styles are copied to the installer for now, but please note their future standardization in T232903. Bug: T268194 Change-Id: I5f7929e698c99e73f5186aa4d9bfe5f7788c12a1
* Merge "installer: Add overflow:hidden to help box"jenkins-bot2020-05-281-0/+2
|\
| * installer: Add overflow:hidden to help boxFomafix2020-03-301-0/+2
| | | | | | | | | | | | | | | | This avoids an overlap of the help box with the floating page list. The min-width:min-content prevents that long words get cut. Change-Id: I2d9f38e84d6030de6b00f7105a8373ff9b69e0f9
* | installer: Add Installer-specific stylesheetjdlrobson2020-04-031-0/+54
|/ | | | | | | | Follows-up 00e8bde6859, which removed loading of Vector styles. Let the Installer maintain its own appearance instead. Bug: T248133 Change-Id: Ibdb0a72083a837a369d8d660c79fecd5aac55407
* Revert "mw-config: Avoid nested calls to `dirname()`, use levels"Jforrester2020-02-071-1/+1
| | | | | | | | This reverts commit 70990948050e5626f910132ca56af61ae09dba34. Reason for revert: Let's maintain PHP4-compat. Change-Id: I47b9b758fc3cf4df5c49bd148706f69e567b2440
* mw-config: Avoid nested calls to `dirname()`, use levelsDerick A2020-02-041-1/+1
| | | | | | | | `dirname()`: https://www.php.net/manual/en/function.dirname.php, has a levels param that can be used for indicate the number of parent directories to go up! Change-Id: Ibdf6fbedbcf9b0eead1cfbf822d24ccae6652f3f
* Remove Language::factory and getParentLanguage useAryeh Gregor2019-10-271-1/+3
| | | | Change-Id: I11f8801ef47ec1a1f63d840116e69667e6f3ae3c
* Remove obsolete IE 6 & 7 specific commentsVolker E2019-10-041-2/+1
| | | | | Bug: T234582 Change-Id: I9c29ba771d7963492d9cc231069a5283c1ee7760
* Remove IE 6 & 7 hasLayout hacksVolker E2019-10-041-1/+0
| | | | | Bug: T234582 Change-Id: I029f41c468a4d7bae9b0d2657dacb91401c8f91a
* Remove unused `.success-box` classVolker E2019-09-171-4/+0
| | | | Change-Id: Ie5ecaed60fc7f6342301550c57b238044c20e4a4
* build: Update eslint-config-wikimedia to 0.13.0Ed Sanders2019-07-051-0/+1
| | | | Change-Id: I7df5840bc97f8bbcd8cfc875c2b48b3061ef2c9e
* Installer: Use HTML/CSS instead of JavaScript to toggle the help messageFomafix2019-06-152-13/+8
| | | | | | | | | Changes in the behavior: * The expanding/collapsing now works even with disabled JavaScript. * There is no FOUC on loading anymore. * The animation on show/hide is absent. Change-Id: I1b88d8e2cdbb1c969670a7a8637dba10bf447330
* Installer: Move style of background image from HTML to CSSFomafix2019-06-141-0/+4
| | | | Change-Id: I5fb8a9fc87290c407be123238397accbc5a886dc
* linting: Start enforcing a basic CSS class naming rule (with lots of opt-outs)James D. Forrester2019-04-122-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wow, so many opt-outs, and a lot of probably-not-going-to-change ones. Actually wanted pattern: * "^mw-…" Content-related classes we're probably not going to scrap: * "^wikitable$" Hard-to-change classes used in lots of skins: * "^toc$" * "^toctoggle$" * "^tochidden$" Necessary for over-rides/specificity battles: * "^oo-ui-…" Probably worth considering changing soon: * "^client-js$" * "^client-nojs$" Some of the exemptions have been applied to deprecated styles (where they're being renamed); some are for code in entirely deprecated areas themselves; some have the "wrong" name but sit alongside classes with an appropriate one. And some are, very clearly, in the wrong repo. Such sigh. Change-Id: I9b8423d53b6750b5ca79d2f69e111f75c93c5bdc
* Use the WebRequest::getCheck() shortcut where possibleThiemo Kreuz2019-03-111-1/+1
| | | | | | | | | | | This is inspired by Ib117e05. As far as I can tell this is functionally identical. Even arrays should behave the same, as both the getVal() and getCheck() methods do have a special case that returns the `null` default in case the user tried to pass multiple values instead of a single scalar. Change-Id: Id4e4ec91f39d3c39461bd41673bdafc3bde11737