mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 21:46:48 +00:00
- 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>
16 lines
383 B
TypeScript
16 lines
383 B
TypeScript
import { computed, useRouter } from '#imports'
|
|
|
|
export function useDashboard() {
|
|
const router = useRouter()
|
|
|
|
const route = router.currentRoute
|
|
|
|
const dashboardUrl = computed(() => {
|
|
// todo: test in different scenarios
|
|
// get source path of app
|
|
return `${location.origin}${(location.pathname || '').replace(route.value.path, '')}`
|
|
})
|
|
|
|
return { dashboardUrl }
|
|
}
|