mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
69 lines
1.8 KiB
Vue
69 lines
1.8 KiB
Vue
<template>
|
|
<div>
|
|
<h1 class="box__title">{{ $t('apiDocsComponent.title') }}</h1>
|
|
<template v-if="isAuthenticated">
|
|
<i18n path="apiDocsComponent.intro" tag="p">
|
|
<template #settingsLink>
|
|
<a @click.prevent="$refs.settingsModal.show('tokens')">{{
|
|
$t('apiDocsComponent.settings')
|
|
}}</a
|
|
>,
|
|
</template>
|
|
</i18n>
|
|
<div class="select-application__title">
|
|
{{ $t('apiDocsComponent.selectApplicationTitle') }}
|
|
</div>
|
|
<APIDocsSelectDatabase />
|
|
<nuxt-link :to="{ name: 'dashboard' }" class="select-application__back">
|
|
<i class="iconoir-arrow-left"></i>
|
|
{{ $t('apiDocsComponent.back') }}
|
|
</nuxt-link>
|
|
<SettingsModal ref="settingsModal"></SettingsModal>
|
|
</template>
|
|
<template v-else>
|
|
<i18n path="apiDocsComponent.intro" tag="p">
|
|
<template #settingsLink>{{ $t('apiDocsComponent.settings') }},</template
|
|
>,
|
|
</i18n>
|
|
|
|
<Button
|
|
tag="nuxt-link"
|
|
:to="{
|
|
name: 'login',
|
|
query: {
|
|
original: $route.path,
|
|
},
|
|
}"
|
|
type="secondary"
|
|
size="large"
|
|
>
|
|
{{ $t('apiDocsComponent.signIn') }}</Button
|
|
>
|
|
</template>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import SettingsModal from '@baserow/modules/core/components/settings/SettingsModal'
|
|
import APIDocsSelectDatabase from '@baserow/modules/database/components/docs/APIDocsSelectDatabase'
|
|
|
|
export default {
|
|
name: 'APIDocs',
|
|
components: { SettingsModal, APIDocsSelectDatabase },
|
|
layout: 'login',
|
|
middleware: ['workspacesAndApplications'],
|
|
head() {
|
|
return {
|
|
title: 'REST API documentation',
|
|
}
|
|
},
|
|
computed: {
|
|
...mapGetters({
|
|
isAuthenticated: 'auth/isAuthenticated',
|
|
}),
|
|
},
|
|
}
|
|
</script>
|