mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 19:46:55 +00:00
refactor: rename project and base
- Rename `Project` => `Base` - Rename `Base` => `Source` - Remove `db` from data/meta api endpoints - Add backward compatibility for old apis - Migrations for renaming table and columns Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<script lang="ts" setup>
|
||||
import { iconMap, ref, storeToRefs, useGlobal, useProject, useRoute } from '#imports'
|
||||
import { iconMap, ref, storeToRefs, useGlobal, useBase, useRoute } from '#imports'
|
||||
|
||||
const showDrawer = ref(false)
|
||||
|
||||
const { appInfo } = useGlobal()
|
||||
|
||||
const { project } = storeToRefs(useProject())
|
||||
const { base } = storeToRefs(useBase())
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
const openSwaggerLink = () => {
|
||||
openLink(`./api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.value.ncSiteUrl)
|
||||
openLink(`./api/v1/meta/bases/${route.params.baseId}/swagger`, appInfo.value.ncSiteUrl)
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -40,7 +40,7 @@ const openSwaggerLink = () => {
|
||||
|
||||
<LazyGeneralSocialCard class="!w-full nc-social-card">
|
||||
<template #before>
|
||||
<a-list-item v-if="project">
|
||||
<a-list-item v-if="base">
|
||||
<nuxt-link
|
||||
v-e="['a:navbar:user:swagger']"
|
||||
no-prefetch
|
||||
@@ -52,7 +52,7 @@ const openSwaggerLink = () => {
|
||||
<div class="ml-3 flex items-center text-sm">
|
||||
<LogosSwagger />
|
||||
<!-- Swagger Documentation -->
|
||||
<span class="ml-3">{{ project.title }} : {{ $t('title.swaggerDocumentation') }}</span>
|
||||
<span class="ml-3">{{ base.title }} : {{ $t('title.swaggerDocumentation') }}</span>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</a-list-item>
|
||||
|
||||
Reference in New Issue
Block a user