From 0e4a111f81cceed275d9bec2695f6e401fb654d8 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Fri, 12 Nov 2021 02:02:25 +0900
Subject: refactoring

Resolve #7779
---
 src/client/components/number-diff.vue | 47 -----------------------------------
 1 file changed, 47 deletions(-)
 delete mode 100644 src/client/components/number-diff.vue

(limited to 'src/client/components/number-diff.vue')

diff --git a/src/client/components/number-diff.vue b/src/client/components/number-diff.vue
deleted file mode 100644
index 690f89dd59..0000000000
--- a/src/client/components/number-diff.vue
+++ /dev/null
@@ -1,47 +0,0 @@
-<template>
-<span class="ceaaebcd" :class="{ isPlus, isMinus, isZero }">
-	<slot name="before"></slot>{{ isPlus ? '+' : '' }}{{ number(value) }}<slot name="after"></slot>
-</span>
-</template>
-
-<script lang="ts">
-import { computed, defineComponent } from 'vue';
-import number from '@client/filters/number';
-
-export default defineComponent({
-	props: {
-		value: {
-			type: Number,
-			required: true
-		},
-	},
-
-	setup(props) {
-		const isPlus = computed(() => props.value > 0);
-		const isMinus = computed(() => props.value < 0);
-		const isZero = computed(() => props.value === 0);
-		return {
-			isPlus,
-			isMinus,
-			isZero,
-			number,
-		};
-	}
-});
-</script>
-
-<style lang="scss" scoped>
-.ceaaebcd {
-	&.isPlus {
-		color: var(--success);
-	}
-
-	&.isMinus {
-		color: var(--error);
-	}
-
-	&.isZero {
-		opacity: 0.5;
-	}
-}
-</style>
-- 
cgit v1.2.3-freya

