From ac0dbc5b1c9b48079e3a450794030b3e0bc6096a Mon Sep 17 00:00:00 2001
From: 简律纯 <i@jyunko.cn>
Date: Sat, 2 Mar 2024 03:09:10 +0800
Subject: refactor(site): rewrite with vuejs (#93)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* chore: update package version

* Refactor site (#87)

* 补全changelog文件

* 补全changelog文件

* 补全changelog文件

* 完成基本的markdown渲染

* 提交新的css (#88)

* 补全changelog文件

* 补全changelog文件

* 补全changelog文件

* 完成基本的markdown渲染

* 添加新的css

* Refactor site (#92)

* 补全changelog文件

* 补全changelog文件

* 补全changelog文件

* 完成基本的markdown渲染

* 添加新的css

* 修复倒计时居中

* 初步完成右侧窗口切换

* 优化进度条

* 导入element-plus

* 导入element-plus

* 导入element-plus

* 加入选中提示和禁用提示

* 修改背景颜色

---------

Co-authored-by: 白咕咕 <67865300+baimianxiao@users.noreply.github.com>
---
 site/src/components/ChangeLog.vue | 61 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create 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
new file mode 100644
index 0000000..e58ee39
--- /dev/null
+++ b/site/src/components/ChangeLog.vue
@@ -0,0 +1,61 @@
+<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

