mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.1 KiB
80 lines
2.1 KiB
2 years ago
|
<script lang="ts" setup>
|
||
2 years ago
|
import { useGlobal, useProject } from '#imports'
|
||
|
|
||
2 years ago
|
const showDrawer = ref(false)
|
||
2 years ago
|
|
||
|
const { appInfo } = useGlobal()
|
||
|
|
||
|
const { project } = useProject()
|
||
|
|
||
|
const route = useRoute()
|
||
|
|
||
|
const openSwaggerLink = () => {
|
||
|
openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.value.ncSiteUrl)
|
||
|
}
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<template>
|
||
2 years ago
|
<div
|
||
|
class="flex items-center space-x-1 w-full cursor-pointer pl-3 py-1.5 hover:(text-primary bg-primary bg-opacity-5)"
|
||
|
@click="showDrawer = true"
|
||
|
>
|
||
2 years ago
|
<MdiCommentTextOutline class="mr-1" />
|
||
2 years ago
|
<!-- APIs & Support -->
|
||
|
<div>{{ $t('title.APIsAndSupport') }}</div>
|
||
2 years ago
|
</div>
|
||
2 years ago
|
|
||
2 years ago
|
<a-drawer
|
||
2 years ago
|
v-bind="$attrs"
|
||
2 years ago
|
v-model:visible="showDrawer"
|
||
|
class="h-full relative"
|
||
|
placement="right"
|
||
|
size="small"
|
||
|
:closable="false"
|
||
|
:body-style="{ padding: '12px 24px 0 24px', background: '#fafafa' }"
|
||
|
>
|
||
|
<div class="flex flex-col w-full h-full p-4 pb-0">
|
||
2 years ago
|
<!-- Help center -->
|
||
|
<a-typography-title :level="4" class="!mb-6 !text-gray-500">{{ $t('title.helpCenter') }}</a-typography-title>
|
||
2 years ago
|
|
||
2 years ago
|
<GeneralSocialCard class="!w-full nc-social-card">
|
||
2 years ago
|
<template #before>
|
||
|
<a-list-item v-if="project">
|
||
|
<nuxt-link
|
||
|
v-t="['e:docs']"
|
||
2 years ago
|
class="!no-underline !text-current py-4 font-semibold"
|
||
2 years ago
|
target="_blank"
|
||
|
@click="openSwaggerLink"
|
||
|
>
|
||
|
<div class="ml-3 flex items-center text-sm">
|
||
|
<LogosSwagger />
|
||
2 years ago
|
<!-- Swagger Documentation -->
|
||
|
<span class="ml-3">{{ project.title }} : {{ $t('title.swaggerDocumentation') }}</span>
|
||
2 years ago
|
</div>
|
||
|
</nuxt-link>
|
||
|
</a-list-item>
|
||
|
</template>
|
||
|
</GeneralSocialCard>
|
||
|
<div class="min-h-10 w-full" />
|
||
|
</div>
|
||
|
</a-drawer>
|
||
2 years ago
|
</template>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
/* Social card style */
|
||
|
.nc-social-card {
|
||
|
@apply !shadow-none !border-0 bg-transparent;
|
||
|
|
||
|
:deep(.ant-spin-container) {
|
||
|
@apply !gap-3;
|
||
|
|
||
|
.ant-list-item {
|
||
2 years ago
|
@apply mb-2 border-1 bg-white border-gray-200;
|
||
2 years ago
|
&:last-child {
|
||
2 years ago
|
@apply !border-solid;
|
||
2 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|