diff --git a/frontend/public/index.scss b/frontend/public/index.scss index 00d1e7d..57434ed 100644 --- a/frontend/public/index.scss +++ b/frontend/public/index.scss @@ -21,6 +21,18 @@ div.paperbox-item-words { word-break: break-all; } +// 多行卡片样式(作用于管理员用户列表项、会话令牌项等内部需要纵向堆叠多个字段的卡片) +div.paperbox-item-multiline-words { + display: flex; + flex-flow: column; + align-items: flex-start; + + flex-grow: 1; + flex-basis: 0; + + word-break: break-all; +} + div.paperbox-item-icon { margin-left: 0.75rem; } diff --git a/frontend/src/components/admin/TokenItem.vue b/frontend/src/components/admin/TokenItem.vue new file mode 100644 index 0000000..08a63d2 --- /dev/null +++ b/frontend/src/components/admin/TokenItem.vue @@ -0,0 +1,64 @@ + + + + + + {{ uuid }} + + User Agent: + {{ ua }} + + + IP: + {{ ip }} + + + Expire On: + {{ expireOn }} + + + + This is the login credentials you are currently using. + + + + + + + + + + diff --git a/frontend/src/components/admin/UserItem.vue b/frontend/src/components/admin/UserItem.vue new file mode 100644 index 0000000..ee866ce --- /dev/null +++ b/frontend/src/components/admin/UserItem.vue @@ -0,0 +1,95 @@ + + + + + + + + + + {{ username }} + + + New Password + + + + + + + Is Admin + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 4366c76..022eb8f 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -3,7 +3,7 @@ import { createPinia } from 'pinia' import { library } from '@fortawesome/fontawesome-svg-core' import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' -import { faUser, faLock, faPen, faShare, faTrash, faCheck, faTimes, faPlus, faSync, faChevronCircleLeft, faChevronCircleRight, faEye, faEyeSlash, faRetweet, faGlobe } from '@fortawesome/free-solid-svg-icons' +import { faUser, faLock, faPen, faShare, faTrash, faCheck, faTimes, faPlus, faSync, faChevronCircleLeft, faChevronCircleRight, faEye, faEyeSlash, faRetweet, faGlobe, faKey, faSignOutAlt, faExclamationTriangle, faWrench } from '@fortawesome/free-solid-svg-icons' import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' @@ -19,7 +19,7 @@ const app = createApp(App); app.use(pinia); app.use(router); -library.add(faUser, faLock, faPen, faShare, faTrash, faCheck, faTimes, faPlus, faSync, faChevronCircleLeft, faChevronCircleRight, faEye, faEyeSlash, faRetweet, faGlobe); +library.add(faUser, faLock, faPen, faShare, faTrash, faCheck, faTimes, faPlus, faSync, faChevronCircleLeft, faChevronCircleRight, faEye, faEyeSlash, faRetweet, faGlobe, faKey, faSignOutAlt, faExclamationTriangle, faWrench); app.component('font-awesome-icon', FontAwesomeIcon); app.mount('#app'); diff --git a/frontend/src/views/Admin.vue b/frontend/src/views/Admin.vue index 9105cca..f302743 100644 --- a/frontend/src/views/Admin.vue +++ b/frontend/src/views/Admin.vue @@ -1,8 +1,238 @@ - + - Congratulations - This is admin. + + + + My Profile + Manage Multi-login + Manager User + + + + + + Change Password + + + + + + + + + + + + + + Manage multi-login + Manage the multi-login of the current account. You can forced logout some login in + there. + + + + + + + + + + + + + + + User List + + + + + + + + + + + + + + + + + + + + + + + + + +
+ User Agent: + {{ ua }} +
+ IP: + {{ ip }} +
+ Expire On: + {{ expireOn }} +
+ + This is the login credentials you are currently using. +
This is admin.