++ Animation fixed in Home pic.

++"Dark Mode"
This commit is contained in:
Surya Paolo
2022-11-23 23:57:06 +01:00
parent 077127d129
commit a5a5177a5b
2 changed files with 39 additions and 42 deletions

View File

@@ -13,6 +13,37 @@ mongoose.plugin(schema => {
schema.options.usePushEach = true schema.options.usePushEach = true
}); });
const myCard = new Schema(
{
imagefile: String,
alt: String,
description: String,
style: String,
size: String,
color: String,
content: String,
colorsub: String,
}
)
const animation = new Schema(
{
name: String,
clduration: String,
cldelay: String,
timingtype: String,
}
);
const elemText = new Schema(
{
text: String,
color: String,
class: String,
size: String,
anim: animation,
}
);
const MyElemSchema = new Schema({ const MyElemSchema = new Schema({
_id: { _id: {
type: ObjectId, type: ObjectId,
@@ -41,6 +72,9 @@ const MyElemSchema = new Schema({
container3: { container3: {
type: String, type: String,
}, },
container4: {
type: String,
},
align: { align: {
type: Number, type: Number,
}, },
@@ -105,10 +139,9 @@ const MyElemSchema = new Schema({
color: { color: {
type: String, type: String,
}, },
colorsub: { elemsText: [elemText],
type: String anim: animation,
}, active: {
active: {
type: Boolean, type: Boolean,
}, },
class: { class: {
@@ -123,50 +156,13 @@ active: {
class4: { class4: {
type: String, type: String,
}, },
anim: {
name: { type: String},
clduration: { type: String},
cldelay: { type: String},
},
anim2: {
name: { type: String},
clduration: { type: String},
cldelay: { type: String},
},
styleadd: { styleadd: {
type: String, type: String,
}, },
image: { image: {
type: String, type: String,
}, },
listcards: [ listcards: [myCard],
{
imagefile: {
type: String,
},
alt: {
type: String,
},
description: {
type: String,
},
style: {
type: String,
},
size: {
type: String,
},
color: {
type: String
},
content: {
type: String
},
colorsub: {
type: String
},
}
],
list: [ list: [
{ {
imagefile: { imagefile: {

View File

@@ -99,6 +99,7 @@ const SiteSchema = new Schema({
font: { type: String }, font: { type: String },
col_toolbar: { type: String }, col_toolbar: { type: String },
col_bgfooter: { type: String }, col_bgfooter: { type: String },
show_darkopt: { type: Boolean },
}, },
confsite: { confsite: {
options: { // ConfSite options: { // ConfSite