Repository: advplyr/audiobookshelf Branch: master Commit: 8b89b276544b Files: 912 Total size: 7.7 MB Directory structure: gitextract_pkg28qgc/ ├── .devcontainer/ │ ├── Dockerfile │ ├── dev.js │ ├── devcontainer.json │ └── post-create.sh ├── .dockerignore ├── .editorconfig ├── .gitattributes ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug.yaml │ │ ├── config.yml │ │ └── feature.yml │ ├── pull_request_template.md │ └── workflows/ │ ├── apply_comments.yaml │ ├── close-issues-on-release.yml │ ├── close_blank_issues.yaml │ ├── codeql.yml │ ├── component-tests.yml │ ├── docker-build.yml │ ├── i18n-integration.yml │ ├── integration-test.yml │ ├── lint-openapi.yml │ ├── notify-abs-windows.yml │ └── unit-tests.yml ├── .gitignore ├── .prettierrc ├── .vscode/ │ ├── extensions.json │ ├── launch.json │ ├── settings.json │ └── tasks.json ├── Dockerfile ├── LICENSE ├── build/ │ ├── debian/ │ │ ├── DEBIAN/ │ │ │ ├── control │ │ │ ├── postinst │ │ │ ├── preinst │ │ │ └── prerm │ │ ├── etc/ │ │ │ └── default/ │ │ │ └── .gitkeep │ │ ├── lib/ │ │ │ └── systemd/ │ │ │ └── system/ │ │ │ └── audiobookshelf.service │ │ └── usr/ │ │ ├── lib/ │ │ │ └── .gitkeep │ │ └── share/ │ │ └── .gitkeep │ └── linuxpackager ├── client/ │ ├── assets/ │ │ ├── absicons.css │ │ ├── app.css │ │ ├── defaultStyles.css │ │ ├── draggable.css │ │ ├── ebooks/ │ │ │ ├── basic.js │ │ │ ├── htmlParser.js │ │ │ └── mobi.js │ │ ├── fonts.css │ │ ├── tailwind.css │ │ ├── transitions.css │ │ └── trix.css │ ├── components/ │ │ ├── app/ │ │ │ ├── Appbar.vue │ │ │ ├── BookShelfCategorized.vue │ │ │ ├── BookShelfRow.vue │ │ │ ├── BookShelfToolbar.vue │ │ │ ├── ConfigSideNav.vue │ │ │ ├── LazyBookshelf.vue │ │ │ ├── MediaPlayerContainer.vue │ │ │ ├── SettingsContent.vue │ │ │ └── SideRail.vue │ │ ├── cards/ │ │ │ ├── AuthorCard.vue │ │ │ ├── AuthorSearchCard.vue │ │ │ ├── BookMatchCard.vue │ │ │ ├── EpisodeSearchCard.vue │ │ │ ├── GenreSearchCard.vue │ │ │ ├── GroupCard.vue │ │ │ ├── ItemSearchCard.vue │ │ │ ├── ItemTaskRunningCard.vue │ │ │ ├── ItemUploadCard.vue │ │ │ ├── LazyBookCard.vue │ │ │ ├── LazyCollectionCard.vue │ │ │ ├── LazyPlaylistCard.vue │ │ │ ├── LazySeriesCard.vue │ │ │ ├── NarratorCard.vue │ │ │ ├── NarratorSearchCard.vue │ │ │ ├── NotificationCard.vue │ │ │ ├── PodcastFeedSummaryCard.vue │ │ │ ├── SeriesSearchCard.vue │ │ │ └── TagSearchCard.vue │ │ ├── content/ │ │ │ └── LibraryItemDetails.vue │ │ ├── controls/ │ │ │ ├── FilterSelect.vue │ │ │ ├── GlobalSearch.vue │ │ │ ├── LibraryFilterSelect.vue │ │ │ ├── LibrarySortSelect.vue │ │ │ ├── PlaybackSpeedControl.vue │ │ │ ├── SortSelect.vue │ │ │ └── VolumeControl.vue │ │ ├── covers/ │ │ │ ├── AuthorImage.vue │ │ │ ├── BookCover.vue │ │ │ ├── CollectionCover.vue │ │ │ ├── GroupCover.vue │ │ │ ├── PlaylistCover.vue │ │ │ └── PreviewCover.vue │ │ ├── modals/ │ │ │ ├── AccountModal.vue │ │ │ ├── AddCustomMetadataProviderModal.vue │ │ │ ├── ApiKeyCreatedModal.vue │ │ │ ├── ApiKeyModal.vue │ │ │ ├── AudioFileDataModal.vue │ │ │ ├── BackupScheduleModal.vue │ │ │ ├── BatchQuickMatchModel.vue │ │ │ ├── BookmarksModal.vue │ │ │ ├── ChaptersModal.vue │ │ │ ├── Dialog.vue │ │ │ ├── EditSeriesInputInnerModal.vue │ │ │ ├── ListeningSessionModal.vue │ │ │ ├── Modal.vue │ │ │ ├── PlayerSettingsModal.vue │ │ │ ├── RawCoverPreviewModal.vue │ │ │ ├── ShareModal.vue │ │ │ ├── SleepTimerModal.vue │ │ │ ├── UploadImageModal.vue │ │ │ ├── authors/ │ │ │ │ └── EditModal.vue │ │ │ ├── bookmarks/ │ │ │ │ └── BookmarkItem.vue │ │ │ ├── changelog/ │ │ │ │ └── ViewModal.vue │ │ │ ├── collections/ │ │ │ │ ├── AddCreateModal.vue │ │ │ │ ├── CollectionItem.vue │ │ │ │ └── EditModal.vue │ │ │ ├── emails/ │ │ │ │ ├── EReaderDeviceModal.vue │ │ │ │ └── UserEReaderDeviceModal.vue │ │ │ ├── item/ │ │ │ │ ├── EditModal.vue │ │ │ │ └── tabs/ │ │ │ │ ├── Chapters.vue │ │ │ │ ├── Cover.vue │ │ │ │ ├── Details.vue │ │ │ │ ├── Episodes.vue │ │ │ │ ├── Files.vue │ │ │ │ ├── Match.vue │ │ │ │ ├── Schedule.vue │ │ │ │ └── Tools.vue │ │ │ ├── libraries/ │ │ │ │ ├── EditLibrary.vue │ │ │ │ ├── EditModal.vue │ │ │ │ ├── LazyFolderChooser.vue │ │ │ │ ├── LibraryScannerSettings.vue │ │ │ │ ├── LibrarySettings.vue │ │ │ │ ├── LibraryTools.vue │ │ │ │ └── ScheduleScan.vue │ │ │ ├── notification/ │ │ │ │ └── NotificationEditModal.vue │ │ │ ├── player/ │ │ │ │ ├── QueueItemRow.vue │ │ │ │ └── QueueItemsModal.vue │ │ │ ├── playlists/ │ │ │ │ ├── AddCreateModal.vue │ │ │ │ ├── EditModal.vue │ │ │ │ └── UserPlaylistItem.vue │ │ │ ├── podcast/ │ │ │ │ ├── EditEpisode.vue │ │ │ │ ├── EpisodeFeed.vue │ │ │ │ ├── NewModal.vue │ │ │ │ ├── OpmlFeedsModal.vue │ │ │ │ ├── RemoveEpisode.vue │ │ │ │ ├── ViewEpisode.vue │ │ │ │ └── tabs/ │ │ │ │ ├── EpisodeDetails.vue │ │ │ │ └── EpisodeMatch.vue │ │ │ └── rssfeed/ │ │ │ ├── OpenCloseModal.vue │ │ │ └── ViewFeedModal.vue │ │ ├── player/ │ │ │ ├── PlayerPlaybackControls.vue │ │ │ ├── PlayerTrackBar.vue │ │ │ └── PlayerUi.vue │ │ ├── prompt/ │ │ │ ├── Confirm.vue │ │ │ └── Dialog.vue │ │ ├── readers/ │ │ │ ├── ComicReader.vue │ │ │ ├── EpubReader.vue │ │ │ ├── MobiReader.vue │ │ │ ├── PdfReader.vue │ │ │ └── Reader.vue │ │ ├── stats/ │ │ │ ├── DailyListeningChart.vue │ │ │ ├── Heatmap.vue │ │ │ ├── PreviewIcons.vue │ │ │ ├── YearInReview.vue │ │ │ ├── YearInReviewBanner.vue │ │ │ ├── YearInReviewServer.vue │ │ │ └── YearInReviewShort.vue │ │ ├── tables/ │ │ │ ├── ApiKeysTable.vue │ │ │ ├── AudioTracksTableRow.vue │ │ │ ├── BackupsTable.vue │ │ │ ├── ChaptersTable.vue │ │ │ ├── CollectionBooksTable.vue │ │ │ ├── CustomMetadataProviderTable.vue │ │ │ ├── EbookFilesTable.vue │ │ │ ├── EbookFilesTableRow.vue │ │ │ ├── LibraryFilesTable.vue │ │ │ ├── LibraryFilesTableRow.vue │ │ │ ├── PlaylistItemsTable.vue │ │ │ ├── TracksTable.vue │ │ │ ├── UploadedFilesTable.vue │ │ │ ├── UsersTable.vue │ │ │ ├── collection/ │ │ │ │ └── BookTableRow.vue │ │ │ ├── library/ │ │ │ │ ├── LibrariesTable.vue │ │ │ │ └── LibraryItem.vue │ │ │ ├── playlist/ │ │ │ │ └── ItemTableRow.vue │ │ │ └── podcast/ │ │ │ ├── DownloadQueueTable.vue │ │ │ ├── LazyEpisodeRow.vue │ │ │ └── LazyEpisodesTable.vue │ │ ├── ui/ │ │ │ ├── Btn.vue │ │ │ ├── Checkbox.vue │ │ │ ├── ContextMenuDropdown.vue │ │ │ ├── Dropdown.vue │ │ │ ├── EditableText.vue │ │ │ ├── FileInput.vue │ │ │ ├── IconBtn.vue │ │ │ ├── InputDropdown.vue │ │ │ ├── LibrariesDropdown.vue │ │ │ ├── LibraryIcon.vue │ │ │ ├── LoadingIndicator.vue │ │ │ ├── MediaIconPicker.vue │ │ │ ├── MultiSelect.vue │ │ │ ├── MultiSelectDropdown.vue │ │ │ ├── MultiSelectQueryInput.vue │ │ │ ├── QueryInput.vue │ │ │ ├── RangeInput.vue │ │ │ ├── ReadIconBtn.vue │ │ │ ├── RichTextEditor.vue │ │ │ ├── SelectInput.vue │ │ │ ├── TextInput.vue │ │ │ ├── TextInputWithLabel.vue │ │ │ ├── TextareaInput.vue │ │ │ ├── TextareaWithLabel.vue │ │ │ ├── TimePicker.vue │ │ │ ├── ToggleBtns.vue │ │ │ ├── ToggleSwitch.vue │ │ │ ├── Tooltip.vue │ │ │ └── VueTrix.vue │ │ └── widgets/ │ │ ├── AbridgedIndicator.vue │ │ ├── Alert.vue │ │ ├── AlreadyInLibraryIndicator.vue │ │ ├── BookDetailsEdit.vue │ │ ├── CoverSizeWidget.vue │ │ ├── CronExpressionBuilder.vue │ │ ├── EncoderOptionsCard.vue │ │ ├── ExplicitIndicator.vue │ │ ├── ItemSlider.vue │ │ ├── LoadingSpinner.vue │ │ ├── MoreMenu.vue │ │ ├── NotificationWidget.vue │ │ ├── OnlineIndicator.vue │ │ ├── PodcastDetailsEdit.vue │ │ ├── PodcastTypeIndicator.vue │ │ ├── RssFeedMetadataBuilder.vue │ │ └── SeriesInputWidget.vue │ ├── cypress/ │ │ ├── support/ │ │ │ ├── commands.js │ │ │ ├── component-index.html │ │ │ └── component.js │ │ └── tests/ │ │ ├── components/ │ │ │ └── cards/ │ │ │ ├── AuthorCard.cy.js │ │ │ ├── ItemSlider.cy.js │ │ │ ├── LazyBookCard.cy.js │ │ │ ├── LazySeriesCard.cy.js │ │ │ └── NarratorCard.cy.js │ │ └── utils/ │ │ └── ElapsedPrettyExtended.cy.js │ ├── cypress.config.js │ ├── layouts/ │ │ ├── blank.vue │ │ ├── default.vue │ │ └── error.vue │ ├── middleware/ │ │ └── authenticated.js │ ├── mixins/ │ │ ├── bookshelfCardsHelpers.js │ │ ├── menuKeyboardNavigation.js │ │ └── uploadHelpers.js │ ├── nuxt.config.js │ ├── package.json │ ├── pages/ │ │ ├── account.vue │ │ ├── audiobook/ │ │ │ └── _id/ │ │ │ ├── chapters.vue │ │ │ ├── edit.vue │ │ │ └── manage.vue │ │ ├── author/ │ │ │ └── _id.vue │ │ ├── batch/ │ │ │ └── index.vue │ │ ├── collection/ │ │ │ └── _id.vue │ │ ├── config/ │ │ │ ├── api-keys/ │ │ │ │ └── index.vue │ │ │ ├── authentication.vue │ │ │ ├── backups.vue │ │ │ ├── email.vue │ │ │ ├── index.vue │ │ │ ├── item-metadata-utils/ │ │ │ │ ├── custom-metadata-providers.vue │ │ │ │ ├── genres.vue │ │ │ │ ├── index.vue │ │ │ │ └── tags.vue │ │ │ ├── libraries.vue │ │ │ ├── log.vue │ │ │ ├── notifications.vue │ │ │ ├── rss-feeds.vue │ │ │ ├── sessions.vue │ │ │ ├── stats.vue │ │ │ └── users/ │ │ │ ├── _id/ │ │ │ │ ├── index.vue │ │ │ │ └── sessions.vue │ │ │ └── index.vue │ │ ├── config.vue │ │ ├── index.vue │ │ ├── item/ │ │ │ └── _id/ │ │ │ └── index.vue │ │ ├── library/ │ │ │ └── _library/ │ │ │ ├── bookshelf/ │ │ │ │ └── _id.vue │ │ │ ├── index.vue │ │ │ ├── narrators.vue │ │ │ ├── podcast/ │ │ │ │ ├── download-queue.vue │ │ │ │ ├── latest.vue │ │ │ │ └── search.vue │ │ │ ├── search.vue │ │ │ ├── series/ │ │ │ │ └── _id.vue │ │ │ └── stats.vue │ │ ├── login.vue │ │ ├── oops.vue │ │ ├── playlist/ │ │ │ └── _id.vue │ │ ├── share/ │ │ │ └── _slug.vue │ │ └── upload/ │ │ └── index.vue │ ├── players/ │ │ ├── AudioTrack.js │ │ ├── CastPlayer.js │ │ ├── LocalAudioPlayer.js │ │ ├── PlayerHandler.js │ │ └── castUtils.js │ ├── plugins/ │ │ ├── axios.js │ │ ├── chromecast.js │ │ ├── constants.js │ │ ├── i18n.js │ │ ├── init.client.js │ │ ├── toast.js │ │ ├── utils.js │ │ └── version.js │ ├── postcss.config.js │ ├── static/ │ │ ├── fonts/ │ │ │ ├── Source_Sans_Pro/ │ │ │ │ └── OFL.txt │ │ │ └── Ubuntu_Mono/ │ │ │ └── UFL.txt │ │ ├── libarchive/ │ │ │ ├── wasm-gen/ │ │ │ │ ├── libarchive.js │ │ │ │ └── libarchive.wasm │ │ │ └── worker-bundle.js │ │ ├── libs/ │ │ │ └── marked/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ └── robots.txt │ ├── store/ │ │ ├── globals.js │ │ ├── index.js │ │ ├── libraries.js │ │ ├── scanners.js │ │ ├── tasks.js │ │ ├── user.js │ │ └── users.js │ └── strings/ │ ├── ar.json │ ├── be.json │ ├── bg.json │ ├── bn.json │ ├── ca.json │ ├── cs.json │ ├── da.json │ ├── de.json │ ├── el.json │ ├── en-us.json │ ├── es.json │ ├── et.json │ ├── eu.json │ ├── fa.json │ ├── fi.json │ ├── fr.json │ ├── gu.json │ ├── he.json │ ├── hi.json │ ├── hr.json │ ├── hu.json │ ├── is.json │ ├── it.json │ ├── ja.json │ ├── ko.json │ ├── lt.json │ ├── nl.json │ ├── no.json │ ├── pl.json │ ├── pt-br.json │ ├── ro.json │ ├── ru.json │ ├── sk.json │ ├── sl.json │ ├── sv.json │ ├── tr.json │ ├── uk.json │ ├── vi-vn.json │ ├── zh-cn.json │ └── zh-tw.json ├── custom-metadata-provider-specification.yaml ├── docker-compose.yml ├── docker-template.xml ├── docs/ │ ├── README.md │ ├── controllers/ │ │ ├── AuthorController.yaml │ │ ├── EmailController.yaml │ │ ├── LibraryController.yaml │ │ ├── NotificationController.yaml │ │ ├── PodcastController.yaml │ │ └── SeriesController.yaml │ ├── objects/ │ │ ├── Folder.yaml │ │ ├── Library.yaml │ │ ├── LibraryItem.yaml │ │ ├── Notification.yaml │ │ ├── entities/ │ │ │ ├── Author.yaml │ │ │ ├── PodcastEpisode.yaml │ │ │ └── Series.yaml │ │ ├── files/ │ │ │ ├── AudioFile.yaml │ │ │ ├── AudioTrack.yaml │ │ │ └── EBookFile.yaml │ │ ├── mediaTypes/ │ │ │ ├── Book.yaml │ │ │ ├── Podcast.yaml │ │ │ └── media.yaml │ │ ├── metadata/ │ │ │ ├── AudioMetaTags.yaml │ │ │ ├── BookMetadata.yaml │ │ │ ├── FileMetadata.yaml │ │ │ └── PodcastMetadata.yaml │ │ └── settings/ │ │ └── EmailSettings.yaml │ ├── openapi.json │ ├── root.yaml │ └── schemas.yaml ├── index.js ├── package.json ├── prod.js ├── readme.md ├── server/ │ ├── Auth.js │ ├── Database.js │ ├── Logger.js │ ├── Server.js │ ├── SocketAuthority.js │ ├── Watcher.js │ ├── auth/ │ │ ├── LocalAuthStrategy.js │ │ ├── OidcAuthStrategy.js │ │ └── TokenManager.js │ ├── controllers/ │ │ ├── ApiKeyController.js │ │ ├── AuthorController.js │ │ ├── BackupController.js │ │ ├── CacheController.js │ │ ├── CollectionController.js │ │ ├── CustomMetadataProviderController.js │ │ ├── EmailController.js │ │ ├── FileSystemController.js │ │ ├── LibraryController.js │ │ ├── LibraryItemController.js │ │ ├── MeController.js │ │ ├── MiscController.js │ │ ├── NotificationController.js │ │ ├── PlaylistController.js │ │ ├── PodcastController.js │ │ ├── RSSFeedController.js │ │ ├── SearchController.js │ │ ├── SeriesController.js │ │ ├── SessionController.js │ │ ├── ShareController.js │ │ ├── StatsController.js │ │ ├── ToolsController.js │ │ └── UserController.js │ ├── finders/ │ │ ├── AuthorFinder.js │ │ ├── BookFinder.js │ │ └── PodcastFinder.js │ ├── libs/ │ │ ├── archiver/ │ │ │ ├── LICENSE │ │ │ ├── archiverUtils/ │ │ │ │ ├── balancedMatch/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── braceExpansion/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── file.js │ │ │ │ ├── fsRealpath/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── index.js │ │ │ │ │ └── old.js │ │ │ │ ├── glob/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── common.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── sync.js │ │ │ │ ├── index.js │ │ │ │ ├── inflight/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── lazystream/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── index.js │ │ │ │ │ └── readable-stream/ │ │ │ │ │ ├── lib/ │ │ │ │ │ │ ├── _stream_duplex.js │ │ │ │ │ │ ├── _stream_passthrough.js │ │ │ │ │ │ ├── _stream_readable.js │ │ │ │ │ │ ├── _stream_transform.js │ │ │ │ │ │ ├── _stream_writable.js │ │ │ │ │ │ └── internal/ │ │ │ │ │ │ └── streams/ │ │ │ │ │ │ ├── BufferList.js │ │ │ │ │ │ ├── destroy.js │ │ │ │ │ │ ├── stream-browser.js │ │ │ │ │ │ └── stream.js │ │ │ │ │ ├── passthrough.js │ │ │ │ │ └── readable.js │ │ │ │ ├── lodash.difference/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── lodash.flatten/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── lodash.isplainobject/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── lodash.union/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── minimatch/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── readableStream/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── _stream_duplex.js │ │ │ │ │ ├── _stream_passthrough.js │ │ │ │ │ ├── _stream_readable.js │ │ │ │ │ ├── _stream_transform.js │ │ │ │ │ ├── _stream_writable.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── internal/ │ │ │ │ │ │ ├── streams/ │ │ │ │ │ │ │ ├── add-abort-signal.js │ │ │ │ │ │ │ ├── buffer_list.js │ │ │ │ │ │ │ ├── compose.js │ │ │ │ │ │ │ ├── destroy.js │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ ├── duplexify.js │ │ │ │ │ │ │ ├── end-of-stream.js │ │ │ │ │ │ │ ├── from.js │ │ │ │ │ │ │ ├── lazy_transform.js │ │ │ │ │ │ │ ├── legacy.js │ │ │ │ │ │ │ ├── operators.js │ │ │ │ │ │ │ ├── passthrough.js │ │ │ │ │ │ │ ├── pipeline.js │ │ │ │ │ │ │ ├── readable.js │ │ │ │ │ │ │ ├── state.js │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ ├── utils.js │ │ │ │ │ │ │ └── writable.js │ │ │ │ │ │ └── validators.js │ │ │ │ │ ├── ours/ │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ ├── errors.js │ │ │ │ │ │ ├── primordials.js │ │ │ │ │ │ └── util.js │ │ │ │ │ ├── stream/ │ │ │ │ │ │ └── promises.js │ │ │ │ │ └── stream.js │ │ │ │ ├── safeBuffer/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ ├── stringDecoder/ │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── index.js │ │ │ │ └── wrappy/ │ │ │ │ ├── LICENSE │ │ │ │ └── index.js │ │ │ ├── buffer-crc32/ │ │ │ │ ├── LICENSE │ │ │ │ └── index.js │ │ │ ├── compress-commons/ │ │ │ │ ├── LICENSE │ │ │ │ ├── archivers/ │ │ │ │ │ ├── archive-entry.js │ │ │ │ │ ├── archive-output-stream.js │ │ │ │ │ └── zip/ │ │ │ │ │ ├── constants.js │ │ │ │ │ ├── general-purpose-bit.js │ │ │ │ │ ├── unix-stat.js │ │ │ │ │ ├── util.js │ │ │ │ │ ├── zip-archive-entry.js │ │ │ │ │ └── zip-archive-output-stream.js │ │ │ │ ├── index.js │ │ │ │ └── util/ │ │ │ │ └── index.js │ │ │ ├── crc32/ │ │ │ │ ├── LICENSE │ │ │ │ └── index.js │ │ │ ├── crc32-stream/ │ │ │ │ ├── LICENSE │ │ │ │ ├── crc32-stream.js │ │ │ │ ├── deflate-crc32-stream.js │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ ├── lib/ │ │ │ │ ├── core.js │ │ │ │ ├── error.js │ │ │ │ └── plugins/ │ │ │ │ ├── json.js │ │ │ │ └── zip.js │ │ │ ├── normalize-path/ │ │ │ │ ├── LICENSE │ │ │ │ └── index.js │ │ │ ├── readdir-glob/ │ │ │ │ ├── LICENSE │ │ │ │ └── index.js │ │ │ └── zip-stream/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── async/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── bcryptjs/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── busboy/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ ├── types/ │ │ │ │ ├── multipart.js │ │ │ │ └── urlencoded.js │ │ │ └── utils.js │ │ ├── commandLineArgs/ │ │ │ └── index.js │ │ ├── dateAndTime/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── expressFileupload/ │ │ │ ├── LICENSE │ │ │ ├── fileFactory.js │ │ │ ├── index.js │ │ │ ├── isEligibleRequest.js │ │ │ ├── memHandler.js │ │ │ ├── processMultipart.js │ │ │ ├── processNested.js │ │ │ ├── tempFileHandler.js │ │ │ ├── uploadtimer.js │ │ │ └── utilities.js │ │ ├── fastSort/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── fluentFfmpeg/ │ │ │ ├── LICENSE │ │ │ ├── capabilities.js │ │ │ ├── ffprobe.js │ │ │ ├── index.d.ts │ │ │ ├── index.js │ │ │ ├── options/ │ │ │ │ ├── audio.js │ │ │ │ ├── custom.js │ │ │ │ ├── inputs.js │ │ │ │ ├── misc.js │ │ │ │ ├── output.js │ │ │ │ ├── video.js │ │ │ │ └── videosize.js │ │ │ ├── presets/ │ │ │ │ ├── divx.js │ │ │ │ ├── flashvideo.js │ │ │ │ └── podcast.js │ │ │ ├── processor.js │ │ │ ├── recipes.js │ │ │ └── utils.js │ │ ├── fsExtra/ │ │ │ ├── LICENSE │ │ │ ├── copy/ │ │ │ │ ├── copy-sync.js │ │ │ │ ├── copy.js │ │ │ │ └── index.js │ │ │ ├── empty/ │ │ │ │ └── index.js │ │ │ ├── ensure/ │ │ │ │ ├── file.js │ │ │ │ ├── index.js │ │ │ │ ├── link.js │ │ │ │ ├── symlink-paths.js │ │ │ │ ├── symlink-type.js │ │ │ │ └── symlink.js │ │ │ ├── fs/ │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ ├── mkdirs/ │ │ │ │ ├── index.js │ │ │ │ ├── make-dir.js │ │ │ │ └── utils.js │ │ │ ├── move/ │ │ │ │ ├── index.js │ │ │ │ ├── move-sync.js │ │ │ │ └── move.js │ │ │ ├── path-exists/ │ │ │ │ └── index.js │ │ │ ├── remove/ │ │ │ │ ├── index.js │ │ │ │ └── rimraf.js │ │ │ └── util/ │ │ │ ├── stat.js │ │ │ └── utimes.js │ │ ├── fusejs/ │ │ │ └── index.js │ │ ├── imageType/ │ │ │ ├── LICENSE │ │ │ ├── fileType.js │ │ │ └── index.js │ │ ├── isexe/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ ├── mode.js │ │ │ └── windows.js │ │ ├── jsonwebtoken/ │ │ │ ├── LICENSE │ │ │ ├── decode.js │ │ │ ├── index.js │ │ │ ├── lib/ │ │ │ │ ├── JsonWebTokenError.js │ │ │ │ ├── NotBeforeError.js │ │ │ │ ├── TokenExpiredError.js │ │ │ │ └── timespan.js │ │ │ ├── sign.js │ │ │ └── verify.js │ │ ├── jwa/ │ │ │ ├── LICENSE │ │ │ ├── buffer-equal-constant-time/ │ │ │ │ ├── LICENSE │ │ │ │ └── index.js │ │ │ ├── ecdsa-sig-formatter/ │ │ │ │ ├── LICENSE │ │ │ │ ├── index.js │ │ │ │ └── param-bytes-for-alg.js │ │ │ └── index.js │ │ ├── jws/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ └── lib/ │ │ │ ├── data-stream.js │ │ │ ├── sign-stream.js │ │ │ ├── tostring.js │ │ │ └── verify-stream.js │ │ ├── libarchive/ │ │ │ ├── LICENSE │ │ │ ├── archive.js │ │ │ ├── libarchiveWorker.js │ │ │ ├── wasm-libarchive.js │ │ │ └── wasm-module.js │ │ ├── lodash.once/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── memorystore/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── nodeCron/ │ │ │ ├── LICENSE │ │ │ ├── background-scheduled-task/ │ │ │ │ ├── daemon.js │ │ │ │ └── index.js │ │ │ ├── convert-expression/ │ │ │ │ ├── asterisk-to-range-conversion.js │ │ │ │ ├── index.js │ │ │ │ ├── month-names-conversion.js │ │ │ │ ├── range-conversion.js │ │ │ │ ├── step-values-conversion.js │ │ │ │ └── week-day-names-conversion.js │ │ │ ├── index.js │ │ │ ├── pattern-validation.js │ │ │ ├── scheduled-task.js │ │ │ ├── scheduler.js │ │ │ ├── storage.js │ │ │ ├── task.js │ │ │ └── time-matcher.js │ │ ├── nodeFfprobe/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── nodeStreamZip/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── passportLocal/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ └── strategy.js │ │ ├── readChunk/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ ├── pify.js │ │ │ └── withOpenFile.js │ │ ├── recursiveReaddirAsync/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── requestIp/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ └── isJs.js │ │ ├── rss/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── sanitizeHtml/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── streamsearch/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── uaParser/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── umzug/ │ │ │ ├── LICENSE │ │ │ ├── index.js │ │ │ ├── storage/ │ │ │ │ ├── contract.js │ │ │ │ ├── index.js │ │ │ │ ├── json.js │ │ │ │ ├── memory.js │ │ │ │ ├── mongodb.js │ │ │ │ └── sequelize.js │ │ │ ├── templates.js │ │ │ ├── types.js │ │ │ └── umzug.js │ │ ├── universalify/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── watcher/ │ │ │ ├── LICENSE │ │ │ ├── aborter/ │ │ │ │ ├── controller.js │ │ │ │ └── signal.js │ │ │ ├── are-shallow-equal.js │ │ │ ├── atomically/ │ │ │ │ ├── consts.js │ │ │ │ ├── index.js │ │ │ │ └── utils/ │ │ │ │ ├── attemptify.js │ │ │ │ ├── fs.js │ │ │ │ ├── fs_handlers.js │ │ │ │ ├── lang.js │ │ │ │ ├── retryify.js │ │ │ │ ├── retryify_queue.js │ │ │ │ ├── scheduler.js │ │ │ │ └── temp.js │ │ │ ├── constants.js │ │ │ ├── debounce.js │ │ │ ├── enums.js │ │ │ ├── is-primitive.js │ │ │ ├── promise-concurrency-limiter.js │ │ │ ├── ripstat/ │ │ │ │ ├── consts.js │ │ │ │ ├── index.js │ │ │ │ └── stats.js │ │ │ ├── string-indexes.js │ │ │ ├── tiny-readdir.js │ │ │ ├── types.js │ │ │ ├── utils.js │ │ │ ├── watcher.js │ │ │ ├── watcher_handler.js │ │ │ ├── watcher_locker.js │ │ │ ├── watcher_locks_resolver.js │ │ │ ├── watcher_poller.js │ │ │ └── watcher_stats.js │ │ ├── which/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ └── xml/ │ │ ├── LICENSE │ │ ├── escapeForXML.js │ │ └── index.js │ ├── managers/ │ │ ├── AbMergeManager.js │ │ ├── ApiCacheManager.js │ │ ├── AudioMetadataManager.js │ │ ├── BackupManager.js │ │ ├── BinaryManager.js │ │ ├── CacheManager.js │ │ ├── CoverManager.js │ │ ├── CoverSearchManager.js │ │ ├── CronManager.js │ │ ├── EmailManager.js │ │ ├── LogManager.js │ │ ├── MigrationManager.js │ │ ├── NotificationManager.js │ │ ├── PlaybackSessionManager.js │ │ ├── PodcastManager.js │ │ ├── RssFeedManager.js │ │ ├── ShareManager.js │ │ └── TaskManager.js │ ├── migrations/ │ │ ├── changelog.md │ │ ├── readme.md │ │ ├── v2.15.0-series-column-unique.js │ │ ├── v2.15.1-reindex-nocase.js │ │ ├── v2.15.2-index-creation.js │ │ ├── v2.17.0-uuid-replacement.js │ │ ├── v2.17.3-fk-constraints.js │ │ ├── v2.17.4-use-subfolder-for-oidc-redirect-uris.js │ │ ├── v2.17.5-remove-host-from-feed-urls.js │ │ ├── v2.17.6-share-add-isdownloadable.js │ │ ├── v2.17.7-add-indices.js │ │ ├── v2.19.1-copy-title-to-library-items.js │ │ ├── v2.19.4-improve-podcast-queries.js │ │ ├── v2.20.0-improve-author-sort-queries.js │ │ ├── v2.26.0-create-auth-tables.js │ │ └── v2.33.0-add-discover-query-indexes.js │ ├── models/ │ │ ├── ApiKey.js │ │ ├── Author.js │ │ ├── Book.js │ │ ├── BookAuthor.js │ │ ├── BookSeries.js │ │ ├── Collection.js │ │ ├── CollectionBook.js │ │ ├── CustomMetadataProvider.js │ │ ├── Device.js │ │ ├── Feed.js │ │ ├── FeedEpisode.js │ │ ├── Library.js │ │ ├── LibraryFolder.js │ │ ├── LibraryItem.js │ │ ├── MediaItemShare.js │ │ ├── MediaProgress.js │ │ ├── PlaybackSession.js │ │ ├── Playlist.js │ │ ├── PlaylistMediaItem.js │ │ ├── Podcast.js │ │ ├── PodcastEpisode.js │ │ ├── Series.js │ │ ├── Session.js │ │ ├── Setting.js │ │ └── User.js │ ├── objects/ │ │ ├── Backup.js │ │ ├── DailyLog.js │ │ ├── DeviceInfo.js │ │ ├── Notification.js │ │ ├── PlaybackSession.js │ │ ├── PodcastEpisodeDownload.js │ │ ├── Stream.js │ │ ├── Task.js │ │ ├── TrackProgressMonitor.js │ │ ├── files/ │ │ │ ├── AudioFile.js │ │ │ ├── AudioTrack.js │ │ │ ├── EBookFile.js │ │ │ └── LibraryFile.js │ │ ├── metadata/ │ │ │ ├── AudioMetaTags.js │ │ │ └── FileMetadata.js │ │ └── settings/ │ │ ├── EmailSettings.js │ │ ├── NotificationSettings.js │ │ └── ServerSettings.js │ ├── providers/ │ │ ├── Audible.js │ │ ├── AudiobookCovers.js │ │ ├── Audnexus.js │ │ ├── CustomProviderAdapter.js │ │ ├── FantLab.js │ │ ├── GoogleBooks.js │ │ ├── MusicBrainz.js │ │ ├── OpenLibrary.js │ │ └── iTunes.js │ ├── routers/ │ │ ├── ApiRouter.js │ │ ├── HlsRouter.js │ │ └── PublicRouter.js │ ├── scanner/ │ │ ├── AbsMetadataFileScanner.js │ │ ├── AudioFileScanner.js │ │ ├── BookScanner.js │ │ ├── LibraryItemScanData.js │ │ ├── LibraryItemScanner.js │ │ ├── LibraryScan.js │ │ ├── LibraryScanner.js │ │ ├── MediaProbeData.js │ │ ├── NfoFileScanner.js │ │ ├── OpfFileScanner.js │ │ ├── PodcastScanner.js │ │ ├── ScanLogger.js │ │ └── Scanner.js │ └── utils/ │ ├── areEquivalent.js │ ├── comicBookExtractors.js │ ├── constants.js │ ├── ffmpegHelpers.js │ ├── fileUtils.js │ ├── generators/ │ │ ├── abmetadataGenerator.js │ │ ├── hlsPlaylistGenerator.js │ │ └── opmlGenerator.js │ ├── globals.js │ ├── htmlEntities.js │ ├── htmlSanitizer.js │ ├── index.js │ ├── libraryHelpers.js │ ├── longTimeout.js │ ├── migrations/ │ │ ├── absMetadataMigration.js │ │ ├── dbMigration.js │ │ └── oldDbFiles.js │ ├── notifications.js │ ├── parsers/ │ │ ├── parseComicInfoMetadata.js │ │ ├── parseComicMetadata.js │ │ ├── parseEbookMetadata.js │ │ ├── parseEpubMetadata.js │ │ ├── parseFullName.js │ │ ├── parseNameString.js │ │ ├── parseNfoMetadata.js │ │ ├── parseOPML.js │ │ ├── parseOpfMetadata.js │ │ ├── parseOverdriveMediaMarkers.js │ │ └── parseSeriesString.js │ ├── podcastUtils.js │ ├── prober.js │ ├── profiler.js │ ├── queries/ │ │ ├── adminStats.js │ │ ├── authorFilters.js │ │ ├── libraryFilters.js │ │ ├── libraryItemFilters.js │ │ ├── libraryItemsBookFilters.js │ │ ├── libraryItemsPodcastFilters.js │ │ ├── seriesFilters.js │ │ └── userStats.js │ ├── rateLimiterFactory.js │ ├── scandir.js │ ├── stringifySequelizeQuery.js │ └── zipHelpers.js └── test/ └── server/ ├── Logger.test.js ├── controllers/ │ ├── LibraryItemController.test.js │ └── MeController.test.js ├── finders/ │ └── BookFinder.test.js ├── managers/ │ ├── ApiCacheManager.test.js │ ├── BinaryManager.test.js │ ├── MigrationManager.test.js │ └── migrations/ │ ├── v1.0.0-migration.js │ ├── v1.1.0-migration.js │ ├── v1.10.0-migration.js │ └── v1.2.0-migration.js ├── migrations/ │ ├── v0.0.1-migration_example.js │ ├── v0.0.1-migration_example.test.js │ ├── v2.15.0-series-column-unique.test.js │ ├── v2.17.3-fk-constraints.test.js │ ├── v2.17.4-use-subfolder-for-oidc-redirect-uris.test.js │ ├── v2.17.5-remove-host-from-feed-urls.test.js │ ├── v2.17.6-share-add-isdownloadable.test.js │ ├── v2.19.1-copy-title-to-library-items.test.js │ ├── v2.19.4-improve-podcast-queries.test.js │ └── v2.20.0-improve-author-sort-queries.test.js ├── objects/ │ └── TrackProgressMonitor.test.js ├── providers/ │ └── Audible.test.js └── utils/ ├── ffmpegHelpers.test.js ├── fileUtils.test.js ├── parsers/ │ ├── parseNameString.test.js │ ├── parseNfoMetadata.test.js │ └── parseOpfMetadata.test.js ├── scandir.test.js └── stringifySequeslizeQuery.test.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .devcontainer/Dockerfile ================================================ # [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster ARG VARIANT=20 FROM mcr.microsoft.com/devcontainers/javascript-node:0-${VARIANT} as base # Setup the node environment ENV NODE_ENV=development # Install additional OS packages. RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \ curl tzdata ffmpeg && \ rm -rf /var/lib/apt/lists/* ================================================ FILE: .devcontainer/dev.js ================================================ // Using port 3333 is important when running the client web app separately const Path = require('path') module.exports.config = { Port: 3333, ConfigPath: Path.resolve('config'), MetadataPath: Path.resolve('metadata'), FFmpegPath: '/usr/bin/ffmpeg', FFProbePath: '/usr/bin/ffprobe', SkipBinariesCheck: false } ================================================ FILE: .devcontainer/devcontainer.json ================================================ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node { "name": "Audiobookshelf", "build": { "dockerfile": "Dockerfile", // Update 'VARIANT' to pick a Node version: 18, 16, 14. // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local arm64/Apple Silicon. "args": { "VARIANT": "20" } }, "mounts": [ "source=abs-server-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume", "source=abs-client-node_modules,target=${containerWorkspaceFolder}/client/node_modules,type=volume" ], // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [ 3000, 3333 ], // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "sh .devcontainer/post-create.sh", // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { // Add the IDs of extensions you want installed when the container is created. "extensions": [ "dbaeumer.vscode-eslint", "octref.vetur" ] } } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" } ================================================ FILE: .devcontainer/post-create.sh ================================================ #!/bin/sh # Mark the working directory as safe for use with git git config --global --add safe.directory $PWD # If there is no dev.js file, create it if [ ! -f dev.js ]; then cp .devcontainer/dev.js . fi # Update permissions for node_modules folders # https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-a-targeted-named-volume if [ -d node_modules ]; then sudo chown $(id -u):$(id -g) node_modules fi if [ -d client/node_modules ]; then sudo chown $(id -u):$(id -g) client/node_modules fi # Install packages for the server if [ -f package.json ]; then npm ci fi # Install packages and build the client if [ -f client/package.json ]; then (cd client; npm ci; npm run generate) fi ================================================ FILE: .dockerignore ================================================ .env node_modules npm-debug.log .git .gitignore /config /audiobooks /audiobooks2 /media/ /metadata dev.js test/ /client/.nuxt/ /client/dist/ /dist/ /deploy/ ================================================ FILE: .editorconfig ================================================ root = true [*] indent_style = space indent_size = 2 charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true ================================================ FILE: .gitattributes ================================================ # Set the default behavior, in case people don't have core.autocrlf set. * text=auto # Declare files that will always have CRLF line endings on checkout. .devcontainer/post-create.sh text eol=lf ================================================ FILE: .github/ISSUE_TEMPLATE/bug.yaml ================================================ name: 🐞 Bug Report description: File a bug/issue and help us improve Audiobookshelf title: '[Bug]: ' labels: ['bug', 'triage'] body: - type: markdown attributes: value: 'Thank you for filing a bug report! 🐛' - type: markdown attributes: value: 'Please first search for your issue and check the [docs](https://audiobookshelf.org/docs).' - type: markdown attributes: value: 'Report issues with the mobile app [here](https://github.com/advplyr/audiobookshelf-app/issues/new/choose).' - type: markdown attributes: value: 'Join the [discord server](https://discord.gg/HQgCbd6E75) for questions or if you are not sure about a bug.' - type: textarea id: what-happened attributes: label: What happened? placeholder: Tell us what you see! validations: required: true - type: textarea id: what-was-expected attributes: label: What did you expect to happen? placeholder: Tell us what you expected to see! Be as descriptive as you can and include screenshots if applicable. validations: required: true - type: textarea id: steps-to-reproduce attributes: label: Steps to reproduce the issue value: '1. ' validations: required: true - type: markdown attributes: value: '## Install Environment' - type: input id: version attributes: label: Audiobookshelf version description: Do not put 'Latest version', please put the actual version here placeholder: 'e.g. v1.6.60' validations: required: true - type: dropdown id: install attributes: label: How are you running audiobookshelf? options: - Docker - Debian/PPA - Windows Tray App - Built from source - Other (list in "Additional Notes" box) validations: required: true - type: dropdown id: server-os attributes: label: What OS is your Audiobookshelf server hosted from? options: - Windows - macOS - Linux - Other (list in "Additional Notes" box) validations: required: true - type: dropdown id: desktop-browsers attributes: label: If the issue is being seen in the UI, what browsers are you seeing the problem on? options: - Chrome - Firefox - Safari - Edge - Firefox for Android - Chrome for Android - Safari on iOS - Other (list in "Additional Notes" box) - type: textarea id: logs attributes: label: Logs description: Please include any relevant logs here. This field is automatically formatted into code, so you do not need to include any backticks. placeholder: Paste logs here render: shell - type: textarea id: additional-notes attributes: label: Additional Notes description: Anything else you want to add? placeholder: 'e.g. I have tried X, Y, and Z.' ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: Discord url: https://discord.gg/HQgCbd6E75 about: Ask questions, get help troubleshooting, and join the Abs community here. ================================================ FILE: .github/ISSUE_TEMPLATE/feature.yml ================================================ name: 🚀 Feature Request description: Request a feature/enhancement title: '[Enhancement]: ' labels: ['enhancement'] body: - type: markdown attributes: value: '#### *Mobile app features should be [requested here](https://github.com/advplyr/audiobookshelf-app/issues/new/choose)*.' - type: markdown attributes: value: '## Web/Server Feature Request Description' - type: markdown attributes: value: 'Please first search in both issues & discussions for your enhancement.' - type: dropdown id: enhancment-type attributes: label: Type of Enhancement options: - Server Backend - Web Interface/Frontend - Documentation - type: textarea id: describe attributes: label: Describe the Feature/Enhancement description: Please help us understand what you want. placeholder: What is your vision? validations: required: true - type: textarea id: the-why attributes: label: Why would this be helpful? description: Please help us understand why this would enhance your experience. placeholder: Explain the "why" or "use case". validations: required: true - type: textarea id: image attributes: label: Future Implementation (Screenshot) description: Please help us visualize by including a doodle or screenshot. placeholder: How could this look? validations: required: true - type: markdown attributes: value: '## Web/Server Current Implementation' - type: input id: version attributes: label: Audiobookshelf Server Version description: Do not put 'Latest version', please put your current version number here placeholder: 'e.g. v1.6.60' validations: required: true - type: textarea id: current-image attributes: label: Current Implementation (Screenshot) description: What page were you looking at when you thought of this enhancement? placeholder: If an image is not applicable, please explain why. ================================================ FILE: .github/pull_request_template.md ================================================ ## Brief summary ## Which issue is fixed? ## In-depth Description ## How have you tested this? ## Screenshots ================================================ FILE: .github/workflows/apply_comments.yaml ================================================ name: Add issue comments by label on: issues: types: - labeled jobs: help-wanted: if: github.event.label.name == 'help wanted' runs-on: ubuntu-latest permissions: issues: write steps: - name: Help wanted comment run: gh issue comment "$NUMBER" --body "$BODY" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.issue.number }} BODY: > This issue is not able to be completed due to limited bandwidth or access to the required test hardware. This issue is available for anyone to work on. config-issue: if: github.event.label.name == 'config-issue' runs-on: ubuntu-latest permissions: issues: write steps: - name: Config issue comment run: gh issue close "$NUMBER" --reason "not planned" --comment "$BODY" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.issue.number }} BODY: > After reviewing this issue, this appears to be a problem with your setup and not Audiobookshelf. This issue is being closed to keep the issue tracker focused on Audiobookshelf itself. Please reach out on the Audiobookshelf Discord for community support. Some common search terms to help you find the solution to your problem: - Reverse proxy - Enabling websockets - SSL (https vs http) - Configuring a static IP - `localhost` versus IP address - hairpin NAT - VPN - firewall ports - public versus private network - bridge versus host mode - Docker networking - DNS (such as EAI_AGAIN errors) After you have followed these steps, please post the solution or steps you followed to fix the problem to help others in the future, or show that it is a problem with Audiobookshelf so we can reopen the issue. ================================================ FILE: .github/workflows/close-issues-on-release.yml ================================================ name: Close fixed issues on release. on: release: types: [published] permissions: contents: read issues: write jobs: comment: runs-on: ubuntu-latest steps: - name: Close issues marked as fixed upon a release. uses: gcampbell-msft/fixed-pending-release@7fa1b75a0c04bcd4b375110522878e5f6100cff5 with: label: 'awaiting release' removeLabel: true applyToAll: true message: Fixed in [${releaseTag}](${releaseUrl}). ================================================ FILE: .github/workflows/close_blank_issues.yaml ================================================ name: Close Issues not using a template on: issues: types: - opened permissions: issues: write jobs: close_issue: runs-on: ubuntu-latest steps: - name: Check issue headings uses: actions/github-script@v7 with: script: | const issueBody = context.payload.issue.body || ""; // Match Markdown headings (e.g., # Heading, ## Heading) const headingRegex = /^(#{1,6})\s.+/gm; const headings = [...issueBody.matchAll(headingRegex)]; if (headings.length < 3) { // Post a comment await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.issue.number, body: "Thank you for opening an issue! To help us review your request efficiently, please use one of the provided issue templates. If you're seeking information or have a general question, consider opening a Discussion or joining the conversation on our Discord. Thanks!" }); // Close the issue await github.rest.issues.update({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.issue.number, state: "closed" }); } ================================================ FILE: .github/workflows/codeql.yml ================================================ name: 'CodeQL' on: push: branches: ['master'] # Only build when files in these directories have been changed paths: - client/** - server/** - test/** - index.js - package.json pull_request: # The branches below must be a subset of the branches above branches: ['master'] # Only build when files in these directories have been changed paths: - client/** - server/** - test/** - index.js - package.json schedule: - cron: '16 5 * * 4' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: ['javascript'] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Use only 'java' to analyze code written in Java, Kotlin or both # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - name: Checkout repository uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | # echo "Run, Build Application using script" # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: category: '/language:${{matrix.language}}' ================================================ FILE: .github/workflows/component-tests.yml ================================================ name: Run Component Tests on: workflow_dispatch: inputs: ref: description: 'Branch/Tag/SHA to test' required: true pull_request: paths: - 'client/**' - '.github/workflows/component-tests.yml' push: paths: - 'client/**' - '.github/workflows/component-tests.yml' jobs: run-component-tests: name: Run Component Tests runs-on: ubuntu-latest steps: - name: Checkout (push/pull request) uses: actions/checkout@v4 if: github.event_name != 'workflow_dispatch' - name: Checkout (workflow_dispatch) uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} if: github.event_name == 'workflow_dispatch' - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' - name: Install dependencies run: | cd client npm ci - name: Run tests run: | cd client npm test ================================================ FILE: .github/workflows/docker-build.yml ================================================ --- name: Build and Push Docker Image on: # Allows you to run workflow manually from Actions tab workflow_dispatch: inputs: tags: description: 'Docker Tag' required: true default: 'latest' push: branches: [main, master] tags: - 'v*.*.*' # Only build when files in these directories have been changed paths: - client/** - server/** - index.js - package.json jobs: build: if: ${{ !contains(github.event.head_commit.message, 'skip ci') && github.repository == 'advplyr/audiobookshelf' }} runs-on: ubuntu-24.04 steps: - name: Check out uses: actions/checkout@v4 - name: Docker meta id: meta uses: docker/metadata-action@v5 with: images: advplyr/audiobookshelf,ghcr.io/${{ github.repository_owner }}/audiobookshelf tags: | type=edge,branch=master type=semver,pattern={{version}} - name: Setup QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Cache Docker layers uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - name: Login to Dockerhub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Login to ghcr uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GHCR_PASSWORD }} - name: Build image uses: docker/build-push-action@v6 with: tags: ${{ github.event.inputs.tags || steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} context: . platforms: linux/amd64,linux/arm64 push: true cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - name: Move cache run: | rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache ================================================ FILE: .github/workflows/i18n-integration.yml ================================================ name: Verify all i18n files are alphabetized on: pull_request: paths: - client/strings/** # Should only check if any strings changed push: paths: - client/strings/** # Should only check if any strings changed jobs: update_translations: runs-on: ubuntu-latest steps: # Check out the repository - name: Checkout repository uses: actions/checkout@v4 # Set up node to run the javascript - name: Set up node uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' # The only argument is the `directory`, which is where the i18n files are # stored. - name: Run Update JSON Files action uses: audiobookshelf/audiobookshelf-i18n-updater@v1.3.0 with: directory: 'client/strings/' # Adjust the directory path as needed ================================================ FILE: .github/workflows/integration-test.yml ================================================ name: Integration Test on: pull_request: push: branches-ignore: - 'dependabot/**' # Don't run dependabot branches, as they are already covered by pull requests # Only build when files in these directories have been changed paths: - client/** - server/** - test/** - index.js - package.json jobs: build: name: build and test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: setup node uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' - name: install pkg (using yao-pkg fork for targeting node20) run: npm install -g @yao-pkg/pkg - name: get client dependencies working-directory: client run: npm ci - name: build client working-directory: client run: npm run generate - name: get server dependencies run: npm ci --only=production - name: build binary run: pkg -t node20-linux-x64 -o audiobookshelf . - name: run audiobookshelf run: | ./audiobookshelf & sleep 5 - name: test if server is available run: curl -sf http://127.0.0.1:3333 | grep Audiobookshelf ================================================ FILE: .github/workflows/lint-openapi.yml ================================================ name: API linting # Run on pull requests or pushes when there is a change to any OpenAPI files in docs/ on: pull_request: push: paths: - 'docs/**' # This action only needs read permissions permissions: contents: read jobs: build: runs-on: ubuntu-latest steps: # Check out the repository - name: Checkout uses: actions/checkout@v4 # Set up node to run the javascript - name: Set up node uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' # Install Redocly CLI - name: Install Redocly CLI run: npm install -g @redocly/cli@latest # Perform linting for exploded spec - name: Run linting for exploded spec run: redocly lint docs/root.yaml --format=github-actions # Perform linting for bundled spec - name: Run linting for bundled spec run: redocly lint docs/openapi.json --format=github-actions ================================================ FILE: .github/workflows/notify-abs-windows.yml ================================================ name: Dispatch an abs-windows event on: release: types: [published] workflow_dispatch: jobs: abs-windows-dispatch: runs-on: ubuntu-latest steps: - name: Send a remote repository dispatch event uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.ABS_WINDOWS_PAT }} repository: mikiher/audiobookshelf-windows event-type: build-windows ================================================ FILE: .github/workflows/unit-tests.yml ================================================ name: Run Unit Tests on: workflow_dispatch: inputs: ref: description: 'Branch/Tag/SHA to test' required: true pull_request: push: jobs: run-unit-tests: name: Run Unit Tests runs-on: ubuntu-latest steps: - name: Checkout (push/pull request) uses: actions/checkout@v4 if: github.event_name != 'workflow_dispatch' - name: Checkout (workflow_dispatch) uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} if: github.event_name == 'workflow_dispatch' - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' - name: Install dependencies run: npm ci - name: Run tests run: npm test ================================================ FILE: .gitignore ================================================ .env /dev.js **/node_modules/ /config/ /audiobooks/ /audiobooks2/ /podcasts/ /media/ /metadata/ /plugins/ /client/.nuxt/ /client/dist/ /dist/ /deploy/ /coverage/ /.nyc_output/ /ffmpeg* /ffprobe* /unicode* /libnusqlite3* sw.* .DS_STORE .idea/* tailwind.compiled.css tailwind.config.js ================================================ FILE: .prettierrc ================================================ { "semi": false, "singleQuote": true, "printWidth": 400, "proseWrap": "never", "trailingComma": "none", "overrides": [ { "files": ["*.html"], "options": { "singleQuote": false, "wrapAttributes": false, "sortAttributes": false } } ] } ================================================ FILE: .vscode/extensions.json ================================================ { "recommendations": [ "EditorConfig.EditorConfig", "esbenp.prettier-vscode", "octref.vetur" ] } ================================================ FILE: .vscode/launch.json ================================================ { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Debug server", "runtimeExecutable": "npm", "args": [ "run", "dev" ], "skipFiles": [ "/**" ] }, { "type": "node", "request": "launch", "name": "Debug client (nuxt)", "runtimeExecutable": "npm", "args": [ "run", "dev" ], "cwd": "${workspaceFolder}/client", "skipFiles": [ "${workspaceFolder}//**" ] } ], "compounds": [ { "name": "Debug server and client (nuxt)", "configurations": [ "Debug server", "Debug client (nuxt)" ] } ] } ================================================ FILE: .vscode/settings.json ================================================ { "vetur.format.defaultFormatterOptions": { "prettier": { "semi": false, "singleQuote": true, "printWidth": 400, "proseWrap": "never", "trailingComma": "none" }, "prettyhtml": { "printWidth": 400, "singleQuote": false, "wrapAttributes": false, "sortAttributes": false } }, "editor.formatOnSave": true, "editor.detectIndentation": true, "editor.tabSize": 2, "javascript.format.semicolons": "remove", "[javascript][json][jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[vue]": { "editor.defaultFormatter": "octref.vetur" } } ================================================ FILE: .vscode/tasks.json ================================================ { "version": "2.0.0", "tasks": [ { "path": "client", "type": "npm", "script": "generate", "detail": "nuxt generate", "label": "Build client", "group": { "kind": "build", "isDefault": true } }, { "dependsOn": [ "Build client" ], "type": "npm", "script": "dev", "detail": "nodemon --watch server index.js", "label": "Run server", "group": { "kind": "test", "isDefault": true } }, { "path": "client", "type": "npm", "script": "dev", "detail": "nuxt", "label": "Run Live-reload client", "group": { "kind": "test", "isDefault": false } } ] } ================================================ FILE: Dockerfile ================================================ ARG NUSQLITE3_DIR="/usr/local/lib/nusqlite3" ARG NUSQLITE3_PATH="${NUSQLITE3_DIR}/libnusqlite3.so" ### STAGE 0: Build client ### FROM node:20-alpine AS build-client WORKDIR /client COPY /client /client RUN npm ci && npm cache clean --force RUN npm run generate ### STAGE 1: Build server ### FROM node:20-alpine AS build-server ARG NUSQLITE3_DIR ARG TARGETPLATFORM ENV NODE_ENV=production RUN apk add --no-cache --update \ curl \ make \ python3 \ g++ \ unzip WORKDIR /server COPY index.js package* /server COPY /server /server/server RUN case "$TARGETPLATFORM" in \ "linux/amd64") \ curl -L -o /tmp/library.zip "https://github.com/mikiher/nunicode-sqlite/releases/download/v1.2/libnusqlite3-linux-musl-x64.zip" ;; \ "linux/arm64") \ curl -L -o /tmp/library.zip "https://github.com/mikiher/nunicode-sqlite/releases/download/v1.2/libnusqlite3-linux-musl-arm64.zip" ;; \ *) echo "Unsupported platform: $TARGETPLATFORM" && exit 1 ;; \ esac && \ unzip /tmp/library.zip -d $NUSQLITE3_DIR && \ rm /tmp/library.zip RUN npm ci --only=production ### STAGE 2: Create minimal runtime image ### FROM node:20-alpine ARG NUSQLITE3_DIR ARG NUSQLITE3_PATH # Install only runtime dependencies RUN apk add --no-cache --update \ tzdata \ ffmpeg \ tini WORKDIR /app # Copy compiled frontend and server from build stages COPY --from=build-client /client/dist /app/client/dist COPY --from=build-server /server /app COPY --from=build-server ${NUSQLITE3_PATH} ${NUSQLITE3_PATH} EXPOSE 80 ENV PORT=80 ENV NODE_ENV=production ENV CONFIG_PATH="/config" ENV METADATA_PATH="/metadata" ENV SOURCE="docker" ENV NUSQLITE3_DIR=${NUSQLITE3_DIR} ENV NUSQLITE3_PATH=${NUSQLITE3_PATH} ENTRYPOINT ["tini", "--"] CMD ["node", "index.js"] ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Audiobookshelf Self-hosted audiobook server Copyright (C) 2021 advplyr This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Audiobookshelf Copyright (C) 2021 advplyr This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: build/debian/DEBIAN/control ================================================ Package: audiobookshelf Version: 1.6.41 Section: base Priority: optional Architecture: amd64 Depends: Maintainer: advplyr Description: Self-hosted audiobook server for managing and playing audiobooks ================================================ FILE: build/debian/DEBIAN/postinst ================================================ #!/bin/bash set -e set -o pipefail ABS_LOG_DIR="/var/log/audiobookshelf" declare -r init_type='auto' declare -ri no_rebuild='0' start_service () { : "${1:?'Service name was not defined'}" declare -r service_name="$1" if hash systemctl 2> /dev/null; then if [[ "$init_type" == 'auto' || "$init_type" == 'systemd' ]]; then { systemctl enable "$service_name.service" && \ systemctl start "$service_name.service" } || echo "$service_name could not be registered or started" fi elif hash service 2> /dev/null; then if [[ "$init_type" == 'auto' || "$init_type" == 'upstart' || "$init_type" == 'sysv' ]]; then service "$service_name" start || echo "$service_name could not be registered or started" fi elif hash start 2> /dev/null; then if [[ "$init_type" == 'auto' || "$init_type" == 'upstart' ]]; then start "$service_name" || echo "$service_name could not be registered or started" fi elif hash update-rc.d 2> /dev/null; then if [[ "$init_type" == 'auto' || "$init_type" == 'sysv' ]]; then { update-rc.d "$service_name" defaults && \ "/etc/init.d/$service_name" start } || echo "$service_name could not be registered or started" fi else echo 'Your system does not appear to use systemd, Upstart, or System V, so the service could not be started' fi } # Create log directory if not there and set ownership if [ ! -d "$ABS_LOG_DIR" ]; then mkdir -p "$ABS_LOG_DIR" chown -R 'audiobookshelf:audiobookshelf' "$ABS_LOG_DIR" fi start_service 'audiobookshelf' ================================================ FILE: build/debian/DEBIAN/preinst ================================================ #!/bin/bash set -e set -o pipefail DEFAULT_DATA_DIR="/usr/share/audiobookshelf" CONFIG_PATH="/etc/default/audiobookshelf" DEFAULT_PORT=13378 DEFAULT_HOST="0.0.0.0" add_user() { : "${1:?'User was not defined'}" declare -r user="$1" declare -r uid="$2" if [ -z "$uid" ]; then declare -r uid_flags="" else declare -r uid_flags="--uid $uid" fi declare -r group="${3:-$user}" declare -r descr="${4:-No description}" declare -r shell="${5:-/bin/false}" if ! getent passwd "$user" 2>&1 >/dev/null; then echo "Creating system user: $user in $group with $descr and shell $shell" useradd $uid_flags --gid $group --no-create-home --system --shell $shell -c "$descr" $user fi } add_group() { : "${1:?'Group was not defined'}" declare -r group="$1" declare -r gid="$2" if [ -z "$gid" ]; then declare -r gid_flags="" else declare -r gid_flags="--gid $gid" fi if ! getent group "$group" 2>&1 >/dev/null; then echo "Creating system group: $group" groupadd $gid_flags --system $group fi } setup_config() { if [ -f "$CONFIG_PATH" ]; then echo "Existing config found." cat $CONFIG_PATH else if [ ! -d "$DEFAULT_DATA_DIR" ]; then # Create directory and set permissions echo "Creating default data dir at $DEFAULT_DATA_DIR" mkdir "$DEFAULT_DATA_DIR" chown -R 'audiobookshelf:audiobookshelf' "$DEFAULT_DATA_DIR" fi echo "Creating default config." config_text="METADATA_PATH=$DEFAULT_DATA_DIR/metadata CONFIG_PATH=$DEFAULT_DATA_DIR/config PORT=$DEFAULT_PORT HOST=$DEFAULT_HOST" echo "$config_text" echo "$config_text" > /etc/default/audiobookshelf; echo "Config created" fi } add_group 'audiobookshelf' '' add_user 'audiobookshelf' '' 'audiobookshelf' 'audiobookshelf user-daemon' '/bin/false' setup_config ================================================ FILE: build/debian/DEBIAN/prerm ================================================ #!/bin/bash set -e set -o pipefail declare -r init_type='auto' declare -r service_name='audiobookshelf' if [[ "$init_type" == 'auto' || "$init_type" == 'systemd' || "$init_type" == 'upstart' || "$init_type" == 'sysv' ]]; then if hash systemctl 2> /dev/null; then systemctl disable "$service_name.service" && \ systemctl stop "$service_name.service" || \ echo "$service_name wasn't even running!" elif hash service 2> /dev/null; then service "$service_name" stop || echo "$service_name wasn't even running!" elif hash stop 2> /dev/null; then stop "$service_name" || echo "$service_name wasn't even running!" elif hash update-rc.d 2> /dev/null; then { update-rc.d "$service_name" remove && \ "/etc/init.d/$service_name" stop } || "$service_name wasn't even running!" else echo "Your system does not appear to use upstart, systemd or sysv, so $service_name could not be stopped" echo 'Unless these systems were removed since install, no processes have been left running' fi fi ================================================ FILE: build/debian/etc/default/.gitkeep ================================================ ================================================ FILE: build/debian/lib/systemd/system/audiobookshelf.service ================================================ [Unit] Description=Self-hosted audiobook server for managing and playing audiobooks Requires=network.target [Service] Type=simple EnvironmentFile=/etc/default/audiobookshelf WorkingDirectory=/usr/share/audiobookshelf ExecStart=/usr/share/audiobookshelf/audiobookshelf ExecReload=/bin/kill -HUP $MAINPID Restart=always User=audiobookshelf Group=audiobookshelf [Install] WantedBy=multi-user.target ================================================ FILE: build/debian/usr/lib/.gitkeep ================================================ ================================================ FILE: build/debian/usr/share/.gitkeep ================================================ ================================================ FILE: build/linuxpackager ================================================ #!/bin/bash set -e set -o pipefail SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" cd "$SCRIPT_DIR/.." # Get package version without double quotes VERSION="$( eval echo $( jq '.version' package.json) )" DESCRIPTION="$( eval echo $( jq '.description' package.json) )" OUTPUT_FILE="audiobookshelf_${VERSION}_amd64.deb" echo ">>> Building Client" echo "--------------------" cd client rm -rf node_modules npm ci --unsafe-perm=true --allow-root npm run generate cd .. echo ">>> Building Server" echo "--------------------" rm -rf node_modules npm ci --unsafe-perm=true --allow-root echo ">>> Packaging" echo "--------------------" # Create debian control file mkdir -p dist rm -rf dist/debian cp -R build/debian dist/debian chmod -R 775 dist/debian controlfile="Package: audiobookshelf Version: $VERSION Section: base Priority: optional Architecture: amd64 Depends: Maintainer: advplyr Description: $DESCRIPTION" echo "$controlfile" > dist/debian/DEBIAN/control; # Package debian pkg -t node20-linux-x64 -o dist/debian/usr/share/audiobookshelf/audiobookshelf . fakeroot dpkg-deb -Zxz --build dist/debian mv dist/debian.deb "dist/$OUTPUT_FILE" echo "Finished! Filename: $OUTPUT_FILE" ================================================ FILE: client/assets/absicons.css ================================================ @font-face { font-family: 'absicons'; src: url('~static/fonts/absicons/absicons.eot?2jfq33'); src: url('~static/fonts/absicons/absicons.eot?2jfq33#iefix') format('embedded-opentype'), url('~static/fonts/absicons/absicons.ttf?2jfq33') format('truetype'), url('~static/fonts/absicons/absicons.woff?2jfq33') format('woff'), url('~static/fonts/absicons/absicons.svg?2jfq33#absicons') format('svg'); font-weight: normal; font-style: normal; font-display: block; } .abs-icons { /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'absicons' !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-books-1:before { content: "\e905"; } .icon-microphone-1:before { content: "\e902"; } .icon-radio:before { content: "\e903"; } .icon-podcast:before { content: "\e904"; } .icon-audiobookshelf:before { content: "\e900"; } .icon-database:before { content: "\e906"; } .icon-microphone-2:before { content: "\e901"; } .icon-headphones:before { content: "\e910"; } .icon-music:before { content: "\e911"; } .icon-video:before { content: "\e914"; } .icon-microphone-3:before { content: "\e91e"; } .icon-book-1:before { content: "\e91f"; } .icon-books-2:before { content: "\e920"; } .icon-file-picture:before { content: "\e927"; } .icon-database-1:before { content: "\e964"; } .icon-rocket:before { content: "\e9a5"; } .icon-power:before { content: "\e9b5"; } .icon-star:before { content: "\e9d9"; } .icon-heart:before { content: "\e9da"; } .icon-rss:before { content: "\ea9b"; } ================================================ FILE: client/assets/app.css ================================================ @import './fonts.css'; @import './transitions.css'; @import './draggable.css'; @import './defaultStyles.css'; @import './absicons.css'; :root { --bookshelf-texture-img: url(~static/textures/wood_default.jpg); --bookshelf-divider-bg: linear-gradient(180deg, rgba(149, 119, 90, 1) 0%, rgba(103, 70, 37, 1) 17%, rgba(103, 70, 37, 1) 88%, rgba(71, 48, 25, 1) 100%); } .page { width: 100%; height: calc(100% - 64px); max-height: calc(100% - 64px); } .page.streaming { height: calc(100% - 64px - 165px); max-height: calc(100% - 64px - 165px); } #bookshelf { height: calc(100% - 40px); background-image: linear-gradient(to right bottom, #2e2e2e, #303030, #313131, #333333, #353535, #343434, #323232, #313131, #2c2c2c, #282828, #232323, #1f1f1f); /* For Firefox */ scrollbar-width: thin; scrollbar-color: #855620 rgba(0, 0, 0, 0); } .bookshelf-row { width: calc(100vw - (100vw - 100%)); } @media (max-width: 768px) { #bookshelf { height: calc(100% - 80px); } .bookshelf-row { width: 100vw; } } #page-wrapper { background-image: linear-gradient(to right bottom, #2e2e2e, #303030, #313131, #333333, #353535, #343434, #323232, #313131, #2c2c2c, #282828, #232323, #1f1f1f); } /* width */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar:horizontal { height: 8px; } /* Track */ ::-webkit-scrollbar-track { background-color: rgba(0, 0, 0, 0); } /* Handle */ ::-webkit-scrollbar-thumb { background: #855620; border-radius: 4px; } /* Handle on hover */ ::-webkit-scrollbar-thumb:hover { background: #704922; } .no-scroll::-webkit-scrollbar { display: none; opacity: 0; } .no-scroll { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } /* Chrome, Safari, Edge, Opera */ .no-spinner::-webkit-outer-spin-button, .no-spinner::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type='number'] { -moz-appearance: textfield; } .tracksTable { border-collapse: collapse; width: 100%; border: 1px solid #474747; } .tracksTable tr:nth-child(even) { background-color: #2e2e2e; } .tracksTable tr { background-color: #373838; } .tracksTable tr:hover:not(:has(th)) { background-color: #474747; } .tracksTable td { padding: 4px 8px; } .tracksTable th { padding: 4px 8px; font-size: 0.75rem; } .arrow-down { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid white; } .arrow-down-small { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; } .triangle-right { width: 0; height: 0; border-left: 8px solid transparent; border-bottom: 8px solid transparent; border-top: 8px solid rgb(34, 127, 35); border-right: 8px solid rgb(34, 127, 35); } .icon-text { font-size: 1.1rem; } .box-shadow-md { box-shadow: 2px 8px 6px #111111aa; } .box-shadow-sm-up { box-shadow: 0px -5px 8px #11111122; } .box-shadow-md-up { box-shadow: 0px -8px 8px #11111144; } .box-shadow-lg-up { box-shadow: 0px -12px 8px #111111ee; } .box-shadow-xl { box-shadow: 2px 14px 8px #111111aa; } .box-shadow-book { box-shadow: 4px 1px 8px #11111166, -4px 1px 8px #11111166, 1px -4px 8px #11111166; } .box-shadow-progressbar { box-shadow: 0px -1px 4px rgb(62, 50, 2, 0.5); } .shadow-height { height: calc(100% - 4px); } .box-shadow-book3d { box-shadow: 4px 1px 8px #11111166, 1px -4px 8px #11111166; } .box-shadow-side { box-shadow: 5px 0px 5px #11111166; } /* Bookshelf Label */ .categoryPlacard { letter-spacing: 1px; } .shinyBlack { background-color: #2d3436; background-image: linear-gradient(315deg, #19191a 0%, rgb(15, 15, 15) 74%); border-color: rgba(255, 244, 182, 0.6); border-style: solid; color: #fce3a6; } .cover-bg { width: calc(100% + 40px); height: calc(100% + 40px); top: -20px; left: -20px; background-size: 100% 100%; background-position: center; opacity: 1; filter: blur(20px); } /* Padding for toastification toasts in the top right to not cover appbar/toolbar */ .app-bar-and-toolbar .Vue-Toastification__container.top-right { padding-top: 104px; } .app-bar .Vue-Toastification__container.top-right { padding-top: 64px; } .no-bars .Vue-Toastification__container.top-right { padding-top: 8px; } .abs-btn::before { content: ''; position: absolute; border-radius: 6px; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0); transition: all 0.1s ease-in-out; } .abs-btn:hover:not(:disabled)::before { background-color: rgba(255, 255, 255, 0.1); } .abs-btn:disabled::before { background-color: rgba(0, 0, 0, 0.2); } ================================================ FILE: client/assets/defaultStyles.css ================================================ /* This is for setting regular html styles for places where embedding HTML will be like podcast episode descriptions. Otherwise TailwindCSS will have stripped all default markup. */ .default-style p { display: block; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; } .default-style a { text-decoration: none; color: #5985ff; } .default-style ul { display: block; list-style: circle; list-style-type: disc; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; padding-inline-start: 40px; } .default-style ol { display: block; list-style: decimal; list-style-type: decimal; margin-block-start: 1em; margin-block-end: 1em; margin-inline-start: 0px; margin-inline-end: 0px; padding-inline-start: 40px; } .default-style li { display: list-item; text-align: -webkit-match-parent; } .default-style li::marker { unicode-bidi: isolate; font-variant-numeric: tabular-nums; text-transform: none; text-indent: 0px !important; text-align: start !important; text-align-last: start !important; } .default-style.less-spacing p { margin-block-start: 0; } .default-style.less-spacing ul { margin-block-start: 0; } .default-style.less-spacing ol { margin-block-start: 0; } ================================================ FILE: client/assets/draggable.css ================================================ .flip-list-move { transition: transform 0.5s; } .no-move { transition: transform 0s; } .ghost { opacity: 0.5; background-color: rgba(255, 255, 255, 0.25); } .list-group { min-height: 30px; } .drag-handle { cursor: n-resize; } .list-group-item:not(.exclude) { cursor: n-resize; } .list-group-item.exclude { cursor: not-allowed; } .list-group-item:not(.ghost):not(.exclude):hover { background-color: rgba(0, 0, 0, 0.1); } .list-group-item:nth-child(even):not(.ghost):not(.exclude) { background-color: rgba(0, 0, 0, 0.25); } .list-group-item:nth-child(even):not(.ghost):not(.exclude):hover { background-color: rgba(0, 0, 0, 0.1); } .list-group-item.exclude:not(.ghost) { background-color: rgba(255, 0, 0, 0.25); } .list-group-item.exclude:not(.ghost):hover { background-color: rgba(223, 0, 0, 0.25); } ================================================ FILE: client/assets/ebooks/basic.js ================================================ /* Calibres stylesheet */ export default ` @charset "UTF-8"; /* Calibre styles */ .arabic { display: block; list-style-type: decimal; margin-bottom: 1em; margin-right: 0; margin-top: 1em; text-align: justify } .attribution { display: block; font-size: 1em; line-height: 1.2; text-align: left; margin: 0.3em 0 } .big { font-size: 1.375em; line-height: 1.2 } .big1 { font-size: 1em } .block { display: block; text-align: justify; margin: 1em 1em 2em } .block1 { display: block; text-align: justify; margin: 1em 4em } .block2 { display: block; text-align: justify; margin: 1em 1em 1em 2em } .bullet { display: block; list-style-type: disc; margin-bottom: 1em; margin-right: 0; margin-top: 1em; text-align: disc } .calibre { background-color: #000007; display: block; font-family: Charis, "Times New Roman", Verdana, Arial; font-size: 1.125em; line-height: 1.2; padding-left: 0; padding-right: 0; text-align: center; margin: 0 5pt } .calibre1 { display: block } .calibre2 { height: auto; width: auto } .calibre3:not(strong) { display: block; font-family: Charis, "Times New Roman", Verdana, Arial; font-size: 1.125em; line-height: 1.2; padding-left: 0; padding-right: 0; margin: 0 5pt } .calibre4 { font-weight: bold } .calibre5 { font-style: italic } .calibre6 { background-color: #FFF; display: block; font-family: Charis, "Times New Roman", Verdana, Arial; font-size: 1.125em; line-height: 1.2; padding-left: 0; padding-right: 0; text-align: center; margin: 0 5pt } .calibre7 { display: list-item } .calibre8 { font-size: 1em; line-height: 1.2; vertical-align: super } .calibre9 { border-collapse: separate; border-spacing: 2px; display: table; margin-bottom: 0; margin-top: 0; text-indent: 0 } .calibre10 { display: table-row; vertical-align: middle } .calibre11 { display: table-cell; text-align: right; vertical-align: inherit; padding: 1px } .calibre12 { display: table-cell; text-align: left; vertical-align: inherit; padding: 1px } .calibre13 { height: 1em; width: auto } .calibre14 { font-size: 0.88889em; line-height: 1.2; vertical-align: super } .calibre15 { font-size: 1em; line-height: 1.2; vertical-align: sub } .calibre16 { display: block; list-style-type: decimal; margin-bottom: 1em; margin-right: 0; margin-top: 1em } .calibre17 { display: block; font-size: 1.125em; font-weight: bold; line-height: 1.2; margin: 0.83em 0 } .center { display: block; text-align: center; margin: 1em 0 } .center1 { display: block; font-size: 1em; font-weight: bold; line-height: 1.2; text-align: center; margin: -2em 0 3em } .center2 { display: block; font-size: 1em; font-weight: bold; line-height: 1.2; text-align: center; margin: 2em 0 1em } .center3 { display: block; text-align: center; margin: -1em 0 1em } .center4 { display: block; text-align: center; text-indent: 3%; margin: 1em 0 } .chapter { display: block; font-size: 1.125em; font-weight: bold; line-height: 2em; text-align: center; margin: 2em 0 1em } .chapter1 { display: block; font-size: 0.88889em; line-height: 1.2; margin-left: 0.5em; margin-right: 0.5em; margin-top: 2em } .chapter2 { display: block; font-size: 1.125em; font-weight: bold; line-height: 2em; text-align: center; margin: 2em 0 3em } .copyright { display: block; font-size: 0.88889em; line-height: 1.2; margin-top: 4em; text-align: center } .dedication { display: block; font-size: 0.88889em; line-height: 1.2; margin-top: 4em } .dropcaps { float: left; font-size: 3.4375rem; line-height: 50px; margin-right: 0.09em; margin-top: -0.05em; padding-top: 1px } .dropcaps1 { float: left; font-size: 3.4375rem; line-height: 50px; margin-right: 0.09em; margin-top: 0.15em; padding-top: 1px } .extract { display: block; text-align: justify; margin: 2em 0 0.3em } .extract1 { display: block; text-align: justify; text-indent: 3%; margin: 2em 0 0.3em } .extract2 { display: block; text-align: justify; margin: 1em 0 0.3em } .footnote { border-bottom-style: solid; border-bottom-width: 0; border-left-style: solid; border-left-width: 0; border-right-style: solid; border-right-width: 0; border-top-style: solid; border-top-width: 1px; display: block; font-size: 1em; line-height: 1.2; margin-top: 2 em } .footnote1 { display: block; text-align: justify; margin: 0.3em 0 0.3em 2 } .footnote2 { border-bottom-style: solid; border-bottom-width: 0; border-left-style: solid; border-left-width: 0; border-right-style: solid; border-right-width: 0; border-top-style: solid; border-top-width: 1px; display: block; font-size: 0.88889em; line-height: 1.2; margin-top: 2 em } .hanging { display: block; font-size: 0.88889em; line-height: 1.2; text-align: left; text-indent: -1em; margin: 0.5em 0 0.3em 1em } .hanging1 { display: block; font-size: 0.88889em; line-height: 1.2; text-align: left; text-indent: -1em; margin: 0.5em 0 0.3em 1.5em } .hanging2 { display: block; font-size: 1em; line-height: 1.2; text-indent: -1em; margin: 0.5em 0 0.3em 1em } .hanging3 { display: block; font-size: 1em; line-height: 1.2; text-align: left; text-indent: 1em; margin: 0.1em 0 0.3em 1em } .hanging4 { display: block; font-size: 1em; line-height: 1.2; text-align: left; text-indent: 0.1em; margin: 0.1em 0 0.3em 1em } a.hlink { text-decoration: none } .indent { display: block; text-align: justify; text-indent: 1em; margin: 0.3em 0 } .line { border-top: currentColor solid 1px; border-bottom: currentColor solid 1px } .loweralpha { display: block; list-style-type: lower-alpha; margin-bottom: 1em; margin-right: 0; margin-top: 1em; text-align: justify } .none { display: block; list-style-type: none; margin-bottom: 1em; margin-right: 0; margin-top: 1em; text-align: justify } .none1 { display: block; list-style-type: none; margin-bottom: 0; margin-right: 0; margin-top: 0; text-align: justify } .nonindent { display: block; text-align: justify; margin: 0.3em 0 } .nonindent1 { display: block; font-size: 1.125em; line-height: 1.2; text-indent: -1em; margin: 0.5em 0 0.3em 0.1em } .nonindent2 { display: block; font-size: 1.125em; line-height: 1.2; text-indent: -1em; margin: 0.5em 0 0.3em -0.5em } .nonindent3 { display: block; text-align: justify; text-indent: 3%; margin: 0.3em 0 } .part { display: block; font-size: 1em; font-weight: bold; line-height: 2em; text-align: center; margin: 4em 0 1em } .preface { display: block; font-size: 0.88889em; line-height: 1.2; margin-left: 2em; margin-right: 2em; text-align: justify } .pubhlink { color: green; text-decoration: none } .right { display: block; text-align: right; margin: 0.3em 0 } .section { display: block; font-size: 1.125em; font-weight: bold; line-height: 1.2; text-align: center; margin: 2em 0 0.5em } .section1 { display: block; font-size: 1.125em; font-weight: bold; line-height: 1.2; text-align: left; margin: 2em 0 0.3em } .section2 { display: block; font-size: 1em; font-weight: bold; line-height: 1.2; text-align: left; margin: 2em 0 0.3em 1em } .small { font-size: 0.66667em } .small1 { font-size: 0.75em } .subchapter { display: block; font-size: 1.125em; font-weight: bold; line-height: 1.2; margin: 1em 0 } .textbox { background-color: #E4E4E4; display: block; line-height: 1.5em; margin-bottom: 2em; margin-top: 2em; text-align: justify; border-top: currentColor double 2px; border-bottom: currentColor double 2px } .textbox1 { display: block; text-align: justify; margin: 0.3em 0.5em 0.3em 0.8em } .textbox2 { display: block; text-align: justify; text-indent: 1em; margin: 0.3em 0.5em } .textbox3 { display: block; text-align: justify; text-indent: 3%; margin: 0.3em 0.5em 0.3em 0.8em } .titlepage { display: block; margin-left: -0.4em; margin-top: 1.2em } .toc { display: block; font-size: 1em; line-height: 1.2; text-align: center } .toc1 { display: block; font-size: 1em; font-weight: bold; line-height: 1.2; text-align: center; margin: 0.67em 0 3em } .underline { text-decoration: underline } ` ================================================ FILE: client/assets/ebooks/htmlParser.js ================================================ /* This is borrowed from koodo-reader https://github.com/troyeguo/koodo-reader/tree/master/src */ export const isTitle = ( line, isContainDI = false, isContainChapter = false, isContainCHAPTER = false ) => { return ( line.length < 30 && line.indexOf("[") === -1 && line.indexOf("(") === -1 && (line.startsWith("CHAPTER") || line.startsWith("Chapter") || line.startsWith("序章") || line.startsWith("前言") || line.startsWith("声明") || line.startsWith("聲明") || line.startsWith("写在前面的话") || line.startsWith("后记") || line.startsWith("楔子") || line.startsWith("后序") || line.startsWith("寫在前面的話") || line.startsWith("後記") || line.startsWith("後序") || /(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/.test( line ) || (line.startsWith("第") && startWithDI(line)) || (line.startsWith("卷") && startWithJUAN(line)) || startWithRomanNum(line) || (!isContainDI && !isContainChapter && !isContainCHAPTER && line.indexOf("第") > -1 && (line[line.indexOf("第") - 1] === " " || line[line.indexOf("第") - 1] === " " || line[line.indexOf("第") - 1] === "、" || line[line.indexOf("第") - 1] === ":" || line[line.indexOf("第") - 1] === ":") && startWithDI(line.substr(line.indexOf("第")))) || (!isContainDI && !isContainChapter && !isContainCHAPTER && line.indexOf(" ") && startWithNumAndSpace(line)) || (!isContainDI && !isContainChapter && !isContainCHAPTER && line.indexOf(" ") && startWithNumAndSpace(line)) || (!isContainDI && !isContainChapter && !isContainCHAPTER && line.indexOf("、") && startWithNumAndPause(line)) || (!isContainDI && !isContainChapter && !isContainCHAPTER && line.indexOf(":") && startWithNumAndColon(line)) || (!isContainDI && !isContainChapter && !isContainCHAPTER && line.indexOf(":") && startWithNumAndColon(line))) ); }; const startWithDI = (line) => { let keywords = [ "章", "节", "回", "節", "卷", "部", "輯", "辑", "話", "集", "话", "篇", ]; let flag = false; for (let i = 0; i < keywords.length; i++) { if ( (line.indexOf(keywords[i]) > -1 && (line[line.indexOf(keywords[i]) + 1] === " " || line[line.indexOf(keywords[i]) + 1] === " " || line[line.indexOf(keywords[i]) + 1] === "、" || line[line.indexOf(keywords[i]) + 1] === ":" || line[line.indexOf(keywords[i]) + 1] === ":")) || !line[line.indexOf(keywords[i]) + 1] ) { if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(1, line.indexOf(keywords[i])).trim() ) || /^\d+$/.test(line.substring(1, line.indexOf(keywords[i])).trim()) ) { flag = true; } if (flag) break; } } return flag; }; const startWithJUAN = (line) => { if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(1, line.indexOf(" ")) ) || /^\d+$/.test(line.substring(1, line.indexOf(" "))) ) return true; if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(1, line.indexOf(" ")) ) || /^\d+$/.test(line.substring(1, line.indexOf(" "))) ) return true; if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(1) ) || /^\d+$/.test(line.substring(1)) ) return true; return false; }; const startWithRomanNum = (line) => { if ( /(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/.test( line.substring(0, line.indexOf(" ")) ) ) return true; if ( /(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/.test( line.substring(0, line.indexOf(".")) ) ) return true; if ( /(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/.test( line.trim() ) ) return true; return false; }; const startWithNumAndSpace = (line) => { if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(0, line.indexOf(" ")) ) ) return true; if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(0, line.indexOf(" ")) ) ) return true; if (/^\d+$/.test(line.substring(0, line.indexOf(" ")))) return true; if (/^\d+$/.test(line.substring(0, line.indexOf(" ")))) return true; return false; }; const startWithNumAndColon = (line) => { if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(0, line.indexOf(":")) ) ) return true; if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(0, line.indexOf(":")) ) ) return true; if (/^\d+$/.test(line.substring(0, line.indexOf(":")))) return true; if (/^\d+$/.test(line.substring(0, line.indexOf(":")))) return true; return false; }; const startWithNumAndPause = (line) => { if ( /^[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07\u842c]+$/.test( line.substring(0, line.indexOf("、")) ) ) return true; if (/^\d+$/.test(line.substring(0, line.indexOf("、")))) return true; return false; }; class HtmlParser { bookDoc; contentList; contentTitleList; constructor(bookDoc) { this.bookDoc = bookDoc; this.contentList = []; this.contentTitleList = []; this.getContent(bookDoc); } getContent(bookDoc) { this.contentList = Array.from( bookDoc.querySelectorAll("h1,h2,h3,h4,h5,b,font") ).filter((item, index) => { return isTitle(item.innerText.trim()); }); for (let i = 0; i < this.contentList.length; i++) { let random = Math.floor(Math.random() * 900000) + 100000; this.contentTitleList.push({ label: this.contentList[i].innerText, id: "title" + random, href: "#title" + random, subitems: [], }); } for (let i = 0; i < this.contentList.length; i++) { this.contentList[i].id = this.contentTitleList[i].id; } } getAnchoredDoc() { return this.bookDoc; } getContentList() { return this.contentTitleList.filter((item, index) => { if (index > 0) { return item.label !== this.contentTitleList[index - 1].label; } else { return true; } }); } } export default HtmlParser; ================================================ FILE: client/assets/ebooks/mobi.js ================================================ /* This is borrowed from koodo-reader https://github.com/troyeguo/koodo-reader/tree/master/src */ function ab2str(buf) { if (buf instanceof ArrayBuffer) { buf = new Uint8Array(buf); } return new TextDecoder("utf-8").decode(buf); } var domParser = new DOMParser(); class Buffer { capacity; fragment_list; imageArray; cur_fragment; constructor(capacity) { this.capacity = capacity; this.fragment_list = []; this.imageArray = []; this.cur_fragment = new Fragment(capacity); this.fragment_list.push(this.cur_fragment); } write(byte) { var result = this.cur_fragment.write(byte); if (!result) { this.cur_fragment = new Fragment(this.capacity); this.fragment_list.push(this.cur_fragment); this.cur_fragment.write(byte); } } get(idx) { var fi = 0; while (fi < this.fragment_list.length) { var frag = this.fragment_list[fi]; if (idx < frag.size) { return frag.get(idx); } idx -= frag.size; fi += 1; } return null; } size() { var s = 0; for (var i = 0; i < this.fragment_list.length; i++) { s += this.fragment_list[i].size; } return s; } shrink() { var total_buffer = new Uint8Array(this.size()); var offset = 0; for (var i = 0; i < this.fragment_list.length; i++) { var frag = this.fragment_list[i]; if (frag.full()) { total_buffer.set(frag.buffer, offset); } else { total_buffer.set(frag.buffer.slice(0, frag.size), offset); } offset += frag.size; } return total_buffer; } } var copagesne_uint8array = function (buffers) { var total_size = 0; for (let i = 0; i < buffers.length; i++) { var buffer = buffers[i]; total_size += buffer.length; } var total_buffer = new Uint8Array(total_size); var offset = 0; for (let i = 0; i < buffers.length; i++) { buffer = buffers[i]; total_buffer.set(buffer, offset); offset += buffer.length; } return total_buffer; }; class Fragment { buffer; capacity; size; constructor(capacity) { this.buffer = new Uint8Array(capacity); this.capacity = capacity; this.size = 0; } write(byte) { if (this.size >= this.capacity) { return false; } this.buffer[this.size] = byte; this.size += 1; return true; } full() { return this.size === this.capacity; } get(idx) { return this.buffer[idx]; } } var uncompression_lz77 = function (data) { var length = data.length; var offset = 0; // Current offset into data var buffer = new Buffer(data.length); while (offset < length) { var char = data[offset]; offset += 1; if (char === 0) { buffer.write(char); } else if (char <= 8) { for (var i = offset; i < offset + char; i++) { buffer.write(data[i]); } offset += char; } else if (char <= 0x7f) { buffer.write(char); } else if (char <= 0xbf) { var next = data[offset]; offset += 1; var distance = (((char << 8) | next) >> 3) & 0x7ff; var lz_length = (next & 0x7) + 3; var buffer_size = buffer.size(); for (let i = 0; i < lz_length; i++) { buffer.write(buffer.get(buffer_size - distance)); buffer_size += 1; } } else { buffer.write(32); buffer.write(char ^ 0x80); } } return buffer; }; class MobiFile { view; buffer; offset; header; palm_header; mobi_header; reclist; constructor(data) { this.view = new DataView(data); this.buffer = this.view.buffer; this.offset = 0; this.header = null; } parse() { } getUint8() { var v = this.view.getUint8(this.offset); this.offset += 1; return v; } getUint16() { var v = this.view.getUint16(this.offset); this.offset += 2; return v; } getUint32() { var v = this.view.getUint32(this.offset); this.offset += 4; return v; } getStr(size) { var v = ab2str(this.buffer.slice(this.offset, this.offset + size)); this.offset += size; return v; } skip(size) { this.offset += size; } setoffset(_of) { this.offset = _of; } get_record_extrasize(data, flags) { var pos = data.length - 1; var extra = 0; for (var i = 15; i > 0; i--) { if (flags & (1 << i)) { var res = this.buffer_get_varlen(data, pos); var size = res[0]; var l = res[1]; pos = res[2]; pos -= size - l; extra += size; } } if (flags & 1) { var a = data[pos]; extra += (a & 0x3) + 1; } return extra; } // data should be uint8array buffer_get_varlen(data, pos) { var l = 0; var size = 0; var byte_count = 0; var mask = 0x7f; var stop_flag = 0x80; var shift = 0; for (var i = 0; ; i++) { var byte = data[pos]; size |= (byte & mask) << shift; shift += 7; l += 1; byte_count += 1; pos -= 1; var to_stop = byte & stop_flag; if (byte_count >= 4 || to_stop > 0) { break; } } return [size, l, pos]; } // 读出文本内容 read_text() { var text_end = this.palm_header.record_count; var buffers = []; for (var i = 1; i <= text_end; i++) { buffers.push(this.read_text_record(i)); } var all = copagesne_uint8array(buffers); return ab2str(all); } read_text_record(i) { var flags = this.mobi_header.extra_flags; var begin = this.reclist[i].offset; var end = this.reclist[i + 1].offset; var data = new Uint8Array(this.buffer.slice(begin, end)); var ex = this.get_record_extrasize(data, flags); data = new Uint8Array(this.buffer.slice(begin, end - ex)); if (this.palm_header.compression === 2) { var buffer = uncompression_lz77(data); return buffer.shrink(); } else { return data; } } // 从buffer中读出image read_image(idx) { var first_image_idx = this.mobi_header.first_image_idx; var begin = this.reclist[first_image_idx + idx].offset; var end = this.reclist[first_image_idx + idx + 1].offset; var data = new Uint8Array(this.buffer.slice(begin, end)); return new Blob([data.buffer]); } load() { this.header = this.load_pdbheader(); this.reclist = this.load_reclist(); this.load_record0(); } load_pdbheader() { var header = {}; header.name = this.getStr(32); header.attr = this.getUint16(); header.version = this.getUint16(); header.ctime = this.getUint32(); header.mtime = this.getUint32(); header.btime = this.getUint32(); header.mod_num = this.getUint32(); header.appinfo_offset = this.getUint32(); header.sortinfo_offset = this.getUint32(); header.type = this.getStr(4); header.creator = this.getStr(4); header.uid = this.getUint32(); header.next_rec = this.getUint32(); header.record_num = this.getUint16(); return header; } load_reclist() { var reclist = []; for (var i = 0; i < this.header.record_num; i++) { var record = {}; record.offset = this.getUint32(); // TODO(zz) change record.attr = this.getUint32(); reclist.push(record); } return reclist; } load_record0() { this.palm_header = this.load_record0_header(); this.mobi_header = this.load_mobi_header(); } load_record0_header() { var p_header = {}; var first_record = this.reclist[0]; this.setoffset(first_record.offset); p_header.compression = this.getUint16(); this.skip(2); p_header.text_length = this.getUint32(); p_header.record_count = this.getUint16(); p_header.record_size = this.getUint16(); p_header.encryption_type = this.getUint16(); this.skip(2); return p_header; } load_mobi_header() { var mobi_header = {}; var start_offset = this.offset; mobi_header.identifier = this.getUint32(); mobi_header.header_length = this.getUint32(); mobi_header.mobi_type = this.getUint32(); mobi_header.text_encoding = this.getUint32(); mobi_header.uid = this.getUint32(); mobi_header.generator_version = this.getUint32(); this.skip(40); mobi_header.first_nonbook_index = this.getUint32(); mobi_header.full_name_offset = this.getUint32(); mobi_header.full_name_length = this.getUint32(); mobi_header.language = this.getUint32(); mobi_header.input_language = this.getUint32(); mobi_header.output_language = this.getUint32(); mobi_header.min_version = this.getUint32(); mobi_header.first_image_idx = this.getUint32(); mobi_header.huff_rec_index = this.getUint32(); mobi_header.huff_rec_count = this.getUint32(); mobi_header.datp_rec_index = this.getUint32(); mobi_header.datp_rec_count = this.getUint32(); mobi_header.exth_flags = this.getUint32(); this.skip(36); mobi_header.drm_offset = this.getUint32(); mobi_header.drm_count = this.getUint32(); mobi_header.drm_size = this.getUint32(); mobi_header.drm_flags = this.getUint32(); this.skip(8); // TODO (zz) fdst_index this.skip(4); this.skip(46); mobi_header.extra_flags = this.getUint16(); this.setoffset(start_offset + mobi_header.header_length); return mobi_header; } load_exth_header() { // TODO return {}; } extractContent(s) { var span = document.createElement("span"); span.innerHTML = s; return span.textContent || span.innerText; } render(isElectron = false) { return new Promise((resolve, reject) => { this.load(); var content = this.read_text(); var bookDoc = domParser.parseFromString(content, "text/html") .documentElement; let lines = Array.from( bookDoc.querySelectorAll("p,b,font,h3,h2,h1") ); let parseContent = []; for (let i = 0, len = lines.length; i < len - 1; i++) { lines[i].innerText && lines[i].innerText !== parseContent[parseContent.length - 1] && parseContent.push(lines[i].innerText); let imgDoms = lines[i].getElementsByTagName("img"); if (imgDoms.length > 0) { for (let i = 0; i < imgDoms.length; i++) { parseContent.push("#image"); } } } const handleImage = async () => { var imgDoms = bookDoc.getElementsByTagName("img"); parseContent.push("~image"); for (let i = 0; i < imgDoms.length; i++) { const src = await this.render_image(imgDoms, i); parseContent.push( src + " " + imgDoms[i].width + " " + imgDoms[i].height ); } if (imgDoms.length > 200 || !isElectron) { resolve(bookDoc); } else { resolve(parseContent.join("\n \n")); } }; handleImage(); }); } render_image = (imgDoms, i) => { return new Promise((resolve, reject) => { var imgDom = imgDoms[i]; var idx = +imgDom.getAttribute("recindex"); var blob = this.read_image(idx - 1); var imgReader = new FileReader(); imgReader.onload = (e) => { imgDom.src = e.target?.result; resolve(e.target?.result); }; imgReader.onerror = function (err) { reject(err); }; imgReader.readAsDataURL(blob); }); }; } export default MobiFile; ================================================ FILE: client/assets/fonts.css ================================================ @font-face { font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 400; src: url(~static/fonts/MaterialSymbolsRounded.woff2) format('woff2'); } .material-symbols { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; vertical-align: top; } .material-symbols.fill { font-variation-settings: 'FILL' 1 } /* cyrillic-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf) format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('ttf'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf) format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(~static/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf) format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Ubuntu Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf) format('truetype'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Ubuntu Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf) format('truetype'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Ubuntu Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf) format('truetype'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Ubuntu Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf) format('truetype'); unicode-range: U+0370-03FF; } /* latin-ext */ @font-face { font-family: 'Ubuntu Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf) format('truetype'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Ubuntu Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(~static/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf) format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } ================================================ FILE: client/assets/tailwind.css ================================================ @import 'tailwindcss'; /* The default border color has changed to `currentColor` in Tailwind CSS v4, so we've added these compatibility styles to make sure everything still looks the same as it did with Tailwind CSS v3. If we ever want to remove these styles, we need to add an explicit border color utility to any element that depends on these defaults. */ @layer base { *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: var(--color-gray-200, currentColor); } [role='button'], button { cursor: pointer; } } @theme { --spacing-0\.5e: 0.125em; --spacing-1e: 0.25em; --spacing-1\.5e: 0.375em; --spacing-2e: 0.5em; --spacing-2\.5e: 0.625em; --spacing-3e: 0.75em; --spacing-3\.5e: 0.875em; --spacing-4e: 1em; --spacing-5e: 1.25em; --spacing-6e: 1.5em; --spacing-7e: 1.75em; --spacing-8e: 2em; --spacing-9e: 2.25em; --spacing-10e: 2.5em; --spacing-11e: 2.75em; --spacing-12e: 3em; --spacing-14e: 3.5em; --spacing-16e: 4em; --spacing-20e: 5em; --spacing-24e: 6em; --spacing-28e: 7em; --spacing-32e: 8em; --spacing-36e: 9em; --spacing-40e: 10em; --spacing-44e: 11em; --spacing-48e: 12em; --spacing-52e: 13em; --spacing-56e: 14em; --spacing-60e: 15em; --spacing-64e: 16em; --spacing-72e: 18em; --spacing-80e: 20em; --spacing-96e: 24em; --color-bg: #373838; --color-primary: #232323; --color-accent: #1ad691; --color-error: #ff5252; --color-info: #2196f3; --color-success: #4caf50; --color-warning: #fb8c00; --color-darkgreen: rgb(34, 127, 35); --color-black-50: #bbbbbb; --color-black-100: #666666; --color-black-200: #555555; --color-black-300: #444444; --color-black-400: #333333; --color-black-500: #222222; --color-black-600: #111111; --color-black-700: #101010; --font-sans: 'Source Sans Pro'; --font-mono: 'Ubuntu Mono'; --text-xxs: 0.625rem; --text-1\.5xl: 1.375rem; --text-2\.5xl: 1.6875rem; --text-4\.5xl: 2.625rem; } ================================================ FILE: client/assets/transitions.css ================================================ .slide-enter-active { -moz-transition-duration: 0.1s; -webkit-transition-duration: 0.1s; -o-transition-duration: 0.1s; transition-duration: 0.1s; -moz-transition-timing-function: ease-in; -webkit-transition-timing-function: ease-in; -o-transition-timing-function: ease-in; transition-timing-function: ease-in; } .slide-leave-active { -moz-transition-duration: 0.2s; -webkit-transition-duration: 0.2s; -o-transition-duration: 0.2s; transition-duration: 0.2s; -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1); -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1); -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1); transition-timing-function: cubic-bezier(0, 1, 0.5, 1); } .slide-enter-to, .slide-leave { max-height: 600px; overflow: hidden; } .slide-enter, .slide-leave-to { overflow: hidden; max-height: 0; } .menu-enter, .menu-leave-active { transform: translateY(-15px); } .menu-enter-active { transition: all 0.2s; } .menu-leave-active { transition: all 0.1s; } .menu-enter, .menu-leave-active { opacity: 0; } .menux-enter, .menux-leave-active { transform: translateX(15px); } .menux-enter-active { transition: all 0.2s; } .menux-leave-active { transition: all 0.1s; } .menux-enter, .menux-leave-active { opacity: 0; } .list-complete-item { transition: all 0.8s ease; } .list-complete-enter-from, .list-complete-leave-to { opacity: 0; transform: translateY(30px); } .list-complete-leave-active { position: absolute; } ================================================ FILE: client/assets/trix.css ================================================ @charset "UTF-8"; /* Trix 1.3.1 Copyright © 2020 Basecamp, LLC http://trix-editor.org/*/ trix-editor { border: 1px solid rgb(75, 85, 99); border-radius: 3px; background: rgb(35, 35, 35); margin: 0; padding: 0.4em 0.6em; min-height: 5em; outline: none; } trix-toolbar * { box-sizing: border-box; } trix-toolbar .trix-button-row { display: flex; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; } trix-toolbar .trix-button-group { display: flex; margin-bottom: 10px; border: 1px solid rgb(75, 85, 99); border-top-color: rgb(75, 85, 99); border-bottom-color: rgb(75, 85, 99); border-radius: 3px; } trix-toolbar .trix-button-group:not(:first-child) { margin-left: 1.5vw; } @media (max-device-width: 768px) { trix-toolbar .trix-button-group:not(:first-child) { margin-left: 0; } } trix-toolbar .trix-button-group-spacer { flex-grow: 1; } @media (max-device-width: 768px) { trix-toolbar .trix-button-group-spacer { display: none; } } trix-toolbar .trix-button { position: relative; float: left; color: rgba(0, 0, 0, 0.6); font-size: 0.75em; font-weight: 600; white-space: nowrap; padding: 0 0.5em; margin: 0; outline: none; border: none; border-radius: 0; background: transparent; } trix-toolbar .trix-button:not(:first-child) { border-left: 1px solid rgb(75, 85, 99); } trix-toolbar .trix-button.trix-active { background: #bbb; color: black; } trix-toolbar .trix-button:not(:disabled) { cursor: pointer; background: rgb(35, 35, 35); } trix-toolbar .trix-button:disabled { color: rgba(0, 0, 0, 0.25); } @media (max-device-width: 768px) { trix-toolbar .trix-button { letter-spacing: -0.01em; padding: 0 0.3em; } } trix-toolbar .trix-button--icon { font-size: inherit; width: 2.6em; height: 1.6em; max-width: calc(0.8em + 4vw); text-indent: -9999px; } @media (max-device-width: 768px) { trix-toolbar .trix-button--icon { height: 2em; max-width: calc(0.8em + 3.5vw); } } trix-toolbar .trix-button--icon::before { display: inline-block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.6; content: ""; background-position: center; background-repeat: no-repeat; background-size: contain; filter: invert(100%); } @media (max-device-width: 768px) { trix-toolbar .trix-button--icon::before { right: 6%; left: 6%; } } trix-toolbar .trix-button--icon.trix-active::before { opacity: 1; } trix-toolbar .trix-button--icon:disabled::before { opacity: 0.125; } trix-toolbar .trix-button--icon-attach::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M16.5%206v11.5a4%204%200%201%201-8%200V5a2.5%202.5%200%200%201%205%200v10.5a1%201%200%201%201-2%200V6H10v9.5a2.5%202.5%200%200%200%205%200V5a4%204%200%201%200-8%200v12.5a5.5%205.5%200%200%200%2011%200V6h-1.5z%22%2F%3E%3C%2Fsvg%3E); top: 8%; bottom: 4%; } trix-toolbar .trix-button--icon-bold::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M15.6%2011.8c1-.7%201.6-1.8%201.6-2.8a4%204%200%200%200-4-4H7v14h7c2.1%200%203.7-1.7%203.7-3.8%200-1.5-.8-2.8-2.1-3.4zM10%207.5h3a1.5%201.5%200%201%201%200%203h-3v-3zm3.5%209H10v-3h3.5a1.5%201.5%200%201%201%200%203z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-italic::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M10%205v3h2.2l-3.4%208H6v3h8v-3h-2.2l3.4-8H18V5h-8z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-link::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M9.88%2013.7a4.3%204.3%200%200%201%200-6.07l3.37-3.37a4.26%204.26%200%200%201%206.07%200%204.3%204.3%200%200%201%200%206.06l-1.96%201.72a.91.91%200%201%201-1.3-1.3l1.97-1.71a2.46%202.46%200%200%200-3.48-3.48l-3.38%203.37a2.46%202.46%200%200%200%200%203.48.91.91%200%201%201-1.3%201.3z%22%2F%3E%3Cpath%20d%3D%22M4.25%2019.46a4.3%204.3%200%200%201%200-6.07l1.93-1.9a.91.91%200%201%201%201.3%201.3l-1.93%201.9a2.46%202.46%200%200%200%203.48%203.48l3.37-3.38c.96-.96.96-2.52%200-3.48a.91.91%200%201%201%201.3-1.3%204.3%204.3%200%200%201%200%206.07l-3.38%203.38a4.26%204.26%200%200%201-6.07%200z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-strike::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M12.73%2014l.28.14c.26.15.45.3.57.44.12.14.18.3.18.5%200%20.3-.15.56-.44.75-.3.2-.76.3-1.39.3A13.52%2013.52%200%200%201%207%2014.95v3.37a10.64%2010.64%200%200%200%204.84.88c1.26%200%202.35-.19%203.28-.56.93-.37%201.64-.9%202.14-1.57s.74-1.45.74-2.32c0-.26-.02-.51-.06-.75h-5.21zm-5.5-4c-.08-.34-.12-.7-.12-1.1%200-1.29.52-2.3%201.58-3.02%201.05-.72%202.5-1.08%204.34-1.08%201.62%200%203.28.34%204.97%201l-1.3%202.93c-1.47-.6-2.73-.9-3.8-.9-.55%200-.96.08-1.2.26-.26.17-.38.38-.38.64%200%20.27.16.52.48.74.17.12.53.3%201.05.53H7.23zM3%2013h18v-2H3v2z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-quote::before { background-image: url(data:image/svg+xml,%3Csvg%20version%3D%221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M6%2017h3l2-4V7H5v6h3zm8%200h3l2-4V7h-6v6h3z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-heading-1::before { background-image: url(data:image/svg+xml,%3Csvg%20version%3D%221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M12%209v3H9v7H6v-7H3V9h9zM8%204h14v3h-6v12h-3V7H8V4z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-code::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M18.2%2012L15%2015.2l1.4%201.4L21%2012l-4.6-4.6L15%208.8l3.2%203.2zM5.8%2012L9%208.8%207.6%207.4%203%2012l4.6%204.6L9%2015.2%205.8%2012z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-bullet-list::before { background-image: url(data:image/svg+xml,%3Csvg%20version%3D%221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%204a2%202%200%201%200%200%204%202%202%200%200%200%200-4zm0%206a2%202%200%201%200%200%204%202%202%200%200%200%200-4zm0%206a2%202%200%201%200%200%204%202%202%200%200%200%200-4zm4%203h14v-2H8v2zm0-6h14v-2H8v2zm0-8v2h14V5H8z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-number-list::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M2%2017h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1%203h1.8L2%2013.1v.9h3v-1H3.2L5%2010.9V10H2v1zm5-6v2h14V5H7zm0%2014h14v-2H7v2zm0-6h14v-2H7v2z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-undo::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M12.5%208c-2.6%200-5%201-6.9%202.6L2%207v9h9l-3.6-3.6A8%208%200%200%201%2020%2016l2.4-.8a10.5%2010.5%200%200%200-10-7.2z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-redo::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M18.4%2010.6a10.5%2010.5%200%200%200-16.9%204.6L4%2016a8%208%200%200%201%2012.7-3.6L13%2016h9V7l-3.6%203.6z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-decrease-nesting-level::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M3%2019h19v-2H3v2zm7-6h12v-2H10v2zm-8.3-.3l2.8%202.9L6%2014.2%204%2012l2-2-1.4-1.5L1%2012l.7.7zM3%205v2h19V5H3z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-button--icon-increase-nesting-level::before { background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M3%2019h19v-2H3v2zm7-6h12v-2H10v2zm-6.9-1L1%2014.2l1.4%201.4L6%2012l-.7-.7-2.8-2.8L1%209.9%203.1%2012zM3%205v2h19V5H3z%22%2F%3E%3C%2Fsvg%3E); } trix-toolbar .trix-dialogs { position: relative; } trix-toolbar .trix-dialog { position: absolute; top: 0; left: 0; right: 0; font-size: 0.75em; padding: 15px 10px; background: rgb(48, 48, 48); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border: 1px solid rgb(112, 112, 112); border-radius: 5px; z-index: 5; } trix-toolbar .trix-input--dialog { font-size: inherit; font-weight: normal; padding: 0.5em 0.8em; margin: 0 10px 0 0; border-radius: 3px; border: 1px solid #bbb; background-color: rgb(95, 95, 95); box-shadow: none; outline: none; -webkit-appearance: none; -moz-appearance: none; } trix-toolbar .trix-input--dialog.validate:invalid { box-shadow: #F00 0px 0px 1.5px 1px; } trix-toolbar .trix-button--dialog { font-size: inherit; padding: 0.5em; border-bottom: none; color: #eee; } trix-toolbar .trix-dialog--link { max-width: 600px; } trix-toolbar .trix-dialog__link-fields { display: flex; align-items: baseline; } trix-toolbar .trix-dialog__link-fields .trix-input { flex: 1; } trix-toolbar .trix-dialog__link-fields .trix-button-group { flex: 0 0 content; margin: 0; } trix-editor [data-trix-mutable]:not(.attachment__caption-editor) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } trix-editor [data-trix-mutable]::-moz-selection, trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection { background: none; } trix-editor [data-trix-mutable]::selection, trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection { background: none; } trix-editor [data-trix-mutable].attachment__caption-editor:focus::-moz-selection { background: highlight; } trix-editor [data-trix-mutable].attachment__caption-editor:focus::selection { background: highlight; } trix-editor [data-trix-mutable].attachment.attachment--file { box-shadow: 0 0 0 2px highlight; border-color: transparent; } trix-editor [data-trix-mutable].attachment img { box-shadow: 0 0 0 2px highlight; } trix-editor .attachment { position: relative; } trix-editor .attachment:hover { cursor: default; } trix-editor .attachment--preview .attachment__caption:hover { cursor: text; } trix-editor .attachment__progress { position: absolute; z-index: 1; height: 20px; top: calc(50% - 10px); left: 5%; width: 90%; opacity: 0.9; transition: opacity 200ms ease-in; } trix-editor .attachment__progress[value="100"] { opacity: 0; } trix-editor .attachment__caption-editor { display: inline-block; width: 100%; margin: 0; padding: 0; font-size: inherit; font-family: inherit; line-height: inherit; color: inherit; text-align: center; vertical-align: top; border: none; outline: none; -webkit-appearance: none; -moz-appearance: none; } trix-editor .attachment__toolbar { position: absolute; z-index: 1; top: -0.9em; left: 0; width: 100%; text-align: center; } trix-editor .trix-button-group { display: inline-flex; } trix-editor .trix-button { position: relative; float: left; color: #666; white-space: nowrap; font-size: 80%; padding: 0 0.8em; margin: 0; outline: none; border: none; border-radius: 0; background: transparent; } trix-editor .trix-button:not(:first-child) { border-left: 1px solid #ccc; } trix-editor .trix-button.trix-active { background: #cbeefa; } trix-editor .trix-button:not(:disabled) { cursor: pointer; } trix-editor .trix-button--remove { text-indent: -9999px; display: inline-block; padding: 0; outline: none; width: 1.8em; height: 1.8em; line-height: 1.8em; border-radius: 50%; background-color: #fff; border: 2px solid highlight; box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); } trix-editor .trix-button--remove::before { display: inline-block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.7; content: ""; background-image: url(data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.4L17.6%205%2012%2010.6%206.4%205%205%206.4l5.6%205.6L5%2017.6%206.4%2019l5.6-5.6%205.6%205.6%201.4-1.4-5.6-5.6z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E); background-position: center; background-repeat: no-repeat; background-size: 90%; } trix-editor .trix-button--remove:hover { border-color: #333; } trix-editor .trix-button--remove:hover::before { opacity: 1; } trix-editor .attachment__metadata-container { position: relative; } trix-editor .attachment__metadata { position: absolute; left: 50%; top: 2em; transform: translate(-50%, 0); max-width: 90%; padding: 0.1em 0.6em; font-size: 0.8em; color: #fff; background-color: rgba(0, 0, 0, 0.7); border-radius: 3px; } trix-editor .attachment__metadata .attachment__name { display: inline-block; max-width: 100%; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } trix-editor .attachment__metadata .attachment__size { margin-left: 0.2em; white-space: nowrap; } .trix-content { line-height: inherit; } .trix-content * { box-sizing: border-box; margin: 0; padding: 0; } .trix-content p { box-sizing: border-box; margin-top: 0; margin-bottom: 0.5em; padding: 0; } .trix-content h1 { font-size: 1.2em; line-height: 1.2; } .trix-content blockquote { border: 0 solid #ccc; border-left-width: 0.3em; margin-left: 0.3em; padding-left: 0.6em; } .trix-content [dir=rtl] blockquote, .trix-content blockquote[dir=rtl] { border-width: 0; border-right-width: 0.3em; margin-right: 0.3em; padding-right: 0.6em; } .trix-content li { margin-left: 1em; } .trix-content [dir=rtl] li { margin-right: 1em; } .trix-content pre { display: inline-block; width: 100%; vertical-align: top; font-family: monospace; font-size: 0.9em; padding: 0.5em; white-space: pre; background-color: #eee; overflow-x: auto; } .trix-content img { max-width: 100%; height: auto; } .trix-content .attachment { display: inline-block; position: relative; max-width: 100%; } .trix-content .attachment a { color: inherit; text-decoration: none; } .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover { color: inherit; } .trix-content .attachment__caption { text-align: center; } .trix-content .attachment__caption .attachment__name+.attachment__size::before { content: ' · '; } .trix-content .attachment--preview { width: 100%; text-align: center; } .trix-content .attachment--preview .attachment__caption { color: #666; font-size: 0.9em; line-height: 1.2; } .trix-content .attachment--file { color: #333; line-height: 1; margin: 0 2px 2px 2px; padding: 0.4em 1em; border: 1px solid #bbb; border-radius: 5px; } .trix-content .attachment-gallery { display: flex; flex-wrap: wrap; position: relative; } .trix-content .attachment-gallery .attachment { flex: 1 0 33%; padding: 0 0.5em; max-width: 33%; } .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment { flex-basis: 50%; max-width: 50%; } ================================================ FILE: client/components/app/Appbar.vue ================================================ ================================================ FILE: client/components/app/BookShelfCategorized.vue ================================================ ================================================ FILE: client/components/app/BookShelfRow.vue ================================================ ================================================ FILE: client/components/app/BookShelfToolbar.vue ================================================ ================================================ FILE: client/components/app/ConfigSideNav.vue ================================================ ================================================ FILE: client/components/app/LazyBookshelf.vue ================================================ ================================================ FILE: client/components/app/MediaPlayerContainer.vue ================================================ ================================================ FILE: client/components/app/SettingsContent.vue ================================================ ================================================ FILE: client/components/app/SideRail.vue ================================================ ================================================ FILE: client/components/cards/AuthorCard.vue ================================================ ================================================ FILE: client/components/cards/AuthorSearchCard.vue ================================================ ================================================ FILE: client/components/cards/BookMatchCard.vue ================================================ ================================================ FILE: client/components/cards/EpisodeSearchCard.vue ================================================ ================================================ FILE: client/components/cards/GenreSearchCard.vue ================================================ ================================================ FILE: client/components/cards/GroupCard.vue ================================================ ================================================ FILE: client/components/cards/ItemSearchCard.vue ================================================ ================================================ FILE: client/components/cards/ItemTaskRunningCard.vue ================================================ ================================================ FILE: client/components/cards/ItemUploadCard.vue ================================================ ================================================ FILE: client/components/cards/LazyBookCard.vue ================================================ ================================================ FILE: client/components/cards/LazyCollectionCard.vue ================================================ ================================================ FILE: client/components/cards/LazyPlaylistCard.vue ================================================ ================================================ FILE: client/components/cards/LazySeriesCard.vue ================================================ ================================================ FILE: client/components/cards/NarratorCard.vue ================================================ ================================================ FILE: client/components/cards/NarratorSearchCard.vue ================================================ ================================================ FILE: client/components/cards/NotificationCard.vue ================================================ ================================================ FILE: client/components/cards/PodcastFeedSummaryCard.vue ================================================ ================================================ FILE: client/components/cards/SeriesSearchCard.vue ================================================ ================================================ FILE: client/components/cards/TagSearchCard.vue ================================================ ================================================ FILE: client/components/content/LibraryItemDetails.vue ================================================ ================================================ FILE: client/components/controls/FilterSelect.vue ================================================ ================================================ FILE: client/components/controls/GlobalSearch.vue ================================================ ================================================ FILE: client/components/controls/LibraryFilterSelect.vue ================================================ ================================================ FILE: client/components/controls/LibrarySortSelect.vue ================================================ ================================================ FILE: client/components/controls/PlaybackSpeedControl.vue ================================================ ================================================ FILE: client/components/controls/SortSelect.vue ================================================ ================================================ FILE: client/components/controls/VolumeControl.vue ================================================ ================================================ FILE: client/components/covers/AuthorImage.vue ================================================ ================================================ FILE: client/components/covers/BookCover.vue ================================================ ================================================ FILE: client/components/covers/CollectionCover.vue ================================================ ================================================ FILE: client/components/covers/GroupCover.vue ================================================ ================================================ FILE: client/components/covers/PlaylistCover.vue ================================================ ================================================ FILE: client/components/covers/PreviewCover.vue ================================================ ================================================ FILE: client/components/modals/AccountModal.vue ================================================ ================================================ FILE: client/components/modals/AddCustomMetadataProviderModal.vue ================================================ ================================================ FILE: client/components/modals/ApiKeyCreatedModal.vue ================================================ ================================================ FILE: client/components/modals/ApiKeyModal.vue ================================================ ================================================ FILE: client/components/modals/AudioFileDataModal.vue ================================================ ================================================ FILE: client/components/modals/BackupScheduleModal.vue ================================================ ================================================ FILE: client/components/modals/BatchQuickMatchModel.vue ================================================ ================================================ FILE: client/components/modals/BookmarksModal.vue ================================================ ================================================ FILE: client/components/modals/ChaptersModal.vue ================================================ ================================================ FILE: client/components/modals/Dialog.vue ================================================ ================================================ FILE: client/components/modals/EditSeriesInputInnerModal.vue ================================================ ================================================ FILE: client/components/modals/ListeningSessionModal.vue ================================================ ================================================ FILE: client/components/modals/Modal.vue ================================================ ================================================ FILE: client/components/modals/PlayerSettingsModal.vue ================================================ ================================================ FILE: client/components/modals/RawCoverPreviewModal.vue ================================================ ================================================ FILE: client/components/modals/ShareModal.vue ================================================ ================================================ FILE: client/components/modals/SleepTimerModal.vue ================================================ ================================================ FILE: client/components/modals/UploadImageModal.vue ================================================ ================================================ FILE: client/components/modals/authors/EditModal.vue ================================================ ================================================ FILE: client/components/modals/bookmarks/BookmarkItem.vue ================================================ ================================================ FILE: client/components/modals/changelog/ViewModal.vue ================================================ ================================================ FILE: client/components/modals/collections/AddCreateModal.vue ================================================ ================================================ FILE: client/components/modals/collections/CollectionItem.vue ================================================ ================================================ FILE: client/components/modals/collections/EditModal.vue ================================================ ================================================ FILE: client/components/modals/emails/EReaderDeviceModal.vue ================================================ ================================================ FILE: client/components/modals/emails/UserEReaderDeviceModal.vue ================================================ ================================================ FILE: client/components/modals/item/EditModal.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Chapters.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Cover.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Details.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Episodes.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Files.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Match.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Schedule.vue ================================================ ================================================ FILE: client/components/modals/item/tabs/Tools.vue ================================================ ================================================ FILE: client/components/modals/libraries/EditLibrary.vue ================================================ ================================================ FILE: client/components/modals/libraries/EditModal.vue ================================================ ================================================ FILE: client/components/modals/libraries/LazyFolderChooser.vue ================================================ ================================================ FILE: client/components/modals/libraries/LibraryScannerSettings.vue ================================================ ================================================ FILE: client/components/modals/libraries/LibrarySettings.vue ================================================ ================================================ FILE: client/components/modals/libraries/LibraryTools.vue ================================================ ================================================ FILE: client/components/modals/libraries/ScheduleScan.vue ================================================ ================================================ FILE: client/components/modals/notification/NotificationEditModal.vue ================================================ ================================================ FILE: client/components/modals/player/QueueItemRow.vue ================================================ ================================================ FILE: client/components/modals/player/QueueItemsModal.vue ================================================ ================================================ FILE: client/components/modals/playlists/AddCreateModal.vue ================================================ ================================================ FILE: client/components/modals/playlists/EditModal.vue ================================================ ================================================ FILE: client/components/modals/playlists/UserPlaylistItem.vue ================================================ ================================================ FILE: client/components/modals/podcast/EditEpisode.vue ================================================ ================================================ FILE: client/components/modals/podcast/EpisodeFeed.vue ================================================ ================================================ FILE: client/components/modals/podcast/NewModal.vue ================================================ ================================================ FILE: client/components/modals/podcast/OpmlFeedsModal.vue ================================================ ================================================ FILE: client/components/modals/podcast/RemoveEpisode.vue ================================================ ================================================ FILE: client/components/modals/podcast/ViewEpisode.vue ================================================ ================================================ FILE: client/components/modals/podcast/tabs/EpisodeDetails.vue ================================================ ================================================ FILE: client/components/modals/podcast/tabs/EpisodeMatch.vue ================================================ ================================================ FILE: client/components/modals/rssfeed/OpenCloseModal.vue ================================================ ================================================ FILE: client/components/modals/rssfeed/ViewFeedModal.vue ================================================ ================================================ FILE: client/components/player/PlayerPlaybackControls.vue ================================================ ================================================ FILE: client/components/player/PlayerTrackBar.vue ================================================ ================================================ FILE: client/components/player/PlayerUi.vue ================================================ ================================================ FILE: client/components/prompt/Confirm.vue ================================================ ================================================ FILE: client/components/prompt/Dialog.vue ================================================ ================================================ FILE: client/components/readers/ComicReader.vue ================================================ ================================================ FILE: client/components/readers/EpubReader.vue ================================================ ================================================ FILE: client/components/readers/MobiReader.vue ================================================ ================================================ FILE: client/components/readers/PdfReader.vue ================================================ ================================================ FILE: client/components/readers/Reader.vue ================================================ ================================================ FILE: client/components/stats/DailyListeningChart.vue ================================================ ================================================ FILE: client/components/stats/Heatmap.vue ================================================ ================================================ FILE: client/components/stats/PreviewIcons.vue ================================================ ================================================ FILE: client/components/stats/YearInReview.vue ================================================ ================================================ FILE: client/components/stats/YearInReviewBanner.vue ================================================ ================================================ FILE: client/components/stats/YearInReviewServer.vue ================================================ ================================================ FILE: client/components/stats/YearInReviewShort.vue ================================================ ================================================ FILE: client/components/tables/ApiKeysTable.vue ================================================ ================================================ FILE: client/components/tables/AudioTracksTableRow.vue ================================================ ================================================ FILE: client/components/tables/BackupsTable.vue ================================================ ================================================ FILE: client/components/tables/ChaptersTable.vue ================================================ ================================================ FILE: client/components/tables/CollectionBooksTable.vue ================================================ ================================================ FILE: client/components/tables/CustomMetadataProviderTable.vue ================================================ ================================================ FILE: client/components/tables/EbookFilesTable.vue ================================================ ================================================ FILE: client/components/tables/EbookFilesTableRow.vue ================================================ ================================================ FILE: client/components/tables/LibraryFilesTable.vue ================================================ ================================================ FILE: client/components/tables/LibraryFilesTableRow.vue ================================================ ================================================ FILE: client/components/tables/PlaylistItemsTable.vue ================================================ ================================================ FILE: client/components/tables/TracksTable.vue ================================================ ================================================ FILE: client/components/tables/UploadedFilesTable.vue ================================================ ================================================ FILE: client/components/tables/UsersTable.vue ================================================ ================================================ FILE: client/components/tables/collection/BookTableRow.vue ================================================ ================================================ FILE: client/components/tables/library/LibrariesTable.vue ================================================ ================================================ FILE: client/components/tables/library/LibraryItem.vue ================================================ ================================================ FILE: client/components/tables/playlist/ItemTableRow.vue ================================================ ================================================ FILE: client/components/tables/podcast/DownloadQueueTable.vue ================================================ ================================================ FILE: client/components/tables/podcast/LazyEpisodeRow.vue ================================================ ================================================ FILE: client/components/tables/podcast/LazyEpisodesTable.vue ================================================ ================================================ FILE: client/components/ui/Btn.vue ================================================ ================================================ FILE: client/components/ui/Checkbox.vue ================================================ ================================================ FILE: client/components/ui/ContextMenuDropdown.vue ================================================ ================================================ FILE: client/components/ui/Dropdown.vue ================================================ ================================================ FILE: client/components/ui/EditableText.vue ================================================ ================================================ FILE: client/components/ui/FileInput.vue ================================================ ================================================ FILE: client/components/ui/IconBtn.vue ================================================ ================================================ FILE: client/components/ui/InputDropdown.vue ================================================ ================================================ FILE: client/components/ui/LibrariesDropdown.vue ================================================ ================================================ FILE: client/components/ui/LibraryIcon.vue ================================================ ================================================ FILE: client/components/ui/LoadingIndicator.vue ================================================ ================================================ FILE: client/components/ui/MediaIconPicker.vue ================================================ ================================================ FILE: client/components/ui/MultiSelect.vue ================================================ ================================================ FILE: client/components/ui/MultiSelectDropdown.vue ================================================ ================================================ FILE: client/components/ui/MultiSelectQueryInput.vue ================================================ ================================================ FILE: client/components/ui/QueryInput.vue ================================================ ================================================ FILE: client/components/ui/RangeInput.vue ================================================ ================================================ FILE: client/components/ui/ReadIconBtn.vue ================================================ ================================================ FILE: client/components/ui/RichTextEditor.vue ================================================ ================================================ FILE: client/components/ui/SelectInput.vue ================================================ ================================================ FILE: client/components/ui/TextInput.vue ================================================ ================================================ FILE: client/components/ui/TextInputWithLabel.vue ================================================ ================================================ FILE: client/components/ui/TextareaInput.vue ================================================