2017-04-13 08:40:22 +10:00
|
|
|
import dateFormat from 'dateformat';
|
2017-08-25 23:00:19 +10:00
|
|
|
import config from 'config';
|
2017-04-13 08:40:22 +10:00
|
|
|
|
|
|
|
export default {
|
|
|
|
version: (context) => {
|
|
|
|
return context.version;
|
|
|
|
},
|
|
|
|
date: () => {
|
2017-08-25 23:00:19 +10:00
|
|
|
return dateFormat(new Date(), config.componentsOptions.InjectAsComment.dateFormat);
|
2018-03-15 22:07:22 +11:00
|
|
|
},
|
2017-04-13 08:40:22 +10:00
|
|
|
};
|