Download web/src/views/setting/index.vue from jimlv/ssh: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/views/setting/index.vue
- Command line
-
hf download hf://spaces/jimlv/ssh/web/src/views/setting/index.vue
-
curl -L -o index.vue https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/views/setting/index.vue
1.35 kB
| <template> | |
| <div class="setting_container"> | |
| <el-tabs v-model="tabKey" tab-position="top"> | |
| <el-tab-pane label="修改密码" name="user"> | |
| <User /> | |
| </el-tab-pane> | |
| <el-tab-pane label="登录管理" name="session" lazy> | |
| <Session /> | |
| </el-tab-pane> | |
| <el-tab-pane label="通知配置" name="notify"> | |
| <Notify /> | |
| </el-tab-pane> | |
| <el-tab-pane label="代理服务" name="proxy"> | |
| <Proxy /> | |
| </el-tab-pane> | |
| <el-tab-pane label="Plus激活" name="plus"> | |
| <UserPlus /> | |
| </el-tab-pane> | |
| </el-tabs> | |
| </div> | |
| </template> | |
| <script setup> | |
| import { watch, computed } from 'vue' | |
| import { useRoute, useRouter } from 'vue-router' | |
| import Session from './components/session.vue' | |
| import User from './components/user.vue' | |
| import Notify from './components/notify.vue' | |
| import UserPlus from './components/user-plus.vue' | |
| import Proxy from './components/proxy.vue' | |
| const route = useRoute() | |
| const router = useRouter() | |
| const tabKey = computed({ | |
| get() { | |
| return route.query.tabKey || 'user' | |
| }, | |
| set(newVal) { | |
| router.push({ query: { tabKey: newVal } }) | |
| } | |
| }) | |
| watch(() => tabKey.value, (newVal) => { | |
| router.push({ query: { tabKey: newVal } }) | |
| }) | |
| </script> | |
| <style lang="scss" scoped> | |
| .setting_container { | |
| height: 100%; | |
| padding: 20px; | |
| overflow: auto; | |
| } | |
| </style> | |