+
Server Title
+
Customize the name of your server.
+
+
+
+
+
+
Theme Colors
Customize the appearance of your server by adjusting these colors.
@@ -118,6 +126,7 @@ export default {
data() {
return {
saving: false,
+ title: '',
colors: {
primary: '#1e293b',
primaryDark: '#0f172a',
@@ -143,6 +152,7 @@ export default {
this.saving = true
try {
await this.$store.dispatch('updateServerSettings', {
+ title: this.title,
styling: this.colors
})
this.$toast.success('Server styling updated')
@@ -159,6 +169,8 @@ export default {
if (serverStyling) {
this.colors = { ...this.colors, ...serverStyling }
}
+ // Load saved title
+ this.title = this.$store.state.serverSettings?.title || 'Bookfire'
}
}
\ No newline at end of file
diff --git a/server/objects/settings/ServerSettings.js b/server/objects/settings/ServerSettings.js
index a8d2ce177..ecf4b94d0 100644
--- a/server/objects/settings/ServerSettings.js
+++ b/server/objects/settings/ServerSettings.js
@@ -9,6 +9,9 @@ class ServerSettings {
this.id = 'server-settings'
this.tokenSecret = null
+ // Server Title
+ this.title = 'Bookfire'
+
// Styling
this.styling = {
primary: '#1e293b',
@@ -100,6 +103,9 @@ class ServerSettings {
construct(settings) {
this.tokenSecret = settings.tokenSecret
+ // Server Title
+ this.title = settings.title || 'Bookfire'
+
// Styling
if (settings.styling) {
this.styling = {
@@ -224,6 +230,7 @@ class ServerSettings {
return {
id: this.id,
tokenSecret: this.tokenSecret, // Do not return to client
+ title: this.title,
styling: { ...this.styling },
scannerFindCovers: this.scannerFindCovers,
scannerCoverProvider: this.scannerCoverProvider,