From c962090c3aa617b438a0dd06854a9eb012272568 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 14 May 2022 17:23:22 -0500 Subject: [PATCH] Update:No longer creating initial root user and initial library, add init root user page, web app works with no libraries --- build/debian/DEBIAN/preinst | 15 +- client/components/app/Appbar.vue | 6 +- client/components/app/ConfigSideNav.vue | 22 ++- .../components/modals/libraries/EditModal.vue | 7 +- .../tables/library/LibrariesTable.vue | 18 +- client/components/ui/TextInput.vue | 29 +++- client/components/ui/TextInputWithLabel.vue | 2 +- client/layouts/default.vue | 6 +- client/pages/config/libraries.vue | 16 +- client/pages/config/library-stats.vue | 6 + client/pages/index.vue | 3 + client/pages/login.vue | 154 ++++++++++++++---- client/store/libraries.js | 2 +- index.js | 10 +- prod.js | 13 +- server/Auth.js | 8 - server/Db.js | 68 ++++---- server/Server.js | 43 +++-- server/controllers/LibraryController.js | 1 + server/managers/DownloadManager.js | 7 - 20 files changed, 287 insertions(+), 149 deletions(-) diff --git a/build/debian/DEBIAN/preinst b/build/debian/DEBIAN/preinst index 02104133..e8ba4b47 100644 --- a/build/debian/DEBIAN/preinst +++ b/build/debian/DEBIAN/preinst @@ -3,7 +3,6 @@ set -e set -o pipefail FFMPEG_INSTALL_DIR="/usr/lib/audiobookshelf-ffmpeg/" -DEFAULT_AUDIOBOOK_PATH="/usr/share/audiobookshelf/audiobooks" DEFAULT_DATA_PATH="/usr/share/audiobookshelf" DEFAULT_PORT=7331 DEFAULT_HOST="0.0.0.0" @@ -54,14 +53,6 @@ setup_config_interactive() { if should_build_config; then echo "Okay, let's setup a new config." - AUDIOBOOK_PATH="" - read -p " - Enter path for your audiobooks [Default: $DEFAULT_AUDIOBOOK_PATH]:" AUDIOBOOK_PATH - - if [[ -z "$AUDIOBOOK_PATH" ]]; then - AUDIOBOOK_PATH="$DEFAULT_AUDIOBOOK_PATH" - fi - DATA_PATH="" read -p " Enter path for data files, i.e. streams, downloads, database [Default: $DEFAULT_DATA_PATH]:" DATA_PATH @@ -78,8 +69,7 @@ setup_config_interactive() { PORT="$DEFAULT_PORT" fi - config_text="AUDIOBOOK_PATH=$AUDIOBOOK_PATH - METADATA_PATH=$DATA_PATH/metadata + config_text="METADATA_PATH=$DATA_PATH/metadata CONFIG_PATH=$DATA_PATH/config FFMPEG_PATH=/usr/lib/audiobookshelf-ffmpeg/ffmpeg FFPROBE_PATH=/usr/lib/audiobookshelf-ffmpeg/ffprobe @@ -102,8 +92,7 @@ setup_config() { else echo "Creating default config." - config_text="AUDIOBOOK_PATH=$DEFAULT_AUDIOBOOK_PATH - METADATA_PATH=$DEFAULT_DATA_PATH/metadata + config_text="METADATA_PATH=$DEFAULT_DATA_PATH/metadata CONFIG_PATH=$DEFAULT_DATA_PATH/config FFMPEG_PATH=/usr/lib/audiobookshelf-ffmpeg/ffmpeg FFPROBE_PATH=/usr/lib/audiobookshelf-ffmpeg/ffprobe diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index ce891573..772f79da 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -12,7 +12,7 @@ -