summaryrefslogtreecommitdiff
path: root/src/client/widgets
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-04 08:46:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-04 08:46:54 +0900
commitd4a630902d8d250b67fcd0ce2b49240786b40368 (patch)
treeb87395691e52e3b86ce40196993d492c694c5e79 /src/client/widgets
parentenhance(server): Log error message when internal error occured (diff)
downloadmisskey-d4a630902d8d250b67fcd0ce2b49240786b40368.tar.gz
misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.tar.bz2
misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.zip
refactor: Use ===
Diffstat (limited to 'src/client/widgets')
-rw-r--r--src/client/widgets/activity.calendar.vue6
-rw-r--r--src/client/widgets/activity.vue4
-rw-r--r--src/client/widgets/calendar.vue4
-rw-r--r--src/client/widgets/photos.vue4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/client/widgets/activity.calendar.vue b/src/client/widgets/activity.calendar.vue
index dfc0d29d3b..334c2ea56e 100644
--- a/src/client/widgets/activity.calendar.vue
+++ b/src/client/widgets/activity.calendar.vue
@@ -51,14 +51,14 @@ export default Vue.extend({
weekday: date.getDay()
};
- d.v = peak == 0 ? 0 : d.total / (peak / 2);
+ d.v = peak === 0 ? 0 : d.total / (peak / 2);
if (d.v > 1) d.v = 1;
- const ch = d.date.weekday == 0 || d.date.weekday == 6 ? 275 : 170;
+ const ch = d.date.weekday === 0 || d.date.weekday === 6 ? 275 : 170;
const cs = d.v * 100;
const cl = 15 + ((1 - d.v) * 80);
d.color = `hsl(${ch}, ${cs}%, ${cl}%)`;
- if (d.date.weekday == 0) x--;
+ if (d.date.weekday === 0) x--;
});
}
});
diff --git a/src/client/widgets/activity.vue b/src/client/widgets/activity.vue
index e08676c9a0..6c32642bb6 100644
--- a/src/client/widgets/activity.vue
+++ b/src/client/widgets/activity.vue
@@ -60,7 +60,7 @@ export default define({
},
methods: {
func() {
- if (this.props.design == 2) {
+ if (this.props.design === 2) {
this.props.design = 0;
} else {
this.props.design++;
@@ -68,7 +68,7 @@ export default define({
this.save();
},
toggleView() {
- if (this.props.view == 1) {
+ if (this.props.view === 1) {
this.props.view = 0;
} else {
this.props.view++;
diff --git a/src/client/widgets/calendar.vue b/src/client/widgets/calendar.vue
index b7d577c37d..c041734a4d 100644
--- a/src/client/widgets/calendar.vue
+++ b/src/client/widgets/calendar.vue
@@ -65,7 +65,7 @@ export default define({
},
methods: {
func() {
- if (this.props.design == 2) {
+ if (this.props.design === 2) {
this.props.design = 0;
} else {
this.props.design++;
@@ -102,7 +102,7 @@ export default define({
this.monthP = monthNumer / monthDenom * 100;
this.yearP = yearNumer / yearDenom * 100;
- this.isHoliday = now.getDay() == 0 || now.getDay() == 6;
+ this.isHoliday = now.getDay() === 0 || now.getDay() === 6;
}
}
});
diff --git a/src/client/widgets/photos.vue b/src/client/widgets/photos.vue
index fb2e6de0be..1deb6de62d 100644
--- a/src/client/widgets/photos.vue
+++ b/src/client/widgets/photos.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <mk-container :show-header="props.design === 0" :naked="props.design === 2" :class="$style.root" :data-melt="props.design == 2">
+ <mk-container :show-header="props.design === 0" :naked="props.design === 2" :class="$style.root" :data-melt="props.design === 2">
<template #header><fa :icon="faCamera"/>{{ $t('_widgets.photos') }}</template>
<div class="">
@@ -66,7 +66,7 @@ export default define({
},
func() {
- if (this.props.design == 2) {
+ if (this.props.design === 2) {
this.props.design = 0;
} else {
this.props.design++;