mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-06-04 17:49:12 +08:00
feat: 文件互传初始化
This commit is contained in:
0
server/app/socket/file.js
Normal file
0
server/app/socket/file.js
Normal file
@@ -28,7 +28,8 @@ import {
|
||||
Setting,
|
||||
ScaleToOriginal,
|
||||
ArrowRight,
|
||||
Pointer
|
||||
Pointer,
|
||||
FolderOpened
|
||||
// FolderOpened
|
||||
} from '@element-plus/icons-vue'
|
||||
|
||||
@@ -56,16 +57,16 @@ const list = reactive([
|
||||
icon: markRaw(ScaleToOriginal),
|
||||
index: '/terminal'
|
||||
},
|
||||
{
|
||||
name: '文件对传',
|
||||
icon: markRaw(FolderOpened),
|
||||
index: '/file'
|
||||
},
|
||||
{
|
||||
name: '凭据管理',
|
||||
icon: markRaw(Key),
|
||||
index: '/credentials'
|
||||
},
|
||||
// {
|
||||
// name: '分组管理',
|
||||
// icon: markRaw(FolderOpened),
|
||||
// index: '/group'
|
||||
// },
|
||||
{
|
||||
name: '脚本库',
|
||||
icon: markRaw(ArrowRight),
|
||||
|
||||
@@ -5,7 +5,7 @@ import Container from '@views/index.vue'
|
||||
import Server from '@views/server/index.vue'
|
||||
import Terminal from '@views/terminal/index.vue'
|
||||
import Credentials from '@views/credentials/index.vue'
|
||||
// import Group from '@views/group/index.vue'
|
||||
import File from '@views/file/index.vue'
|
||||
import Onekey from '@views/onekey/index.vue'
|
||||
import Scripts from '@views/scripts/index.vue'
|
||||
import Setting from '@views/setting/index.vue'
|
||||
@@ -15,7 +15,6 @@ import Setting from '@views/setting/index.vue'
|
||||
// const Server = () => import('@views/server/index.vue')
|
||||
// const Terminal = () => import('@views/terminal/index.vue')
|
||||
// const Credentials = () => import('@views/credentials/index.vue')
|
||||
// const Group = () => import('@views/group/index.vue')
|
||||
// const Onekey = () => import('@views/onekey/index.vue')
|
||||
// const Scripts = () => import('@views/scripts/index.vue')
|
||||
// const Setting = () => import('@views/setting/index.vue')
|
||||
@@ -29,7 +28,7 @@ const routes = [
|
||||
{ path: '/server', component: Server },
|
||||
{ path: '/terminal', component: Terminal },
|
||||
{ path: '/credentials', component: Credentials },
|
||||
// { path: '/group', component: Group },
|
||||
{ path: '/file', component: File },
|
||||
{ path: '/onekey', component: Onekey },
|
||||
{ path: '/scripts', component: Scripts },
|
||||
{ path: '/setting', component: Setting },
|
||||
@@ -40,10 +39,6 @@ const routes = [
|
||||
path: '/:pathMatch(.*)*',
|
||||
redirect: '/server'
|
||||
},
|
||||
// { path: '/server', component: Server },
|
||||
// { path: '/', component: HostList },
|
||||
// { path: '/terminal', component: Terminal },
|
||||
// { path: '/test', component: test },
|
||||
]
|
||||
|
||||
export default createRouter({
|
||||
|
||||
25
web/src/views/file/index.vue
Normal file
25
web/src/views/file/index.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="file_container">
|
||||
<div class="file_header">
|
||||
<div class="file_header_left">
|
||||
<el-button type="primary">上传</el-button>
|
||||
<el-button type="primary">下载</el-button>
|
||||
</div>
|
||||
<div class="file_header_right">
|
||||
<el-input v-model="search" placeholder="搜索" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
const search = ref('')
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.file_container {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user