Skip to content

Commit

Permalink
chore: remove server part from featire-access file
Browse files Browse the repository at this point in the history
  • Loading branch information
carere committed Dec 19, 2024
1 parent c5e6f14 commit 1e7046d
Show file tree
Hide file tree
Showing 26 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/app-builder/src/routes/_builder+/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { UserInfo } from '@app-builder/components/UserInfo';
import { isMarbleCoreUser } from '@app-builder/models';
import { useRefreshToken } from '@app-builder/routes/ressources+/auth+/refresh';
import { isAnalyticsAvailable } from '@app-builder/services/feature-access.server';
import { isAnalyticsAvailable } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { OrganizationDetailsContextProvider } from '@app-builder/services/organization/organization-detail';
import { OrganizationTagsContextProvider } from '@app-builder/services/organization/organization-tags';
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder/src/routes/_builder+/analytics.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ErrorComponent, Page } from '@app-builder/components';
import { isAnalyticsAvailable } from '@app-builder/services/feature-access.server';
import { isAnalyticsAvailable } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { notFound } from '@app-builder/utils/http/http-responses';
import { getRoute } from '@app-builder/utils/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { UploadFile } from '@app-builder/routes/ressources+/cases+/upload-file';
import {
isCreateSnoozeAvailable,
isReadSnoozeAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute, type RouteID } from '@app-builder/utils/routes';
import { fromParams, fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Page } from '@app-builder/components';
import { CreateInbox } from '@app-builder/routes/ressources+/settings+/inboxes+/create';
import { isCreateInboxAvailable } from '@app-builder/services/feature-access.server';
import { isCreateInboxAvailable } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Page } from '@app-builder/components';
import { casesI18n } from '@app-builder/components/Cases';
import { CreateInbox } from '@app-builder/routes/ressources+/settings+/inboxes+/create';
import { isCreateInboxAvailable } from '@app-builder/services/feature-access.server';
import { isCreateInboxAvailable } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
isEditDataModelFieldAvailable,
isEditDataModelInfoAvailable,
isIngestDataAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { json, type LoaderFunctionArgs } from '@remix-run/node';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
isDeleteListAvailable,
isDeleteListValueAvailable,
isEditListAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { clientServices } from '@app-builder/services/init.client';
import { serverServices } from '@app-builder/services/init.server';
import { downloadFile } from '@app-builder/utils/download-file';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ErrorComponent, Page } from '@app-builder/components';
import { type CustomList } from '@app-builder/models/custom-list';
import { CreateList } from '@app-builder/routes/ressources+/lists+/create';
import { isCreateListAvailable } from '@app-builder/services/feature-access.server';
import { isCreateListAvailable } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
isManualTriggerScenarioAvailable,
isTestRunAvailable,
isWorkflowsAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import {
formatDateRelative,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { useEditorMode } from '@app-builder/services/editor';
import {
isCreateDraftAvailable,
isDeploymentActionsAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import {
hasDecisionErrors,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
type EditorMode,
EditorModeContextProvider,
} from '@app-builder/services/editor';
import { isEditScenarioAvailable } from '@app-builder/services/feature-access.server';
import { isEditScenarioAvailable } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { findRuleValidation } from '@app-builder/services/validation';
import { getRoute, type RouteID } from '@app-builder/utils/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import {
isCreateInboxAvailable,
isWorkflowsAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromParams, fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isReadTagAvailable,
isReadUserAvailable,
isReadWebhookAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { type LoaderFunctionArgs } from '@remix-run/node';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
isCreateApiKeyAvailable,
isDeleteApiKeyAvailable,
isReadApiKeyAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { tKeyForApiKeyRole } from '@app-builder/services/i18n/translation-keys/api-key';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
isDeleteInboxUserAvailable,
isEditInboxAvailable,
isEditInboxUserAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { useOrganizationUsers } from '@app-builder/services/organization/organization-users';
import { getRoute } from '@app-builder/utils/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CreateInbox } from '@app-builder/routes/ressources+/settings+/inboxes+/
import {
isCreateInboxAvailable,
isReadAllInboxesAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isDeleteTagAvailable,
isEditTagAvailable,
isReadTagAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { json, type LoaderFunctionArgs, redirect } from '@remix-run/node';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
isDeleteUserAvailable,
isEditUserAvailable,
isReadUserAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { useOrganizationUsers } from '@app-builder/services/organization/organization-users';
import { getRoute } from '@app-builder/utils/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
isDeleteWebhookAvailable,
isEditWebhookAvailable,
isReadWebhookAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { json, type LoaderFunctionArgs, redirect } from '@remix-run/node';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
isDeleteWebhookAvailable,
isEditWebhookAvailable,
isReadWebhookAvailable,
} from '@app-builder/services/feature-access.server';
} from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { formatDateTime, useFormatLanguage } from '@app-builder/utils/format';
import { getRoute } from '@app-builder/utils/routes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ExternalLink } from '@app-builder/components/ExternalLink';
import { type TableModel } from '@app-builder/models';
import { useBackendInfo } from '@app-builder/services/auth/auth.client';
import { ingestingDataByCsvDocHref } from '@app-builder/services/documentation-href';
import { isIngestDataAvailable } from '@app-builder/services/feature-access.server';
import { isIngestDataAvailable } from '@app-builder/services/feature-access';
import { clientServices } from '@app-builder/services/init.client';
import { serverServices } from '@app-builder/services/init.server';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FormSelect } from '@app-builder/components/Form/FormSelect';
import { setToastMessage } from '@app-builder/components/MarbleToaster';
import { type User } from '@app-builder/models';
import { tKeyForInboxUserRole } from '@app-builder/models/inbox';
import { getInboxUserRoles } from '@app-builder/services/feature-access.server';
import { getInboxUserRoles } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
type InboxUser,
tKeyForInboxUserRole,
} from '@app-builder/models/inbox';
import { getInboxUserRoles } from '@app-builder/services/feature-access.server';
import { getInboxUserRoles } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import { fromUUID } from '@app-builder/utils/short-uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
isStatusConflictHttpError,
tKeyForUserRole,
} from '@app-builder/models';
import { getUserRoles } from '@app-builder/services/feature-access.server';
import { getUserRoles } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FormLabel } from '@app-builder/components/Form/FormLabel';
import { FormSelect } from '@app-builder/components/Form/FormSelect';
import { setToastMessage } from '@app-builder/components/MarbleToaster';
import { tKeyForUserRole, type User } from '@app-builder/models';
import { getUserRoles } from '@app-builder/services/feature-access.server';
import { getUserRoles } from '@app-builder/services/feature-access';
import { serverServices } from '@app-builder/services/init.server';
import { getRoute } from '@app-builder/utils/routes';
import {
Expand Down

0 comments on commit 1e7046d

Please sign in to comment.