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/code-core.vue | 35 -----------------------------------
 1 file changed, 35 deletions(-)
 delete mode 100644 src/client/components/code-core.vue

(limited to 'src/client/components/code-core.vue')

diff --git a/src/client/components/code-core.vue b/src/client/components/code-core.vue
deleted file mode 100644
index 9cff7b4448..0000000000
--- a/src/client/components/code-core.vue
+++ /dev/null
@@ -1,35 +0,0 @@
-<template>
-<code v-if="inline" v-html="html" :class="`language-${prismLang}`"></code>
-<pre v-else :class="`language-${prismLang}`"><code v-html="html" :class="`language-${prismLang}`"></code></pre>
-</template>
-
-<script lang="ts">
-import { defineComponent } from 'vue';
-import 'prismjs';
-import 'prismjs/themes/prism-okaidia.css';
-
-export default defineComponent({
-	props: {
-		code: {
-			type: String,
-			required: true
-		},
-		lang: {
-			type: String,
-			required: false
-		},
-		inline: {
-			type: Boolean,
-			required: false
-		}
-	},
-	computed: {
-		prismLang() {
-			return Prism.languages[this.lang] ? this.lang : 'js';
-		},
-		html() {
-			return Prism.highlight(this.code, Prism.languages[this.prismLang], this.prismLang);
-		}
-	}
-});
-</script>
-- 
cgit v1.2.3-freya

