From a1a20e51d6c9efea406cf18facf707ea50e3d18c Mon Sep 17 00:00:00 2001
From: Ntkskwk <natsukawa247@outlook.com>
Date: Tue, 3 Sep 2024 07:41:34 +0800
Subject: refactor: Optimize the structure of the code

---
 site/src/components/ChangeLog.vue | 61 ---------------------------------------
 1 file changed, 61 deletions(-)
 delete mode 100644 site/src/components/ChangeLog.vue

(limited to 'site/src/components/ChangeLog.vue')

diff --git a/site/src/components/ChangeLog.vue b/site/src/components/ChangeLog.vue
deleted file mode 100644
index e58ee39..0000000
--- a/site/src/components/ChangeLog.vue
+++ /dev/null
@@ -1,61 +0,0 @@
-<script lang="ts">
-import axios from 'axios';
-
-export default {
-  data() {
-    return {
-      ChangeLogMessage: 'testChangeLogMessage',
-    }
-  },
-  props: {
-    msg: {
-      type: String,
-      require: true
-    },
-    date: {
-      type: Date,
-      default: new Date('2024-07-14T12:00:00Z')
-    }
-  },
-  methods: {
-    getChangeLog() {
-      axios.get('https://api.github.com/repos/HydroRoll-Team/HydroRoll/releases/latest').then(res => {
-
-        this.ChangeLogMessage ="## "+ res.data['tag_name']+"\n"+res.data['body'];
-        console.log(res.data);
-      })
-    }
-  },
-  beforeMount() {
-    this.getChangeLog()
-  }
-
-}
-</script>
-
-
-<template>
-  <div class="details" style="overflow-y:scroll;overflow-x:hidden;height:100%">
-    <h3>
-      ChangeLog
-    </h3>
-    <v-md-preview :text="ChangeLogMessage"></v-md-preview>
-  </div>
-</template>
-
-
-<style scoped>
-
-
-h3 {
-  font-size: 1.2rem;
-  font-weight: 500;
-  margin-bottom: 0.4rem;
-  color: var(--color-heading);
-}
-
-.details {
-  flex: 1;
-  margin-left: 1rem;
-}
-</style>
-- 
cgit v1.2.3-70-g09d2

