mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-23 22:13:38 +00:00
style: 🎨 fix some eslint issues
This commit is contained in:
parent
31c43fa33b
commit
9c871764c3
|
@ -4,7 +4,7 @@
|
|||
* Recommended options from:
|
||||
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
|
||||
*/
|
||||
module.exports = {
|
||||
module.exports = {
|
||||
plugins: [
|
||||
{
|
||||
// Set of built-in plugins enabled by default.
|
||||
|
@ -37,4 +37,4 @@
|
|||
pretty: true
|
||||
},
|
||||
multipass: true
|
||||
};
|
||||
};
|
||||
|
|
17
package-lock.json
generated
17
package-lock.json
generated
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
<<<<<<< HEAD
|
||||
"name": "mediawiki-skins-Citizen",
|
||||
"version": "2.0.0-beta.4",
|
||||
=======
|
||||
"name": "Citizen",
|
||||
"version": "2.0.0-beta.3",
|
||||
>>>>>>> 13722ed (style: 🎨 fix some eslint issues)
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -942,9 +947,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001332",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001332.tgz",
|
||||
"integrity": "sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw==",
|
||||
"version": "1.0.30001431",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz",
|
||||
"integrity": "sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
|
@ -6694,9 +6699,9 @@
|
|||
}
|
||||
},
|
||||
"caniuse-lite": {
|
||||
"version": "1.0.30001332",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001332.tgz",
|
||||
"integrity": "sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw==",
|
||||
"version": "1.0.30001431",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001431.tgz",
|
||||
"integrity": "sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ==",
|
||||
"dev": true
|
||||
},
|
||||
"catharsis": {
|
||||
|
|
|
@ -92,7 +92,8 @@ function registerServiceWorker() {
|
|||
const scriptPath = mw.config.get( 'wgScriptPath' );
|
||||
|
||||
// Only allow serviceWorker when the scriptPath is at root because of its scope
|
||||
// I can't figure out how to add the Service-Worker-Allowed HTTP header to change the default scope
|
||||
// I can't figure out how to add the Service-Worker-Allowed HTTP header
|
||||
// to change the default scope
|
||||
if ( scriptPath === '' ) {
|
||||
if ( 'serviceWorker' in navigator ) {
|
||||
const SW_MODULE_NAME = 'skins.citizen.serviceWorker',
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
// TODO: Make it actually do something
|
||||
// See https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/273388/
|
||||
/* eslint-disable no-unused-vars */
|
||||
self.addEventListener( 'install', ( event ) => {
|
||||
console.log( 'Service worker installed' );
|
||||
// console.log( 'Service worker installed' );
|
||||
} );
|
||||
|
||||
self.addEventListener( 'activate', ( event ) => {
|
||||
console.log( 'Service worker activated' );
|
||||
// console.log( 'Service worker activated' );
|
||||
} );
|
||||
|
||||
self.addEventListener( 'fetch', ( event ) => {
|
||||
console.log( 'Service worker fetch' );
|
||||
// console.log( 'Service worker fetch' );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue