Bump copyright date to 2021
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
// Sshwifty - A Web SSH client
|
||||
//
|
||||
// Copyright (C) 2019-2020 Rui NI <nirui@gmx.com>
|
||||
// Copyright (C) 2019-2021 Ni Rui <nirui@gmx.com>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
@@ -133,7 +133,7 @@ class BarDrawer extends BaseDrawer {
|
||||
currentWidth +
|
||||
"," +
|
||||
cellHalfHeight,
|
||||
class: h === 0 ? "zero" : data.data[i].class
|
||||
class: h === 0 ? "zero" : data.data[i].class,
|
||||
});
|
||||
|
||||
currentWidth += cellWidth;
|
||||
@@ -161,7 +161,7 @@ class UpsideDownBarDrawer extends BarDrawer {
|
||||
currentWidth +
|
||||
"," +
|
||||
(Math.round(h) + padHalfHeight),
|
||||
class: h === 0 ? "zero" : data.data[i].class
|
||||
class: h === 0 ? "zero" : data.data[i].class,
|
||||
});
|
||||
|
||||
currentWidth += cellWidth;
|
||||
@@ -211,7 +211,7 @@ class Chart {
|
||||
|
||||
return {
|
||||
dataMax: max,
|
||||
resultMax: d.max
|
||||
resultMax: d.max,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -237,33 +237,33 @@ export default {
|
||||
props: {
|
||||
values: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
default: () => [],
|
||||
},
|
||||
width: {
|
||||
type: Number,
|
||||
default: 0
|
||||
default: 0,
|
||||
},
|
||||
height: {
|
||||
type: Number,
|
||||
default: 0
|
||||
default: 0,
|
||||
},
|
||||
max: {
|
||||
type: Number,
|
||||
default: 0
|
||||
default: 0,
|
||||
},
|
||||
enabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
chart: null,
|
||||
previousMax: 0
|
||||
previousMax: 0,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@@ -287,7 +287,7 @@ export default {
|
||||
}
|
||||
|
||||
this.draw();
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.chart = new Chart(
|
||||
@@ -310,7 +310,7 @@ export default {
|
||||
|
||||
this.$emit("max", r.dataMax);
|
||||
this.previousMax = r.dataMax;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user