Ported from gitlab to gitea
This commit is contained in:
@@ -102,7 +102,7 @@ const columns: DataTableColumn<Responses.GetUsersEntry>[] = [
|
||||
title: 'Type',
|
||||
key: 'gitlab',
|
||||
render(user) {
|
||||
return user.gitlab ? 'Gitlab' : 'Password';
|
||||
return user.gitlab ? 'Gitea' : 'Password';
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -3,17 +3,7 @@ import type { TokenInjectType } from '@/api';
|
||||
import { ref, inject } from 'vue';
|
||||
import { Auth, FS, isErrorResponse } from '@/api';
|
||||
import { useRouter } from 'vue-router';
|
||||
import {
|
||||
useMessage,
|
||||
NInput,
|
||||
NGrid,
|
||||
NGi,
|
||||
NButton,
|
||||
NIcon,
|
||||
NH4,
|
||||
NCard
|
||||
} from 'naive-ui';
|
||||
import { LogoGitlab } from '@vicons/ionicons5';
|
||||
import { useMessage, NInput, NGrid, NGi, NButton, NH4, NCard } from 'naive-ui';
|
||||
import { loadingMsgWrapper } from '@/utils';
|
||||
|
||||
const router = useRouter();
|
||||
@@ -105,14 +95,11 @@ function onKey(event: KeyboardEvent) {
|
||||
<n-gi style="text-align: right">
|
||||
<n-button
|
||||
ghost
|
||||
color="#fc6d27"
|
||||
color="#16ab39"
|
||||
text-color="#000"
|
||||
@click="loginGitlab"
|
||||
>
|
||||
<template #icon>
|
||||
<n-icon color="#fc6d27"><LogoGitlab /></n-icon>
|
||||
</template>
|
||||
Login with gitlab
|
||||
Login with gitea
|
||||
</n-button>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
|
||||
Reference in New Issue
Block a user