yarn v2 again for real
Some checks reported errors
continuous-integration/drone/push Build was killed

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-01-20 17:45:24 +01:00
parent a465f943d9
commit f77144f5b4
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
4 changed files with 12479 additions and 8781 deletions

8
.gitignore vendored
View file

@ -12,3 +12,11 @@ docs/site/
.vscode/
.dccache
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

1
.yarnrc.yml Normal file
View file

@ -0,0 +1 @@
nodeLinker: node-modules

View file

@ -1,8 +1,8 @@
class PleromaModLoader {
constructor () {
this.config = {
modDirectory: '/instance/pleroma-mods/',
mods: []
'modDirectory': '/instance/pleroma-mods/',
'mods': []
}
this.loadConfig()
this.loadedMods = {}
@ -32,7 +32,7 @@ class PleromaModLoader {
})
this.loadMods()
}).catch((error) => {
console.error("can't load loader config")
console.error('can\'t load loader config')
console.error(error)
})
}
@ -206,7 +206,7 @@ class PleromaModLoader {
static excludeScript (src) {
return new Promise((resolve) => {
const script = document.querySelector('script[src="' + src + '"]')
const script = document.querySelector('script[src=\'' + src + '\']')
if (script) {
script.remove()
}
@ -216,7 +216,7 @@ class PleromaModLoader {
static excludeCss (src) {
return new Promise((resolve) => {
const link = document.querySelector('link[href="' + src + '"]')
const link = document.querySelector('link[href=\'' + src + '\']')
if (link) {
link.remove()
}
@ -298,7 +298,7 @@ class PleromaModLoader {
reject(new Error({
status: xhr.status,
response: xhr.response,
xhr
xhr: xhr
}))
}
}
@ -425,7 +425,6 @@ class PleromaMod { // eslint-disable-line no-unused-vars
resolve()
})
}
onDestroy () {}
onRun () {}
onMutation (mutation, observer) {}
@ -434,7 +433,6 @@ class PleromaMod { // eslint-disable-line no-unused-vars
resolve({})
})
}
onSettingInit (key, ul, li) {}
includeCss (src) {

21237
yarn.lock

File diff suppressed because it is too large Load diff