mirror of https://github.com/nocodb/nocodb
96 lines
2.5 KiB
96 lines
2.5 KiB
4 years ago
|
<template>
|
||
3 years ago
|
<div class="h-100 nc-auth-tab">
|
||
4 years ago
|
<div class="h-100" style="width: 100%">
|
||
3 years ago
|
<v-tabs height="40" color="x-active">
|
||
3 years ago
|
<v-tab>
|
||
|
<span class="caption text-capitalize">
|
||
4 years ago
|
<!-- Users Management -->
|
||
3 years ago
|
{{ $t('title.userMgmt') }}
|
||
3 years ago
|
</span>
|
||
|
</v-tab>
|
||
4 years ago
|
<v-tab-item class="h-100">
|
||
3 years ago
|
<user-management class="backgroundColor" :nodes="nodes" />
|
||
4 years ago
|
</v-tab-item>
|
||
|
|
||
|
<template v-if="_isUIAllowed('apiTokenTab')">
|
||
3 years ago
|
<v-tab>
|
||
|
<span class="caption text-capitalize">
|
||
4 years ago
|
<!-- API Tokens Management -->
|
||
3 years ago
|
{{ $t('title.apiTokenMgmt') }}
|
||
3 years ago
|
</span>
|
||
|
</v-tab>
|
||
4 years ago
|
<v-tab-item>
|
||
3 years ago
|
<api-tokens :nodes="nodes" />
|
||
4 years ago
|
</v-tab-item>
|
||
|
</template>
|
||
|
</v-tabs>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
2 years ago
|
import UserManagement from '~/components/auth/UserManagement';
|
||
|
import Roles from '~/components/auth/Roles';
|
||
|
import ApiTokens from '~/components/auth/ApiTokens';
|
||
4 years ago
|
|
||
|
export default {
|
||
3 years ago
|
name: 'AuthTab',
|
||
|
components: { ApiTokens, Roles, UserManagement },
|
||
4 years ago
|
props: ['nodes'],
|
||
|
data: () => ({
|
||
2 years ago
|
showConfirmDlg: false,
|
||
4 years ago
|
}),
|
||
3 years ago
|
async created() {},
|
||
2 years ago
|
methods: {},
|
||
|
};
|
||
4 years ago
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
::v-deep {
|
||
|
//.v-tabs-bar {
|
||
|
// border-bottom: solid 1px var(--v-primary-lighten2);
|
||
|
//}
|
||
|
//
|
||
|
//.v-tab {
|
||
|
// border-right: 1px solid var(--v-primary-lighten2);
|
||
|
//}
|
||
|
|
||
|
.v-tabs {
|
||
|
height: 100%;
|
||
|
|
||
|
.v-tabs-items {
|
||
|
height: calc(100% - 30px);
|
||
|
|
||
|
.v-window__container {
|
||
|
height: 100%;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|
||
|
<!--
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||
|
*
|
||
|
* @author Naveen MR <oof1lab@gmail.com>
|
||
|
* @author Pranav C Balan <pranavxc@gmail.com>
|
||
4 years ago
|
* @author Wing-Kam Wong <wingkwong.code@gmail.com>
|
||
4 years ago
|
*
|
||
|
* @license GNU AGPL version 3 or any later version
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|