Skip to content

Commit

Permalink
Merge pull request #35 from LoCyan-Team/v2-email
Browse files Browse the repository at this point in the history
.
  • Loading branch information
Muska-Ami authored Oct 23, 2024
2 parents b0d838b + 930a09c commit f7d007b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 261 deletions.
8 changes: 1 addition & 7 deletions src/components/sidebar/GuestSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import { NIcon, NLayoutSider, NMenu } from 'naive-ui'
import { h, ref } from 'vue'
import { CompassOutline, LogInOutline, MailOpenOutline } from '@vicons/ionicons5'
import { LogInOutline, MailOpenOutline } from '@vicons/ionicons5'
import { KeyReset20Regular } from '@vicons/fluent'
import router from '@router'
Expand All @@ -44,12 +44,6 @@ function renderIcon(icon) {
}
const menuOptions = [
{
path: '/',
label: '首页',
key: 'root',
icon: renderIcon(CompassOutline)
},
{
path: '/auth/login',
label: '登录',
Expand Down
6 changes: 1 addition & 5 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ const routes = [
children: [
{
path: '/',
name: 'MainPage',
meta: {
title: '首页'
},
component: () => import('@views/MainView.vue')
redirect: '/auth/login'
},
{
path: '/dashboard',
Expand Down
23 changes: 14 additions & 9 deletions src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<n-space>
<a href="https://spcraft.cn" target="_blank">
<img
alt="SPCraftMC"
style="width: 100%"
src="https://apac-cloudflare-r2-img.1l1.icu/2024/07/03/6685745b965eb.webp"
/>
Expand Down Expand Up @@ -108,7 +109,7 @@
</n-alert>
-->
<n-divider />
<n-alert title="注意事项" type="warning">
<n-alert title="注意事项" type="warning" class="ext-margin-bottom">
1. 若因为自己的迷幻操作导致的各种问题我们没有义务给予回答;<br />
2.
不要因为群里没有人回答你的问题而到处宣扬我们没素质,任何人的时间都是宝贵的,不要因为你的问题而去浪费他人的时间。
Expand Down Expand Up @@ -138,17 +139,13 @@
<br />
<n-card title="使用方法">
<n-space vertical>
<n-steps vertical :current="8">
<n-steps vertical :current="4">
<n-step
title="创建隧道"
description="点击隧道操作中的创建隧道,填写自己隧道的相应信息"
description="点击隧道操作中的创建隧道,填写相应信息创建"
/>
<n-step title="软件下载" description="点击软件下载,下载最新版本" />
<n-step title="启动客户端" description="启动客户端,登录自己的账号" />
<n-step title="安装Frpc" description="前往 设置->FRPC->安装Frpc" />
<n-step title="前往隧道列表" description="返回首页,点击左上角导航按钮,前往隧道列表" />
<n-step title="启动隧道" description="找到要启动的隧道,点击启动即可" />
<n-step title="启动成功" description="点击左上角导航按钮,前往控制台,即可查看日志" />
<n-step title="软件下载" description="点击软件下载,下载软件" />
<n-step title="启动隧道" description="启动对应的隧道" />
<n-step title="开始使用" description="好了,开始享受吧" />
</n-steps>
</n-space>
Expand All @@ -158,6 +155,14 @@
</n-grid>
</template>

<style scoped>
@media screen and (max-width: 700px) {
.ext-margin-bottom {
margin-bottom: 24px;
}
}
</style>

<script setup>
import { ref, onMounted } from 'vue'
// import clipboard from '@/utils/clipboard'
Expand Down
236 changes: 0 additions & 236 deletions src/views/MainView.vue

This file was deleted.

6 changes: 2 additions & 4 deletions src/views/auth/ResetPasswordView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@
<script setup>
import { ref } from 'vue'
import { useLoadingBar, useMessage } from 'naive-ui'
import { getUrlKey } from '@/utils/request'
import router from '@router'
import api from '@/api'
import logger from '@/utils/logger'
const formRef = ref(null)
const message = useMessage()
Expand Down Expand Up @@ -233,14 +231,14 @@ const rules = {
</script>
<style scoped>
#item {
margin-top: calc(50vh - 160px);
margin-top: calc(50vh - 210px);
margin-left: 240px;
margin-right: 240px;
}
@media (max-width: 1300px) {
#item {
margin-top: calc(50vh - 160px);
margin-top: calc(50vh - 210px);
margin-left: 20px;
margin-right: 20px;
}
Expand Down

0 comments on commit f7d007b

Please sign in to comment.