From 72a79bd525e72f80c6b46b4514f0e6bb4c3cc07a Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Sat, 7 Sep 2024 15:15:32 +0800 Subject: refactor(site): move site to HydroRoll-site repo --- site/src/App.vue | 7 -- site/src/assets/Hydroroll-small.svg | 61 --------- site/src/assets/Protocol.drawio | 108 ---------------- site/src/assets/base.css | 97 -------------- site/src/assets/favicon.ico | Bin 4286 -> 0 bytes site/src/assets/image/logo.png | Bin 235361 -> 0 bytes site/src/assets/main.css | 72 ----------- site/src/assets/video/bg.mp4 | Bin 877575 -> 0 bytes site/src/components/icons/IconCommunity.vue | 7 -- site/src/components/icons/IconDocumentation.vue | 7 -- site/src/components/icons/IconEcosystem.vue | 7 -- site/src/components/icons/IconSupport.vue | 7 -- site/src/components/icons/IconTooling.vue | 19 --- site/src/layouts/default/AppBar.vue | 13 -- site/src/layouts/default/Default.vue | 12 -- site/src/layouts/default/View.vue | 9 -- site/src/main.ts | 38 ------ site/src/plugins/index.ts | 20 --- site/src/plugins/vuetify.ts | 26 ---- site/src/router/index.ts | 21 ---- site/src/store/app.ts | 8 -- site/src/store/index.ts | 4 - site/src/styles/settings.scss | 10 -- site/src/views/404.vue | 18 --- site/src/views/index/Left.vue | 84 ------------- site/src/views/index/Notepad/changelog.ts | 16 --- site/src/views/index/Notepad/index.vue | 53 -------- site/src/views/index/Right.vue | 160 ------------------------ site/src/views/index/index.vue | 82 ------------ site/src/vite-env.d.ts | 10 -- 30 files changed, 976 deletions(-) delete mode 100644 site/src/App.vue delete mode 100644 site/src/assets/Hydroroll-small.svg delete mode 100644 site/src/assets/Protocol.drawio delete mode 100644 site/src/assets/base.css delete mode 100644 site/src/assets/favicon.ico delete mode 100644 site/src/assets/image/logo.png delete mode 100644 site/src/assets/main.css delete mode 100644 site/src/assets/video/bg.mp4 delete mode 100644 site/src/components/icons/IconCommunity.vue delete mode 100644 site/src/components/icons/IconDocumentation.vue delete mode 100644 site/src/components/icons/IconEcosystem.vue delete mode 100644 site/src/components/icons/IconSupport.vue delete mode 100644 site/src/components/icons/IconTooling.vue delete mode 100644 site/src/layouts/default/AppBar.vue delete mode 100644 site/src/layouts/default/Default.vue delete mode 100644 site/src/layouts/default/View.vue delete mode 100644 site/src/main.ts delete mode 100644 site/src/plugins/index.ts delete mode 100644 site/src/plugins/vuetify.ts delete mode 100644 site/src/router/index.ts delete mode 100644 site/src/store/app.ts delete mode 100644 site/src/store/index.ts delete mode 100644 site/src/styles/settings.scss delete mode 100644 site/src/views/404.vue delete mode 100644 site/src/views/index/Left.vue delete mode 100644 site/src/views/index/Notepad/changelog.ts delete mode 100644 site/src/views/index/Notepad/index.vue delete mode 100644 site/src/views/index/Right.vue delete mode 100644 site/src/views/index/index.vue delete mode 100644 site/src/vite-env.d.ts (limited to 'site/src') diff --git a/site/src/App.vue b/site/src/App.vue deleted file mode 100644 index 88a4d52..0000000 --- a/site/src/App.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - \ No newline at end of file diff --git a/site/src/assets/Hydroroll-small.svg b/site/src/assets/Hydroroll-small.svg deleted file mode 100644 index 242c16c..0000000 --- a/site/src/assets/Hydroroll-small.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/site/src/assets/Protocol.drawio b/site/src/assets/Protocol.drawio deleted file mode 100644 index b40856d..0000000 --- a/site/src/assets/Protocol.drawio +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/site/src/assets/base.css b/site/src/assets/base.css deleted file mode 100644 index 9c513a5..0000000 --- a/site/src/assets/base.css +++ /dev/null @@ -1,97 +0,0 @@ -/* color palette from */ -:root { - /*背景色*/ - /*--vt-c-white: #ffffff;*/ - --vt-c-white: #001F3A; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - /*文字色*/ - /*--vt-c-indigo: #2c3e50;*/ - --vt-c-indigo: rgba(255,255,255,0.5); - - --vt-c-divider-light-1: rgba(60, 60, 60); - /*边框色*/ - /*--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);*/ - --vt-c-divider-light-2: rgba(150, 150, 150); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - /*小标题色*/ - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); - - --vt-c-background: #0000aa; -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; - - --icon-highlight: linear-gradient(to right, #00F8F3, #00BDEF); -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: - color 0.5s, - background-color 0.5s; - line-height: 1.6; - font-family: - Inter, - -apple-system, - BlinkMacSystemFont, - 'Segoe UI', - Roboto, - Oxygen, - Ubuntu, - Cantarell, - 'Fira Sans', - 'Droid Sans', - 'Helvetica Neue', - sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/site/src/assets/favicon.ico b/site/src/assets/favicon.ico deleted file mode 100644 index dd63670..0000000 Binary files a/site/src/assets/favicon.ico and /dev/null differ diff --git a/site/src/assets/image/logo.png b/site/src/assets/image/logo.png deleted file mode 100644 index 8b5a14c..0000000 Binary files a/site/src/assets/image/logo.png and /dev/null differ diff --git a/site/src/assets/main.css b/site/src/assets/main.css deleted file mode 100644 index 890703f..0000000 --- a/site/src/assets/main.css +++ /dev/null @@ -1,72 +0,0 @@ -@import './base.css'; - -#app { - max-width: 90dvi; - margin: 0 auto; - padding: 2rem; - - font-weight: normal; -} - -a, -.green { - text-decoration: none; - /*高亮色*/ - /*color: hsla(160, 100%, 37%, 1);*/ - color: #00BDEF; - transition: 0.4s; -} - -@media (hover: hover) { - a:hover { - /*background-color: hsla(160, 100%, 37%, 0.2);*/ - color: #00F8F3; - text-decoration: underline; - } -} - -@media screen and (orientation:landscape) { - body { - display: flex; - place-items: center; - } - - #app { - display: grid; - grid-template-columns: 1fr 1fr; - padding: 0 2rem; - } -} - -.item i { - background: linear-gradient(to right, #00F8F3, #00BDEF); -} -.item{ - transition: 0.4s; -} -.item:hover{ - background-color:rgba(255,255,255,0.05); -} -.details h3, -.item i{ - color:#ffffff; -} - -/*滚动条优化*/ -::-webkit-scrollbar-track { - background: rgba(0, 0, 0, 0.1); - border-radius: 0; -} - -::-webkit-scrollbar { - -webkit-appearance: none; - width: 6px; - height: 6px; -} - -::-webkit-scrollbar-thumb { - cursor: pointer; - border-radius: 5px; - background: rgba(0, 0, 0, 0.15); - transition: color 0.2s ease; -} diff --git a/site/src/assets/video/bg.mp4 b/site/src/assets/video/bg.mp4 deleted file mode 100644 index 37e71d2..0000000 Binary files a/site/src/assets/video/bg.mp4 and /dev/null differ diff --git a/site/src/components/icons/IconCommunity.vue b/site/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b05..0000000 --- a/site/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/site/src/components/icons/IconDocumentation.vue b/site/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791c..0000000 --- a/site/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/site/src/components/icons/IconEcosystem.vue b/site/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f07..0000000 --- a/site/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/site/src/components/icons/IconSupport.vue b/site/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834..0000000 --- a/site/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/site/src/components/icons/IconTooling.vue b/site/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d..0000000 --- a/site/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/site/src/layouts/default/AppBar.vue b/site/src/layouts/default/AppBar.vue deleted file mode 100644 index 4d0660e..0000000 --- a/site/src/layouts/default/AppBar.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/site/src/layouts/default/Default.vue b/site/src/layouts/default/Default.vue deleted file mode 100644 index e642631..0000000 --- a/site/src/layouts/default/Default.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/site/src/layouts/default/View.vue b/site/src/layouts/default/View.vue deleted file mode 100644 index 8e9e414..0000000 --- a/site/src/layouts/default/View.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/site/src/main.ts b/site/src/main.ts deleted file mode 100644 index 6bb9085..0000000 --- a/site/src/main.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * main.ts - * - * Bootstraps Vuetify and other plugins then mounts the App` - */ - - -// Components -import App from './App.vue' - -// Composable -import { createApp } from 'vue' - -// Plugins -import { registerPlugins } from '@/plugins' - -import './assets/main.css' -import VMdPreview from '@kangc/v-md-editor/lib/preview'; -import '@kangc/v-md-editor/lib/style/preview.css'; -import githubTheme from '@kangc/v-md-editor/lib/theme/github.js'; -import '@kangc/v-md-editor/lib/theme/style/github.css'; -import ElementPlus from 'element-plus' -import 'element-plus/dist/index.css' -// highlights -import hljs from 'highlight.js'; - -VMdPreview.use(githubTheme, { - Hljs: hljs, -}); - - - - -const app = createApp(App) -app.use(VMdPreview) -app.use(ElementPlus) -registerPlugins(app) -app.mount('#app') diff --git a/site/src/plugins/index.ts b/site/src/plugins/index.ts deleted file mode 100644 index baa02f3..0000000 --- a/site/src/plugins/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * plugins/index.ts - * - * Automatically included in `./src/main.ts` - */ - -// Plugins -import vuetify from './vuetify' -import pinia from '../store' -import router from '../router' - -// Types -import type { App } from 'vue' - -export function registerPlugins (app: App) { - app - .use(vuetify) - .use(router) - .use(pinia) -} diff --git a/site/src/plugins/vuetify.ts b/site/src/plugins/vuetify.ts deleted file mode 100644 index c276519..0000000 --- a/site/src/plugins/vuetify.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * plugins/vuetify.ts - * - * Framework documentation: https://vuetifyjs.com` - */ - -// Styles -import '@mdi/font/css/materialdesignicons.css' -import 'vuetify/styles' - -// Composables -import { createVuetify } from 'vuetify' - -// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides -export default createVuetify({ - theme: { - themes: { - light: { - colors: { - primary: '#1867C0', - secondary: '#5CBBF6', - }, - }, - }, - }, -}) diff --git a/site/src/router/index.ts b/site/src/router/index.ts deleted file mode 100644 index 38c65fd..0000000 --- a/site/src/router/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Composables -import { createRouter, createWebHistory } from 'vue-router' - -const routes = [ - { - path: '/', - component: () => import('@/views/index/index.vue'), - }, - { - path: '/:path(.*)', - name: '404', - component: () => import('@/views/404.vue'), - } -] - -const router = createRouter({ - history: createWebHistory(process.env.BASE_URL), - routes, -}) - -export default router diff --git a/site/src/store/app.ts b/site/src/store/app.ts deleted file mode 100644 index 7429543..0000000 --- a/site/src/store/app.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Utilities -import { defineStore } from 'pinia' - -export const useAppStore = defineStore('app', { - state: () => ({ - // - }), -}) diff --git a/site/src/store/index.ts b/site/src/store/index.ts deleted file mode 100644 index 1536252..0000000 --- a/site/src/store/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -// Utilities -import { createPinia } from 'pinia' - -export default createPinia() diff --git a/site/src/styles/settings.scss b/site/src/styles/settings.scss deleted file mode 100644 index 3e36a27..0000000 --- a/site/src/styles/settings.scss +++ /dev/null @@ -1,10 +0,0 @@ -/** - * src/styles/settings.scss - * - * Configures SASS variables and Vuetify overwrites - */ - -// https://vuetifyjs.com/features/sass-variables/` -// @use 'vuetify/settings' with ( -// $color-pack: false -// ); diff --git a/site/src/views/404.vue b/site/src/views/404.vue deleted file mode 100644 index 7462697..0000000 --- a/site/src/views/404.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/site/src/views/index/Left.vue b/site/src/views/index/Left.vue deleted file mode 100644 index f774223..0000000 --- a/site/src/views/index/Left.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - diff --git a/site/src/views/index/Notepad/changelog.ts b/site/src/views/index/Notepad/changelog.ts deleted file mode 100644 index 111f8f2..0000000 --- a/site/src/views/index/Notepad/changelog.ts +++ /dev/null @@ -1,16 +0,0 @@ -import axios from 'axios'; - -export const getChangeLog = async() => -{ - const changeLog = axios.get('https://api.github.com/repos/HydroRoll-Team/HydroRoll/releases/latest') - .then(res => { - console.log(res.data); - const ChangeLogMessage ="## "+ res.data['tag_name']+"\n"+res.data['body']; - return ChangeLogMessage; - }) - .catch(err => { - console.log(err); - return err.toString(); - }) - return changeLog; -} diff --git a/site/src/views/index/Notepad/index.vue b/site/src/views/index/Notepad/index.vue deleted file mode 100644 index fde6e90..0000000 --- a/site/src/views/index/Notepad/index.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - diff --git a/site/src/views/index/Right.vue b/site/src/views/index/Right.vue deleted file mode 100644 index d76397e..0000000 --- a/site/src/views/index/Right.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - diff --git a/site/src/views/index/index.vue b/site/src/views/index/index.vue deleted file mode 100644 index 003f752..0000000 --- a/site/src/views/index/index.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - diff --git a/site/src/vite-env.d.ts b/site/src/vite-env.d.ts deleted file mode 100644 index 7d17c38..0000000 --- a/site/src/vite-env.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// - -declare module '*.vue' { - import type { DefineComponent } from 'vue' - const component: DefineComponent<{}, {}, any> - export default component -} -declare module '@kangc/v-md-editor/lib/preview'; -declare module '@kangc/v-md-editor/lib/theme/github.js'; -declare module 'prismjs'; -- cgit v1.2.3-70-g09d2