Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
28
node_modules/prompts/lib/dateparts/minutes.js
generated
vendored
Normal file
28
node_modules/prompts/lib/dateparts/minutes.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
const DatePart = require('./datepart');
|
||||
|
||||
class Minutes extends DatePart {
|
||||
constructor(opts={}) {
|
||||
super(opts);
|
||||
}
|
||||
|
||||
up() {
|
||||
this.date.setMinutes(this.date.getMinutes() + 1);
|
||||
}
|
||||
|
||||
down() {
|
||||
this.date.setMinutes(this.date.getMinutes() - 1);
|
||||
}
|
||||
|
||||
setTo(val) {
|
||||
this.date.setMinutes(parseInt(val.substr(-2)));
|
||||
}
|
||||
|
||||
toString() {
|
||||
let m = this.date.getMinutes();
|
||||
return this.token.length > 1 ? String(m).padStart(2, '0') : m;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Minutes;
|
Reference in New Issue
Block a user