added animations and pageLoad and preLoader

This commit is contained in:
Amir Mohamadi
2020-12-19 13:26:55 +03:30
parent bc5e617778
commit 9433eb84ac
57 changed files with 13099 additions and 494 deletions
+27
View File
@@ -0,0 +1,27 @@
const mongoose = require('mongoose')
function image(img) {
return '/uploads/images/history/' + img
}
const HistorySchema = mongoose.Schema({
image: {type: String, get: image},
year: Number,
history_details: {
fa: {
title: String,
caption: String
},
en: {
title: String,
caption: String
}
},
created_at: String,
updated_at: String
}, {
toObject: {getters: true},
toJSON: {getters: true}
})
module.exports = mongoose.model('History', HistorySchema)