Spaces:
Sleeping
Sleeping
Tristan Yu commited on
Commit ·
91bebae
1
Parent(s): ef26fb9
Add imageSize and imageAlignment to SourceText schema
Browse files- models/SourceText.js +3 -0
models/SourceText.js
CHANGED
|
@@ -28,6 +28,9 @@ const sourceTextSchema = new mongoose.Schema({
|
|
| 28 |
translationBrief: { type: String },
|
| 29 |
imageUrl: { type: String },
|
| 30 |
imageAlt: { type: String },
|
|
|
|
|
|
|
|
|
|
| 31 |
culturalElements: [culturalElementSchema],
|
| 32 |
difficulty: {
|
| 33 |
type: String,
|
|
|
|
| 28 |
translationBrief: { type: String },
|
| 29 |
imageUrl: { type: String },
|
| 30 |
imageAlt: { type: String },
|
| 31 |
+
// Image-only configuration
|
| 32 |
+
imageSize: { type: Number, default: 200 },
|
| 33 |
+
imageAlignment: { type: String, enum: ['left', 'center', 'right'], default: 'center' },
|
| 34 |
culturalElements: [culturalElementSchema],
|
| 35 |
difficulty: {
|
| 36 |
type: String,
|