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: {
|
description: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
list: {
|
items: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: [],
|
default: [],
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
cover: {
|
image: {
|
||||||
type: String,
|
|
||||||
default:
|
|
||||||
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
|
||||||
},
|
|
||||||
thumbnail: {
|
|
||||||
type: String,
|
type: String,
|
||||||
default:
|
default:
|
||||||
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
||||||
@ -32,9 +27,6 @@ export default {
|
|||||||
type: Date,
|
type: Date,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
publisher: {
|
|
||||||
type: Object,
|
|
||||||
},
|
|
||||||
public: {
|
public: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
|
@ -4,17 +4,17 @@ export default {
|
|||||||
schema: {
|
schema: {
|
||||||
track_id: {
|
track_id: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true,
|
||||||
},
|
},
|
||||||
lrc: {
|
lrc: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: {}
|
default: {},
|
||||||
},
|
},
|
||||||
video_source: {
|
video_source: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
sync_audio_at: {
|
video_starts_at: {
|
||||||
type: String,
|
type: String,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user