mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
Refactor playlist and trackLyrics schemas for consistency
- Rename playlist fields: list -> items, cover/thumbnail -> image - Remove unused playlist fields: publisher, cover, thumbnail - Replace sync_audio_at with video_starts_at in trackLyrics schema - Minor formatting and cleanup
This commit is contained in:
parent
eb5c28d61e
commit
f10808bc3a
@ -13,17 +13,12 @@ export default {
|
||||
description: {
|
||||
type: String,
|
||||
},
|
||||
list: {
|
||||
items: {
|
||||
type: Object,
|
||||
default: [],
|
||||
required: true,
|
||||
},
|
||||
cover: {
|
||||
type: String,
|
||||
default:
|
||||
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
||||
},
|
||||
thumbnail: {
|
||||
image: {
|
||||
type: String,
|
||||
default:
|
||||
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
||||
@ -32,9 +27,6 @@ export default {
|
||||
type: Date,
|
||||
required: true,
|
||||
},
|
||||
publisher: {
|
||||
type: Object,
|
||||
},
|
||||
public: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
|
@ -1,20 +1,20 @@
|
||||
export default {
|
||||
name: "TrackLyric",
|
||||
collection: "tracks_lyrics",
|
||||
schema: {
|
||||
track_id: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
lrc: {
|
||||
type: Object,
|
||||
default: {}
|
||||
},
|
||||
video_source: {
|
||||
type: String,
|
||||
},
|
||||
sync_audio_at: {
|
||||
type: String,
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "TrackLyric",
|
||||
collection: "tracks_lyrics",
|
||||
schema: {
|
||||
track_id: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
lrc: {
|
||||
type: Object,
|
||||
default: {},
|
||||
},
|
||||
video_source: {
|
||||
type: String,
|
||||
},
|
||||
video_starts_at: {
|
||||
type: String,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user