yarn v2 again for real
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
a465f943d9
commit
f77144f5b4
4 changed files with 12479 additions and 8781 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -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
1
.yarnrc.yml
Normal file
|
@ -0,0 +1 @@
|
|||
nodeLinker: node-modules
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue