91cb011ded
* CodeInput. verify-email page * middleware * Loading toast * Countdown only for registration * Improve middleware * Fix middleware breaking auth flow * Remove old notifications * Remove old onboarding. New segmentation * Remove skip button * Block verify email when verified * useUserEmails composable. Cancel addition * Move user emails queries * Fix fragments etc * redirect updates * HeaderWithEmptyPage * Check env before enforcing * Join workspace * Updates * Fix console warnings on login * Fix register console warnings * Working cache updates * Verify secondary email * Force onboarding off * EMAIL WIP * useIsJustRegistered state * Improve isRequired * Uneeded change * Improved slots * Updates from CR * CR comments * Only show message if forced * Update onboarding middleware * Update loading bar * ref > computed to fix onboarding * Resend tooltip. Better errors * Add other to form. * Email changes * Updates to emails * Remove force email FF * Remove FF's * Hide header on embed * Update graphql.ts * Re-add FF * Update graphql.ts * GQL Fragments * Fix build
68 lines
1.7 KiB
TypeScript
68 lines
1.7 KiB
TypeScript
import { useActiveUser } from '~/lib/auth/composables/activeUser'
|
|
import { usePageQueryStandardFetchPolicy } from '~/lib/common/composables/graphql'
|
|
import { useGlobalToast } from '~/lib/common/composables/toast'
|
|
|
|
export const useIsAutomateModuleEnabled = () => {
|
|
const {
|
|
public: { FF_AUTOMATE_MODULE_ENABLED }
|
|
} = useRuntimeConfig()
|
|
|
|
return ref(FF_AUTOMATE_MODULE_ENABLED)
|
|
}
|
|
|
|
export const useIsWorkspacesEnabled = () => {
|
|
const {
|
|
public: { FF_WORKSPACES_MODULE_ENABLED }
|
|
} = useRuntimeConfig()
|
|
|
|
return ref(FF_WORKSPACES_MODULE_ENABLED)
|
|
}
|
|
|
|
export const useIsWorkspacesSsoEnabled = () => {
|
|
const {
|
|
public: { FF_WORKSPACES_SSO_ENABLED }
|
|
} = useRuntimeConfig()
|
|
|
|
return ref(FF_WORKSPACES_SSO_ENABLED)
|
|
}
|
|
|
|
export const useIsWorkspacesMultiRegionBlobStorageEnabled = () => {
|
|
const {
|
|
public: { FF_WORKSPACES_MULTI_REGION_ENABLED }
|
|
} = useRuntimeConfig()
|
|
|
|
return ref(FF_WORKSPACES_MULTI_REGION_ENABLED)
|
|
}
|
|
|
|
export const useIsMultipleEmailsEnabled = () => {
|
|
const {
|
|
public: { FF_MULTIPLE_EMAILS_MODULE_ENABLED }
|
|
} = useRuntimeConfig()
|
|
|
|
return ref(FF_MULTIPLE_EMAILS_MODULE_ENABLED)
|
|
}
|
|
|
|
export const useIsOnboardingForced = () => {
|
|
const {
|
|
public: { FF_FORCE_ONBOARDING }
|
|
} = useRuntimeConfig()
|
|
|
|
return ref(FF_FORCE_ONBOARDING)
|
|
}
|
|
|
|
export const useIsGendoModuleEnabled = () => {
|
|
const {
|
|
public: { FF_GENDOAI_MODULE_ENABLED }
|
|
} = useRuntimeConfig()
|
|
return ref(FF_GENDOAI_MODULE_ENABLED)
|
|
}
|
|
|
|
export const useIsBillingIntegrationEnabled = () => {
|
|
const {
|
|
public: { FF_BILLING_INTEGRATION_ENABLED }
|
|
} = useRuntimeConfig()
|
|
return ref(FF_BILLING_INTEGRATION_ENABLED)
|
|
}
|
|
|
|
export { useGlobalToast, useActiveUser, usePageQueryStandardFetchPolicy }
|