Files
nocodb/packages/nc-gui/composables/useDashboard.ts
Pranav C e790abdbaf 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>
2023-10-02 23:52:18 +05:30

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