aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/views/index/Notepad
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2025-01-26 23:29:23 +0800
committerGitHub <noreply@github.com>2025-01-26 23:29:23 +0800
commita97b7a38f4a652e7b24e101ef34e4f37b8c3094e (patch)
treec387ca55aa6977499b03346ab46e63a0f7c09b36 /src/views/index/Notepad
parentd4d7fac39528b978b742420a3cb4e91cea6f5834 (diff)
parentcd8aab3a511091ce378ff7ebcaa42bf979f00882 (diff)
downloadHydroRollSite-main.tar.gz
HydroRollSite-main.zip
Merge pull request #8 from LofiSu/重构官网HEADmain
Refactor: Rewrite Site
Diffstat (limited to 'src/views/index/Notepad')
-rw-r--r--src/views/index/Notepad/changelog.ts16
-rw-r--r--src/views/index/Notepad/index.vue55
-rw-r--r--src/views/index/Notepad/type.ts9
3 files changed, 0 insertions, 80 deletions
diff --git a/src/views/index/Notepad/changelog.ts b/src/views/index/Notepad/changelog.ts
deleted file mode 100644
index 00ff4a4..0000000
--- a/src/views/index/Notepad/changelog.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import http from '@/utils/http'
-
-import { NotepadContent } from "@/views/index/Notepad/type";
-export const changelog = async ():Promise<NotepadContent> =>
-{
- const title = "Changelog"
- return http.get('https://api.github.com/repos/HydroRoll-Team/HydroRoll/releases/latest')
- .then(res => {
- const message = "## " + res.data['tag_name'] + "\n" + res.data['body'].trimEnd();
- return new NotepadContent(title,message)
- })
- .catch(err => {
- console.log(err)
- return new NotepadContent(title,err.toString())
- })
-}
diff --git a/src/views/index/Notepad/index.vue b/src/views/index/Notepad/index.vue
deleted file mode 100644
index 4dcde33..0000000
--- a/src/views/index/Notepad/index.vue
+++ /dev/null
@@ -1,55 +0,0 @@
-<script lang="ts">
-import { NotepadContent } from "@/views/index/Notepad/type";
-
-export default {
- props: {
- content: {
- type: NotepadContent,
- require: true,
- default: new NotepadContent(),
- },
- },
-}
-</script>
-
-
-<template>
- <div class="details" style="height:100%">
- <h3>
- {{ content.title }}
- </h3>
- <div class="content">
- <v-md-preview :text="content.message"></v-md-preview>
- </div>
- </div>
-</template>
-
-
-<style scoped>
-
-.details {
- flex: 1;
- float: right;
- height: 100%;
- padding: 0 10dvw;
-}
-
-h3 {
- font-size: 1.5rem;
- font-weight: 500;
- margin-bottom: 0.4rem;
- color: var(--color-heading);
-}
-
-.content {
- overflow-x: auto;
-}
-
-@media screen and (orientation:landscape) {
- .details {
- flex: 1;
- width: 32dvw;
- padding: 0;
- }
-}
-</style>
diff --git a/src/views/index/Notepad/type.ts b/src/views/index/Notepad/type.ts
deleted file mode 100644
index 9147341..0000000
--- a/src/views/index/Notepad/type.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export class NotepadContent {
- title: string = "";
- message: string = "";
-
- constructor(title:string="", message:string="") {
- this.title=title;
- this.message=message;
- }
-}