video func implemented
This commit is contained in:
1 parent
3bc534489d
commit
89b8687431
13 files changed
+504
-9
No files matched your search
@@ -49,6 +49,20 @@
|
||||
"type": "enumeration",
|
||||
"enum": ["small", "medium", "large"],
|
||||
"default": "medium"
|
||||
},
|
||||
"videoUrl": {
|
||||
"type": "string",
|
||||
"regex": "^(https?:\\/\\/)?(www\\.)?(youtube\\.com\\/watch\\?v=|youtu\\.be\\/|youtube\\.com\\/embed\\/)[a-zA-Z0-9_-]{11}",
|
||||
"default": ""
|
||||
},
|
||||
"videoPosition": {
|
||||
"type": "enumeration",
|
||||
"enum": ["top", "inline", "bottom", "none"],
|
||||
"default": "inline"
|
||||
},
|
||||
"videoCaption": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -446,6 +446,12 @@ export interface ApiArticleArticle extends Struct.CollectionTypeSchema {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
imagePosition: Schema.Attribute.Enumeration<
|
||||
['top', 'left', 'right', 'none']
|
||||
> &
|
||||
Schema.Attribute.DefaultTo<'top'>;
|
||||
imageSize: Schema.Attribute.Enumeration<['small', 'medium', 'large']> &
|
||||
Schema.Attribute.DefaultTo<'medium'>;
|
||||
img: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
@@ -462,6 +468,12 @@ export interface ApiArticleArticle extends Struct.CollectionTypeSchema {
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
videoCaption: Schema.Attribute.String & Schema.Attribute.DefaultTo<''>;
|
||||
videoPosition: Schema.Attribute.Enumeration<
|
||||
['top', 'inline', 'bottom', 'none']
|
||||
> &
|
||||
Schema.Attribute.DefaultTo<'inline'>;
|
||||
videoUrl: Schema.Attribute.String & Schema.Attribute.DefaultTo<''>;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user