const strftime = require('strftime'); module.exports = { name: 'rpt-informe', created() { if (this.locale) this.$i18n.locale = this.locale; const embeded = []; this.files.map(file => { embeded[file] = `file://${__dirname + file}`; }); this.embeded = embeded; }, data() { return { client: { id: 101, name: 'Batman' }, files: ['/assets/images/signature.png'], }; }, methods: { /* dated: () => { return strftime('%d-%m-%Y', new Date()); }, */ }, components: { 'report-header': require('../report-header'), 'report-footer': require('../report-footer'), }, };