cleanup
This commit is contained in:
parent
55f962ce7f
commit
068c3c0654
5 changed files with 49 additions and 53 deletions
|
|
@ -116,7 +116,7 @@ const UsersTab = {
|
|||
methods: {
|
||||
fetchUsers(page) {
|
||||
return useAdminSettingsStore()
|
||||
.fetchAdminUsers({
|
||||
.fetchUsers({
|
||||
...this.fetchOptions,
|
||||
page,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { get } from 'lodash'
|
||||
import { mapState } from 'pinia'
|
||||
|
||||
import Conversation from 'src/components/conversation/conversation.vue'
|
||||
import FollowCard from 'src/components/follow_card/follow_card.vue'
|
||||
import List from 'src/components/list/list.vue'
|
||||
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx'
|
||||
|
|
@ -205,7 +204,6 @@ const UserProfile = {
|
|||
List,
|
||||
FollowCard,
|
||||
TabSwitcher,
|
||||
Conversation,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
46
src/components/user_profile/user_profile.scss
Normal file
46
src/components/user_profile/user_profile.scss
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
.user-profile {
|
||||
flex: 2;
|
||||
|
||||
.card-wrapper {
|
||||
border-top-left-radius: var(--roundness);
|
||||
border-top-right-radius: var(--roundness);
|
||||
}
|
||||
|
||||
.panel-footer {
|
||||
border-bottom-left-radius: var(--roundness);
|
||||
border-bottom-right-radius: var(--roundness);
|
||||
}
|
||||
|
||||
// No sticky header on user profile
|
||||
--currentPanelStack: 0;
|
||||
|
||||
.userlist-placeholder {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
margin: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
.user-profile-placeholder {
|
||||
.panel-body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 7em;
|
||||
}
|
||||
|
||||
.alert {
|
||||
padding: 0.75em 5em;
|
||||
border-width: 2px;
|
||||
|
||||
.error-message {
|
||||
color: var(--text);
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -126,52 +126,4 @@
|
|||
|
||||
<script src="./user_profile.js"></script>
|
||||
|
||||
<style lang="scss">
|
||||
.user-profile {
|
||||
flex: 2;
|
||||
|
||||
.card-wrapper {
|
||||
border-top-left-radius: var(--roundness);
|
||||
border-top-right-radius: var(--roundness);
|
||||
}
|
||||
|
||||
.panel-footer {
|
||||
border-bottom-left-radius: var(--roundness);
|
||||
border-bottom-right-radius: var(--roundness);
|
||||
}
|
||||
|
||||
// No sticky header on user profile
|
||||
--currentPanelStack: 0;
|
||||
|
||||
.userlist-placeholder {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
margin: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
.user-profile-placeholder {
|
||||
.panel-body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 7em;
|
||||
}
|
||||
|
||||
.alert {
|
||||
padding: 0.75em 5em;
|
||||
border-width: 2px;
|
||||
|
||||
.error-message {
|
||||
color: var(--text);
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
<style src="./user_profile.scss" lang="scss"></style>
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ export const useAdminSettingsStore = defineStore('adminSettings', {
|
|||
},
|
||||
|
||||
// Users stuff
|
||||
async fetchAdminUsers(opts) {
|
||||
async fetchUsers(opts) {
|
||||
const adminData = await this.backendInteractor.adminListUsers({
|
||||
opts,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue