Ported from gitlab to gitea

This commit is contained in:
2023-02-11 01:24:54 +01:00
parent c687058a06
commit 2ea430817f
3 changed files with 23 additions and 30 deletions

View File

@@ -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';
}
},
{

View File

@@ -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>