mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-05-11 00:25:42 +00:00
* On every route change, update local variables from query params * ResultSection is keyed to query to force re-render * Resolved lint warnings * replace webpack w/ vite * update all imports with alias @ and scss * vite environment variables, also typed * upgraded eslint, defined new rules & added ignore comments * resolved linting issues * moved index.html to project root * updated dockerfile w/ build stage before runtime image definition * sign drone config
18 lines
458 B
JavaScript
18 lines
458 B
JavaScript
/*
|
|
let setValue = function(el, binding) {
|
|
let value = binding.value;
|
|
let dateArray = value.split('-');
|
|
let monthsArray = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'];
|
|
el.innerText = `${dateArray[2]} ${monthsArray[+dateArray[1] - 1]} ${dateArray[0]}`;
|
|
};
|
|
module.exports = {
|
|
isLiteral: true,
|
|
bind(el, binding) {
|
|
setValue(el, binding);
|
|
},
|
|
update(el, binding) {
|
|
setValue(el, binding);
|
|
}
|
|
}
|
|
*/
|