mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Refactored moment.js out of app
Reduces bundle size by 25%
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const moment = require('moment');
|
||||
import * as Dates from "../services/dates";
|
||||
|
||||
let data = {
|
||||
terms: '',
|
||||
@ -153,7 +153,7 @@ let methods = {
|
||||
},
|
||||
|
||||
enableDate(optionName) {
|
||||
this.search.dates[optionName.toLowerCase()] = moment().format('YYYY-MM-DD');
|
||||
this.search.dates[optionName.toLowerCase()] = Dates.getCurrentDay();
|
||||
this.dateChange(optionName);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user