mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 06:59:41 +00:00
Add review and rating features with sorting and filtering options
- Implemented a new ReviewController to handle review creation, updates, and retrieval for library items. - Added pagination, sorting, and filtering capabilities for reviews in the API. - Updated frontend components to support review display, including a new ReviewsTable and enhanced ratings UI. - Introduced new strings for user interface elements related to reviews and ratings. - Added tests for the ReviewController and Review model to ensure functionality and validation. - Enabled the option to toggle the review feature in server settings.
This commit is contained in:
parent
e4e2770fbd
commit
41e8906312
12 changed files with 603 additions and 43 deletions
|
|
@ -7,16 +7,25 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
/**
|
||||
* A reusable 5-star rating component.
|
||||
* Supports read-only display and interactive rating selection.
|
||||
*
|
||||
* @emit input - Emits the selected rating (1-5)
|
||||
*/
|
||||
export default {
|
||||
props: {
|
||||
/** The current rating value (1-5) */
|
||||
value: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
/** If true, the rating cannot be changed */
|
||||
readonly: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
/** The size of the stars in pixels */
|
||||
size: {
|
||||
type: Number,
|
||||
default: 24
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue