change icon & edit plant

This commit is contained in:
Romulus21
2022-01-14 16:52:43 +01:00
parent e9a4550070
commit 05f1d7cbca
12 changed files with 122 additions and 20 deletions

View File

@@ -1,6 +1,10 @@
import App from './components/App';
import './style';
Number.prototype.pad = function(n) {
return (new Array(n).join('0') + this).slice(-n)
}
Date.prototype.addDays = function (days) {
let date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
@@ -12,4 +16,8 @@ Date.prototype.toFrDate = function() {
return `${this.getDate()}/${month}/${this.getFullYear()}`
}
Date.prototype.toSQLDate = function() {
return `${this.getFullYear()}-${Number(this.getMonth() + 1).pad(2)}-${Number(this.getDate()).pad(2)}`
}
export default App;