Skip to main content

Interface: FirebaseCMSAppProps

Main entry point that defines the CMS configuration

Properties

HomePage

โ€ข Optional HomePage: ComponentType<{}>

In case you need to override the home page. You may want to use useNavigation in order to get the resolved navigation.

Defined in

firebase_app/FirebaseCMSAppProps.tsx:132


allowSkipLogin

โ€ข Optional allowSkipLogin: boolean

If authentication is enabled, allow the user to access the content without login.

Defined in

firebase_app/FirebaseCMSAppProps.tsx:63


authentication

โ€ข Optional authentication: boolean | Authenticator<User>

Do the users need to log in to access the CMS. You can specify an Authenticator function to discriminate which users can access the CMS or not. If not specified, authentication is enabled but no user restrictions apply

Defined in

firebase_app/FirebaseCMSAppProps.tsx:47


baseCollectionPath

โ€ข Optional baseCollectionPath: string

Default path under the collection routes of the CMS will be created

Defined in

firebase_app/FirebaseCMSAppProps.tsx:142


basePath

โ€ข Optional basePath: string

Default path under the navigation routes of the CMS will be created

Defined in

firebase_app/FirebaseCMSAppProps.tsx:137


dateTimeFormat

โ€ข Optional dateTimeFormat: string

Format of the dates in the CMS. Defaults to 'MMMM dd, yyyy, HH:mm:ss'

Defined in

firebase_app/FirebaseCMSAppProps.tsx:104


firebaseConfig

โ€ข Optional firebaseConfig: Object

Firebase configuration of the project. If you afe deploying the app to Firebase hosting, you don't need to specify this value

Defined in

firebase_app/FirebaseCMSAppProps.tsx:69


fontFamily

โ€ข Optional fontFamily: string

Font family string e.g. '"Roboto", "Helvetica", "Arial", sans-serif'

Defined in

firebase_app/FirebaseCMSAppProps.tsx:93


locale

โ€ข Optional locale: Locale

Locale of the CMS, currently only affecting dates

Defined in

firebase_app/FirebaseCMSAppProps.tsx:109


โ€ข Optional logo: string

Logo to be displayed in the drawer of the CMS

Defined in

firebase_app/FirebaseCMSAppProps.tsx:28


name

โ€ข name: string

Name of the app, displayed as the main title and in the tab title

Defined in

firebase_app/FirebaseCMSAppProps.tsx:23


โ€ข navigation: Navigation | EntityCollection<any, string, any>[] | NavigationBuilder<User>

Use this prop to specify the views that will be generated in the CMS. You usually will want to create a Navigation object that includes collection views where you specify the path and the schema. Additionally you can add custom views to the root navigation. In you need to customize the navigation based on the logged user you can use a NavigationBuilder

Defined in

firebase_app/FirebaseCMSAppProps.tsx:38


primaryColor

โ€ข Optional primaryColor: string

Primary color of the theme of the CMS

Defined in

firebase_app/FirebaseCMSAppProps.tsx:81


schemaOverrideHandler

โ€ข Optional schemaOverrideHandler: SchemaOverrideHandler

Used to override schemas based on the collection path and entityId. This resolver allows to override the schema for specific entities, or specific collections, app wide. This overrides schemas all through the app.

You can also override schemas in place, when using useSideEntityController

Defined in

firebase_app/FirebaseCMSAppProps.tsx:118


secondaryColor

โ€ข Optional secondaryColor: string

Secondary color of the theme of the CMS

Defined in

firebase_app/FirebaseCMSAppProps.tsx:86


signInOptions

โ€ข Optional signInOptions: (FirebaseSignInProvider | FirebaseSignInOption)[]

List of sign in options that will be displayed in the login view if authentication is enabled. You can pass Firebase providers strings, such as firebase.auth.GoogleAuthProvider.PROVIDER_ID or include addtional config such as scopes or custom parameters {@see FirebaseSignInOption} Defaults to Google sign in only.

Defined in

firebase_app/FirebaseCMSAppProps.tsx:57


textSearchController

โ€ข Optional textSearchController: FirestoreTextSearchController

Use this controller to return text search results as document ids, that get then fetched from Firestore.

Defined in

firebase_app/FirebaseCMSAppProps.tsx:125


toolbarExtraWidget

โ€ข Optional toolbarExtraWidget: ReactNode

A component that gets rendered on the upper side of the main toolbar

Defined in

firebase_app/FirebaseCMSAppProps.tsx:98

Methods

onFirebaseInit

โ–ธ Optional onFirebaseInit(config): void

Optional callback after Firebase has been initialised. Useful for using the local emulator or retrieving the used configuration.

Parameters

NameType
configobject

Returns

void

Defined in

firebase_app/FirebaseCMSAppProps.tsx:76