π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
chore(nc-gui): lint
Ramesh Mane071d96e3482d
diff --git a/packages/nc-gui/composables/useExtensions.ts b/packages/nc-gui/composables/useExtensions.tsindex d44ce4c271..9fc69ea25b 100644--- a/packages/nc-gui/composables/useExtensions.ts+++ b/packages/nc-gui/composables/useExtensions.ts@@ -1,5 +1,6 @@import { useStorage } from '@vueuse/core'-import { hasMinimumRoleAccess, PlanLimitTypes, ProjectRoles, getProjectRole } from 'nocodb-sdk'+import type { ProjectRoles } from 'nocodb-sdk'+import { PlanLimitTypes, getProjectRole, hasMinimumRoleAccess } from 'nocodb-sdk'import { usePlugin } from './usePlugin'import { ExtensionsEvents } from '#imports'@@ -108,6 +109,15 @@ export const useExtensions = createSharedComposable(() => {isPanelExpanded.value = !isPanelExpanded.value}+ /**+ * @param extensionId - The id of the extension which is defined in manifest.json to get the minimum access role for+ * @returns The minimum access role for the extension+ */+ const getExtensionMinAccessRole = (extensionId: string): ExtensionManifest['minAccessRole'] => {+ const extension = availableExtensionMapById.value[extensionId]+ return extension?.minAccessRole || 'creator'+ }+const extensionList = computed<ExtensionType[]>(() => {return (activeBaseExtensions.value ? activeBaseExtensions.value.extensions : []).filter(@@ -124,15 +134,6 @@ export const useExtensions = createSharedComposable(() => {return getProjectRole(user.value, true)})- /**- * @param extensionId - The id of the extension which is defined in manifest.json to get the minimum access role for- * @returns The minimum access role for the extension- */- const getExtensionMinAccessRole = (extensionId: string): ExtensionManifest['minAccessRole'] => {- const extension = availableExtensionMapById.value[extensionId]- return extension?.minAccessRole || 'creator'- }-/*** @param extensionId - The id of the extension which is defined in manifest.json to check if the user has access to* @returns True if the user has access to the extension, false otherwise