mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-06 10:42:44 +02:00
Add: build client as server instead of static
This commit is contained in:
@@ -16,6 +16,11 @@ export default function ({ $axios, store, $config }) {
|
||||
config.url = `/dev${config.url}`
|
||||
console.log('Making request to ' + config.url)
|
||||
}
|
||||
|
||||
console.log($config)
|
||||
if ($config.routerBasePath) {
|
||||
config.url = `${$config.routerBasePath}${config.url}`
|
||||
}
|
||||
})
|
||||
|
||||
$axios.onError(error => {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
export default function ({ $config }) {
|
||||
const faviconPath = $config.favicon || '/favicon.ico'
|
||||
|
||||
const link = document.createElement('link')
|
||||
link.rel = 'icon'
|
||||
link.type = 'image/x-icon'
|
||||
link.href = `${$config.routerBasePath || ''}${faviconPath}`
|
||||
|
||||
document.head.appendChild(link)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export default function ({ $config }) {
|
||||
const script = document.createElement('script')
|
||||
script.type = 'text/javascript'
|
||||
script.src = `${$config.routerBasePath || ''}/libs/sortable.js`
|
||||
|
||||
document.head.appendChild(script)
|
||||
}
|
||||
Reference in New Issue
Block a user